@metabase/cli 0.1.18 → 0.2.1-alpha.bcm-ghy-4075-spawn-default-profile.eb120d1
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 +283 -45
- package/dist/add-collection-CCpC-GUz.mjs +9 -0
- package/dist/{add-collection-CRZAFCZy.mjs → add-collection-CLXfrgp4.mjs} +4 -5
- package/dist/append-DMcxP1LM.mjs +42 -0
- package/dist/archive-4WqMsPWB.mjs +38 -0
- package/dist/{archive-De4yVEV8.mjs → archive-5inmbMDL.mjs} +5 -7
- package/dist/{archive-3mEhK9_H.mjs → archive-BggM_AuL.mjs} +5 -7
- package/dist/{archive-Z8ZM-ilB.mjs → archive-BmhehbS0.mjs} +8 -9
- package/dist/{archive-d74nDcp4.mjs → archive-BwIZzWGe.mjs} +5 -7
- package/dist/{archive-CFHYRF65.mjs → archive-DErhQn8A.mjs} +5 -7
- package/dist/archive-DTnz1suV.mjs +38 -0
- package/dist/{archive-C3RWdM-2.mjs → archive-Q1387APe.mjs} +7 -8
- package/dist/{archive-errg-EKw.mjs → archive-h-3H5b4K.mjs} +5 -7
- package/dist/auth-DzCAiArV.mjs +22 -0
- package/dist/{body-BS2s2zDl.mjs → body-5snfmiwR.mjs} +3 -3
- package/dist/{branches-mcyT7wI-.mjs → branches-PL170CYS.mjs} +5 -7
- package/dist/{cancel-B2l-i2NS.mjs → cancel-EFKcF5J_.mjs} +4 -6
- package/dist/{cancel-task-CugcIeIi.mjs → cancel-task-mFFx0d5m.mjs} +5 -7
- package/dist/capabilities-CiaAfUgX.mjs +684 -0
- package/dist/{card-DEmcRlNO.mjs → card-B8G5jQQT.mjs} +24 -18
- package/dist/card-BsfdXK0O.mjs +26 -0
- package/dist/{cards-BGkz5BeZ.mjs → cards-BI7zKb9M.mjs} +7 -8
- package/dist/cli.mjs +178 -29
- package/dist/collection-2h_by9Ue.mjs +23 -0
- package/dist/{collection-DrLpA1SO.mjs → collection-C52Ndi_O.mjs} +5 -3
- package/dist/{collection-namespace-BP_LJrAD.mjs → collection-namespace-uNA5WhLB.mjs} +2 -2
- package/dist/{create-Cztp5kES.mjs → create-BLD0YniB.mjs} +6 -7
- package/dist/create-BP8EIWrP.mjs +161 -0
- package/dist/{create-CkRFKtFG.mjs → create-BpizGzgQ.mjs} +8 -9
- package/dist/create-BxCsAdqc.mjs +45 -0
- package/dist/{create-DzyMvAVy.mjs → create-CBKT7SE_.mjs} +8 -9
- package/dist/{create-D8KA4zJA.mjs → create-CQ32FwVe.mjs} +11 -11
- package/dist/{create-YfGzANNB.mjs → create-CU3bYpsT.mjs} +8 -9
- package/dist/create-DAH24ltu.mjs +45 -0
- package/dist/{create-BOmmMSjF.mjs → create-DutkaD7P.mjs} +11 -12
- package/dist/{create-B4HAEEE0.mjs → create-FuZa4j1N.mjs} +8 -9
- package/dist/{create-wpvDXSSY.mjs → create-KveE3j3p.mjs} +12 -13
- package/dist/{create-DhrftYre.mjs → create-VrSowEbj.mjs} +14 -14
- package/dist/{create-CD9Rp8qs.mjs → create-acWKw4Y1.mjs} +14 -14
- package/dist/{create-branch-DsoMfx_2.mjs → create-branch-CP1Y4_El.mjs} +5 -7
- package/dist/{create-kWzqvTGR.mjs → create-xPfmI1Tu.mjs} +11 -12
- package/dist/csv-CZyYi0vi.mjs +58 -0
- package/dist/{current-task-WuKPZpZ6.mjs → current-task-BR4koo9z.mjs} +5 -7
- package/dist/dashboard-ARgJfamb.mjs +35 -0
- package/dist/{dashboard-DOplbKyQ.mjs → dashboard-BLihjDXg.mjs} +35 -15
- package/dist/{database-D9fftP-i.mjs → database-BOqzcexD.mjs} +2 -2
- package/dist/db-dbnxMPSR.mjs +27 -0
- package/dist/{delete-Buai0_e_.mjs → delete-BpL3vaaT.mjs} +6 -8
- package/dist/{delete-BCitmugk.mjs → delete-C5DqDwev.mjs} +6 -8
- package/dist/delete-DCDFLHFa.mjs +49 -0
- package/dist/delete-P2Qlsr_s.mjs +49 -0
- package/dist/{delete-CmGh0jo1.mjs → delete-ea_ns1uM.mjs} +6 -8
- package/dist/{delete-runtime-B0ha5QR4.mjs → delete-runtime-DdBn6poA.mjs} +2 -3
- package/dist/{delete-table-BOkYxdjA.mjs → delete-table-tM048btr.mjs} +6 -8
- package/dist/{dependencies-XZrEvHUA.mjs → dependencies-DdOTClO2.mjs} +5 -7
- package/dist/destroy-B51EPvOJ.mjs +168 -0
- package/dist/{dirty-B-5NDbG9.mjs → dirty-CEQYmhNF.mjs} +5 -7
- package/dist/{document-1W7NRaO_.mjs → document-D4zB-5a0.mjs} +20 -4
- package/dist/document-DR1FLOn9.mjs +22 -0
- package/dist/{eid-BCuJRv7a.mjs → eid-CtKGjAkz.mjs} +10 -11
- package/dist/embedding-CKdw8q7p.mjs +11 -0
- package/dist/events-C26DZ6yZ.mjs +44 -0
- package/dist/{export-Dod2gdyE.mjs → export-CippuWZJ.mjs} +5 -10
- package/dist/export-Cy2DFtR2.mjs +10 -0
- package/dist/field-CXDndCbB.mjs +21 -0
- package/dist/{field-CMY_LWUe.mjs → field-DsXTeqBy.mjs} +6 -4
- package/dist/{fields-B0yttrzR.mjs → fields-Xm_HVNcX.mjs} +6 -8
- package/dist/get-3O7hv4zv.mjs +67 -0
- package/dist/{get-D-pNrQGA.mjs → get-B0cq1uGy.mjs} +5 -7
- package/dist/{get-k6M5nGMC.mjs → get-B90bXbpw.mjs} +5 -7
- package/dist/{get-D7QMqPOK.mjs → get-BQBu2c94.mjs} +5 -7
- package/dist/{get-CfeYa0v5.mjs → get-BQz45IBF.mjs} +6 -7
- package/dist/get-BSfKWZNJ.mjs +35 -0
- package/dist/get-BdNC8WM8.mjs +38 -0
- package/dist/{get-DBY5esTW.mjs → get-Bj66bcuU.mjs} +5 -7
- package/dist/{get-BpZ81hX8.mjs → get-BrKqMM1d.mjs} +5 -7
- package/dist/{get-9p0Gt1c7.mjs → get-CjZWjRa5.mjs} +5 -7
- package/dist/{get-DISgP66L.mjs → get-CwGqARAf.mjs} +16 -9
- package/dist/{get-BkGh9BPd.mjs → get-D5crrFSf.mjs} +5 -7
- package/dist/{get-Dz7fcqoG.mjs → get-DTkvGu_J.mjs} +8 -9
- package/dist/{get-u5Uq9vms.mjs → get-DX2fp6BB.mjs} +4 -6
- package/dist/get-DYuJVlP-.mjs +35 -0
- package/dist/{get-DJ8huA8y.mjs → get-FIE88hj9.mjs} +7 -8
- package/dist/{get-B0OsW6jk.mjs → get-Ihx_XaaI.mjs} +5 -7
- package/dist/{get-run-DQJVpDw1.mjs → get-run-lVwhQVFx.mjs} +5 -7
- package/dist/{get-CbpHt4Hs.mjs → get-z0BKkiRX.mjs} +4 -6
- package/dist/git-sync-CmB4YBmS.mjs +31 -0
- package/dist/{group-BNE_RiH5.mjs → group-CILtQqCL.mjs} +2 -1
- package/dist/{has-remote-changes-DvQBXudi.mjs → has-remote-changes-DHrYSnTg.mjs} +5 -7
- package/dist/{import-PGS8-DwE.mjs → import-BU40xXSF.mjs} +7 -9
- package/dist/{input-7Sj85_K7.mjs → input-BGyHn0Kr.mjs} +6 -3
- package/dist/{is-dirty-DyEVFQVJ.mjs → is-dirty-BPluqPPP.mjs} +3 -4
- package/dist/is-dirty-DOy1TRcf.mjs +8 -0
- package/dist/{items-CkFEy2Du.mjs → items-BZpYkImP.mjs} +6 -8
- package/dist/{key-bltP32Pm.mjs → key-B8UAsQmB.mjs} +1 -1
- package/dist/{library-1AAVbk-K.mjs → library-BGWDIfEM.mjs} +6 -6
- package/dist/list-B037kJtH.mjs +39 -0
- package/dist/{list-82NkvRpI.mjs → list-B7Ihu6XI.mjs} +7 -8
- package/dist/{list-pQ22nXhQ.mjs → list-BCeZlfpQ.mjs} +4 -6
- package/dist/{list-CKzpoTgP.mjs → list-Bct00qku.mjs} +6 -8
- package/dist/{list-D-rgDFa5.mjs → list-Be8xMtS3.mjs} +8 -9
- package/dist/{list-Bb8YRON_.mjs → list-CjBPVJqd.mjs} +4 -6
- package/dist/{list-BCYTTCFD.mjs → list-CoqHnusK.mjs} +4 -6
- package/dist/{list-B9wXg3qi.mjs → list-CvaoHnl-.mjs} +3 -5
- package/dist/{list-BVzu2RIZ.mjs → list-DamRE5Ds.mjs} +4 -6
- package/dist/{list-BWAYDSbQ.mjs → list-DmopauvJ.mjs} +4 -6
- package/dist/{list-CJx5q-Yn.mjs → list-M_1sdYNH.mjs} +6 -8
- package/dist/{list-CK0p7vvK.mjs → list-Ov6bYzT9.mjs} +7 -8
- package/dist/{list-Sgo3RfDY.mjs → list-SfpASSFx.mjs} +4 -6
- package/dist/{list-BBxRjuMn.mjs → list-fPfgG0PY.mjs} +4 -6
- package/dist/list-lsPeumLP.mjs +34 -0
- package/dist/{list-BY4S32Lg.mjs → list-sn9M7QQX.mjs} +4 -6
- package/dist/{list-CjF12k1G.mjs → list-wxIVl45_.mjs} +5 -7
- package/dist/listing-wFZuS5li.mjs +10 -0
- package/dist/{login-C6ZAnGHz.mjs → login-CRlmR4op.mjs} +61 -23
- package/dist/{logout-CWjyY3Y8.mjs → logout-DSZEUxSQ.mjs} +5 -7
- package/dist/{measure-DoJvtCaA.mjs → measure-C3G1srWb.mjs} +5 -4
- package/dist/measure-Ka0n3426.mjs +25 -0
- package/dist/{parameter-values-DmDOuE-j.mjs → parameter-values-CwW8Xes7.mjs} +5 -7
- package/dist/{parse-enum-BL9i_brN.mjs → parse-enum-ooCsJWn6.mjs} +1 -1
- package/dist/parse-id-xS1tWJAq.mjs +18 -0
- package/dist/{parse-ref-CB_KvF9h.mjs → parse-ref-j4lxaQmd.mjs} +1 -1
- package/dist/{path-D8IJ4YrW.mjs → path-CVmg-bmf.mjs} +4 -6
- package/dist/{poll-hgnrHBoh.mjs → poll-CuTlWBwI.mjs} +2 -2
- package/dist/{poll-task-NQNLT_aA.mjs → poll-task-DhsYs8Hx.mjs} +2 -2
- package/dist/{preflight-DvaPQHHf.mjs → preflight-D3VgjEg7.mjs} +4 -5
- package/dist/{process-j8UHMHc2.mjs → process-7c8BcQEi.mjs} +1 -1
- package/dist/profile-name-CZ1-Vtrh.mjs +7 -0
- package/dist/{prompt-C85xd9HR.mjs → prompt-jQnNKtlx.mjs} +1 -1
- package/dist/{publish-BntmFR6g.mjs → publish-DFTCsjHU.mjs} +13 -10
- package/dist/{query-DSKQZu91.mjs → query-CPq-dhFV.mjs} +15 -15
- package/dist/{query-BQfgKV68.mjs → query-Dfx69iJ4.mjs} +9 -10
- package/dist/{query-result-D6mfoVfQ.mjs → query-result-Cg7odyR_.mjs} +1 -1
- package/dist/{remove-collection-BguaI3-6.mjs → remove-collection-DUAMhx5L.mjs} +7 -9
- package/dist/replace-DZWd6avZ.mjs +42 -0
- package/dist/requests-DYrDe-D0.mjs +96 -0
- package/dist/{rescan-values-DjD6IW3J.mjs → rescan-values-DZSnEFA0.mjs} +7 -9
- package/dist/{resolve-Dj2MTBkn.mjs → resolve-BTZuO3Yq.mjs} +22 -15
- package/dist/{run-Bp1yxkBN.mjs → run-B2b3Bjmv.mjs} +4 -6
- package/dist/{run-RQfQj7Rk.mjs → run-ryZ4sXK5.mjs} +7 -9
- package/dist/{runs-CSsatfWb.mjs → runs-F82HVSie.mjs} +5 -7
- package/dist/{runtime-oxjmrYoP.mjs → runtime-C6ASrgVA.mjs} +944 -909
- package/dist/{schema-tables-5I5pCxHl.mjs → schema-tables-CCOKb715.mjs} +6 -8
- package/dist/{schemas-CfzFCfBt.mjs → schemas-LtVrNECH.mjs} +4 -6
- package/dist/{search-Vo-BqliA.mjs → search-9GSZHgJQ.mjs} +4 -6
- package/dist/segment-C40bORNZ.mjs +25 -0
- package/dist/{segment-TXktTCfU.mjs → segment-CxRYEXeO.mjs} +6 -5
- package/dist/{selectors-DBnJsKlW.mjs → selectors-B2nDmrIV.mjs} +3 -3
- package/dist/{set-1Vh0AF-T.mjs → set-C57KDMGM.mjs} +9 -9
- package/dist/{set-active-C0mUZlNN.mjs → set-active-BDHGHtj2.mjs} +4 -6
- package/dist/setting-zrJwy48C.mjs +20 -0
- package/dist/{setup-CzYFvFK5.mjs → setup-Doq8atTG.mjs} +11 -12
- package/dist/{skills-B6gfH0iR.mjs → skills-y-KsUqT9.mjs} +1 -1
- package/dist/{skills-CR2xyV33.mjs → skills-yuzH_o8s.mjs} +3 -3
- package/dist/{snippet-CtA2Pkoa.mjs → snippet-C8PVaPY9.mjs} +7 -4
- package/dist/snippet-ScFM8re8.mjs +22 -0
- package/dist/{stash-CQHXwBu_.mjs → stash-D_u6z4q6.mjs} +7 -9
- package/dist/{status-C_7aqTvB.mjs → status--Dm2Jv6k.mjs} +5 -7
- package/dist/{status-DXQkM18v.mjs → status-CDPhDX5I.mjs} +27 -13
- package/dist/{summary-1aNpQc8j.mjs → summary-C9a2cBTE.mjs} +5 -7
- package/dist/{sync-schema-BqLp5uTS.mjs → sync-schema-CDIWNCGI.mjs} +9 -11
- package/dist/sync-scope-DW2QpGwv.mjs +55 -0
- package/dist/{table-DE3i82T_.mjs → table-3onHpwcb.mjs} +16 -4
- package/dist/table-BKehBm_E.mjs +21 -0
- package/dist/timeline-DEaiuB5V.mjs +157 -0
- package/dist/timeline-event-CLWMxvE0.mjs +22 -0
- package/dist/timeline-n3Nw9Egt.mjs +24 -0
- package/dist/transform-CrOOqKen.mjs +31 -0
- package/dist/{transform-DEF38FWe.mjs → transform-DP6J2ber.mjs} +31 -5
- package/dist/transform-job-J-E0Mec7.mjs +25 -0
- package/dist/transform-tag-Bkyasy_s.mjs +21 -0
- package/dist/{transforms-BelyllUL.mjs → transforms-w2a5qsjJ.mjs} +5 -7
- package/dist/{tree-YvmwGql7.mjs → tree-JZC6vD9q.mjs} +4 -6
- package/dist/{unpublish-CHjGLMu9.mjs → unpublish-BsfIH46y.mjs} +5 -7
- package/dist/{update-D7vc8GBF.mjs → update-B8hn6VxO.mjs} +12 -13
- package/dist/{update-BKhekuqr.mjs → update-BSNK36fk.mjs} +15 -15
- package/dist/update-BTFj6WHo.mjs +52 -0
- package/dist/{update-BACl_bJS.mjs → update-BfIGjAVA.mjs} +9 -10
- package/dist/{update-CrRz47aj.mjs → update-C1_aIL6X.mjs} +15 -15
- package/dist/{update-K-jjQ0Aw.mjs → update-CXKWHOIN.mjs} +10 -11
- package/dist/{update-BnHYSu96.mjs → update-Cg09lBb5.mjs} +13 -14
- package/dist/update-D01S8hnw.mjs +52 -0
- package/dist/{update-txUfAJxy.mjs → update-DKQjMsuE.mjs} +9 -10
- package/dist/{update-Zz01Woxj.mjs → update-DSlSr7Ky.mjs} +9 -10
- package/dist/{update-C9fndCqb.mjs → update-QaBVvlz9.mjs} +9 -10
- package/dist/{update-BGMJTpA6.mjs → update-WLb9099y.mjs} +12 -13
- package/dist/{update-BWlN3QDo.mjs → update-bFNKpay8.mjs} +9 -10
- package/dist/{update-dashcard-Dvth-yLC.mjs → update-dashcard-CKZC7scy.mjs} +11 -11
- package/dist/{upgrade-DsXlfPef.mjs → upgrade-DkK1ZbEY.mjs} +5 -7
- package/dist/upload-DOMoaR9f.mjs +16 -0
- package/dist/{uuid-ByJmWV7b.mjs → uuid-DDbLKnbe.mjs} +3 -5
- package/dist/{validate-BqNW4Sk1.mjs → validate-DqQ7DQnP.mjs} +1 -2
- package/dist/{validate-query-CcZVKYPV.mjs → validate-query-BYG7lyaY.mjs} +2 -3
- package/dist/{values-CIjJI4sz.mjs → values-Bc99Kkuv.mjs} +5 -7
- package/dist/{verify-Jsuc2dat.mjs → verify-WvMbaT8W.mjs} +2 -2
- package/dist/{wait-5ltTFvSa.mjs → wait-DmgEPnHW.mjs} +6 -8
- package/dist/{wait-flags-D6kd_G7c.mjs → wait-flags-BpzyrpAL.mjs} +2 -2
- package/dist/workspace-BgH_4xFO.mjs +75 -0
- package/dist/workspace-LFtHxcw9.mjs +19 -0
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +31 -23
- package/skill-data/dashboard/SKILL.md +26 -3
- package/skill-data/data-workflow/SKILL.md +17 -15
- package/skill-data/git-sync/SKILL.md +20 -5
- package/skill-data/visualization/SKILL.md +1 -0
- package/dist/add-collection-DbalcC3_.mjs +0 -11
- package/dist/auth--PWX0oj5.mjs +0 -22
- package/dist/capabilities-N0jo5U7S.mjs +0 -239
- package/dist/card-D07WYCQY.mjs +0 -26
- package/dist/collection-Dss2qSEF.mjs +0 -23
- package/dist/dashboard-Crh4v6Fq.mjs +0 -35
- package/dist/db-BCAURQei.mjs +0 -28
- package/dist/document-upxL2nKH.mjs +0 -22
- package/dist/error-BaBm-UrT.mjs +0 -227
- package/dist/field-CloFa1oe.mjs +0 -21
- package/dist/get-B8tugTku.mjs +0 -50
- package/dist/git-sync-C9m-OHac.mjs +0 -31
- package/dist/is-dirty-DpyKeGAJ.mjs +0 -10
- package/dist/manifest-BVf8P4bl.mjs +0 -126
- package/dist/measure-Cbly1r0E.mjs +0 -25
- package/dist/metadata-CW5Lfw5d.mjs +0 -39
- package/dist/metadata-aQAqseCm.mjs +0 -38
- package/dist/notice-DyVl5aYB.mjs +0 -206
- package/dist/parse-id-DlXnOcmP.mjs +0 -12
- package/dist/segment-BuN_IoM8.mjs +0 -25
- package/dist/setting-BbdKR-lO.mjs +0 -20
- package/dist/snippet-Bzo2U9Fv.mjs +0 -22
- package/dist/table-BwGOz97O.mjs +0 -22
- package/dist/transform-B65ZD9-e.mjs +0 -31
- package/dist/transform-job-BWVKXSV6.mjs +0 -25
- package/dist/transform-tag-C4qvmicL.mjs +0 -21
- /package/dist/{body-flags-DWTTxJpP.mjs → body-flags-CgHgJBRC.mjs} +0 -0
- /package/dist/{command-augment-DdZIfx1V.mjs → command-augment-D9pI9Vbh.mjs} +0 -0
- /package/dist/{parameter-CiJ4CwWE.mjs → parameter-BZ6y-Gfs.mjs} +0 -0
- /package/dist/{render-BTKnWL0d.mjs → render-CkuFkWlQ.mjs} +0 -0
- /package/dist/{transform-job-CtixL4An.mjs → transform-job-B5x8aYfV.mjs} +0 -0
- /package/dist/{transform-tag-rsIrckCM.mjs → transform-tag-BRwfWeHf.mjs} +0 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/domain/timeline.ts
|
|
4
|
+
const TimelineIcon = z.enum([
|
|
5
|
+
"star",
|
|
6
|
+
"cake",
|
|
7
|
+
"mail",
|
|
8
|
+
"warning",
|
|
9
|
+
"bell",
|
|
10
|
+
"cloud"
|
|
11
|
+
]);
|
|
12
|
+
const TimelineEvent = z.object({
|
|
13
|
+
id: z.number().int(),
|
|
14
|
+
name: z.string(),
|
|
15
|
+
description: z.string().nullable(),
|
|
16
|
+
timestamp: z.string(),
|
|
17
|
+
timezone: z.string(),
|
|
18
|
+
time_matters: z.boolean(),
|
|
19
|
+
icon: TimelineIcon,
|
|
20
|
+
timeline_id: z.number().int(),
|
|
21
|
+
archived: z.boolean(),
|
|
22
|
+
creator_id: z.number().int(),
|
|
23
|
+
created_at: z.string(),
|
|
24
|
+
updated_at: z.string()
|
|
25
|
+
}).loose();
|
|
26
|
+
const TimelineEventCompact = TimelineEvent.pick({
|
|
27
|
+
id: true,
|
|
28
|
+
name: true,
|
|
29
|
+
description: true,
|
|
30
|
+
timestamp: true,
|
|
31
|
+
icon: true,
|
|
32
|
+
timeline_id: true,
|
|
33
|
+
archived: true
|
|
34
|
+
}).strip();
|
|
35
|
+
const timelineEventView = {
|
|
36
|
+
compactPick: TimelineEventCompact,
|
|
37
|
+
tableColumns: [
|
|
38
|
+
{
|
|
39
|
+
key: "id",
|
|
40
|
+
label: "ID"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
key: "name",
|
|
44
|
+
label: "Name"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
key: "timestamp",
|
|
48
|
+
label: "Timestamp"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
key: "icon",
|
|
52
|
+
label: "Icon"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
key: "timeline_id",
|
|
56
|
+
label: "Timeline"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
key: "archived",
|
|
60
|
+
label: "Archived"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
};
|
|
64
|
+
const Timeline = z.object({
|
|
65
|
+
id: z.number().int(),
|
|
66
|
+
name: z.string(),
|
|
67
|
+
description: z.string().nullable(),
|
|
68
|
+
icon: TimelineIcon,
|
|
69
|
+
collection_id: z.number().int().nullable(),
|
|
70
|
+
archived: z.boolean(),
|
|
71
|
+
default: z.boolean(),
|
|
72
|
+
creator_id: z.number().int(),
|
|
73
|
+
entity_id: z.string(),
|
|
74
|
+
created_at: z.string(),
|
|
75
|
+
updated_at: z.string(),
|
|
76
|
+
events: z.array(TimelineEvent).optional()
|
|
77
|
+
}).loose();
|
|
78
|
+
const TimelineCompact = Timeline.pick({
|
|
79
|
+
id: true,
|
|
80
|
+
name: true,
|
|
81
|
+
description: true,
|
|
82
|
+
icon: true,
|
|
83
|
+
collection_id: true,
|
|
84
|
+
default: true,
|
|
85
|
+
archived: true
|
|
86
|
+
}).strip();
|
|
87
|
+
const timelineView = {
|
|
88
|
+
compactPick: TimelineCompact,
|
|
89
|
+
tableColumns: [
|
|
90
|
+
{
|
|
91
|
+
key: "id",
|
|
92
|
+
label: "ID"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
key: "name",
|
|
96
|
+
label: "Name"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
key: "description",
|
|
100
|
+
label: "Description"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
key: "icon",
|
|
104
|
+
label: "Icon"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
key: "collection_id",
|
|
108
|
+
label: "Collection"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
key: "default",
|
|
112
|
+
label: "Default"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
key: "archived",
|
|
116
|
+
label: "Archived"
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
};
|
|
120
|
+
const TimelineCreateInput = z.object({
|
|
121
|
+
name: z.string().min(1),
|
|
122
|
+
description: z.string().nullable().optional(),
|
|
123
|
+
icon: TimelineIcon.nullable().optional(),
|
|
124
|
+
collection_id: z.number().int().positive().nullable().optional(),
|
|
125
|
+
default: z.boolean().nullable().optional()
|
|
126
|
+
}).loose();
|
|
127
|
+
const TimelineUpdateInput = z.object({
|
|
128
|
+
name: z.string().min(1).nullable().optional(),
|
|
129
|
+
description: z.string().nullable().optional(),
|
|
130
|
+
icon: TimelineIcon.nullable().optional(),
|
|
131
|
+
collection_id: z.number().int().positive().nullable().optional(),
|
|
132
|
+
default: z.boolean().nullable().optional(),
|
|
133
|
+
archived: z.boolean().nullable().optional()
|
|
134
|
+
}).loose();
|
|
135
|
+
const TimelineEventCreateInput = z.object({
|
|
136
|
+
name: z.string().min(1),
|
|
137
|
+
timestamp: z.string().min(1),
|
|
138
|
+
timezone: z.string().min(1),
|
|
139
|
+
time_matters: z.boolean(),
|
|
140
|
+
timeline_id: z.number().int().positive(),
|
|
141
|
+
description: z.string().nullable().optional(),
|
|
142
|
+
icon: TimelineIcon.nullable().optional(),
|
|
143
|
+
archived: z.boolean().nullable().optional()
|
|
144
|
+
}).loose();
|
|
145
|
+
const TimelineEventUpdateInput = z.object({
|
|
146
|
+
name: z.string().min(1).nullable().optional(),
|
|
147
|
+
description: z.string().nullable().optional(),
|
|
148
|
+
timestamp: z.string().min(1).nullable().optional(),
|
|
149
|
+
timezone: z.string().min(1).nullable().optional(),
|
|
150
|
+
time_matters: z.boolean().nullable().optional(),
|
|
151
|
+
icon: TimelineIcon.nullable().optional(),
|
|
152
|
+
timeline_id: z.number().int().positive().nullable().optional(),
|
|
153
|
+
archived: z.boolean().nullable().optional()
|
|
154
|
+
}).loose();
|
|
155
|
+
|
|
156
|
+
//#endregion
|
|
157
|
+
export { Timeline, TimelineCompact, TimelineCreateInput, TimelineEvent, TimelineEventCompact, TimelineEventCreateInput, TimelineEventUpdateInput, TimelineUpdateInput, timelineEventView, timelineView };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-CILtQqCL.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/timeline-event/index.ts
|
|
5
|
+
var timeline_event_default = defineCommandGroup({
|
|
6
|
+
name: "timeline-event",
|
|
7
|
+
description: "Manage events on Metabase timelines (list them with `mb timeline events`)",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "core",
|
|
10
|
+
purpose: "required event fields and timeline collection scoping"
|
|
11
|
+
}],
|
|
12
|
+
subCommands: {
|
|
13
|
+
get: () => import("./get-DYuJVlP-.mjs").then((mod) => mod.default),
|
|
14
|
+
create: () => import("./create-DAH24ltu.mjs").then((mod) => mod.default),
|
|
15
|
+
update: () => import("./update-D01S8hnw.mjs").then((mod) => mod.default),
|
|
16
|
+
archive: () => import("./archive-DTnz1suV.mjs").then((mod) => mod.default),
|
|
17
|
+
delete: () => import("./delete-P2Qlsr_s.mjs").then((mod) => mod.default)
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { timeline_event_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-CILtQqCL.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/timeline/index.ts
|
|
5
|
+
var timeline_default = defineCommandGroup({
|
|
6
|
+
name: "timeline",
|
|
7
|
+
description: "Manage Metabase timelines (event annotations for time-series charts)",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "core",
|
|
10
|
+
purpose: "collection scoping — events render only on questions in the timeline's collection"
|
|
11
|
+
}],
|
|
12
|
+
subCommands: {
|
|
13
|
+
list: () => import("./list-B037kJtH.mjs").then((mod) => mod.default),
|
|
14
|
+
get: () => import("./get-BSfKWZNJ.mjs").then((mod) => mod.default),
|
|
15
|
+
events: () => import("./events-C26DZ6yZ.mjs").then((mod) => mod.default),
|
|
16
|
+
create: () => import("./create-BxCsAdqc.mjs").then((mod) => mod.default),
|
|
17
|
+
update: () => import("./update-BTFj6WHo.mjs").then((mod) => mod.default),
|
|
18
|
+
archive: () => import("./archive-4WqMsPWB.mjs").then((mod) => mod.default),
|
|
19
|
+
delete: () => import("./delete-DCDFLHFa.mjs").then((mod) => mod.default)
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { timeline_default as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-CILtQqCL.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/transform/index.ts
|
|
5
|
+
var transform_default = defineCommandGroup({
|
|
6
|
+
name: "transform",
|
|
7
|
+
description: "Manage Metabase transforms",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "transform",
|
|
10
|
+
purpose: "body shape, run-with-wait, iterate"
|
|
11
|
+
}, {
|
|
12
|
+
skill: "mbql",
|
|
13
|
+
purpose: "MBQL source.query bodies"
|
|
14
|
+
}],
|
|
15
|
+
subCommands: {
|
|
16
|
+
list: () => import("./list-CjBPVJqd.mjs").then((mod) => mod.default),
|
|
17
|
+
get: () => import("./get-B0cq1uGy.mjs").then((mod) => mod.default),
|
|
18
|
+
dependencies: () => import("./dependencies-DdOTClO2.mjs").then((mod) => mod.default),
|
|
19
|
+
create: () => import("./create-KveE3j3p.mjs").then((mod) => mod.default),
|
|
20
|
+
update: () => import("./update-Cg09lBb5.mjs").then((mod) => mod.default),
|
|
21
|
+
delete: () => import("./delete-C5DqDwev.mjs").then((mod) => mod.default),
|
|
22
|
+
"delete-table": () => import("./delete-table-tM048btr.mjs").then((mod) => mod.default),
|
|
23
|
+
run: () => import("./run-ryZ4sXK5.mjs").then((mod) => mod.default),
|
|
24
|
+
cancel: () => import("./cancel-EFKcF5J_.mjs").then((mod) => mod.default),
|
|
25
|
+
"get-run": () => import("./get-run-lVwhQVFx.mjs").then((mod) => mod.default),
|
|
26
|
+
runs: () => import("./runs-F82HVSie.mjs").then((mod) => mod.default)
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { transform_default as default };
|
|
@@ -16,26 +16,52 @@ const TransformRunStatus = z.enum([
|
|
|
16
16
|
]);
|
|
17
17
|
const TransformRunMethod = z.enum(["manual", "cron"]);
|
|
18
18
|
const TransformRunTrigger = z.enum(["none", "global-schedule"]);
|
|
19
|
+
const TransformCheckpointStrategy = z.object({
|
|
20
|
+
type: z.literal("checkpoint"),
|
|
21
|
+
"checkpoint-filter-field-id": z.number().int().positive().optional()
|
|
22
|
+
}).loose();
|
|
23
|
+
const TransformSourceTableEntry = z.object({
|
|
24
|
+
alias: z.string(),
|
|
25
|
+
database_id: z.number().int(),
|
|
26
|
+
schema: z.string().nullable(),
|
|
27
|
+
table: z.string().optional(),
|
|
28
|
+
table_id: z.number().int().nullable().optional()
|
|
29
|
+
}).loose();
|
|
19
30
|
const TransformQuerySource = z.object({
|
|
20
31
|
type: z.literal("query"),
|
|
21
|
-
query: z.unknown()
|
|
32
|
+
query: z.unknown().describe("Native SQL or MBQL query — full MBQL 5 schema: mb query --print-schema"),
|
|
33
|
+
"source-incremental-strategy": TransformCheckpointStrategy.optional()
|
|
22
34
|
}).loose();
|
|
23
35
|
const TransformPythonSource = z.object({
|
|
24
36
|
type: z.literal("python"),
|
|
25
|
-
body: z.string()
|
|
37
|
+
body: z.string(),
|
|
38
|
+
"source-tables": z.array(TransformSourceTableEntry),
|
|
39
|
+
"source-database": z.number().int().optional(),
|
|
40
|
+
"source-incremental-strategy": TransformCheckpointStrategy.optional()
|
|
26
41
|
}).loose();
|
|
27
42
|
const TransformSource = z.discriminatedUnion("type", [TransformQuerySource, TransformPythonSource]);
|
|
43
|
+
const TransformAppendStrategy = z.object({ type: z.literal("append") }).loose();
|
|
44
|
+
const TransformMergeKeyColumn = z.object({
|
|
45
|
+
name: z.string().min(1).optional(),
|
|
46
|
+
"field-id": z.number().int().positive().nullable().optional()
|
|
47
|
+
}).loose();
|
|
48
|
+
const TransformMergeStrategy = z.object({
|
|
49
|
+
type: z.literal("merge"),
|
|
50
|
+
"unique-key": z.array(TransformMergeKeyColumn)
|
|
51
|
+
}).loose();
|
|
52
|
+
const TransformTargetIncrementalStrategy = z.discriminatedUnion("type", [TransformAppendStrategy, TransformMergeStrategy]);
|
|
28
53
|
const TransformTableTarget = z.object({
|
|
29
54
|
type: z.literal("table"),
|
|
30
55
|
database: z.number().int().optional(),
|
|
31
|
-
schema: z.string().nullable().optional(),
|
|
56
|
+
schema: z.string().min(1).nullable().optional(),
|
|
32
57
|
name: z.string()
|
|
33
58
|
}).loose();
|
|
34
59
|
const TransformTableIncrementalTarget = z.object({
|
|
35
60
|
type: z.literal("table-incremental"),
|
|
36
61
|
database: z.number().int().optional(),
|
|
37
|
-
schema: z.string().nullable().optional(),
|
|
38
|
-
name: z.string()
|
|
62
|
+
schema: z.string().min(1).nullable().optional(),
|
|
63
|
+
name: z.string(),
|
|
64
|
+
"target-incremental-strategy": TransformTargetIncrementalStrategy
|
|
39
65
|
}).loose();
|
|
40
66
|
const TransformTarget = z.discriminatedUnion("type", [TransformTableTarget, TransformTableIncrementalTarget]);
|
|
41
67
|
const TransformTargetCompact = z.discriminatedUnion("type", [TransformTableTarget.strip(), TransformTableIncrementalTarget.strip()]);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-CILtQqCL.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/transform-job/index.ts
|
|
5
|
+
var transform_job_default = defineCommandGroup({
|
|
6
|
+
name: "transform-job",
|
|
7
|
+
description: "Manage Metabase transform jobs",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "transform",
|
|
10
|
+
purpose: "tag-driven job schedules"
|
|
11
|
+
}],
|
|
12
|
+
subCommands: {
|
|
13
|
+
list: () => import("./list-sn9M7QQX.mjs").then((mod) => mod.default),
|
|
14
|
+
get: () => import("./get-Bj66bcuU.mjs").then((mod) => mod.default),
|
|
15
|
+
create: () => import("./create-CU3bYpsT.mjs").then((mod) => mod.default),
|
|
16
|
+
update: () => import("./update-QaBVvlz9.mjs").then((mod) => mod.default),
|
|
17
|
+
delete: () => import("./delete-ea_ns1uM.mjs").then((mod) => mod.default),
|
|
18
|
+
run: () => import("./run-B2b3Bjmv.mjs").then((mod) => mod.default),
|
|
19
|
+
transforms: () => import("./transforms-w2a5qsjJ.mjs").then((mod) => mod.default),
|
|
20
|
+
"set-active": () => import("./set-active-BDHGHtj2.mjs").then((mod) => mod.default)
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { transform_job_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-CILtQqCL.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/transform-tag/index.ts
|
|
5
|
+
var transform_tag_default = defineCommandGroup({
|
|
6
|
+
name: "transform-tag",
|
|
7
|
+
description: "Manage Metabase transform tags",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "transform",
|
|
10
|
+
purpose: "tags that drive job schedules"
|
|
11
|
+
}],
|
|
12
|
+
subCommands: {
|
|
13
|
+
list: () => import("./list-SfpASSFx.mjs").then((mod) => mod.default),
|
|
14
|
+
create: () => import("./create-FuZa4j1N.mjs").then((mod) => mod.default),
|
|
15
|
+
update: () => import("./update-bFNKpay8.mjs").then((mod) => mod.default),
|
|
16
|
+
delete: () => import("./delete-BpL3vaaT.mjs").then((mod) => mod.default)
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { transform_tag_default as default };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-DlXnOcmP.mjs";
|
|
7
|
-
import { Transform, TransformCompact, transformView } from "./transform-DEF38FWe.mjs";
|
|
1
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
5
|
+
import { Transform, TransformCompact, transformView } from "./transform-DP6J2ber.mjs";
|
|
8
6
|
import { z } from "zod";
|
|
9
7
|
|
|
10
8
|
//#region src/commands/transform-job/transforms.ts
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { ConfigError } from "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import { writeJson } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
-
import { CollectionTreeNode } from "./collection-DrLpA1SO.mjs";
|
|
1
|
+
import { ConfigError, connectionFlags, outputFlags, profileFlag, writeJson } from "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import { CollectionTreeNode } from "./collection-C52Ndi_O.mjs";
|
|
7
5
|
import { z } from "zod";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/collection/tree.ts
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import "./parse-id-DlXnOcmP.mjs";
|
|
7
|
-
import { parseTableSelectors, tableSelectorFlags } from "./selectors-DBnJsKlW.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./parse-id-xS1tWJAq.mjs";
|
|
5
|
+
import { parseTableSelectors, tableSelectorFlags } from "./selectors-B2nDmrIV.mjs";
|
|
8
6
|
import { z } from "zod";
|
|
9
7
|
|
|
10
8
|
//#region src/commands/library/unpublish.ts
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import "./
|
|
11
|
-
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CcZVKYPV.mjs";
|
|
12
|
-
import { Segment, SegmentUpdateInput, segmentView } from "./segment-TXktTCfU.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./input-BGyHn0Kr.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
6
|
+
import { readBody } from "./body-5snfmiwR.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
8
|
+
import "./validate-DqQ7DQnP.mjs";
|
|
9
|
+
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-BYG7lyaY.mjs";
|
|
10
|
+
import { Segment, SegmentUpdateInput, segmentView } from "./segment-CxRYEXeO.mjs";
|
|
13
11
|
|
|
14
12
|
//#region src/commands/segment/update.ts
|
|
15
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -17,7 +15,7 @@ var update_default = defineMetabaseCommand({
|
|
|
17
15
|
name: "update",
|
|
18
16
|
description: "Update a segment by id (body must include revision_message)"
|
|
19
17
|
},
|
|
20
|
-
details: "Patches only the fields you send and must include `revision_message` (recorded in the audit log). When `definition` is an MBQL 5 query it is checked against a bundled JSON Schema before sending; pass --skip-validate to bypass.",
|
|
18
|
+
details: "Patches only the fields you send and must include `revision_message` (recorded in the audit log). When `definition` is an MBQL 5 query it is checked against a bundled JSON Schema (print it with `mb query --print-schema`) before sending; pass --skip-validate to bypass.",
|
|
21
19
|
skills: [{
|
|
22
20
|
skill: "mbql",
|
|
23
21
|
purpose: "the definition filter clause"
|
|
@@ -35,6 +33,7 @@ var update_default = defineMetabaseCommand({
|
|
|
35
33
|
required: true
|
|
36
34
|
}
|
|
37
35
|
},
|
|
36
|
+
inputSchema: SegmentUpdateInput,
|
|
38
37
|
outputSchema: Segment,
|
|
39
38
|
examples: [
|
|
40
39
|
"cat patch.json | mb segment update 1",
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import "./
|
|
14
|
-
import {
|
|
15
|
-
import { preflightDashcardCardReferences } from "./preflight-DvaPQHHf.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./input-BGyHn0Kr.mjs";
|
|
5
|
+
import "./embedding-CKdw8q7p.mjs";
|
|
6
|
+
import "./field-DsXTeqBy.mjs";
|
|
7
|
+
import "./parameter-BZ6y-Gfs.mjs";
|
|
8
|
+
import "./card-B8G5jQQT.mjs";
|
|
9
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
10
|
+
import { readBody } from "./body-5snfmiwR.mjs";
|
|
11
|
+
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
12
|
+
import "./validate-DqQ7DQnP.mjs";
|
|
13
|
+
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-BLihjDXg.mjs";
|
|
14
|
+
import { preflightDashcardCardReferences } from "./preflight-D3VgjEg7.mjs";
|
|
16
15
|
|
|
17
16
|
//#region src/commands/dashboard/update.ts
|
|
18
17
|
var update_default = defineMetabaseCommand({
|
|
@@ -40,6 +39,7 @@ var update_default = defineMetabaseCommand({
|
|
|
40
39
|
required: true
|
|
41
40
|
}
|
|
42
41
|
},
|
|
42
|
+
inputSchema: DashboardUpdateInput,
|
|
43
43
|
outputSchema: DashboardDetail,
|
|
44
44
|
examples: [
|
|
45
45
|
"cat patch.json | mb dashboard update 1",
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./input-BGyHn0Kr.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
6
|
+
import { readBody } from "./body-5snfmiwR.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
8
|
+
import { Timeline, TimelineUpdateInput, timelineView } from "./timeline-DEaiuB5V.mjs";
|
|
9
|
+
|
|
10
|
+
//#region src/commands/timeline/update.ts
|
|
11
|
+
var update_default = defineMetabaseCommand({
|
|
12
|
+
meta: {
|
|
13
|
+
name: "update",
|
|
14
|
+
description: "Update a timeline by id"
|
|
15
|
+
},
|
|
16
|
+
details: "Patches only the fields you send: `name`, `description`, `icon`, `collection_id`, `default`, `archived`. Changing `archived` cascades to every event on the timeline.",
|
|
17
|
+
capabilities: { minVersion: 58 },
|
|
18
|
+
args: {
|
|
19
|
+
...outputFlags,
|
|
20
|
+
...profileFlag,
|
|
21
|
+
...connectionFlags,
|
|
22
|
+
...bodyInputFlags,
|
|
23
|
+
id: {
|
|
24
|
+
type: "positional",
|
|
25
|
+
description: "Timeline id",
|
|
26
|
+
required: true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
inputSchema: TimelineUpdateInput,
|
|
30
|
+
outputSchema: Timeline,
|
|
31
|
+
examples: [
|
|
32
|
+
"mb timeline update 1 --body '{\"name\":\"Product releases\"}'",
|
|
33
|
+
"cat patch.json | mb timeline update 1",
|
|
34
|
+
"mb timeline update 1 --file patch.json"
|
|
35
|
+
],
|
|
36
|
+
async run({ args, ctx, getClient }) {
|
|
37
|
+
const id = parseId(args.id);
|
|
38
|
+
const body = await readBody({
|
|
39
|
+
flag: args.body,
|
|
40
|
+
file: args.file
|
|
41
|
+
}, TimelineUpdateInput);
|
|
42
|
+
const client = await getClient();
|
|
43
|
+
const updated = await client.requestParsed(Timeline, `/api/timeline/${id}`, {
|
|
44
|
+
method: "PUT",
|
|
45
|
+
body
|
|
46
|
+
});
|
|
47
|
+
renderSummary(updated, timelineView, `Updated timeline ${updated.id} "${updated.name}".`, ctx);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
export { update_default as default };
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { readBody } from "./body-BS2s2zDl.mjs";
|
|
10
|
-
import { bodyInputFlags } from "./body-flags-DWTTxJpP.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./input-BGyHn0Kr.mjs";
|
|
5
|
+
import { Field, FieldUpdateInput, fieldView } from "./field-DsXTeqBy.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
7
|
+
import { readBody } from "./body-5snfmiwR.mjs";
|
|
8
|
+
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
11
9
|
|
|
12
10
|
//#region src/commands/field/update.ts
|
|
13
11
|
var update_default = defineMetabaseCommand({
|
|
@@ -27,6 +25,7 @@ var update_default = defineMetabaseCommand({
|
|
|
27
25
|
required: true
|
|
28
26
|
}
|
|
29
27
|
},
|
|
28
|
+
inputSchema: FieldUpdateInput,
|
|
30
29
|
outputSchema: Field,
|
|
31
30
|
examples: [
|
|
32
31
|
"mb field update 100 --body '{\"description\":\"customer email\"}'",
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import "./validate-
|
|
14
|
-
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CcZVKYPV.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./input-BGyHn0Kr.mjs";
|
|
5
|
+
import "./embedding-CKdw8q7p.mjs";
|
|
6
|
+
import "./field-DsXTeqBy.mjs";
|
|
7
|
+
import "./parameter-BZ6y-Gfs.mjs";
|
|
8
|
+
import { Card, CardUpdateInput, cardView } from "./card-B8G5jQQT.mjs";
|
|
9
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
10
|
+
import { readBody } from "./body-5snfmiwR.mjs";
|
|
11
|
+
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
12
|
+
import "./validate-DqQ7DQnP.mjs";
|
|
13
|
+
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-BYG7lyaY.mjs";
|
|
15
14
|
|
|
16
15
|
//#region src/commands/card/update.ts
|
|
17
16
|
var update_default = defineMetabaseCommand({
|
|
@@ -19,7 +18,7 @@ var update_default = defineMetabaseCommand({
|
|
|
19
18
|
name: "update",
|
|
20
19
|
description: "Update a card by id (partial)"
|
|
21
20
|
},
|
|
22
|
-
details: "Patches only the fields you send (any of `name`, `display`, `dataset_query`, `collection_id`, `archived`, …). When `dataset_query` is an MBQL 5 query it is checked against a bundled JSON Schema before sending; pass --skip-validate to bypass.",
|
|
21
|
+
details: "Patches only the fields you send (any of `name`, `display`, `dataset_query`, `collection_id`, `archived`, …). When `dataset_query` is an MBQL 5 query it is checked against a bundled JSON Schema (print it with `mb query --print-schema`) before sending; pass --skip-validate to bypass.",
|
|
23
22
|
skills: [{
|
|
24
23
|
skill: "mbql",
|
|
25
24
|
purpose: "author the dataset_query"
|
|
@@ -40,6 +39,7 @@ var update_default = defineMetabaseCommand({
|
|
|
40
39
|
required: true
|
|
41
40
|
}
|
|
42
41
|
},
|
|
42
|
+
inputSchema: CardUpdateInput,
|
|
43
43
|
outputSchema: Card,
|
|
44
44
|
examples: [
|
|
45
45
|
"cat patch.json | mb card update 1",
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { bodyInputFlags } from "./body-flags-DWTTxJpP.mjs";
|
|
11
|
-
import { Table, TableUpdateInput, tableView } from "./table-DE3i82T_.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CiaAfUgX.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C6ASrgVA.mjs";
|
|
4
|
+
import "./input-BGyHn0Kr.mjs";
|
|
5
|
+
import "./field-DsXTeqBy.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-xS1tWJAq.mjs";
|
|
7
|
+
import { readBody } from "./body-5snfmiwR.mjs";
|
|
8
|
+
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
9
|
+
import { Table, TableUpdateInput, tableView } from "./table-3onHpwcb.mjs";
|
|
12
10
|
|
|
13
11
|
//#region src/commands/table/update.ts
|
|
14
12
|
var update_default = defineMetabaseCommand({
|
|
@@ -28,6 +26,7 @@ var update_default = defineMetabaseCommand({
|
|
|
28
26
|
required: true
|
|
29
27
|
}
|
|
30
28
|
},
|
|
29
|
+
inputSchema: TableUpdateInput,
|
|
31
30
|
outputSchema: Table,
|
|
32
31
|
examples: [
|
|
33
32
|
"mb table update 42 --body '{\"display_name\":\"Customers\"}'",
|