nazar-salary 3.5.5 → 3.5.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 +4 -3
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -921,7 +921,8 @@ declare module 'nazar-salary' {
|
|
|
921
921
|
/** given_date, epoch ms */
|
|
922
922
|
issuedAt: number;
|
|
923
923
|
course_name: string;
|
|
924
|
-
|
|
924
|
+
/** null when no teacher was given */
|
|
925
|
+
teacher_full_name: string | null;
|
|
925
926
|
languageLevel: AkcentLanguageLevel | string;
|
|
926
927
|
lessonsDone: number;
|
|
927
928
|
lessonsTotal: number;
|
|
@@ -949,8 +950,8 @@ declare module 'nazar-salary' {
|
|
|
949
950
|
export interface CreateOfflineCertificateData {
|
|
950
951
|
/** up to 255 characters */
|
|
951
952
|
course_name: string;
|
|
952
|
-
/** up to 201 characters */
|
|
953
|
-
teacher_full_name
|
|
953
|
+
/** optional, up to 201 characters; without it the check page shows the certificate's type and the PDF has no teacher line */
|
|
954
|
+
teacher_full_name?: string | null;
|
|
954
955
|
languageLevel: AkcentLanguageLevel;
|
|
955
956
|
/** 0–1000, not more than lessonsTotal */
|
|
956
957
|
lessonsDone: number;
|
package/index.js
CHANGED
|
@@ -784,7 +784,7 @@ class SalaryAPI {
|
|
|
784
784
|
* Give an Akcent certificate for an offline course (requireAuth: admin or owner manager)
|
|
785
785
|
* Same student, course_name and day again updates the certificate given before.
|
|
786
786
|
* @param {number} studentId - Student ID
|
|
787
|
-
* @param {object} data - { course_name, teacher_full_name
|
|
787
|
+
* @param {object} data - { course_name, teacher_full_name?, languageLevel, lessonsDone, lessonsTotal, given_date?, totalGrade? }
|
|
788
788
|
* @returns {Promise<CreateOfflineCertificateResponse>}
|
|
789
789
|
*/
|
|
790
790
|
async createStudentOfflineCertificate(studentId, data) {
|