@meltstudio/meltctl 4.136.1 → 4.137.0
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.137.0";
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -832,6 +832,16 @@ function createTrackerResource(config) {
|
|
|
832
832
|
}
|
|
833
833
|
return data;
|
|
834
834
|
},
|
|
835
|
+
async listJiraProjects(projectId) {
|
|
836
|
+
const { data, status } = await apiFetch(config, `/tracker/jira-projects/${projectId}`);
|
|
837
|
+
if (status === 403)
|
|
838
|
+
throw new Error("Access denied. Only Team Managers can view Jira projects.");
|
|
839
|
+
if (status !== 200) {
|
|
840
|
+
const msg = data && typeof data === "object" && "error" in data ? data.error : void 0;
|
|
841
|
+
throw new Error(msg ?? `Failed to list Jira projects (${status})`);
|
|
842
|
+
}
|
|
843
|
+
return data;
|
|
844
|
+
},
|
|
835
845
|
async getTicketsByProject() {
|
|
836
846
|
const { data, status } = await apiFetch(config, "/tracker/tickets/by-project");
|
|
837
847
|
if (status === 403)
|
|
@@ -3390,6 +3400,16 @@ function createTrackerResource2(config) {
|
|
|
3390
3400
|
}
|
|
3391
3401
|
return data;
|
|
3392
3402
|
},
|
|
3403
|
+
async listJiraProjects(projectId) {
|
|
3404
|
+
const { data, status } = await apiFetch2(config, `/tracker/jira-projects/${projectId}`);
|
|
3405
|
+
if (status === 403)
|
|
3406
|
+
throw new Error("Access denied. Only Team Managers can view Jira projects.");
|
|
3407
|
+
if (status !== 200) {
|
|
3408
|
+
const msg = data && typeof data === "object" && "error" in data ? data.error : void 0;
|
|
3409
|
+
throw new Error(msg ?? `Failed to list Jira projects (${status})`);
|
|
3410
|
+
}
|
|
3411
|
+
return data;
|
|
3412
|
+
},
|
|
3393
3413
|
async getTicketsByProject() {
|
|
3394
3414
|
const { data, status } = await apiFetch2(config, "/tracker/tickets/by-project");
|
|
3395
3415
|
if (status === 403)
|
package/package.json
CHANGED