nazar-salary 3.5.0 → 3.5.1
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 +6 -0
- package/index.js +2 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1094,15 +1094,21 @@ declare module 'nazar-salary' {
|
|
|
1094
1094
|
to?: number;
|
|
1095
1095
|
/** Filter by manager (admin only; ignored for manager role) */
|
|
1096
1096
|
manager_id?: number;
|
|
1097
|
+
/** Page number (default 1) */
|
|
1098
|
+
page?: number;
|
|
1099
|
+
/** Items per page (default 20, max 100) */
|
|
1100
|
+
limit?: number;
|
|
1097
1101
|
}
|
|
1098
1102
|
|
|
1099
1103
|
export interface RefundsListResponse {
|
|
1104
|
+
/** Totals across all refunds matching the filters (not just the current page) */
|
|
1100
1105
|
summary: {
|
|
1101
1106
|
count: number;
|
|
1102
1107
|
total_refund_amount: number;
|
|
1103
1108
|
total_deduction_amount: number;
|
|
1104
1109
|
};
|
|
1105
1110
|
refunds: RefundItem[];
|
|
1111
|
+
pagination: Pagination;
|
|
1106
1112
|
}
|
|
1107
1113
|
|
|
1108
1114
|
export type TeacherPaymentStatus = 'not_paid' | 'pending' | 'paid';
|
package/index.js
CHANGED
|
@@ -1052,6 +1052,8 @@ class SalaryAPI {
|
|
|
1052
1052
|
* @param {number} [params.from] - Start timestamp (ms)
|
|
1053
1053
|
* @param {number} [params.to] - End timestamp (ms)
|
|
1054
1054
|
* @param {number} [params.manager_id] - Filter by manager ID
|
|
1055
|
+
* @param {number} [params.page=1] - Page number
|
|
1056
|
+
* @param {number} [params.limit=20] - Items per page (max 100)
|
|
1055
1057
|
* @returns {Promise<RefundsListResponse>}
|
|
1056
1058
|
*/
|
|
1057
1059
|
async getRefunds(params = {}) {
|