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.
Files changed (3) hide show
  1. package/index.d.ts +4 -1
  2. package/index.js +5 -2
  3. 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
- getDashboard(): Promise<DashboardResponse>;
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
- return await this.client.get("/api/v1/admin/dashboard/");
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nazar-salary",
3
- "version": "3.2.8",
3
+ "version": "3.2.9",
4
4
  "description": "Frontend library for Nazar Salary API",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",