@meltstudio/meltctl 4.123.0 → 4.124.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/dist/index.js +21 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var CLI_VERSION;
|
|
|
14
14
|
var init_version = __esm({
|
|
15
15
|
"src/utils/version.ts"() {
|
|
16
16
|
"use strict";
|
|
17
|
-
CLI_VERSION = "4.
|
|
17
|
+
CLI_VERSION = "4.124.1";
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -812,6 +812,16 @@ function createTrackerResource(config) {
|
|
|
812
812
|
if (status >= 400)
|
|
813
813
|
throw new Error(data.error ?? `Failed to disconnect tracker (${status})`);
|
|
814
814
|
},
|
|
815
|
+
async listTeams(projectId) {
|
|
816
|
+
const { data, status } = await apiFetch(config, `/tracker/teams/${projectId}`);
|
|
817
|
+
if (status === 403)
|
|
818
|
+
throw new Error("Access denied. Only Team Managers can view tracker teams.");
|
|
819
|
+
if (status !== 200) {
|
|
820
|
+
const msg = data && typeof data === "object" && "error" in data ? data.error : void 0;
|
|
821
|
+
throw new Error(msg ?? `Failed to list Linear teams (${status})`);
|
|
822
|
+
}
|
|
823
|
+
return data;
|
|
824
|
+
},
|
|
815
825
|
async getTicketsByProject() {
|
|
816
826
|
const { data, status } = await apiFetch(config, "/tracker/tickets/by-project");
|
|
817
827
|
if (status === 403)
|
|
@@ -3337,6 +3347,16 @@ function createTrackerResource2(config) {
|
|
|
3337
3347
|
if (status >= 400)
|
|
3338
3348
|
throw new Error(data.error ?? `Failed to disconnect tracker (${status})`);
|
|
3339
3349
|
},
|
|
3350
|
+
async listTeams(projectId) {
|
|
3351
|
+
const { data, status } = await apiFetch2(config, `/tracker/teams/${projectId}`);
|
|
3352
|
+
if (status === 403)
|
|
3353
|
+
throw new Error("Access denied. Only Team Managers can view tracker teams.");
|
|
3354
|
+
if (status !== 200) {
|
|
3355
|
+
const msg = data && typeof data === "object" && "error" in data ? data.error : void 0;
|
|
3356
|
+
throw new Error(msg ?? `Failed to list Linear teams (${status})`);
|
|
3357
|
+
}
|
|
3358
|
+
return data;
|
|
3359
|
+
},
|
|
3340
3360
|
async getTicketsByProject() {
|
|
3341
3361
|
const { data, status } = await apiFetch2(config, "/tracker/tickets/by-project");
|
|
3342
3362
|
if (status === 403)
|
package/package.json
CHANGED