@meltstudio/meltctl 5.7.1 → 5.7.2
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.2";
|
|
7454
7454
|
}
|
|
7455
7455
|
});
|
|
7456
7456
|
|
|
@@ -27085,6 +27085,22 @@ function createTrackerResource(config2) {
|
|
|
27085
27085
|
}
|
|
27086
27086
|
return data;
|
|
27087
27087
|
},
|
|
27088
|
+
/**
|
|
27089
|
+
* List the Linear teams a connection can see, independent of any project
|
|
27090
|
+
* mapping. Powers the mappings UI's board picker for a project that has no
|
|
27091
|
+
* mapping yet (the per-project `listTeams` resolves via the mapping, so a
|
|
27092
|
+
* new project's picker would be empty).
|
|
27093
|
+
*/
|
|
27094
|
+
async listConnectionTeams(connectionId) {
|
|
27095
|
+
const { data, status } = await apiFetch(config2, `/tracker/connections/${connectionId}/teams`);
|
|
27096
|
+
if (status === 403)
|
|
27097
|
+
throw new Error("Access denied. Only Team Managers can view tracker teams.");
|
|
27098
|
+
if (status !== 200) {
|
|
27099
|
+
const msg = data && typeof data === "object" && "error" in data ? data.error : void 0;
|
|
27100
|
+
throw new Error(msg ?? `Failed to list Linear teams (${status})`);
|
|
27101
|
+
}
|
|
27102
|
+
return data;
|
|
27103
|
+
},
|
|
27088
27104
|
async listJiraProjects(projectId) {
|
|
27089
27105
|
const { data, status } = await apiFetch(config2, `/tracker/jira-projects/${projectId}`);
|
|
27090
27106
|
if (status === 403)
|
|
@@ -53412,6 +53428,22 @@ function createTrackerResource2(config2) {
|
|
|
53412
53428
|
}
|
|
53413
53429
|
return data;
|
|
53414
53430
|
},
|
|
53431
|
+
/**
|
|
53432
|
+
* List the Linear teams a connection can see, independent of any project
|
|
53433
|
+
* mapping. Powers the mappings UI's board picker for a project that has no
|
|
53434
|
+
* mapping yet (the per-project `listTeams` resolves via the mapping, so a
|
|
53435
|
+
* new project's picker would be empty).
|
|
53436
|
+
*/
|
|
53437
|
+
async listConnectionTeams(connectionId) {
|
|
53438
|
+
const { data, status } = await apiFetch2(config2, `/tracker/connections/${connectionId}/teams`);
|
|
53439
|
+
if (status === 403)
|
|
53440
|
+
throw new Error("Access denied. Only Team Managers can view tracker teams.");
|
|
53441
|
+
if (status !== 200) {
|
|
53442
|
+
const msg = data && typeof data === "object" && "error" in data ? data.error : void 0;
|
|
53443
|
+
throw new Error(msg ?? `Failed to list Linear teams (${status})`);
|
|
53444
|
+
}
|
|
53445
|
+
return data;
|
|
53446
|
+
},
|
|
53415
53447
|
async listJiraProjects(projectId) {
|
|
53416
53448
|
const { data, status } = await apiFetch2(config2, `/tracker/jira-projects/${projectId}`);
|
|
53417
53449
|
if (status === 403)
|
package/package.json
CHANGED