@metabase/cli 0.2.0 → 0.2.1-alpha.trust-system-ca.541e4e0
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 +153 -2
- package/dist/{add-collection-BTSGp4f9.mjs → add-collection-BZAVH5Wk.mjs} +4 -4
- package/dist/add-collection-DByJYvGO.mjs +9 -0
- package/dist/{append-DY1-O789.mjs → append-Cak5jykn.mjs} +5 -5
- package/dist/{archive-DOa1u1aJ.mjs → archive-BIEnBoE8.mjs} +4 -4
- package/dist/{archive-DCPw3df6.mjs → archive-BMbx6lt8.mjs} +4 -4
- package/dist/{archive-BOEEMrYL.mjs → archive-BVY_jD_g.mjs} +5 -5
- package/dist/archive-CPgWNCG3.mjs +38 -0
- package/dist/{archive-w6TX-zEk.mjs → archive-CaKhG58H.mjs} +4 -4
- package/dist/{archive-CJ9rElKn.mjs → archive-CjnCAM61.mjs} +5 -5
- package/dist/archive-CytCvQpn.mjs +38 -0
- package/dist/{archive-pHsa4dL0.mjs → archive-DfbI8DRB.mjs} +3 -3
- package/dist/{archive-CWtUzlHO.mjs → archive-op9pJRpg.mjs} +4 -4
- package/dist/{auth-BrQtY0pO.mjs → auth-XfuGXI2K.mjs} +4 -4
- package/dist/{body-C1_AaTS4.mjs → body-BW_CiL1d.mjs} +3 -3
- package/dist/{branches-BsBzaGIf.mjs → branches-gVRwKne4.mjs} +4 -4
- package/dist/{cancel-BNM0yyx-.mjs → cancel-CBOJSslz.mjs} +3 -3
- package/dist/{cancel-task-Bggzn4JL.mjs → cancel-task-Djancczz.mjs} +4 -4
- package/dist/{capabilities-DrDJo_ng.mjs → capabilities-CSjeWyLV.mjs} +1 -1
- package/dist/{card-DHCcmpgr.mjs → card-B_kiDDil.mjs} +6 -6
- package/dist/{cards-D0hvA13L.mjs → cards-23FtfL4S.mjs} +4 -4
- package/dist/cli.mjs +41 -26
- package/dist/{collection-CFoLPrY5.mjs → collection-C52Ndi_O.mjs} +4 -2
- package/dist/{collection-D0O9gp3S.mjs → collection-DNzM3u7n.mjs} +6 -6
- package/dist/{collection-namespace-DqPNrCdQ.mjs → collection-namespace-w1y5D0Uh.mjs} +2 -2
- package/dist/{create-Cii_utzV.mjs → create-BRK8TBzp.mjs} +5 -4
- package/dist/{create-DKuixGJ2.mjs → create-BkvdOecg.mjs} +5 -5
- package/dist/{create-E6L3WMqV.mjs → create-CGsTL5aE.mjs} +5 -5
- package/dist/{create-C17Fh1_X.mjs → create-C_fyIHZU.mjs} +8 -7
- package/dist/{create-05rX4oL-.mjs → create-CnT-L03B.mjs} +7 -7
- package/dist/{create-CZ9KFnbi.mjs → create-CnqGhtuF.mjs} +5 -5
- package/dist/{create-C8ndg3g4.mjs → create-CvptjYVb.mjs} +6 -6
- package/dist/create-DZBtbGqj.mjs +45 -0
- package/dist/{create-BR7x66KW.mjs → create-D_eiLBqR.mjs} +8 -8
- package/dist/create-DbHIjWio.mjs +45 -0
- package/dist/{create-Cyv7vHV_.mjs → create-VA58AF6A.mjs} +5 -5
- package/dist/{create-branch-Dxn6UnV_.mjs → create-branch-BtqOfSRb.mjs} +4 -4
- package/dist/{create-oLb0E-ZP.mjs → create-ldvT5L0W.mjs} +7 -7
- package/dist/{create-a3s1S2Dw.mjs → create-q2QqkwEN.mjs} +7 -7
- package/dist/{csv-T6_vlLJS.mjs → csv-C3O1wTQ8.mjs} +5 -5
- package/dist/{current-task-DxWbw-bU.mjs → current-task-CZsZPe0o.mjs} +4 -4
- package/dist/{dashboard-BpSPoeAn.mjs → dashboard-kb1oz7Z3.mjs} +8 -8
- package/dist/{database-CIbVSfua.mjs → database-BOqzcexD.mjs} +1 -1
- package/dist/{db-DBRijnh4.mjs → db-CHnqeJCo.mjs} +6 -6
- package/dist/{delete--P1xFX37.mjs → delete-BmT5C6eK.mjs} +5 -5
- package/dist/delete-DgI03U43.mjs +49 -0
- package/dist/delete-Dkfu4e5K.mjs +49 -0
- package/dist/{delete-Ce2EBQYA.mjs → delete-JeRzVISE.mjs} +5 -5
- package/dist/{delete-BBOIUl0D.mjs → delete-cF97pfFX.mjs} +5 -5
- package/dist/{delete-runtime-B-8I9V1g.mjs → delete-runtime-DiqKOEqi.mjs} +2 -2
- package/dist/{delete-table-Bj32NsXn.mjs → delete-table-dnQs_Twm.mjs} +5 -5
- package/dist/{dependencies-ixzjVjUz.mjs → dependencies-BsMwFSxP.mjs} +4 -4
- package/dist/{dirty-CH70h5m5.mjs → dirty-CN6sGKX3.mjs} +4 -4
- package/dist/{document-dZpuFu3I.mjs → document-Y_DZNi4D.mjs} +5 -5
- package/dist/{eid-XjkBbyb_.mjs → eid-60sCZhQV.mjs} +4 -4
- package/dist/events-CSZEAgs0.mjs +44 -0
- package/dist/{export-CChMg-mL.mjs → export-CAxUJer6.mjs} +6 -6
- package/dist/{field-B1heFeCz.mjs → field-DAB2gImv.mjs} +4 -4
- package/dist/{fields-C7h2QwUp.mjs → fields-CLWtUlpR.mjs} +4 -4
- package/dist/{get-AvGH_oph.mjs → get-B22wjDxr.mjs} +3 -3
- package/dist/{get-BWHJDa0B.mjs → get-BIHtWl2x.mjs} +4 -4
- package/dist/{get-BsyccuCH.mjs → get-BNBRMNtC.mjs} +5 -4
- package/dist/{get-Cj90oyxG.mjs → get-B_EinsrO.mjs} +4 -4
- package/dist/{get-cyR67Lmq.mjs → get-B_QKP1vR.mjs} +4 -4
- package/dist/{get-B6ZJCJ8H.mjs → get-CKnHNxak.mjs} +4 -4
- package/dist/{get-D9r2znrn.mjs → get-CRXEqpar.mjs} +4 -4
- package/dist/{get-DRZENkCj.mjs → get-Ca30K5_W.mjs} +4 -4
- package/dist/{get-C98IFgFi.mjs → get-CaosV7j8.mjs} +3 -3
- package/dist/{get-kqY2lwhO.mjs → get-Csa7Dz36.mjs} +4 -4
- package/dist/{get-DWWmpQ87.mjs → get-Ct5TnofS.mjs} +4 -4
- package/dist/{get-Dg1J0wxb.mjs → get-DTjeTNGb.mjs} +4 -4
- package/dist/get-DU8V-7S2.mjs +35 -0
- package/dist/get-DxAx-2C0.mjs +35 -0
- package/dist/{get-DrWYvefc.mjs → get-H3X5e5-Y.mjs} +4 -4
- package/dist/{get-KVN9ANVh.mjs → get-L8c_h5EP.mjs} +3 -3
- package/dist/{get-RlP_xiUd.mjs → get-fGOQA0GF.mjs} +5 -5
- package/dist/{get-run-C4C_QQqO.mjs → get-run-DqwPQRMJ.mjs} +4 -4
- package/dist/git-sync-BhhdNjq5.mjs +31 -0
- package/dist/{has-remote-changes-dLUGr0MD.mjs → has-remote-changes-D0ZIBHSk.mjs} +4 -4
- package/dist/{import-Byull6jF.mjs → import-BcIcDPl9.mjs} +6 -6
- package/dist/{input-m9ctfLxZ.mjs → input-D2-H-QKX.mjs} +1 -1
- package/dist/{is-dirty-CU3ovgdG.mjs → is-dirty-B87YMLV2.mjs} +3 -3
- package/dist/is-dirty-CXTS25Tk.mjs +8 -0
- package/dist/{items-CEGDYWuF.mjs → items-DrP1b4Qj.mjs} +6 -6
- package/dist/{key-Ge4VwWvS.mjs → key-GP1gxZZD.mjs} +1 -1
- package/dist/{library-DHWWa4Tt.mjs → library-bUBWlweP.mjs} +4 -4
- package/dist/{list-Cur_72xZ.mjs → list-B-_PTqKw.mjs} +6 -5
- package/dist/{list-th_Ym6Cv.mjs → list-B8212eUr.mjs} +4 -4
- package/dist/{list-D9FY30xH.mjs → list-B8zgT05M.mjs} +3 -3
- package/dist/{list-CmCJwaGT.mjs → list-BhCahBEO.mjs} +3 -3
- package/dist/{list-3z1ZChTG.mjs → list-CWQYaCp8.mjs} +3 -3
- package/dist/{list-BtcpNl4-.mjs → list-Cbhx7N_t.mjs} +3 -3
- package/dist/{list-BuyRG3GB.mjs → list-CoXeBm66.mjs} +4 -4
- package/dist/{list-O2w5xd1q.mjs → list-D1pHJX7w.mjs} +3 -3
- package/dist/{list-Bpv06V24.mjs → list-DCl7zHCp.mjs} +4 -4
- package/dist/{list-Br48kL09.mjs → list-DhT42e0q.mjs} +3 -3
- package/dist/{list-CMb03cv3.mjs → list-F_hMRbsa.mjs} +3 -3
- package/dist/{list-B9TyELob.mjs → list-GeqRHx8g.mjs} +3 -3
- package/dist/{list-BFm4iEBt.mjs → list-MPePXEWe.mjs} +3 -3
- package/dist/{list-BliCJAjt.mjs → list-TJjExx6e.mjs} +3 -3
- package/dist/list-TQghfc-u.mjs +39 -0
- package/dist/{list-DEkPxVZu.mjs → list-TibX1b8i.mjs} +3 -3
- package/dist/listing-wFZuS5li.mjs +10 -0
- package/dist/{login-hKlYsAa1.mjs → login-C5Ug3BVC.mjs} +6 -6
- package/dist/{logout-DO8GVC6b.mjs → logout-B_N1N2DV.mjs} +3 -3
- package/dist/{measure-R3T20wnB.mjs → measure-D9rKeA6Z.mjs} +5 -5
- package/dist/{parameter-values-BJb2GuLz.mjs → parameter-values-ZXKECrJk.mjs} +3 -3
- package/dist/{parse-enum-Cfne2suT.mjs → parse-enum-D5h-JePs.mjs} +1 -1
- package/dist/{parse-id-DfY0Lugw.mjs → parse-id-ySsF4nA3.mjs} +1 -1
- package/dist/{parse-ref-C_MsXYI6.mjs → parse-ref-Ds8VxdKb.mjs} +1 -1
- package/dist/{path-DzhQVCH8.mjs → path-C6ucgeYs.mjs} +3 -3
- package/dist/{poll-D1Yg78c3.mjs → poll-CgzD9_RH.mjs} +2 -2
- package/dist/{poll-task-DLUZaglY.mjs → poll-task-DF9xJl13.mjs} +2 -2
- package/dist/{preflight-Cy2jUSca.mjs → preflight-Co2grgX_.mjs} +2 -2
- package/dist/{process-D5HN1wpT.mjs → process-jjR_DX5G.mjs} +1 -1
- package/dist/{prompt-ZG9Drin_.mjs → prompt-BSqji7Fo.mjs} +1 -1
- package/dist/{publish-3hmHoaX-.mjs → publish-F-QbufXr.mjs} +12 -7
- package/dist/{query-DkZViD_3.mjs → query-DGBzATpV.mjs} +7 -7
- package/dist/{query-DTASj9Zu.mjs → query-DX4r0-uz.mjs} +4 -4
- package/dist/{query-result-CbTFdlSf.mjs → query-result-D5J3Dlpn.mjs} +1 -1
- package/dist/{remove-collection-D3wH9H6R.mjs → remove-collection-C-msSyas.mjs} +6 -6
- package/dist/{replace-CFzqkZXs.mjs → replace-xlQv9yl_.mjs} +5 -5
- package/dist/{requests-KBiY9UYy.mjs → requests-COuEPJxE.mjs} +2 -2
- package/dist/{rescan-values-B1WycObS.mjs → rescan-values-BC2SVtY6.mjs} +5 -5
- package/dist/{resolve-Ct084wx3.mjs → resolve-8iT-dXgX.mjs} +22 -15
- package/dist/{run-cw0qTEQ7.mjs → run-Cg6k3kHo.mjs} +6 -6
- package/dist/{run-B8qEEdC8.mjs → run-opQkYIaT.mjs} +3 -3
- package/dist/{runs-BOA4kK_X.mjs → runs-Cbqm1HYG.mjs} +5 -5
- package/dist/{runtime-B-c-Fc2i.mjs → runtime-MGH96fhp.mjs} +2 -2
- package/dist/{schema-tables-DRYzSVcW.mjs → schema-tables-8FjtkFIt.mjs} +4 -4
- package/dist/{schemas-BiMjD25L.mjs → schemas-L9kMsEJL.mjs} +3 -3
- package/dist/{search-DjKxRXO5.mjs → search-Csbb-u-_.mjs} +3 -3
- package/dist/{segment-CZkk0g79.mjs → segment-DCeafJwX.mjs} +5 -5
- package/dist/{selectors-B7MJUn3I.mjs → selectors-D34gXjQa.mjs} +3 -3
- package/dist/{set-kyoORFG3.mjs → set-CfwncOI_.mjs} +6 -6
- package/dist/{set-active-CF868qdW.mjs → set-active-gP4mjVDY.mjs} +3 -3
- package/dist/{setting-BZgjURQ_.mjs → setting-D5Y9sJha.mjs} +3 -3
- package/dist/{setup-D9joJYPb.mjs → setup-D9HNfS7W.mjs} +4 -4
- package/dist/{skills-D8NrJxjp.mjs → skills-DvSQOPWg.mjs} +3 -3
- package/dist/{skills-BqI05u72.mjs → skills-aRQfUvCq.mjs} +1 -1
- package/dist/{snippet-y_FzKxaQ.mjs → snippet-CwRiMCfE.mjs} +5 -5
- package/dist/{stash-BVMerTaF.mjs → stash-C_k1uZlf.mjs} +6 -6
- package/dist/{status-x8bDOa1i.mjs → status-BsEPyknG.mjs} +26 -10
- package/dist/{status-C-0jFjFn.mjs → status-D1vtL5eW.mjs} +2 -2
- package/dist/{summary-B-R9SdMF.mjs → summary-h20AjhcO.mjs} +3 -3
- package/dist/{sync-schema-wne2KXIW.mjs → sync-schema-D67cYLhd.mjs} +7 -7
- package/dist/sync-scope-CKx6xeF6.mjs +55 -0
- package/dist/{table-CS2-2INi.mjs → table-CmKFWPvJ.mjs} +4 -4
- package/dist/timeline-1ZphX3zj.mjs +24 -0
- package/dist/timeline-2ShuGr4f.mjs +157 -0
- package/dist/timeline-event-C6aKZ4EO.mjs +22 -0
- package/dist/transform-CvsBOTqB.mjs +31 -0
- package/dist/transform-job-D_8Kp772.mjs +25 -0
- package/dist/{transform-tag-DaNKreDj.mjs → transform-tag-DhDnvbmq.mjs} +4 -4
- package/dist/{transforms-DB2WNP2R.mjs → transforms-BQkmsPUR.mjs} +4 -4
- package/dist/{tree-BIOphGVs.mjs → tree-CtufTBZY.mjs} +3 -3
- package/dist/{unpublish-BWM36ZTg.mjs → unpublish-CnLXPYR8.mjs} +4 -4
- package/dist/{update-CTZg2Lia.mjs → update-BC-MLtiG.mjs} +9 -9
- package/dist/{update-BCbv880u.mjs → update-BZxLyBVm.mjs} +8 -8
- package/dist/{update-Sz0QRGWB.mjs → update-C4P_YtGW.mjs} +6 -6
- package/dist/{update-BlzcZwRQ.mjs → update-CE-Z6E8V.mjs} +8 -8
- package/dist/update-CqQj32ol.mjs +52 -0
- package/dist/update-D6blsNGY.mjs +52 -0
- package/dist/{update-BchtHlbH.mjs → update-DcYwxb-R.mjs} +6 -6
- package/dist/{update-zfLbmC-H.mjs → update-DmQJqGvX.mjs} +6 -6
- package/dist/{update-BiUeEGU-.mjs → update-DshCe-bl.mjs} +8 -8
- package/dist/{update-6umfSz5t.mjs → update-Dt9-3Tqf.mjs} +5 -5
- package/dist/{update-7Ts7KrB8.mjs → update-QNuvGuS3.mjs} +6 -6
- package/dist/{update-HxYcvpSq.mjs → update-bz-FKwuR.mjs} +7 -7
- package/dist/{update-DJDuIhYG.mjs → update-dJ2mlCXm.mjs} +6 -6
- package/dist/{update-dashcard-CfDpy7Lz.mjs → update-dashcard-CQP-qd6a.mjs} +6 -6
- package/dist/{upgrade-BWl0VjMK.mjs → upgrade--_g3bacj.mjs} +4 -4
- package/dist/{upload-CPzOhGeX.mjs → upload-BOFc_eZD.mjs} +3 -3
- package/dist/{uuid-D_YeqDui.mjs → uuid-DBKkosBq.mjs} +2 -2
- package/dist/{validate-clAWO3X-.mjs → validate-Bpqt3ntH.mjs} +1 -1
- package/dist/{validate-query-CsK2_2_u.mjs → validate-query-tECK019A.mjs} +2 -2
- package/dist/{values-DSk8ZJ3B.mjs → values-BAhMnVh6.mjs} +3 -3
- package/dist/{verify-DkQdLjf3.mjs → verify-RLb2DoOX.mjs} +2 -2
- package/dist/{wait-DvSsMjea.mjs → wait-BJ_87Yz0.mjs} +5 -5
- package/dist/{wait-flags-dXGThljd.mjs → wait-flags-DEn-3mjb.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +5 -3
- package/skill-data/git-sync/SKILL.md +20 -5
- package/skill-data/visualization/SKILL.md +1 -0
- package/dist/add-collection-DlAwt2Z3.mjs +0 -9
- package/dist/git-sync-JHa7bIyY.mjs +0 -31
- package/dist/is-dirty-Bb2dfEYs.mjs +0 -8
- package/dist/transform-6hqM1DXA.mjs +0 -31
- package/dist/transform-job-DuERhLaj.mjs +0 -25
- /package/dist/{dashboard-B-MTpfeS.mjs → dashboard-BLihjDXg.mjs} +0 -0
- /package/dist/{document-CL4ML5FN.mjs → document-D4zB-5a0.mjs} +0 -0
- /package/dist/{measure-S9WszHre.mjs → measure-ByY4U3ZK.mjs} +0 -0
- /package/dist/{paginate-CMqbqhMC.mjs → paginate-FVZUxL4J.mjs} +0 -0
- /package/dist/{revision-message-flag-CHzX0cqV.mjs → revision-message-flag-vt_V8ACy.mjs} +0 -0
- /package/dist/{segment-BPb1H6DW.mjs → segment-eeGhLo7_.mjs} +0 -0
- /package/dist/{setting-Cko6bE_w.mjs → setting-DADuiF5W.mjs} +0 -0
- /package/dist/{snippet-DWiXNy4T.mjs → snippet-CdjEhVCT.mjs} +0 -0
- /package/dist/{table-C3RIKiYM.mjs → table-3onHpwcb.mjs} +0 -0
- /package/dist/{transform-JQel7e5H.mjs → transform-DNSMm1dV.mjs} +0 -0
- /package/dist/{transform-job-CtVziW85.mjs → transform-job-CvE0MBBo.mjs} +0 -0
- /package/dist/{transform-tag-wFiWmiyO.mjs → transform-tag-xdxjlDcD.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-DxAx-2C0.mjs").then((mod) => mod.default),
|
|
14
|
+
create: () => import("./create-DZBtbGqj.mjs").then((mod) => mod.default),
|
|
15
|
+
update: () => import("./update-CqQj32ol.mjs").then((mod) => mod.default),
|
|
16
|
+
archive: () => import("./archive-CytCvQpn.mjs").then((mod) => mod.default),
|
|
17
|
+
delete: () => import("./delete-Dkfu4e5K.mjs").then((mod) => mod.default)
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { timeline_event_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-CWQYaCp8.mjs").then((mod) => mod.default),
|
|
17
|
+
get: () => import("./get-B_EinsrO.mjs").then((mod) => mod.default),
|
|
18
|
+
dependencies: () => import("./dependencies-BsMwFSxP.mjs").then((mod) => mod.default),
|
|
19
|
+
create: () => import("./create-D_eiLBqR.mjs").then((mod) => mod.default),
|
|
20
|
+
update: () => import("./update-BC-MLtiG.mjs").then((mod) => mod.default),
|
|
21
|
+
delete: () => import("./delete-JeRzVISE.mjs").then((mod) => mod.default),
|
|
22
|
+
"delete-table": () => import("./delete-table-dnQs_Twm.mjs").then((mod) => mod.default),
|
|
23
|
+
run: () => import("./run-Cg6k3kHo.mjs").then((mod) => mod.default),
|
|
24
|
+
cancel: () => import("./cancel-CBOJSslz.mjs").then((mod) => mod.default),
|
|
25
|
+
"get-run": () => import("./get-run-DqwPQRMJ.mjs").then((mod) => mod.default),
|
|
26
|
+
runs: () => import("./runs-Cbqm1HYG.mjs").then((mod) => mod.default)
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { transform_default as default };
|
|
@@ -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-GeqRHx8g.mjs").then((mod) => mod.default),
|
|
14
|
+
get: () => import("./get-CRXEqpar.mjs").then((mod) => mod.default),
|
|
15
|
+
create: () => import("./create-BkvdOecg.mjs").then((mod) => mod.default),
|
|
16
|
+
update: () => import("./update-dJ2mlCXm.mjs").then((mod) => mod.default),
|
|
17
|
+
delete: () => import("./delete-cF97pfFX.mjs").then((mod) => mod.default),
|
|
18
|
+
run: () => import("./run-opQkYIaT.mjs").then((mod) => mod.default),
|
|
19
|
+
transforms: () => import("./transforms-BQkmsPUR.mjs").then((mod) => mod.default),
|
|
20
|
+
"set-active": () => import("./set-active-gP4mjVDY.mjs").then((mod) => mod.default)
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { transform_job_default as default };
|
|
@@ -10,10 +10,10 @@ var transform_tag_default = defineCommandGroup({
|
|
|
10
10
|
purpose: "tags that drive job schedules"
|
|
11
11
|
}],
|
|
12
12
|
subCommands: {
|
|
13
|
-
list: () => import("./list-
|
|
14
|
-
create: () => import("./create-
|
|
15
|
-
update: () => import("./update-
|
|
16
|
-
delete: () => import("./delete
|
|
13
|
+
list: () => import("./list-MPePXEWe.mjs").then((mod) => mod.default),
|
|
14
|
+
create: () => import("./create-CGsTL5aE.mjs").then((mod) => mod.default),
|
|
15
|
+
update: () => import("./update-DmQJqGvX.mjs").then((mod) => mod.default),
|
|
16
|
+
delete: () => import("./delete-BmT5C6eK.mjs").then((mod) => mod.default)
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-
|
|
1
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-CSjeWyLV.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { parseId } from "./parse-id-
|
|
5
|
-
import { Transform, TransformCompact, transformView } from "./transform-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-ySsF4nA3.mjs";
|
|
5
|
+
import { Transform, TransformCompact, transformView } from "./transform-DNSMm1dV.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform-job/transforms.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ConfigError, connectionFlags, outputFlags, profileFlag, writeJson } from "./capabilities-
|
|
1
|
+
import { ConfigError, connectionFlags, outputFlags, profileFlag, writeJson } from "./capabilities-CSjeWyLV.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import { CollectionTreeNode } from "./collection-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import { CollectionTreeNode } from "./collection-C52Ndi_O.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/collection/tree.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./parse-id-
|
|
5
|
-
import { parseTableSelectors, tableSelectorFlags } from "./selectors-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import "./parse-id-ySsF4nA3.mjs";
|
|
5
|
+
import { parseTableSelectors, tableSelectorFlags } from "./selectors-D34gXjQa.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/library/unpublish.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { readBody } from "./body-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import "./input-D2-H-QKX.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-ySsF4nA3.mjs";
|
|
6
|
+
import { readBody } from "./body-BW_CiL1d.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
8
|
-
import "./validate-
|
|
9
|
-
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
10
|
-
import { Transform, TransformUpdateInput, transformView } from "./transform-
|
|
11
|
-
import { enrichTransformCollectionError } from "./collection-namespace-
|
|
8
|
+
import "./validate-Bpqt3ntH.mjs";
|
|
9
|
+
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-tECK019A.mjs";
|
|
10
|
+
import { Transform, TransformUpdateInput, transformView } from "./transform-DNSMm1dV.mjs";
|
|
11
|
+
import { enrichTransformCollectionError } from "./collection-namespace-w1y5D0Uh.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/transform/update.ts
|
|
14
14
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { readBody } from "./body-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import "./input-D2-H-QKX.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-ySsF4nA3.mjs";
|
|
6
|
+
import { readBody } from "./body-BW_CiL1d.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
8
|
-
import "./validate-
|
|
9
|
-
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
10
|
-
import { Segment, SegmentUpdateInput, segmentView } from "./segment-
|
|
8
|
+
import "./validate-Bpqt3ntH.mjs";
|
|
9
|
+
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-tECK019A.mjs";
|
|
10
|
+
import { Segment, SegmentUpdateInput, segmentView } from "./segment-eeGhLo7_.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/segment/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { readBody } from "./body-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import "./input-D2-H-QKX.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-ySsF4nA3.mjs";
|
|
6
|
+
import { readBody } from "./body-BW_CiL1d.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
8
|
-
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-
|
|
8
|
+
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-CdjEhVCT.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/snippet/update.ts
|
|
11
11
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import "./input-D2-H-QKX.mjs";
|
|
5
5
|
import "./embedding-CKdw8q7p.mjs";
|
|
6
6
|
import "./field-DsXTeqBy.mjs";
|
|
7
7
|
import "./parameter-BZ6y-Gfs.mjs";
|
|
8
8
|
import "./card-B8G5jQQT.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { readBody } from "./body-
|
|
9
|
+
import { parseId } from "./parse-id-ySsF4nA3.mjs";
|
|
10
|
+
import { readBody } from "./body-BW_CiL1d.mjs";
|
|
11
11
|
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
12
|
-
import "./validate-
|
|
13
|
-
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-
|
|
14
|
-
import { preflightDashcardCardReferences } from "./preflight-
|
|
12
|
+
import "./validate-Bpqt3ntH.mjs";
|
|
13
|
+
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-BLihjDXg.mjs";
|
|
14
|
+
import { preflightDashcardCardReferences } from "./preflight-Co2grgX_.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/commands/dashboard/update.ts
|
|
17
17
|
var update_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import "./input-D2-H-QKX.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-ySsF4nA3.mjs";
|
|
6
|
+
import { readBody } from "./body-BW_CiL1d.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
8
|
+
import { TimelineEvent, TimelineEventUpdateInput, timelineEventView } from "./timeline-2ShuGr4f.mjs";
|
|
9
|
+
|
|
10
|
+
//#region src/commands/timeline-event/update.ts
|
|
11
|
+
var update_default = defineMetabaseCommand({
|
|
12
|
+
meta: {
|
|
13
|
+
name: "update",
|
|
14
|
+
description: "Update a timeline event by id"
|
|
15
|
+
},
|
|
16
|
+
details: "Patches only the fields you send: `name`, `description`, `timestamp`, `timezone`, `time_matters`, `icon`, `timeline_id` (moves the event to another timeline), `archived`.",
|
|
17
|
+
capabilities: { minVersion: 58 },
|
|
18
|
+
args: {
|
|
19
|
+
...outputFlags,
|
|
20
|
+
...profileFlag,
|
|
21
|
+
...connectionFlags,
|
|
22
|
+
...bodyInputFlags,
|
|
23
|
+
id: {
|
|
24
|
+
type: "positional",
|
|
25
|
+
description: "Timeline event id",
|
|
26
|
+
required: true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
inputSchema: TimelineEventUpdateInput,
|
|
30
|
+
outputSchema: TimelineEvent,
|
|
31
|
+
examples: [
|
|
32
|
+
"mb timeline-event update 1 --body '{\"name\":\"v2.1 launch\"}'",
|
|
33
|
+
"cat patch.json | mb timeline-event update 1",
|
|
34
|
+
"mb timeline-event 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
|
+
}, TimelineEventUpdateInput);
|
|
42
|
+
const client = await getClient();
|
|
43
|
+
const updated = await client.requestParsed(TimelineEvent, `/api/timeline-event/${id}`, {
|
|
44
|
+
method: "PUT",
|
|
45
|
+
body
|
|
46
|
+
});
|
|
47
|
+
renderSummary(updated, timelineEventView, `Updated timeline event ${updated.id} "${updated.name}".`, ctx);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
export { update_default as default };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import "./input-D2-H-QKX.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-ySsF4nA3.mjs";
|
|
6
|
+
import { readBody } from "./body-BW_CiL1d.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
8
|
+
import { Timeline, TimelineUpdateInput, timelineView } from "./timeline-2ShuGr4f.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,12 +1,12 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import "./input-D2-H-QKX.mjs";
|
|
5
5
|
import "./field-DsXTeqBy.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { parseId } from "./parse-id-ySsF4nA3.mjs";
|
|
7
|
+
import { readBody } from "./body-BW_CiL1d.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
9
|
-
import { Table, TableUpdateInput, tableView } from "./table-
|
|
9
|
+
import { Table, TableUpdateInput, tableView } from "./table-3onHpwcb.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/table/update.ts
|
|
12
12
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { readBody } from "./body-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import "./input-D2-H-QKX.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-ySsF4nA3.mjs";
|
|
6
|
+
import { readBody } from "./body-BW_CiL1d.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
8
|
-
import { TransformTag, TransformTagUpdateInput, transformTagView } from "./transform-tag-
|
|
8
|
+
import { TransformTag, TransformTagUpdateInput, transformTagView } from "./transform-tag-xdxjlDcD.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/transform-tag/update.ts
|
|
11
11
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { readBody } from "./body-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import "./input-D2-H-QKX.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-ySsF4nA3.mjs";
|
|
6
|
+
import { readBody } from "./body-BW_CiL1d.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
8
|
-
import "./validate-
|
|
9
|
-
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
10
|
-
import { Measure, MeasureUpdateInput, measureView } from "./measure-
|
|
8
|
+
import "./validate-Bpqt3ntH.mjs";
|
|
9
|
+
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-tECK019A.mjs";
|
|
10
|
+
import { Measure, MeasureUpdateInput, measureView } from "./measure-ByY4U3ZK.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/measure/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import "./input-D2-H-QKX.mjs";
|
|
5
5
|
import { Field, FieldUpdateInput, fieldView } from "./field-DsXTeqBy.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { parseId } from "./parse-id-ySsF4nA3.mjs";
|
|
7
|
+
import { readBody } from "./body-BW_CiL1d.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/field/update.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { readBody } from "./body-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import "./input-D2-H-QKX.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-ySsF4nA3.mjs";
|
|
6
|
+
import { readBody } from "./body-BW_CiL1d.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
8
|
-
import { Document, DocumentUpdateInput, documentView } from "./document-
|
|
8
|
+
import { Document, DocumentUpdateInput, documentView } from "./document-D4zB-5a0.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/document/update.ts
|
|
11
11
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import "./input-D2-H-QKX.mjs";
|
|
5
5
|
import "./embedding-CKdw8q7p.mjs";
|
|
6
6
|
import "./field-DsXTeqBy.mjs";
|
|
7
7
|
import "./parameter-BZ6y-Gfs.mjs";
|
|
8
8
|
import { Card, CardUpdateInput, cardView } from "./card-B8G5jQQT.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { readBody } from "./body-
|
|
9
|
+
import { parseId } from "./parse-id-ySsF4nA3.mjs";
|
|
10
|
+
import { readBody } from "./body-BW_CiL1d.mjs";
|
|
11
11
|
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
12
|
-
import "./validate-
|
|
13
|
-
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
12
|
+
import "./validate-Bpqt3ntH.mjs";
|
|
13
|
+
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-tECK019A.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/commands/card/update.ts
|
|
16
16
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-CSjeWyLV.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./input-
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { readBody } from "./body-
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-MGH96fhp.mjs";
|
|
4
|
+
import "./input-D2-H-QKX.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-ySsF4nA3.mjs";
|
|
6
|
+
import { readBody } from "./body-BW_CiL1d.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
8
|
-
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-
|
|
8
|
+
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-CvE0MBBo.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/transform-job/update.ts
|
|
11
11
|
var update_default = defineMetabaseCommand({
|