@meltstudio/meltctl 5.7.1 → 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 +65 -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
|
|
|
@@ -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)
|
|
@@ -27095,6 +27111,22 @@ function createTrackerResource(config2) {
|
|
|
27095
27111
|
}
|
|
27096
27112
|
return data;
|
|
27097
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
|
+
},
|
|
27098
27130
|
async getTicketsByProject() {
|
|
27099
27131
|
const { data, status } = await apiFetch(config2, "/tracker/tickets/by-project");
|
|
27100
27132
|
if (status === 403)
|
|
@@ -53412,6 +53444,22 @@ function createTrackerResource2(config2) {
|
|
|
53412
53444
|
}
|
|
53413
53445
|
return data;
|
|
53414
53446
|
},
|
|
53447
|
+
/**
|
|
53448
|
+
* List the Linear teams a connection can see, independent of any project
|
|
53449
|
+
* mapping. Powers the mappings UI's board picker for a project that has no
|
|
53450
|
+
* mapping yet (the per-project `listTeams` resolves via the mapping, so a
|
|
53451
|
+
* new project's picker would be empty).
|
|
53452
|
+
*/
|
|
53453
|
+
async listConnectionTeams(connectionId) {
|
|
53454
|
+
const { data, status } = await apiFetch2(config2, `/tracker/connections/${connectionId}/teams`);
|
|
53455
|
+
if (status === 403)
|
|
53456
|
+
throw new Error("Access denied. Only Team Managers can view tracker teams.");
|
|
53457
|
+
if (status !== 200) {
|
|
53458
|
+
const msg = data && typeof data === "object" && "error" in data ? data.error : void 0;
|
|
53459
|
+
throw new Error(msg ?? `Failed to list Linear teams (${status})`);
|
|
53460
|
+
}
|
|
53461
|
+
return data;
|
|
53462
|
+
},
|
|
53415
53463
|
async listJiraProjects(projectId) {
|
|
53416
53464
|
const { data, status } = await apiFetch2(config2, `/tracker/jira-projects/${projectId}`);
|
|
53417
53465
|
if (status === 403)
|
|
@@ -53422,6 +53470,22 @@ function createTrackerResource2(config2) {
|
|
|
53422
53470
|
}
|
|
53423
53471
|
return data;
|
|
53424
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
|
+
},
|
|
53425
53489
|
async getTicketsByProject() {
|
|
53426
53490
|
const { data, status } = await apiFetch2(config2, "/tracker/tickets/by-project");
|
|
53427
53491
|
if (status === 403)
|
package/package.json
CHANGED