nazar-salary 3.5.3 → 3.5.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.
Files changed (3) hide show
  1. package/index.d.ts +13 -0
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -870,6 +870,8 @@ declare module 'nazar-salary' {
870
870
  lessonsDone: number;
871
871
  /** lessons in the course; 12 until set */
872
872
  lessonsTotal: number;
873
+ /** shown on the check page in place of the certificate's type; null until set */
874
+ teacher_full_name: string | null;
873
875
  /** null while the course is not completed */
874
876
  certificate: AkcentCertificate | null;
875
877
  }
@@ -883,6 +885,8 @@ declare module 'nazar-salary' {
883
885
  lessonsDone?: number | null;
884
886
  /** 1–1000 */
885
887
  lessonsTotal?: number | null;
888
+ /** up to 201 characters; "" counts as null */
889
+ teacher_full_name?: string | null;
886
890
  }
887
891
 
888
892
  export interface UpdateAkcentCourseResponse {
@@ -891,6 +895,14 @@ declare module 'nazar-salary' {
891
895
  languageLevel: AkcentLanguageLevel | string;
892
896
  lessonsDone: number;
893
897
  lessonsTotal: number;
898
+ teacher_full_name: string | null;
899
+ }
900
+
901
+ /** Teacher of the student's latest course in Salary (default for teacher_full_name) */
902
+ export interface CertificatesSalaryTeacher {
903
+ id: number;
904
+ first_name: string | null;
905
+ last_name: string | null;
894
906
  }
895
907
 
896
908
  export interface AkcentStudent {
@@ -906,6 +918,7 @@ declare module 'nazar-salary' {
906
918
  /** false — no Akcent student with this phone */
907
919
  found: boolean;
908
920
  student: AkcentStudent | null;
921
+ salary_teacher: CertificatesSalaryTeacher | null;
909
922
  }
910
923
 
911
924
  export type StopReason = 'student_quit' | 'moved_away' | 'health_issues' | 'financial' | 'other' | 'refund';
package/index.js CHANGED
@@ -770,7 +770,7 @@ class SalaryAPI {
770
770
  * Shown on the certificate check page (verifyUrl). Send only what changes; null = default.
771
771
  * @param {number} studentId - Student ID
772
772
  * @param {number} courseId - Akcent course ID
773
- * @param {object} data - { languageLevel?, lessonsDone?, lessonsTotal? }
773
+ * @param {object} data - { languageLevel?, lessonsDone?, lessonsTotal?, teacher_full_name? }
774
774
  * @returns {Promise<UpdateAkcentCourseResponse>}
775
775
  */
776
776
  async updateStudentCertificateCourse(studentId, courseId, data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nazar-salary",
3
- "version": "3.5.3",
3
+ "version": "3.5.4",
4
4
  "description": "Frontend library for Nazar Salary API",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",