nazar-salary 3.2.2 → 3.2.4
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 +14 -6
- package/index.js +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -421,7 +421,7 @@ declare module 'nazar-salary' {
|
|
|
421
421
|
description?: string;
|
|
422
422
|
format: PriceFormat;
|
|
423
423
|
lesson_type: LessonType;
|
|
424
|
-
lessons_per_month:
|
|
424
|
+
lessons_per_month: number;
|
|
425
425
|
duration_minutes: number;
|
|
426
426
|
rate_per_lesson: number;
|
|
427
427
|
created_at: number;
|
|
@@ -433,7 +433,8 @@ declare module 'nazar-salary' {
|
|
|
433
433
|
description?: string;
|
|
434
434
|
format: PriceFormat;
|
|
435
435
|
lesson_type: LessonType;
|
|
436
|
-
|
|
436
|
+
/** Integer from 1 to 30 */
|
|
437
|
+
lessons_per_month: number;
|
|
437
438
|
duration_minutes: number;
|
|
438
439
|
rate_per_lesson: number;
|
|
439
440
|
}
|
|
@@ -443,7 +444,8 @@ declare module 'nazar-salary' {
|
|
|
443
444
|
description?: string;
|
|
444
445
|
format?: PriceFormat;
|
|
445
446
|
lesson_type?: LessonType;
|
|
446
|
-
|
|
447
|
+
/** Integer from 1 to 30 */
|
|
448
|
+
lessons_per_month?: number;
|
|
447
449
|
rate_per_lesson?: number;
|
|
448
450
|
}
|
|
449
451
|
|
|
@@ -455,7 +457,7 @@ declare module 'nazar-salary' {
|
|
|
455
457
|
id: number;
|
|
456
458
|
format: PriceFormat;
|
|
457
459
|
lesson_type: LessonType;
|
|
458
|
-
lessons_per_month:
|
|
460
|
+
lessons_per_month: number;
|
|
459
461
|
duration_minutes: number;
|
|
460
462
|
rate_per_lesson: number;
|
|
461
463
|
created_at: number;
|
|
@@ -836,10 +838,12 @@ declare module 'nazar-salary' {
|
|
|
836
838
|
operation_number: string;
|
|
837
839
|
purchase_amount: number;
|
|
838
840
|
prepayment: boolean;
|
|
841
|
+
is_verified: boolean;
|
|
839
842
|
commission: number;
|
|
840
843
|
net_amount: number;
|
|
841
|
-
manager_commission: number;
|
|
842
|
-
|
|
844
|
+
manager_commission: number | null;
|
|
845
|
+
created_at: string;
|
|
846
|
+
verified_at: string | null;
|
|
843
847
|
}
|
|
844
848
|
|
|
845
849
|
export interface ManagerSalaryItem {
|
|
@@ -851,6 +855,8 @@ declare module 'nazar-salary' {
|
|
|
851
855
|
work_days: number;
|
|
852
856
|
students_count: number;
|
|
853
857
|
payments_count: number;
|
|
858
|
+
total_purchase_amount: number;
|
|
859
|
+
verified_purchase_amount: number;
|
|
854
860
|
total_commission: number;
|
|
855
861
|
/** Sum of refund commission deductions for this manager in the requested month */
|
|
856
862
|
commission_deductions: number;
|
|
@@ -868,6 +874,8 @@ declare module 'nazar-salary' {
|
|
|
868
874
|
total_managers: number;
|
|
869
875
|
total_students: number;
|
|
870
876
|
total_payments: number;
|
|
877
|
+
total_purchase_amount: number;
|
|
878
|
+
verified_purchase_amount: number;
|
|
871
879
|
total_commission: number;
|
|
872
880
|
/** Total refund commission deductions across all managers for the month */
|
|
873
881
|
total_commission_deductions: number;
|
package/index.js
CHANGED
|
@@ -442,7 +442,7 @@ class SalaryAPI {
|
|
|
442
442
|
* @param {string} [data.description] - Description
|
|
443
443
|
* @param {string} data.format - Format: individual, duet, trio, group
|
|
444
444
|
* @param {string} data.lesson_type - Lesson type: online, offline
|
|
445
|
-
* @param {number} data.lessons_per_month - Lessons per month:
|
|
445
|
+
* @param {number} data.lessons_per_month - Lessons per month: integer from 1 to 30
|
|
446
446
|
* @param {number} data.duration_minutes - Duration in minutes
|
|
447
447
|
* @param {number} data.rate_per_lesson - Rate per lesson in tenge
|
|
448
448
|
* @returns {Promise<object>}
|
|
@@ -477,7 +477,7 @@ class SalaryAPI {
|
|
|
477
477
|
* @param {string} [data.description] - Description
|
|
478
478
|
* @param {string} [data.format] - Format: individual, duet, trio, group
|
|
479
479
|
* @param {string} [data.lesson_type] - Lesson type: online, offline
|
|
480
|
-
* @param {number} [data.lessons_per_month] - Lessons per month:
|
|
480
|
+
* @param {number} [data.lessons_per_month] - Lessons per month: integer from 1 to 30
|
|
481
481
|
* @param {number} [data.rate_per_lesson] - Rate per lesson in tenge
|
|
482
482
|
* @returns {Promise<object>}
|
|
483
483
|
*/
|