@meltstudio/meltctl 4.84.0 → 4.85.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.85.0";
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -470,6 +470,26 @@ function createStandupsResource(config2) {
|
|
|
470
470
|
if (status !== 200)
|
|
471
471
|
throw new Error(data.error ?? `Failed to check standup status (${status})`);
|
|
472
472
|
return data;
|
|
473
|
+
},
|
|
474
|
+
async getStats(filters) {
|
|
475
|
+
const params = new URLSearchParams();
|
|
476
|
+
if (filters?.projectId)
|
|
477
|
+
params.set("projectId", String(filters.projectId));
|
|
478
|
+
const path8 = `/standups/stats${params.toString() ? `?${params}` : ""}`;
|
|
479
|
+
const { data, status } = await apiFetch(config2, path8);
|
|
480
|
+
if (status === 403)
|
|
481
|
+
throw new Error("Access denied. Only Team Managers can view standup stats.");
|
|
482
|
+
if (status !== 200)
|
|
483
|
+
throw new Error(data.error ?? `Failed to fetch standup stats (${status})`);
|
|
484
|
+
return data;
|
|
485
|
+
},
|
|
486
|
+
async getMissingToday() {
|
|
487
|
+
const { data, status } = await apiFetch(config2, "/standups/missing-today");
|
|
488
|
+
if (status === 403)
|
|
489
|
+
throw new Error("Access denied. Only Team Managers can view standup stats.");
|
|
490
|
+
if (status !== 200)
|
|
491
|
+
throw new Error(data.error ?? `Failed to fetch missing standups (${status})`);
|
|
492
|
+
return data;
|
|
473
493
|
}
|
|
474
494
|
};
|
|
475
495
|
}
|
package/package.json
CHANGED