nazar-salary 3.2.8 → 3.2.9
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/index.d.ts +4 -1
- package/index.js +5 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1550,7 +1550,10 @@ declare module 'nazar-salary' {
|
|
|
1550
1550
|
getManagerStudentsAdmin(managerId: number, params?: StudentsListParams): Promise<StudentsListResponse>;
|
|
1551
1551
|
|
|
1552
1552
|
// Dashboard endpoints
|
|
1553
|
-
|
|
1553
|
+
/**
|
|
1554
|
+
* @param month Optional month in MM.YYYY format (e.g. "04.2026"). Defaults to current month.
|
|
1555
|
+
*/
|
|
1556
|
+
getDashboard(month?: string): Promise<DashboardResponse>;
|
|
1554
1557
|
|
|
1555
1558
|
// Salary endpoints
|
|
1556
1559
|
getManagerSalary(month: string, managerId?: number): Promise<ManagerSalaryResponse>;
|
package/index.js
CHANGED
|
@@ -619,10 +619,13 @@ class SalaryAPI {
|
|
|
619
619
|
|
|
620
620
|
/**
|
|
621
621
|
* Get admin dashboard summary (Admin only)
|
|
622
|
+
* @param {string} [month] - Month in MM.YYYY format (e.g. "04.2026"). Defaults to current month.
|
|
622
623
|
* @returns {Promise<DashboardResponse>}
|
|
623
624
|
*/
|
|
624
|
-
async getDashboard() {
|
|
625
|
-
|
|
625
|
+
async getDashboard(month) {
|
|
626
|
+
const params = {};
|
|
627
|
+
if (month !== undefined) params.month = month;
|
|
628
|
+
return await this.client.get("/api/v1/admin/dashboard/", { params });
|
|
626
629
|
}
|
|
627
630
|
|
|
628
631
|
/**
|