@meltstudio/meltctl 4.135.0 → 4.136.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.136.0";
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -795,6 +795,16 @@ function createTrackerResource(config) {
|
|
|
795
795
|
}
|
|
796
796
|
return data;
|
|
797
797
|
},
|
|
798
|
+
async listAllConnections() {
|
|
799
|
+
const { data, status } = await apiFetch(config, `/tracker/connections`);
|
|
800
|
+
if (status === 403)
|
|
801
|
+
throw new Error("Access denied. Only Team Managers can view tracker connections.");
|
|
802
|
+
if (status !== 200) {
|
|
803
|
+
const msg = data && typeof data === "object" && "error" in data ? data.error : void 0;
|
|
804
|
+
throw new Error(msg ?? `Failed to list tracker connections (${status})`);
|
|
805
|
+
}
|
|
806
|
+
return data;
|
|
807
|
+
},
|
|
798
808
|
async startOAuth(projectId, provider) {
|
|
799
809
|
const { data, status } = await apiFetch(config, `/tracker/oauth/start?provider=${provider}&projectId=${projectId}`);
|
|
800
810
|
if (status === 503)
|
|
@@ -3343,6 +3353,16 @@ function createTrackerResource2(config) {
|
|
|
3343
3353
|
}
|
|
3344
3354
|
return data;
|
|
3345
3355
|
},
|
|
3356
|
+
async listAllConnections() {
|
|
3357
|
+
const { data, status } = await apiFetch2(config, `/tracker/connections`);
|
|
3358
|
+
if (status === 403)
|
|
3359
|
+
throw new Error("Access denied. Only Team Managers can view tracker connections.");
|
|
3360
|
+
if (status !== 200) {
|
|
3361
|
+
const msg = data && typeof data === "object" && "error" in data ? data.error : void 0;
|
|
3362
|
+
throw new Error(msg ?? `Failed to list tracker connections (${status})`);
|
|
3363
|
+
}
|
|
3364
|
+
return data;
|
|
3365
|
+
},
|
|
3346
3366
|
async startOAuth(projectId, provider) {
|
|
3347
3367
|
const { data, status } = await apiFetch2(config, `/tracker/oauth/start?provider=${provider}&projectId=${projectId}`);
|
|
3348
3368
|
if (status === 503)
|
package/package.json
CHANGED