@metabase/cli 0.1.0-alpha.workspaces-commands.935a64c → 0.1.1
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 +54 -51
- package/dist/{add-collection-B-Ye-3rk.mjs → add-collection--zwkmE1S.mjs} +6 -6
- package/dist/{add-collection-FNN_Arg9.mjs → add-collection-B1qe0D1U.mjs} +6 -6
- package/dist/{api-key-3kWHdrkv.mjs → api-key-gzCbKDjL.mjs} +1 -1
- package/dist/{archive-PiPTzqta.mjs → archive-CitmlD1e.mjs} +3 -3
- package/dist/{archive-C-G9Nxoi.mjs → archive-CnhWegtR.mjs} +5 -4
- package/dist/{archive-CeBvAhT6.mjs → archive-DQjBOXnx.mjs} +4 -4
- package/dist/{archive-Ctx4ppbz.mjs → archive-Ni8-lQ1Y.mjs} +5 -5
- package/dist/auth-BPjsrFxM.mjs +19 -0
- package/dist/{body-DnyBxVKv.mjs → body-DRBgxS6-.mjs} +1 -1
- package/dist/{branches-fnskukyH.mjs → branches-C5Jcw8wu.mjs} +6 -6
- package/dist/{cancel-BHS55uG8.mjs → cancel-Ca3r7Y6v.mjs} +3 -3
- package/dist/{cancel-task--Ql2riG6.mjs → cancel-task-C1-8vDKS.mjs} +7 -7
- package/dist/card-BGAy3eIb.mjs +20 -0
- package/dist/{card-B2ZlGpQP.mjs → card-CAEZWixN.mjs} +11 -14
- package/dist/{cards-Tqz7qbEd.mjs → cards-CILfMPUP.mjs} +4 -4
- package/dist/cli.mjs +24 -24
- package/dist/{collection-DFqH6N7s.mjs → collection-B3sPXRLs.mjs} +5 -12
- package/dist/collection-D8cnCB98.mjs +19 -0
- package/dist/{create-DnboeX4b.mjs → create-3Z6rm-4O.mjs} +4 -4
- package/dist/{create-BPqZI8eJ.mjs → create-BsY5RrVY.mjs} +3 -3
- package/dist/{create-QfYOXoyJ.mjs → create-C4OCclBD.mjs} +3 -3
- package/dist/{create-DIEuYQS2.mjs → create-COsD7Vzm.mjs} +6 -6
- package/dist/{create-C4Fec2QG.mjs → create-CP8ou91U.mjs} +4 -4
- package/dist/{create-xCp5Qxzv.mjs → create-CeIi_QLj.mjs} +8 -7
- package/dist/{create-Bn3BDzsS.mjs → create-CqNw6PmR.mjs} +7 -6
- package/dist/{create-DX5SX5HJ.mjs → create-DE_5NrFy.mjs} +5 -5
- package/dist/{create-Ddk53JTY.mjs → create-MEhhhgMC.mjs} +4 -4
- package/dist/{create-DM5QcfYo.mjs → create-QxDmleKJ.mjs} +5 -5
- package/dist/{create-branch-BPTa-3oe.mjs → create-branch-CKMYaAHk.mjs} +7 -7
- package/dist/{credentials-DDGZCExr.mjs → credentials-CwRKvdP2.mjs} +5 -5
- package/dist/{current-task-CXqMeAkI.mjs → current-task-Dutjys16.mjs} +7 -7
- package/dist/dashboard-B4fVp392.mjs +20 -0
- package/dist/{database-CV_nC20t.mjs → database-BMTb0CzV.mjs} +3 -3
- package/dist/{database-DzcFix9u.mjs → database-Dvkfy3JM.mjs} +1 -1
- package/dist/db-ACuuaEok.mjs +22 -0
- package/dist/{delete-DOJmKqAE.mjs → delete-BMQZuVXZ.mjs} +3 -3
- package/dist/{delete-ChZr_uHC.mjs → delete-BvcA4jPj.mjs} +3 -3
- package/dist/{delete-table-BbD1ux3D.mjs → delete-table-DUPjHKk4.mjs} +3 -3
- package/dist/{deprovision-DR5NpXeq.mjs → deprovision-Bsc1S15j.mjs} +6 -6
- package/dist/{dirty-D7HBPBUv.mjs → dirty-CXcdoUhY.mjs} +6 -6
- package/dist/{docker-pmX_H1ii.mjs → docker-D-ieBsP7.mjs} +2 -2
- package/dist/{eid-DVc2ebwX.mjs → eid-pvOsEMPZ.mjs} +1 -1
- package/dist/{export-Bc6K_0BX.mjs → export-BjGhLEOi.mjs} +9 -9
- package/dist/field-BI2bt8e9.mjs +18 -0
- package/dist/field-DciLbuv-.mjs +276 -0
- package/dist/{fields-CNsoNqGV.mjs → fields-Do8HHm_T.mjs} +5 -5
- package/dist/{get-Cxo5iHU_.mjs → get-BGFGWkH0.mjs} +4 -4
- package/dist/{get-CKGYT_h9.mjs → get-BmE_VHdl.mjs} +3 -3
- package/dist/{get-CX_Ck6Nk.mjs → get-C7sshmqF.mjs} +4 -4
- package/dist/{get-DfKxQ_oa.mjs → get-CObKBj2J.mjs} +4 -4
- package/dist/{get-BS3kP2wR.mjs → get-Cq5U_Eep.mjs} +4 -4
- package/dist/{get-BL4-XDrc.mjs → get-D4GUJBiX.mjs} +4 -4
- package/dist/{get-CYZbQcOF.mjs → get-DFrsi77F.mjs} +2 -2
- package/dist/{get-CkYr30at.mjs → get-DczxeETg.mjs} +5 -5
- package/dist/{get-BjzVuL-u.mjs → get-DeQa3ThJ.mjs} +5 -4
- package/dist/{get-IBjYDviZ.mjs → get-DhZ_dGUb.mjs} +3 -3
- package/dist/{get-pklCz_0L.mjs → get-DzCVafyO.mjs} +3 -3
- package/dist/{get-Dm4j4-C2.mjs → get-YCnVqq-z.mjs} +6 -6
- package/dist/{get-run-R1jpsFMw.mjs → get-run-CTyW29s3.mjs} +3 -3
- package/dist/git-sync-BOmT8HEU.mjs +28 -0
- package/dist/{has-remote-changes-B5tQE21X.mjs → has-remote-changes-xX8vMVsX.mjs} +6 -6
- package/dist/{import-DdzCXmMi.mjs → import-CaAUNtXz.mjs} +9 -9
- package/dist/is-dirty-CPu-xqkW.mjs +10 -0
- package/dist/{is-dirty-bh6hmk9i.mjs → is-dirty-mgxEwEk4.mjs} +4 -4
- package/dist/{items-CrWoxVHo.mjs → items-Cg67tdto.mjs} +8 -8
- package/dist/{license-BOayhs8F.mjs → license-CwKzVMD0.mjs} +3 -3
- package/dist/{list-Cou-Ac2l.mjs → list-BqdNQ1nU.mjs} +3 -3
- package/dist/{list-D4LvgIyR.mjs → list-BwGdD45N.mjs} +3 -3
- package/dist/{list-MWSTuRJt.mjs → list-CfOVsAZz.mjs} +2 -2
- package/dist/{list-BjBJzP7V.mjs → list-CpyNn1Zn.mjs} +2 -2
- package/dist/{list-BYCK1KmR.mjs → list-CwwOoGLK.mjs} +2 -2
- package/dist/{list-DLypWjAD.mjs → list-DD8CQx8l.mjs} +5 -5
- package/dist/{list-gW9tCjmY.mjs → list-DL-RWpIE.mjs} +2 -2
- package/dist/{list-D3jKvEiW.mjs → list-DLlq3FyS.mjs} +5 -5
- package/dist/{list-BQV5NshX.mjs → list-DdQ4jmUQ.mjs} +3 -3
- package/dist/{list-Wgyl5jTw.mjs → list-DshbLoqR.mjs} +4 -3
- package/dist/{list-D6eczTGQ.mjs → list-DzTMpoBs.mjs} +3 -3
- package/dist/{list-Cxwr9_8m.mjs → list-JgRtCzz3.mjs} +2 -2
- package/dist/{list-IW7vnt50.mjs → list-WzgJcwB5.mjs} +2 -2
- package/dist/{login-Ce_o5MLd.mjs → login-DJnmR2wX.mjs} +2 -2
- package/dist/{logout-BBmwrBSd.mjs → logout-BMe_1Zp8.mjs} +2 -2
- package/dist/{logs-BH3YzGoR.mjs → logs-CQxKJ3HG.mjs} +5 -5
- package/dist/measure-BGyYbtqO.mjs +19 -0
- package/dist/{metadata-qxadwd31.mjs → metadata-CLIALntn.mjs} +5 -5
- package/dist/{metadata-CtHgIDV0.mjs → metadata-T-fNUWg_.mjs} +6 -6
- package/dist/{package-_D_P9V4h.mjs → package-DBsS7a5x.mjs} +1 -1
- package/dist/{parse-id-Dy4xSeLf.mjs → parse-id-BUOZQqjp.mjs} +1 -1
- package/dist/{parse-schemas-uB5tn5jL.mjs → parse-schemas-BnW4T1_I.mjs} +1 -1
- package/dist/{poll-DcT586gB.mjs → poll-DMmmZWvi.mjs} +1 -1
- package/dist/{poll-task-DgGZa-HF.mjs → poll-task-2Ckiwp8U.mjs} +5 -5
- package/dist/{preflight-DBQDG_jz.mjs → preflight-CC_g6EWU.mjs} +2 -2
- package/dist/{provision-RmlAclSj.mjs → provision-BUgWJWAV.mjs} +8 -8
- package/dist/{ps-BGzvw2a9.mjs → ps-BUNHygf-.mjs} +5 -5
- package/dist/{ps-cwwTN6HT.mjs → ps-Yv0JjLVN.mjs} +2 -2
- package/dist/{query-DhWf5_XU.mjs → query-CzfbuG8a.mjs} +36 -13
- package/dist/{query-RJ_1ZaP2.mjs → query-UIebHmbT.mjs} +7 -6
- package/dist/{remove-D9ZM9DBZ.mjs → remove-BAUbcwuF.mjs} +5 -5
- package/dist/{remove-CrAURrqj.mjs → remove-CN2PNGTR.mjs} +2 -2
- package/dist/{remove-collection-B2sz1JdF.mjs → remove-collection-C6NxEh53.mjs} +9 -9
- package/dist/{rescan-values-CQq-jhLD.mjs → rescan-values-CcB4F9qa.mjs} +6 -6
- package/dist/{run-NLdh0m0D.mjs → run-BjXZtu_6.mjs} +5 -5
- package/dist/{runs-oT0ELgMP.mjs → runs-CXx7l1NY.mjs} +4 -4
- package/dist/{runtime-C6l1Ju-X.mjs → runtime-D7jihh81.mjs} +1 -1
- package/dist/{schema-tables-BLYcUDzk.mjs → schema-tables-BCJT2DM_.mjs} +5 -5
- package/dist/{schemas-BVVEdKjp.mjs → schemas-DlNpbn4H.mjs} +3 -3
- package/dist/{search-BFam2-sx.mjs → search-Dt-6mdHZ.mjs} +3 -4
- package/dist/segment-C52QNnSs.mjs +19 -0
- package/dist/{set-KA89W3VR.mjs → set-DCESWpi3.mjs} +2 -2
- package/dist/{set-6L9BIstn.mjs → set-L7cuHjVZ.mjs} +3 -3
- package/dist/{setting-DXD5ho6c.mjs → setting-DysGAuYS.mjs} +3 -3
- package/dist/{setup-CFjHjBdY.mjs → setup-_ypJDPAY.mjs} +3 -3
- package/dist/snippet-vb3G9R8a.mjs +19 -0
- package/dist/{start-tLaBkkBI.mjs → start-BokXnb0V.mjs} +7 -8
- package/dist/{stash-DzHfWm1n.mjs → stash-CaGX6PfX.mjs} +7 -7
- package/dist/{status-EclMz7Yv.mjs → status-BaX9vedb.mjs} +8 -8
- package/dist/{status-51muEP07.mjs → status-CyecXzN4.mjs} +2 -2
- package/dist/{status-B5TB381j.mjs → status-RpVyPEty.mjs} +2 -2
- package/dist/{stop-C4bFdYps.mjs → stop-BRuF_Cg1.mjs} +6 -6
- package/dist/{summary-BNdAw8Te.mjs → summary-CpEOiOlZ.mjs} +4 -4
- package/dist/{sync-schema-YQWrC6jD.mjs → sync-schema-4Cl4h8Jn.mjs} +6 -6
- package/dist/table-BeMWuvzO.mjs +19 -0
- package/dist/{table-Ck9sInse.mjs → table-jljEqZ0R.mjs} +1 -5
- package/dist/transform-DwRc-w6y.mjs +24 -0
- package/dist/transform-job-BigWrctt.mjs +19 -0
- package/dist/{transform-job-DZ38Xc3k.mjs → transform-job-Csr86muI.mjs} +7 -0
- package/dist/{translate-DGO4Vbq8.mjs → translate-DqLlXXUx.mjs} +3 -3
- package/dist/{tree-DFBClf8v.mjs → tree-BT24nkLM.mjs} +3 -3
- package/dist/{update-BWanyZkB.mjs → update-BCXKQi2n.mjs} +6 -6
- package/dist/{update-owCnAziw.mjs → update-BXbLmC2b.mjs} +5 -5
- package/dist/{update-BGQ4CrAK.mjs → update-C1Frz9GR.mjs} +4 -4
- package/dist/{update-BoyiATwc.mjs → update-C5goGhNr.mjs} +6 -6
- package/dist/{update-BgHAOPmj.mjs → update-CCOyB0iT.mjs} +8 -8
- package/dist/{update-BFNyczga.mjs → update-D04NMueX.mjs} +8 -7
- package/dist/{update-DMMSjt0B.mjs → update-D6WVtNV1.mjs} +9 -8
- package/dist/{update-Dxyn8J5P.mjs → update-DFR46LsB.mjs} +7 -7
- package/dist/{update-D7phI8Ix.mjs → update-DyLItrpV.mjs} +6 -6
- package/dist/{update-dashcard-CdoKnQEk.mjs → update-dashcard-av0_PYeg.mjs} +10 -6
- package/dist/{update-C4oIEQ0a.mjs → update-mrgvQF4i.mjs} +5 -5
- package/dist/{url-mHVfZ4uL.mjs → url-x4wn_l3k.mjs} +5 -5
- package/dist/{uuid-BnDZbdAN.mjs → uuid-BZHbti8B.mjs} +2 -2
- package/dist/{validate-query-DQDzQCQv.mjs → validate-query-B07oGG4K.mjs} +1 -1
- package/dist/{values-CmTVidt-.mjs → values-Be6i0Fs9.mjs} +4 -4
- package/dist/{wait-DWDeV8l6.mjs → wait-BMqQD8k_.mjs} +8 -8
- package/dist/{wait-rHAJDRWM.mjs → wait-CWizX_sR.mjs} +1 -1
- package/dist/{wait-flags-DGvYn3LJ.mjs → wait-flags-DO3ar2tf.mjs} +2 -2
- package/dist/workspace-CG1xyJ86.mjs +24 -0
- package/package.json +1 -1
- package/dist/auth-yEUbA368.mjs +0 -19
- package/dist/card-Dnm0jydp.mjs +0 -20
- package/dist/collection-CXH6n3JD.mjs +0 -19
- package/dist/dashboard-B9zTXDYK.mjs +0 -20
- package/dist/db-D2koZa54.mjs +0 -22
- package/dist/field-D6CJbmAR.mjs +0 -142
- package/dist/field-ilGuKrWV.mjs +0 -18
- package/dist/is-dirty-BVGP-zkM.mjs +0 -10
- package/dist/measure-Bb_do8gt.mjs +0 -19
- package/dist/remote-sync-Wo7mzKgy.mjs +0 -28
- package/dist/segment-B0M4sLKF.mjs +0 -19
- package/dist/snippet-Cnk5Slje.mjs +0 -19
- package/dist/table-Dx13ukJ1.mjs +0 -19
- package/dist/transform-BaknXzIk.mjs +0 -24
- package/dist/transform-job-Cbg7x7Wv.mjs +0 -19
- package/dist/workspace-BBzIcZC3.mjs +0 -24
- /package/dist/{dashboard-DyrRSbqQ.mjs → dashboard-CnMD04PQ.mjs} +0 -0
- /package/dist/{manifest-VVjycZCe.mjs → manifest-Dv5B9Blc.mjs} +0 -0
- /package/dist/{measure-jbc7fsCs.mjs → measure-BEQfnLdN.mjs} +0 -0
- /package/dist/{paginate-B9W7ZuBj.mjs → paginate-CTSfuYiF.mjs} +0 -0
- /package/dist/{parse-ref-FBB8uGZw.mjs → parse-ref-DGvh4aDn.mjs} +0 -0
- /package/dist/{revision-message-flag-D4E1lKE5.mjs → revision-message-flag-CWQbKhdl.mjs} +0 -0
- /package/dist/{validate-GPoiblzw.mjs → validate-DCYx6jdL.mjs} +0 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/domain/field.ts
|
|
4
|
+
const FieldVisibilityType = z.enum([
|
|
5
|
+
"details-only",
|
|
6
|
+
"hidden",
|
|
7
|
+
"normal",
|
|
8
|
+
"retired",
|
|
9
|
+
"sensitive"
|
|
10
|
+
]);
|
|
11
|
+
const FieldValuesType = z.enum([
|
|
12
|
+
"list",
|
|
13
|
+
"search",
|
|
14
|
+
"none",
|
|
15
|
+
"auto-list"
|
|
16
|
+
]);
|
|
17
|
+
const FieldBaseType = z.enum([
|
|
18
|
+
"type/field-values-unsupported",
|
|
19
|
+
"type/fingerprint-unsupported",
|
|
20
|
+
"type/Large",
|
|
21
|
+
"type/Number",
|
|
22
|
+
"type/Integer",
|
|
23
|
+
"type/BigInteger",
|
|
24
|
+
"type/Float",
|
|
25
|
+
"type/Decimal",
|
|
26
|
+
"type/Text",
|
|
27
|
+
"type/UUID",
|
|
28
|
+
"type/OracleCLOB",
|
|
29
|
+
"type/Temporal",
|
|
30
|
+
"type/HasDate",
|
|
31
|
+
"type/HasTime",
|
|
32
|
+
"type/Date",
|
|
33
|
+
"type/Time",
|
|
34
|
+
"type/TimeWithTZ",
|
|
35
|
+
"type/TimeWithLocalTZ",
|
|
36
|
+
"type/TimeWithZoneOffset",
|
|
37
|
+
"type/DateTime",
|
|
38
|
+
"type/DateTimeWithTZ",
|
|
39
|
+
"type/DateTimeWithLocalTZ",
|
|
40
|
+
"type/DateTimeWithZoneOffset",
|
|
41
|
+
"type/DateTimeWithZoneID",
|
|
42
|
+
"type/Instant",
|
|
43
|
+
"type/Interval",
|
|
44
|
+
"type/Boolean",
|
|
45
|
+
"type/DruidHyperUnique",
|
|
46
|
+
"type/SnowflakeVariant",
|
|
47
|
+
"type/TextLike",
|
|
48
|
+
"type/MongoBSONID",
|
|
49
|
+
"type/MongoBinData",
|
|
50
|
+
"type/MySQLEnum",
|
|
51
|
+
"type/PostgresEnum",
|
|
52
|
+
"type/PostgresBitString",
|
|
53
|
+
"type/Collection",
|
|
54
|
+
"type/Dictionary",
|
|
55
|
+
"type/Array",
|
|
56
|
+
"type/Structured",
|
|
57
|
+
"type/JSON",
|
|
58
|
+
"type/DruidJSON",
|
|
59
|
+
"type/XML"
|
|
60
|
+
]);
|
|
61
|
+
const FieldSemanticType = z.enum([
|
|
62
|
+
"type/Quantity",
|
|
63
|
+
"type/Share",
|
|
64
|
+
"type/Percentage",
|
|
65
|
+
"type/Currency",
|
|
66
|
+
"type/Income",
|
|
67
|
+
"type/Discount",
|
|
68
|
+
"type/Price",
|
|
69
|
+
"type/GrossMargin",
|
|
70
|
+
"type/Cost",
|
|
71
|
+
"type/Score",
|
|
72
|
+
"type/Duration",
|
|
73
|
+
"type/Location",
|
|
74
|
+
"type/Coordinate",
|
|
75
|
+
"type/Latitude",
|
|
76
|
+
"type/Longitude",
|
|
77
|
+
"type/Address",
|
|
78
|
+
"type/City",
|
|
79
|
+
"type/State",
|
|
80
|
+
"type/Country",
|
|
81
|
+
"type/ZipCode",
|
|
82
|
+
"type/URL",
|
|
83
|
+
"type/ImageURL",
|
|
84
|
+
"type/AvatarURL",
|
|
85
|
+
"type/Email",
|
|
86
|
+
"type/Description",
|
|
87
|
+
"type/Comment",
|
|
88
|
+
"type/IPAddress",
|
|
89
|
+
"type/Category",
|
|
90
|
+
"type/Enum",
|
|
91
|
+
"type/Name",
|
|
92
|
+
"type/Title",
|
|
93
|
+
"type/Product",
|
|
94
|
+
"type/Company",
|
|
95
|
+
"type/Subscription",
|
|
96
|
+
"type/Source",
|
|
97
|
+
"type/CreationTemporal",
|
|
98
|
+
"type/CreationTimestamp",
|
|
99
|
+
"type/CreationTime",
|
|
100
|
+
"type/CreationDate",
|
|
101
|
+
"type/JoinTemporal",
|
|
102
|
+
"type/JoinTimestamp",
|
|
103
|
+
"type/JoinTime",
|
|
104
|
+
"type/JoinDate",
|
|
105
|
+
"type/CancelationTemporal",
|
|
106
|
+
"type/CancelationTimestamp",
|
|
107
|
+
"type/CancelationTime",
|
|
108
|
+
"type/CancelationDate",
|
|
109
|
+
"type/DeletionTemporal",
|
|
110
|
+
"type/DeletionTimestamp",
|
|
111
|
+
"type/DeletionTime",
|
|
112
|
+
"type/DeletionDate",
|
|
113
|
+
"type/UpdatedTemporal",
|
|
114
|
+
"type/UpdatedTimestamp",
|
|
115
|
+
"type/UpdatedTime",
|
|
116
|
+
"type/UpdatedDate",
|
|
117
|
+
"type/Birthdate",
|
|
118
|
+
"type/Structured",
|
|
119
|
+
"type/SerializedJSON",
|
|
120
|
+
"type/XML",
|
|
121
|
+
"type/User",
|
|
122
|
+
"type/Author",
|
|
123
|
+
"type/Owner",
|
|
124
|
+
"type/FK",
|
|
125
|
+
"type/PK"
|
|
126
|
+
]);
|
|
127
|
+
const FieldCoercionStrategy = z.enum([
|
|
128
|
+
"Coercion/String->Temporal",
|
|
129
|
+
"Coercion/ISO8601->Temporal",
|
|
130
|
+
"Coercion/ISO8601->DateTime",
|
|
131
|
+
"Coercion/ISO8601->Time",
|
|
132
|
+
"Coercion/ISO8601->Date",
|
|
133
|
+
"Coercion/YYYYMMDDHHMMSSString->Temporal",
|
|
134
|
+
"Coercion/Bytes->Temporal",
|
|
135
|
+
"Coercion/YYYYMMDDHHMMSSBytes->Temporal",
|
|
136
|
+
"Coercion/ISO8601Bytes->Temporal",
|
|
137
|
+
"Coercion/Number->Temporal",
|
|
138
|
+
"Coercion/UNIXTime->Temporal",
|
|
139
|
+
"Coercion/UNIXSeconds->DateTime",
|
|
140
|
+
"Coercion/UNIXMilliSeconds->DateTime",
|
|
141
|
+
"Coercion/UNIXMicroSeconds->DateTime",
|
|
142
|
+
"Coercion/UNIXNanoSeconds->DateTime",
|
|
143
|
+
"Coercion/Temporal->Temporal",
|
|
144
|
+
"Coercion/DateTime->Date",
|
|
145
|
+
"Coercion/String->Number",
|
|
146
|
+
"Coercion/String->Float",
|
|
147
|
+
"Coercion/String->Integer",
|
|
148
|
+
"Coercion/Float->Integer"
|
|
149
|
+
]);
|
|
150
|
+
const Field = z.object({
|
|
151
|
+
id: z.number().int(),
|
|
152
|
+
table_id: z.number().int(),
|
|
153
|
+
name: z.string(),
|
|
154
|
+
display_name: z.string(),
|
|
155
|
+
description: z.string().nullable(),
|
|
156
|
+
database_type: z.string().nullable().optional(),
|
|
157
|
+
base_type: FieldBaseType,
|
|
158
|
+
semantic_type: FieldSemanticType.nullable(),
|
|
159
|
+
fk_target_field_id: z.number().int().nullable(),
|
|
160
|
+
has_field_values: FieldValuesType.nullable().optional(),
|
|
161
|
+
visibility_type: FieldVisibilityType.nullable().optional(),
|
|
162
|
+
active: z.boolean().optional(),
|
|
163
|
+
position: z.number().int().optional()
|
|
164
|
+
}).loose();
|
|
165
|
+
const FieldCompact = Field.pick({
|
|
166
|
+
id: true,
|
|
167
|
+
name: true,
|
|
168
|
+
display_name: true,
|
|
169
|
+
description: true,
|
|
170
|
+
table_id: true,
|
|
171
|
+
base_type: true,
|
|
172
|
+
semantic_type: true,
|
|
173
|
+
fk_target_field_id: true
|
|
174
|
+
}).strip();
|
|
175
|
+
const fieldView = {
|
|
176
|
+
compactPick: FieldCompact,
|
|
177
|
+
tableColumns: [
|
|
178
|
+
{
|
|
179
|
+
key: "id",
|
|
180
|
+
label: "ID"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
key: "name",
|
|
184
|
+
label: "Name"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
key: "display_name",
|
|
188
|
+
label: "Display Name"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
key: "base_type",
|
|
192
|
+
label: "Base Type"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
key: "semantic_type",
|
|
196
|
+
label: "Semantic Type"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
key: "fk_target_field_id",
|
|
200
|
+
label: "FK Target"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
key: "description",
|
|
204
|
+
label: "Description"
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
};
|
|
208
|
+
const NonBlankNullable = z.string().min(1).nullable();
|
|
209
|
+
const FieldUpdateInput = z.object({
|
|
210
|
+
display_name: z.string().min(1).optional(),
|
|
211
|
+
description: NonBlankNullable.optional(),
|
|
212
|
+
caveats: NonBlankNullable.optional(),
|
|
213
|
+
points_of_interest: NonBlankNullable.optional(),
|
|
214
|
+
semantic_type: FieldSemanticType.nullable().optional(),
|
|
215
|
+
coercion_strategy: FieldCoercionStrategy.nullable().optional(),
|
|
216
|
+
fk_target_field_id: z.number().int().positive().nullable().optional(),
|
|
217
|
+
visibility_type: FieldVisibilityType.optional(),
|
|
218
|
+
has_field_values: FieldValuesType.optional(),
|
|
219
|
+
settings: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
220
|
+
nfc_path: z.array(z.string()).nullable().optional(),
|
|
221
|
+
json_unfolding: z.boolean().nullable().optional()
|
|
222
|
+
}).loose();
|
|
223
|
+
const FieldValues = z.object({
|
|
224
|
+
values: z.array(z.array(z.unknown())),
|
|
225
|
+
field_id: z.number().int().optional(),
|
|
226
|
+
has_more_values: z.boolean().optional(),
|
|
227
|
+
has_field_values: FieldValuesType.optional()
|
|
228
|
+
}).loose();
|
|
229
|
+
const FieldValuesCompact = FieldValues.pick({
|
|
230
|
+
values: true,
|
|
231
|
+
field_id: true,
|
|
232
|
+
has_more_values: true
|
|
233
|
+
}).strip();
|
|
234
|
+
const fieldValuesView = {
|
|
235
|
+
compactPick: FieldValuesCompact,
|
|
236
|
+
tableColumns: [
|
|
237
|
+
{
|
|
238
|
+
key: "field_id",
|
|
239
|
+
label: "Field"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
key: "has_more_values",
|
|
243
|
+
label: "Has More"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
key: "values",
|
|
247
|
+
label: "Values"
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
};
|
|
251
|
+
const FieldSummaryRaw = z.tuple([z.tuple([z.literal("count"), z.number().int()]), z.tuple([z.literal("distincts"), z.number().int()])]);
|
|
252
|
+
const FieldSummary = z.object({
|
|
253
|
+
field_id: z.number().int(),
|
|
254
|
+
count: z.number().int(),
|
|
255
|
+
distincts: z.number().int()
|
|
256
|
+
});
|
|
257
|
+
const fieldSummaryView = {
|
|
258
|
+
compactPick: FieldSummary,
|
|
259
|
+
tableColumns: [
|
|
260
|
+
{
|
|
261
|
+
key: "field_id",
|
|
262
|
+
label: "Field"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
key: "count",
|
|
266
|
+
label: "Count"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
key: "distincts",
|
|
270
|
+
label: "Distinct"
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
//#endregion
|
|
276
|
+
export { Field, FieldBaseType, FieldCompact, FieldSemanticType, FieldSummary, FieldSummaryRaw, FieldUpdateInput, FieldValues, fieldSummaryView, fieldValuesView, fieldView };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderList } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { FieldCompact, fieldView } from "./field-
|
|
8
|
-
import { TableQueryMetadata } from "./table-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
|
+
import { FieldCompact, fieldView } from "./field-DciLbuv-.mjs";
|
|
8
|
+
import { TableQueryMetadata } from "./table-jljEqZ0R.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/table/fields.ts
|
|
11
11
|
const FieldListEnvelope = listEnvelopeSchema(FieldCompact);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { TransformJob, transformJobView } from "./transform-job-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
|
+
import { TransformJob, transformJobView } from "./transform-job-Csr86muI.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/transform-job/get.ts
|
|
10
10
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
7
|
import { Snippet, snippetView } from "./snippet-Dw0Sjzkr.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/snippet/get.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { Field, fieldView } from "./field-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
|
+
import { Field, fieldView } from "./field-DciLbuv-.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/field/get.ts
|
|
10
10
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { Measure, measureView } from "./measure-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
|
+
import { Measure, measureView } from "./measure-BEQfnLdN.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/measure/get.ts
|
|
10
10
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { DashboardDetail, dashboardView } from "./dashboard-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
|
+
import { DashboardDetail, dashboardView } from "./dashboard-CnMD04PQ.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/dashboard/get.ts
|
|
10
10
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { Collection, collectionView } from "./collection-
|
|
7
|
-
import { parseCollectionRef } from "./parse-ref-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { Collection, collectionView } from "./collection-B3sPXRLs.mjs";
|
|
7
|
+
import { parseCollectionRef } from "./parse-ref-DGvh4aDn.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/collection/get.ts
|
|
10
10
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, parseJsonOrPlain, profileFlag } from "./runtime-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, parseJsonOrPlain, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
6
|
import { SettingValue, settingValueView } from "./setting-CTaAeMci.mjs";
|
|
7
7
|
import { parseSettingKey } from "./key-NDEARu2L.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, parseEnum, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./field-
|
|
8
|
-
import { Table, TableQueryMetadata, tableView } from "./table-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, parseEnum, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
|
+
import "./field-DciLbuv-.mjs";
|
|
8
|
+
import { Table, TableQueryMetadata, tableView } from "./table-jljEqZ0R.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/table/get.ts
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
|
+
import "./field-DciLbuv-.mjs";
|
|
8
|
+
import { Card, cardView } from "./card-CAEZWixN.mjs";
|
|
8
9
|
|
|
9
10
|
//#region src/commands/card/get.ts
|
|
10
11
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
7
|
import { Segment, segmentView } from "./segment-BMrUBz94.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/segment/get.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
7
|
import { Transform, transformView } from "./transform-IEX4Mx3X.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/transform/get.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, parseEnum, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./field-
|
|
8
|
-
import "./table-
|
|
9
|
-
import { Database, databaseView } from "./database-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, parseEnum, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
|
+
import "./field-DciLbuv-.mjs";
|
|
8
|
+
import "./table-jljEqZ0R.mjs";
|
|
9
|
+
import { Database, databaseView } from "./database-Dvkfy3JM.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/db/get.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
7
|
import { TransformRun, transformRunView } from "./transform-IEX4Mx3X.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/transform/get-run.ts
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/git-sync/index.ts
|
|
4
|
+
var git_sync_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "git-sync",
|
|
7
|
+
description: "Sync Metabase content with a git remote"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
status: () => import("./status-BaX9vedb.mjs").then((mod) => mod.default),
|
|
11
|
+
"is-dirty": () => import("./is-dirty-CPu-xqkW.mjs").then((mod) => mod.default),
|
|
12
|
+
"has-remote-changes": () => import("./has-remote-changes-xX8vMVsX.mjs").then((mod) => mod.default),
|
|
13
|
+
dirty: () => import("./dirty-CXcdoUhY.mjs").then((mod) => mod.default),
|
|
14
|
+
"current-task": () => import("./current-task-Dutjys16.mjs").then((mod) => mod.default),
|
|
15
|
+
"cancel-task": () => import("./cancel-task-C1-8vDKS.mjs").then((mod) => mod.default),
|
|
16
|
+
wait: () => import("./wait-BMqQD8k_.mjs").then((mod) => mod.default),
|
|
17
|
+
import: () => import("./import-CaAUNtXz.mjs").then((mod) => mod.default),
|
|
18
|
+
export: () => import("./export-BjGhLEOi.mjs").then((mod) => mod.default),
|
|
19
|
+
stash: () => import("./stash-CaGX6PfX.mjs").then((mod) => mod.default),
|
|
20
|
+
branches: () => import("./branches-C5Jcw8wu.mjs").then((mod) => mod.default),
|
|
21
|
+
"create-branch": () => import("./create-branch-CKMYaAHk.mjs").then((mod) => mod.default),
|
|
22
|
+
"add-collection": () => import("./add-collection--zwkmE1S.mjs").then((mod) => mod.default),
|
|
23
|
+
"remove-collection": () => import("./remove-collection-C6NxEh53.mjs").then((mod) => mod.default)
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { git_sync_default as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-2Ckiwp8U.mjs";
|
|
7
|
+
import "./poll-DMmmZWvi.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
|
-
//#region src/commands/
|
|
10
|
+
//#region src/commands/git-sync/has-remote-changes.ts
|
|
11
11
|
const HasRemoteChangesResult = z.object({
|
|
12
12
|
has_changes: z.boolean(),
|
|
13
13
|
remote_version: z.string().nullable(),
|
|
@@ -52,7 +52,7 @@ var has_remote_changes_default = defineMetabaseCommand({
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
outputSchema: HasRemoteChangesResult,
|
|
55
|
-
examples: ["metabase
|
|
55
|
+
examples: ["metabase git-sync has-remote-changes", "metabase git-sync has-remote-changes --force-refresh --json"],
|
|
56
56
|
async run({ args, ctx, getClient }) {
|
|
57
57
|
const client = await getClient();
|
|
58
58
|
const result = await client.requestParsed(HasRemoteChangesResult, REMOTE_SYNC_PATHS.hasRemoteChanges, { query: { "force-refresh": args.forceRefresh } });
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { REMOTE_SYNC_PATHS, SyncTask, pollFlags, pollSyncTask, throwIfFailedTask } from "./poll-task-
|
|
8
|
-
import "./poll-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
|
+
import { REMOTE_SYNC_PATHS, SyncTask, pollFlags, pollSyncTask, throwIfFailedTask } from "./poll-task-2Ckiwp8U.mjs";
|
|
8
|
+
import "./poll-DMmmZWvi.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
|
-
//#region src/commands/
|
|
11
|
+
//#region src/commands/git-sync/import.ts
|
|
12
12
|
const SyncImportKickoff = z.object({
|
|
13
13
|
status: z.literal("success"),
|
|
14
14
|
task_id: z.number().int().positive().nullable(),
|
|
@@ -52,9 +52,9 @@ var import_default = defineMetabaseCommand({
|
|
|
52
52
|
},
|
|
53
53
|
outputSchema: SyncImportResult,
|
|
54
54
|
examples: [
|
|
55
|
-
"metabase
|
|
56
|
-
"metabase
|
|
57
|
-
"metabase
|
|
55
|
+
"metabase git-sync import",
|
|
56
|
+
"metabase git-sync import --branch main --json",
|
|
57
|
+
"metabase git-sync import --force --no-wait"
|
|
58
58
|
],
|
|
59
59
|
async run({ args, ctx, getClient }) {
|
|
60
60
|
const timeoutMs = parseId(args.timeout, "timeout");
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import "./render-DXv-D6fU.mjs";
|
|
4
|
+
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
+
import "./runtime-D7jihh81.mjs";
|
|
6
|
+
import "./poll-task-2Ckiwp8U.mjs";
|
|
7
|
+
import "./poll-DMmmZWvi.mjs";
|
|
8
|
+
import { IsDirtyResult, is_dirty_default } from "./is-dirty-mgxEwEk4.mjs";
|
|
9
|
+
|
|
10
|
+
export { is_dirty_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
2
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
3
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
2
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
3
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-2Ckiwp8U.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
|
-
//#region src/commands/
|
|
6
|
+
//#region src/commands/git-sync/is-dirty.ts
|
|
7
7
|
const IsDirtyResult = z.object({ is_dirty: z.boolean() });
|
|
8
8
|
const isDirtyView = {
|
|
9
9
|
compactPick: IsDirtyResult,
|
|
@@ -23,7 +23,7 @@ var is_dirty_default = defineMetabaseCommand({
|
|
|
23
23
|
...connectionFlags
|
|
24
24
|
},
|
|
25
25
|
outputSchema: IsDirtyResult,
|
|
26
|
-
examples: ["metabase
|
|
26
|
+
examples: ["metabase git-sync is-dirty", "metabase git-sync is-dirty --json"],
|
|
27
27
|
async run({ ctx, getClient }) {
|
|
28
28
|
const client = await getClient();
|
|
29
29
|
const result = await client.requestParsed(IsDirtyResult, REMOTE_SYNC_PATHS.isDirty);
|