nazar-salary 3.3.4 → 3.3.6
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 +3 -3
- package/index.js +1 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1062,6 +1062,9 @@ declare module 'nazar-salary' {
|
|
|
1062
1062
|
rate_per_lesson: number;
|
|
1063
1063
|
lesson_group_id: number | null;
|
|
1064
1064
|
created_at: number;
|
|
1065
|
+
is_active: boolean;
|
|
1066
|
+
finished_at: number | null;
|
|
1067
|
+
stop_reason: string | null;
|
|
1065
1068
|
}
|
|
1066
1069
|
|
|
1067
1070
|
export interface CourseHistoryItem {
|
|
@@ -1273,8 +1276,6 @@ declare module 'nazar-salary' {
|
|
|
1273
1276
|
}
|
|
1274
1277
|
|
|
1275
1278
|
export interface ManagerFinishedStudentsParams {
|
|
1276
|
-
/** true = finished_at IS NOT NULL; false = finished_at IS NULL; omit = all inactive */
|
|
1277
|
-
is_finished?: boolean;
|
|
1278
1279
|
page?: number;
|
|
1279
1280
|
/** Max 30 */
|
|
1280
1281
|
limit?: number;
|
|
@@ -1293,7 +1294,6 @@ declare module 'nazar-salary' {
|
|
|
1293
1294
|
enrollment_months: number;
|
|
1294
1295
|
total_lessons: number;
|
|
1295
1296
|
completed_lessons: number;
|
|
1296
|
-
remaining_lessons: number;
|
|
1297
1297
|
main_course: string;
|
|
1298
1298
|
group_name: string | null;
|
|
1299
1299
|
lesson_group_id: number | null;
|
package/index.js
CHANGED
|
@@ -325,10 +325,9 @@ class SalaryAPI {
|
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
/**
|
|
328
|
-
* Get finished
|
|
328
|
+
* Get finished students of specific manager (completed_lessons = total_lessons, Admin only)
|
|
329
329
|
* @param {number} managerId - Manager ID
|
|
330
330
|
* @param {object} [params] - Query parameters
|
|
331
|
-
* @param {boolean} [params.is_finished] - true = finished_at IS NOT NULL; false = finished_at IS NULL; omit = all inactive
|
|
332
331
|
* @param {number} [params.page=1] - Page number
|
|
333
332
|
* @param {number} [params.limit=30] - Items per page (max 30)
|
|
334
333
|
* @returns {Promise<{manager: object, total_students: number, current_page: number, total_pages: number, students: array}>}
|