@meltstudio/meltctl 5.7.2 → 5.7.3
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 +33 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7450,7 +7450,7 @@ var CLI_VERSION;
|
|
|
7450
7450
|
var init_version = __esm({
|
|
7451
7451
|
"src/utils/version.ts"() {
|
|
7452
7452
|
"use strict";
|
|
7453
|
-
CLI_VERSION = "5.7.
|
|
7453
|
+
CLI_VERSION = "5.7.3";
|
|
7454
7454
|
}
|
|
7455
7455
|
});
|
|
7456
7456
|
|
|
@@ -27111,6 +27111,22 @@ function createTrackerResource(config2) {
|
|
|
27111
27111
|
}
|
|
27112
27112
|
return data;
|
|
27113
27113
|
},
|
|
27114
|
+
/**
|
|
27115
|
+
* List the Jira projects a connection can see, independent of any project
|
|
27116
|
+
* mapping. Powers the mappings UI's board picker for a project that has no
|
|
27117
|
+
* mapping yet (the per-project `listJiraProjects` resolves via the mapping,
|
|
27118
|
+
* so a new project's picker would be empty). Mirrors `listConnectionTeams`.
|
|
27119
|
+
*/
|
|
27120
|
+
async listConnectionJiraProjects(connectionId) {
|
|
27121
|
+
const { data, status } = await apiFetch(config2, `/tracker/connections/${connectionId}/jira-projects`);
|
|
27122
|
+
if (status === 403)
|
|
27123
|
+
throw new Error("Access denied. Only Team Managers can view Jira projects.");
|
|
27124
|
+
if (status !== 200) {
|
|
27125
|
+
const msg = data && typeof data === "object" && "error" in data ? data.error : void 0;
|
|
27126
|
+
throw new Error(msg ?? `Failed to list Jira projects (${status})`);
|
|
27127
|
+
}
|
|
27128
|
+
return data;
|
|
27129
|
+
},
|
|
27114
27130
|
async getTicketsByProject() {
|
|
27115
27131
|
const { data, status } = await apiFetch(config2, "/tracker/tickets/by-project");
|
|
27116
27132
|
if (status === 403)
|
|
@@ -53454,6 +53470,22 @@ function createTrackerResource2(config2) {
|
|
|
53454
53470
|
}
|
|
53455
53471
|
return data;
|
|
53456
53472
|
},
|
|
53473
|
+
/**
|
|
53474
|
+
* List the Jira projects a connection can see, independent of any project
|
|
53475
|
+
* mapping. Powers the mappings UI's board picker for a project that has no
|
|
53476
|
+
* mapping yet (the per-project `listJiraProjects` resolves via the mapping,
|
|
53477
|
+
* so a new project's picker would be empty). Mirrors `listConnectionTeams`.
|
|
53478
|
+
*/
|
|
53479
|
+
async listConnectionJiraProjects(connectionId) {
|
|
53480
|
+
const { data, status } = await apiFetch2(config2, `/tracker/connections/${connectionId}/jira-projects`);
|
|
53481
|
+
if (status === 403)
|
|
53482
|
+
throw new Error("Access denied. Only Team Managers can view Jira projects.");
|
|
53483
|
+
if (status !== 200) {
|
|
53484
|
+
const msg = data && typeof data === "object" && "error" in data ? data.error : void 0;
|
|
53485
|
+
throw new Error(msg ?? `Failed to list Jira projects (${status})`);
|
|
53486
|
+
}
|
|
53487
|
+
return data;
|
|
53488
|
+
},
|
|
53457
53489
|
async getTicketsByProject() {
|
|
53458
53490
|
const { data, status } = await apiFetch2(config2, "/tracker/tickets/by-project");
|
|
53459
53491
|
if (status === 403)
|
package/package.json
CHANGED