gst-common 1.3.83 → 1.3.85
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/dist/index.cjs +26 -2
- package/dist/index.d.cts +41 -3
- package/dist/index.d.ts +41 -3
- package/dist/index.mjs +25 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -40,6 +40,7 @@ __export(index_exports, {
|
|
|
40
40
|
OBJECT_PROGRAM_METHOD: () => OBJECT_PROGRAM_METHOD,
|
|
41
41
|
OBJECT_PROGRAM_SUITABLE_LEARNER: () => OBJECT_PROGRAM_SUITABLE_LEARNER,
|
|
42
42
|
OBJECT_QUESTION_TYPES: () => OBJECT_QUESTION_TYPES,
|
|
43
|
+
OBJECT_RATING: () => OBJECT_RATING,
|
|
43
44
|
OBJECT_REGISTERED_PROGRAM_STATUS: () => OBJECT_REGISTERED_PROGRAM_STATUS,
|
|
44
45
|
OBJECT_REGISTER_METHOD: () => OBJECT_REGISTER_METHOD,
|
|
45
46
|
OBJECT_SCHOOL_STATUS: () => OBJECT_SCHOOL_STATUS,
|
|
@@ -74,8 +75,8 @@ var COMMON_ROUTES = {
|
|
|
74
75
|
}
|
|
75
76
|
};
|
|
76
77
|
var REGISTER_PROGRAM_TIME = 12 * 60 * 60;
|
|
77
|
-
var AT_LEAST_ALLOW_RATING_PROGRAM_HOUR =
|
|
78
|
-
var AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS =
|
|
78
|
+
var AT_LEAST_ALLOW_RATING_PROGRAM_HOUR = 1;
|
|
79
|
+
var AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS = 1;
|
|
79
80
|
|
|
80
81
|
// src/type.ts
|
|
81
82
|
var CUSTOMER_TYPE = /* @__PURE__ */ ((CUSTOMER_TYPE2) => {
|
|
@@ -421,6 +422,28 @@ var OBJECT_QUESTION_TYPES = {
|
|
|
421
422
|
label: "S\u1EAFp x\u1EBFp t\u1EEB"
|
|
422
423
|
}
|
|
423
424
|
};
|
|
425
|
+
var OBJECT_RATING = {
|
|
426
|
+
1: {
|
|
427
|
+
value: 1,
|
|
428
|
+
label: "Ch\u01B0a t\u1ED1t"
|
|
429
|
+
},
|
|
430
|
+
2: {
|
|
431
|
+
value: 2,
|
|
432
|
+
label: "B\xECnh th\u01B0\u1EDDng"
|
|
433
|
+
},
|
|
434
|
+
3: {
|
|
435
|
+
value: 3,
|
|
436
|
+
label: "Kh\xE1 t\u1ED1t"
|
|
437
|
+
},
|
|
438
|
+
4: {
|
|
439
|
+
value: 4,
|
|
440
|
+
label: "T\u1ED1t"
|
|
441
|
+
},
|
|
442
|
+
5: {
|
|
443
|
+
value: 5,
|
|
444
|
+
label: "Xu\u1EA5t x\u1EAFc"
|
|
445
|
+
}
|
|
446
|
+
};
|
|
424
447
|
// Annotate the CommonJS export names for ESM import in node:
|
|
425
448
|
0 && (module.exports = {
|
|
426
449
|
AT_LEAST_ALLOW_RATING_PROGRAM_HOUR,
|
|
@@ -443,6 +466,7 @@ var OBJECT_QUESTION_TYPES = {
|
|
|
443
466
|
OBJECT_PROGRAM_METHOD,
|
|
444
467
|
OBJECT_PROGRAM_SUITABLE_LEARNER,
|
|
445
468
|
OBJECT_QUESTION_TYPES,
|
|
469
|
+
OBJECT_RATING,
|
|
446
470
|
OBJECT_REGISTERED_PROGRAM_STATUS,
|
|
447
471
|
OBJECT_REGISTER_METHOD,
|
|
448
472
|
OBJECT_SCHOOL_STATUS,
|
package/dist/index.d.cts
CHANGED
|
@@ -7,8 +7,8 @@ declare const COMMON_ROUTES: {
|
|
|
7
7
|
studentClassDetail: (id: string) => string;
|
|
8
8
|
};
|
|
9
9
|
declare const REGISTER_PROGRAM_TIME: number;
|
|
10
|
-
declare const AT_LEAST_ALLOW_RATING_PROGRAM_HOUR =
|
|
11
|
-
declare const AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS =
|
|
10
|
+
declare const AT_LEAST_ALLOW_RATING_PROGRAM_HOUR = 1;
|
|
11
|
+
declare const AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS = 1;
|
|
12
12
|
|
|
13
13
|
declare enum CUSTOMER_TYPE {
|
|
14
14
|
TUTOR = "tutor",
|
|
@@ -349,6 +349,10 @@ type TEditorEntity = {
|
|
|
349
349
|
title: string;
|
|
350
350
|
content: string;
|
|
351
351
|
} & BaseEntity;
|
|
352
|
+
type TProgramRatingEntity = {
|
|
353
|
+
score: number;
|
|
354
|
+
comment: string;
|
|
355
|
+
} & BaseEntity;
|
|
352
356
|
|
|
353
357
|
declare const OBJECT_REGISTER_METHOD: {
|
|
354
358
|
email: {
|
|
@@ -576,6 +580,28 @@ declare const OBJECT_QUESTION_TYPES: {
|
|
|
576
580
|
label: string;
|
|
577
581
|
};
|
|
578
582
|
};
|
|
583
|
+
declare const OBJECT_RATING: {
|
|
584
|
+
1: {
|
|
585
|
+
value: number;
|
|
586
|
+
label: string;
|
|
587
|
+
};
|
|
588
|
+
2: {
|
|
589
|
+
value: number;
|
|
590
|
+
label: string;
|
|
591
|
+
};
|
|
592
|
+
3: {
|
|
593
|
+
value: number;
|
|
594
|
+
label: string;
|
|
595
|
+
};
|
|
596
|
+
4: {
|
|
597
|
+
value: number;
|
|
598
|
+
label: string;
|
|
599
|
+
};
|
|
600
|
+
5: {
|
|
601
|
+
value: number;
|
|
602
|
+
label: string;
|
|
603
|
+
};
|
|
604
|
+
};
|
|
579
605
|
|
|
580
606
|
type TRegisteredProgramCreatePost = {
|
|
581
607
|
studentNote?: string;
|
|
@@ -847,6 +873,15 @@ type TClassStudentStatisticGroupByClass = {
|
|
|
847
873
|
numberOfYear: number;
|
|
848
874
|
monthOfYear: number;
|
|
849
875
|
};
|
|
876
|
+
type TProgramRatingStudentCreateRating = {
|
|
877
|
+
classId: string;
|
|
878
|
+
score: number;
|
|
879
|
+
comment: string;
|
|
880
|
+
fileIds?: string[];
|
|
881
|
+
};
|
|
882
|
+
type TProgramRatingStudentUpdateRating = {
|
|
883
|
+
id: string;
|
|
884
|
+
} & Partial<Omit<TProgramRatingStudentCreateRating, "classId">>;
|
|
850
885
|
|
|
851
886
|
type TProgramRegisteredMeTutorEdit = {
|
|
852
887
|
id: string;
|
|
@@ -1376,5 +1411,8 @@ type TClassStudentStatisticGroupByClassRes = {
|
|
|
1376
1411
|
totalPaidFee: number;
|
|
1377
1412
|
totalUnpaidFee: number;
|
|
1378
1413
|
}[];
|
|
1414
|
+
type TProgramRatingStudentCreateRatingRes = TProgramRatingEntity;
|
|
1415
|
+
type TProgramRatingStudentUpdateRatingRes = TProgramRatingEntity;
|
|
1416
|
+
type TProgramRatingStudentDeleteRatingRes = TProgramRatingEntity;
|
|
1379
1417
|
|
|
1380
|
-
export { AT_LEAST_ALLOW_RATING_PROGRAM_HOUR, AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS, type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, CLASS_STATUS_STUDENT_EDIT, CLASS_STATUS_TUTOR_EDIT, COMMON_ROUTES, CUSTOMER_TYPE, type ClassLearningTimeDTO, type DATA_THIRD_PARTY_LOGIN, DAY_OF_WEEK, GENDER, LESSON_ACTIVITY_STATUS, NOTIFICATION_STATUS, NOTIFICATION_TYPE, OBJECT_CLASS_STATUS, OBJECT_CUSTOMER_TYPE, OBJECT_DAY_OF_WEEK, OBJECT_GENDER, OBJECT_LESSON_ACTIVITY_STATUS, OBJECT_PROGRAM_METHOD, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_QUESTION_TYPES, OBJECT_REGISTERED_PROGRAM_STATUS, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJECT_SORT_TYPE, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, QUESTION_TYPES, REFRESH_TYPE, REGISTERED_PROGRAM_STATUS, REGISTER_METHOD, REGISTER_PROGRAM_TIME, ResponseStatus, SCHOOL_STATUS, SESSION_GROUP_QUESTION, SORT_TYPE, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TAnswerChoiceEntity, type TAnswerQuestionEntity, type TAnswerWordArrangementEntity, type TCLassStatistic, type TCLassStatisticRes, type TCLassStudentStatistic, type TCLassStudentStatisticRes, type TClassCountStatus, type TClassCountStatusRes, type TClassEntity, type TClassLearningTimeEntity, type TClassMeCreate, type TClassMeCreateRes, type TClassMeDetail, type TClassMeDetailRes, type TClassMeList, type TClassMeListRes, type TClassNotificationAddGroupQuestion, type TClassNotificationAddGroupQuestionRes, type TClassNotificationCreate, type TClassNotificationCreateEditor, type TClassNotificationCreateEditorRes, type TClassNotificationCreateRes, type TClassNotificationEntity, type TClassNotificationImport, type TClassNotificationImportRes, type TClassNotificationList, type TClassNotificationListRes, type TClassNotificationStudentList, type TClassNotificationStudentListRes, type TClassNotificationUpdate, type TClassNotificationUpdateRes, type TClassNotificationUpload, type TClassNotificationUploadRes, type TClassSelectOptionsRes, type TClassStatisticGroupByClass, type TClassStatisticGroupByClassRes, type TClassStatisticGroupByMonth, type TClassStatisticGroupByMonthRes, type TClassStudentChangeStatus, type TClassStudentChangeStatusRes, type TClassStudentCountStatus, type TClassStudentCountStatusRes, type TClassStudentDetailRes, type TClassStudentList, type TClassStudentListRes, type TClassStudentSelectOptionsRes, type TClassStudentStatisticGroupByClass, type TClassStudentStatisticGroupByClassRes, type TClassStudentStatisticGroupByMonth, type TClassStudentStatisticGroupByMonthRes, type TClassUpdate, type TClassUpdateRes, type TCompletedAndNotPaidLessonsRes, type TDeletableLessonsRes, type TDeleteDeletableLessonsRes, type TDistrictEntity, type TDocumentChangeOrder, type TDocumentChangeOrderRes, type TDocumentCreateEditor, type TDocumentCreateEditorRes, type TDocumentCreateGroupQuestion, type TDocumentCreateGroupQuestionRes, type TDocumentDeleteEditorRes, type TDocumentDeleteFileRes, type TDocumentList, type TDocumentListRes, type TDocumentProgramListRes, type TDocumentUpload, type TDocumentUploadRes, type TDocumentsEntity, type TEditorDeleteRes, type TEditorDetailRes, type TEditorEntity, type TEditorStudentDetailRes, type TEditorUpdate, type TEditorUpdateRes, type TExtendLessonTimesDTO, type TFileDeleteRes, type TFileEntity, type TFileLessonEntity, type TFileLessonListRes, type TFileLessonStudentListRes, type TFileLessonUpdate, type TFileLessonUpdateRes, type TFileLessonUpload, type TFileLessonUploadRes, type TFileUpdate, type TFileUpdateRes, type TGroupQuestionCreate, type TGroupQuestionCreateRes, type TGroupQuestionDeleteGroupQuestion, type TGroupQuestionDetailRes, type TGroupQuestionEntity, type TGroupQuestionResultRes, type TGroupQuestionStudentDraft, type TGroupQuestionStudentDraftRes, type TGroupQuestionStudentFinishDoing, type TGroupQuestionStudentLessonFinishDoingRes, type TGroupQuestionStudentResultRes, type TGroupQuestionStudentStartDoingRes, type TGroupQuestionUpdate, type TGroupQuestionUpdateRes, type TLesson, type TLessonAllDocuments, type TLessonAllDocumentsRes, type TLessonCheckOverlap, type TLessonCheckOverlapRes, type TLessonConfirm, type TLessonConfirmRes, type TLessonCreateEditor, type TLessonCreateEditorRes, type TLessonCreateGroupQuestion, type TLessonCreateGroupQuestionRes, type TLessonDetailRes, type TLessonDocumentsRes, type TLessonEdit, type TLessonEditRes, type TLessonEntity, type TLessonImport, type TLessonImportRes, type TLessonListMeTutor, type TLessonListMeTutorRes, type TLessonListUnconfirmedRes, type TLessonPrepare, type TLessonPrepareRes, type TLessonRequest, type TLessonRequestDTO, type TLessonRequestFailedOverlappedData, type TLessonRequestRes, type TLessonRequestSingle, type TLessonRequestSingleRes, type TLessonStudentAllDocuments, type TLessonStudentAllDocumentsRes, type TLessonStudentCompletedAndNotPaidLessonsRes, type TLessonStudentDetailRes, type TLessonStudentDocumentsRes, type TLessonStudentList, type TLessonStudentListRes, type TNotificationEntity, type TProgramEntity, type TProgramOptionsMe, type TProgramOptionsMeRes, type TProgramRegisteredMeTutorEdit, type TProgramRegisteredMeTutorEditRes, type TProgramStudentCheckAllowRegister, type TProgramSuitableLearnerEntity, type TProposedLearningCreate, type TProposedLearningCreateRes, type TProposedLearningDetail, type TProposedLearningDetailRes, type TProposedLearningEdit, type TProposedLearningEditRes, type TProposedLearningEntity, type TProposedLearningLessonEntity, type TProposedLearningList, type TProposedLearningListRes, type TProposedLearningStudentDetail, type TProposedLearningStudentDetailRes, type TProposedLearningStudentList, type TProposedLearningStudentListRes, type TProvinceEntity, type TQuestionEntity, type TQuestionTypeChoiceEntity, type TQuestionTypeEssayEntity, type TQuestionTypeWordArrangementEntity, type TRegisteredProgramCountStatus, type TRegisteredProgramCountStatusRes, type TRegisteredProgramCreatePost, type TRegisteredProgramCreateRes, type TRegisteredProgramEntity, type TRegisteredProgramListSentMeDTO, type TRegisteredProgramListSentMeRes, type TSessionGroupQuestionEntity, type TStudent, type TStudentEntity, type TSubmitGroupQuestion, type TTutorEntity, type TTutorListStudents, type TTutorListStudentsRes };
|
|
1418
|
+
export { AT_LEAST_ALLOW_RATING_PROGRAM_HOUR, AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS, type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, CLASS_STATUS_STUDENT_EDIT, CLASS_STATUS_TUTOR_EDIT, COMMON_ROUTES, CUSTOMER_TYPE, type ClassLearningTimeDTO, type DATA_THIRD_PARTY_LOGIN, DAY_OF_WEEK, GENDER, LESSON_ACTIVITY_STATUS, NOTIFICATION_STATUS, NOTIFICATION_TYPE, OBJECT_CLASS_STATUS, OBJECT_CUSTOMER_TYPE, OBJECT_DAY_OF_WEEK, OBJECT_GENDER, OBJECT_LESSON_ACTIVITY_STATUS, OBJECT_PROGRAM_METHOD, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_QUESTION_TYPES, OBJECT_RATING, OBJECT_REGISTERED_PROGRAM_STATUS, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJECT_SORT_TYPE, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, QUESTION_TYPES, REFRESH_TYPE, REGISTERED_PROGRAM_STATUS, REGISTER_METHOD, REGISTER_PROGRAM_TIME, ResponseStatus, SCHOOL_STATUS, SESSION_GROUP_QUESTION, SORT_TYPE, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TAnswerChoiceEntity, type TAnswerQuestionEntity, type TAnswerWordArrangementEntity, type TCLassStatistic, type TCLassStatisticRes, type TCLassStudentStatistic, type TCLassStudentStatisticRes, type TClassCountStatus, type TClassCountStatusRes, type TClassEntity, type TClassLearningTimeEntity, type TClassMeCreate, type TClassMeCreateRes, type TClassMeDetail, type TClassMeDetailRes, type TClassMeList, type TClassMeListRes, type TClassNotificationAddGroupQuestion, type TClassNotificationAddGroupQuestionRes, type TClassNotificationCreate, type TClassNotificationCreateEditor, type TClassNotificationCreateEditorRes, type TClassNotificationCreateRes, type TClassNotificationEntity, type TClassNotificationImport, type TClassNotificationImportRes, type TClassNotificationList, type TClassNotificationListRes, type TClassNotificationStudentList, type TClassNotificationStudentListRes, type TClassNotificationUpdate, type TClassNotificationUpdateRes, type TClassNotificationUpload, type TClassNotificationUploadRes, type TClassSelectOptionsRes, type TClassStatisticGroupByClass, type TClassStatisticGroupByClassRes, type TClassStatisticGroupByMonth, type TClassStatisticGroupByMonthRes, type TClassStudentChangeStatus, type TClassStudentChangeStatusRes, type TClassStudentCountStatus, type TClassStudentCountStatusRes, type TClassStudentDetailRes, type TClassStudentList, type TClassStudentListRes, type TClassStudentSelectOptionsRes, type TClassStudentStatisticGroupByClass, type TClassStudentStatisticGroupByClassRes, type TClassStudentStatisticGroupByMonth, type TClassStudentStatisticGroupByMonthRes, type TClassUpdate, type TClassUpdateRes, type TCompletedAndNotPaidLessonsRes, type TDeletableLessonsRes, type TDeleteDeletableLessonsRes, type TDistrictEntity, type TDocumentChangeOrder, type TDocumentChangeOrderRes, type TDocumentCreateEditor, type TDocumentCreateEditorRes, type TDocumentCreateGroupQuestion, type TDocumentCreateGroupQuestionRes, type TDocumentDeleteEditorRes, type TDocumentDeleteFileRes, type TDocumentList, type TDocumentListRes, type TDocumentProgramListRes, type TDocumentUpload, type TDocumentUploadRes, type TDocumentsEntity, type TEditorDeleteRes, type TEditorDetailRes, type TEditorEntity, type TEditorStudentDetailRes, type TEditorUpdate, type TEditorUpdateRes, type TExtendLessonTimesDTO, type TFileDeleteRes, type TFileEntity, type TFileLessonEntity, type TFileLessonListRes, type TFileLessonStudentListRes, type TFileLessonUpdate, type TFileLessonUpdateRes, type TFileLessonUpload, type TFileLessonUploadRes, type TFileUpdate, type TFileUpdateRes, type TGroupQuestionCreate, type TGroupQuestionCreateRes, type TGroupQuestionDeleteGroupQuestion, type TGroupQuestionDetailRes, type TGroupQuestionEntity, type TGroupQuestionResultRes, type TGroupQuestionStudentDraft, type TGroupQuestionStudentDraftRes, type TGroupQuestionStudentFinishDoing, type TGroupQuestionStudentLessonFinishDoingRes, type TGroupQuestionStudentResultRes, type TGroupQuestionStudentStartDoingRes, type TGroupQuestionUpdate, type TGroupQuestionUpdateRes, type TLesson, type TLessonAllDocuments, type TLessonAllDocumentsRes, type TLessonCheckOverlap, type TLessonCheckOverlapRes, type TLessonConfirm, type TLessonConfirmRes, type TLessonCreateEditor, type TLessonCreateEditorRes, type TLessonCreateGroupQuestion, type TLessonCreateGroupQuestionRes, type TLessonDetailRes, type TLessonDocumentsRes, type TLessonEdit, type TLessonEditRes, type TLessonEntity, type TLessonImport, type TLessonImportRes, type TLessonListMeTutor, type TLessonListMeTutorRes, type TLessonListUnconfirmedRes, type TLessonPrepare, type TLessonPrepareRes, type TLessonRequest, type TLessonRequestDTO, type TLessonRequestFailedOverlappedData, type TLessonRequestRes, type TLessonRequestSingle, type TLessonRequestSingleRes, type TLessonStudentAllDocuments, type TLessonStudentAllDocumentsRes, type TLessonStudentCompletedAndNotPaidLessonsRes, type TLessonStudentDetailRes, type TLessonStudentDocumentsRes, type TLessonStudentList, type TLessonStudentListRes, type TNotificationEntity, type TProgramEntity, type TProgramOptionsMe, type TProgramOptionsMeRes, type TProgramRatingEntity, type TProgramRatingStudentCreateRating, type TProgramRatingStudentCreateRatingRes, type TProgramRatingStudentDeleteRatingRes, type TProgramRatingStudentUpdateRating, type TProgramRatingStudentUpdateRatingRes, type TProgramRegisteredMeTutorEdit, type TProgramRegisteredMeTutorEditRes, type TProgramStudentCheckAllowRegister, type TProgramSuitableLearnerEntity, type TProposedLearningCreate, type TProposedLearningCreateRes, type TProposedLearningDetail, type TProposedLearningDetailRes, type TProposedLearningEdit, type TProposedLearningEditRes, type TProposedLearningEntity, type TProposedLearningLessonEntity, type TProposedLearningList, type TProposedLearningListRes, type TProposedLearningStudentDetail, type TProposedLearningStudentDetailRes, type TProposedLearningStudentList, type TProposedLearningStudentListRes, type TProvinceEntity, type TQuestionEntity, type TQuestionTypeChoiceEntity, type TQuestionTypeEssayEntity, type TQuestionTypeWordArrangementEntity, type TRegisteredProgramCountStatus, type TRegisteredProgramCountStatusRes, type TRegisteredProgramCreatePost, type TRegisteredProgramCreateRes, type TRegisteredProgramEntity, type TRegisteredProgramListSentMeDTO, type TRegisteredProgramListSentMeRes, type TSessionGroupQuestionEntity, type TStudent, type TStudentEntity, type TSubmitGroupQuestion, type TTutorEntity, type TTutorListStudents, type TTutorListStudentsRes };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ declare const COMMON_ROUTES: {
|
|
|
7
7
|
studentClassDetail: (id: string) => string;
|
|
8
8
|
};
|
|
9
9
|
declare const REGISTER_PROGRAM_TIME: number;
|
|
10
|
-
declare const AT_LEAST_ALLOW_RATING_PROGRAM_HOUR =
|
|
11
|
-
declare const AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS =
|
|
10
|
+
declare const AT_LEAST_ALLOW_RATING_PROGRAM_HOUR = 1;
|
|
11
|
+
declare const AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS = 1;
|
|
12
12
|
|
|
13
13
|
declare enum CUSTOMER_TYPE {
|
|
14
14
|
TUTOR = "tutor",
|
|
@@ -349,6 +349,10 @@ type TEditorEntity = {
|
|
|
349
349
|
title: string;
|
|
350
350
|
content: string;
|
|
351
351
|
} & BaseEntity;
|
|
352
|
+
type TProgramRatingEntity = {
|
|
353
|
+
score: number;
|
|
354
|
+
comment: string;
|
|
355
|
+
} & BaseEntity;
|
|
352
356
|
|
|
353
357
|
declare const OBJECT_REGISTER_METHOD: {
|
|
354
358
|
email: {
|
|
@@ -576,6 +580,28 @@ declare const OBJECT_QUESTION_TYPES: {
|
|
|
576
580
|
label: string;
|
|
577
581
|
};
|
|
578
582
|
};
|
|
583
|
+
declare const OBJECT_RATING: {
|
|
584
|
+
1: {
|
|
585
|
+
value: number;
|
|
586
|
+
label: string;
|
|
587
|
+
};
|
|
588
|
+
2: {
|
|
589
|
+
value: number;
|
|
590
|
+
label: string;
|
|
591
|
+
};
|
|
592
|
+
3: {
|
|
593
|
+
value: number;
|
|
594
|
+
label: string;
|
|
595
|
+
};
|
|
596
|
+
4: {
|
|
597
|
+
value: number;
|
|
598
|
+
label: string;
|
|
599
|
+
};
|
|
600
|
+
5: {
|
|
601
|
+
value: number;
|
|
602
|
+
label: string;
|
|
603
|
+
};
|
|
604
|
+
};
|
|
579
605
|
|
|
580
606
|
type TRegisteredProgramCreatePost = {
|
|
581
607
|
studentNote?: string;
|
|
@@ -847,6 +873,15 @@ type TClassStudentStatisticGroupByClass = {
|
|
|
847
873
|
numberOfYear: number;
|
|
848
874
|
monthOfYear: number;
|
|
849
875
|
};
|
|
876
|
+
type TProgramRatingStudentCreateRating = {
|
|
877
|
+
classId: string;
|
|
878
|
+
score: number;
|
|
879
|
+
comment: string;
|
|
880
|
+
fileIds?: string[];
|
|
881
|
+
};
|
|
882
|
+
type TProgramRatingStudentUpdateRating = {
|
|
883
|
+
id: string;
|
|
884
|
+
} & Partial<Omit<TProgramRatingStudentCreateRating, "classId">>;
|
|
850
885
|
|
|
851
886
|
type TProgramRegisteredMeTutorEdit = {
|
|
852
887
|
id: string;
|
|
@@ -1376,5 +1411,8 @@ type TClassStudentStatisticGroupByClassRes = {
|
|
|
1376
1411
|
totalPaidFee: number;
|
|
1377
1412
|
totalUnpaidFee: number;
|
|
1378
1413
|
}[];
|
|
1414
|
+
type TProgramRatingStudentCreateRatingRes = TProgramRatingEntity;
|
|
1415
|
+
type TProgramRatingStudentUpdateRatingRes = TProgramRatingEntity;
|
|
1416
|
+
type TProgramRatingStudentDeleteRatingRes = TProgramRatingEntity;
|
|
1379
1417
|
|
|
1380
|
-
export { AT_LEAST_ALLOW_RATING_PROGRAM_HOUR, AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS, type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, CLASS_STATUS_STUDENT_EDIT, CLASS_STATUS_TUTOR_EDIT, COMMON_ROUTES, CUSTOMER_TYPE, type ClassLearningTimeDTO, type DATA_THIRD_PARTY_LOGIN, DAY_OF_WEEK, GENDER, LESSON_ACTIVITY_STATUS, NOTIFICATION_STATUS, NOTIFICATION_TYPE, OBJECT_CLASS_STATUS, OBJECT_CUSTOMER_TYPE, OBJECT_DAY_OF_WEEK, OBJECT_GENDER, OBJECT_LESSON_ACTIVITY_STATUS, OBJECT_PROGRAM_METHOD, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_QUESTION_TYPES, OBJECT_REGISTERED_PROGRAM_STATUS, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJECT_SORT_TYPE, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, QUESTION_TYPES, REFRESH_TYPE, REGISTERED_PROGRAM_STATUS, REGISTER_METHOD, REGISTER_PROGRAM_TIME, ResponseStatus, SCHOOL_STATUS, SESSION_GROUP_QUESTION, SORT_TYPE, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TAnswerChoiceEntity, type TAnswerQuestionEntity, type TAnswerWordArrangementEntity, type TCLassStatistic, type TCLassStatisticRes, type TCLassStudentStatistic, type TCLassStudentStatisticRes, type TClassCountStatus, type TClassCountStatusRes, type TClassEntity, type TClassLearningTimeEntity, type TClassMeCreate, type TClassMeCreateRes, type TClassMeDetail, type TClassMeDetailRes, type TClassMeList, type TClassMeListRes, type TClassNotificationAddGroupQuestion, type TClassNotificationAddGroupQuestionRes, type TClassNotificationCreate, type TClassNotificationCreateEditor, type TClassNotificationCreateEditorRes, type TClassNotificationCreateRes, type TClassNotificationEntity, type TClassNotificationImport, type TClassNotificationImportRes, type TClassNotificationList, type TClassNotificationListRes, type TClassNotificationStudentList, type TClassNotificationStudentListRes, type TClassNotificationUpdate, type TClassNotificationUpdateRes, type TClassNotificationUpload, type TClassNotificationUploadRes, type TClassSelectOptionsRes, type TClassStatisticGroupByClass, type TClassStatisticGroupByClassRes, type TClassStatisticGroupByMonth, type TClassStatisticGroupByMonthRes, type TClassStudentChangeStatus, type TClassStudentChangeStatusRes, type TClassStudentCountStatus, type TClassStudentCountStatusRes, type TClassStudentDetailRes, type TClassStudentList, type TClassStudentListRes, type TClassStudentSelectOptionsRes, type TClassStudentStatisticGroupByClass, type TClassStudentStatisticGroupByClassRes, type TClassStudentStatisticGroupByMonth, type TClassStudentStatisticGroupByMonthRes, type TClassUpdate, type TClassUpdateRes, type TCompletedAndNotPaidLessonsRes, type TDeletableLessonsRes, type TDeleteDeletableLessonsRes, type TDistrictEntity, type TDocumentChangeOrder, type TDocumentChangeOrderRes, type TDocumentCreateEditor, type TDocumentCreateEditorRes, type TDocumentCreateGroupQuestion, type TDocumentCreateGroupQuestionRes, type TDocumentDeleteEditorRes, type TDocumentDeleteFileRes, type TDocumentList, type TDocumentListRes, type TDocumentProgramListRes, type TDocumentUpload, type TDocumentUploadRes, type TDocumentsEntity, type TEditorDeleteRes, type TEditorDetailRes, type TEditorEntity, type TEditorStudentDetailRes, type TEditorUpdate, type TEditorUpdateRes, type TExtendLessonTimesDTO, type TFileDeleteRes, type TFileEntity, type TFileLessonEntity, type TFileLessonListRes, type TFileLessonStudentListRes, type TFileLessonUpdate, type TFileLessonUpdateRes, type TFileLessonUpload, type TFileLessonUploadRes, type TFileUpdate, type TFileUpdateRes, type TGroupQuestionCreate, type TGroupQuestionCreateRes, type TGroupQuestionDeleteGroupQuestion, type TGroupQuestionDetailRes, type TGroupQuestionEntity, type TGroupQuestionResultRes, type TGroupQuestionStudentDraft, type TGroupQuestionStudentDraftRes, type TGroupQuestionStudentFinishDoing, type TGroupQuestionStudentLessonFinishDoingRes, type TGroupQuestionStudentResultRes, type TGroupQuestionStudentStartDoingRes, type TGroupQuestionUpdate, type TGroupQuestionUpdateRes, type TLesson, type TLessonAllDocuments, type TLessonAllDocumentsRes, type TLessonCheckOverlap, type TLessonCheckOverlapRes, type TLessonConfirm, type TLessonConfirmRes, type TLessonCreateEditor, type TLessonCreateEditorRes, type TLessonCreateGroupQuestion, type TLessonCreateGroupQuestionRes, type TLessonDetailRes, type TLessonDocumentsRes, type TLessonEdit, type TLessonEditRes, type TLessonEntity, type TLessonImport, type TLessonImportRes, type TLessonListMeTutor, type TLessonListMeTutorRes, type TLessonListUnconfirmedRes, type TLessonPrepare, type TLessonPrepareRes, type TLessonRequest, type TLessonRequestDTO, type TLessonRequestFailedOverlappedData, type TLessonRequestRes, type TLessonRequestSingle, type TLessonRequestSingleRes, type TLessonStudentAllDocuments, type TLessonStudentAllDocumentsRes, type TLessonStudentCompletedAndNotPaidLessonsRes, type TLessonStudentDetailRes, type TLessonStudentDocumentsRes, type TLessonStudentList, type TLessonStudentListRes, type TNotificationEntity, type TProgramEntity, type TProgramOptionsMe, type TProgramOptionsMeRes, type TProgramRegisteredMeTutorEdit, type TProgramRegisteredMeTutorEditRes, type TProgramStudentCheckAllowRegister, type TProgramSuitableLearnerEntity, type TProposedLearningCreate, type TProposedLearningCreateRes, type TProposedLearningDetail, type TProposedLearningDetailRes, type TProposedLearningEdit, type TProposedLearningEditRes, type TProposedLearningEntity, type TProposedLearningLessonEntity, type TProposedLearningList, type TProposedLearningListRes, type TProposedLearningStudentDetail, type TProposedLearningStudentDetailRes, type TProposedLearningStudentList, type TProposedLearningStudentListRes, type TProvinceEntity, type TQuestionEntity, type TQuestionTypeChoiceEntity, type TQuestionTypeEssayEntity, type TQuestionTypeWordArrangementEntity, type TRegisteredProgramCountStatus, type TRegisteredProgramCountStatusRes, type TRegisteredProgramCreatePost, type TRegisteredProgramCreateRes, type TRegisteredProgramEntity, type TRegisteredProgramListSentMeDTO, type TRegisteredProgramListSentMeRes, type TSessionGroupQuestionEntity, type TStudent, type TStudentEntity, type TSubmitGroupQuestion, type TTutorEntity, type TTutorListStudents, type TTutorListStudentsRes };
|
|
1418
|
+
export { AT_LEAST_ALLOW_RATING_PROGRAM_HOUR, AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS, type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, CLASS_STATUS_STUDENT_EDIT, CLASS_STATUS_TUTOR_EDIT, COMMON_ROUTES, CUSTOMER_TYPE, type ClassLearningTimeDTO, type DATA_THIRD_PARTY_LOGIN, DAY_OF_WEEK, GENDER, LESSON_ACTIVITY_STATUS, NOTIFICATION_STATUS, NOTIFICATION_TYPE, OBJECT_CLASS_STATUS, OBJECT_CUSTOMER_TYPE, OBJECT_DAY_OF_WEEK, OBJECT_GENDER, OBJECT_LESSON_ACTIVITY_STATUS, OBJECT_PROGRAM_METHOD, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_QUESTION_TYPES, OBJECT_RATING, OBJECT_REGISTERED_PROGRAM_STATUS, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJECT_SORT_TYPE, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, QUESTION_TYPES, REFRESH_TYPE, REGISTERED_PROGRAM_STATUS, REGISTER_METHOD, REGISTER_PROGRAM_TIME, ResponseStatus, SCHOOL_STATUS, SESSION_GROUP_QUESTION, SORT_TYPE, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TAnswerChoiceEntity, type TAnswerQuestionEntity, type TAnswerWordArrangementEntity, type TCLassStatistic, type TCLassStatisticRes, type TCLassStudentStatistic, type TCLassStudentStatisticRes, type TClassCountStatus, type TClassCountStatusRes, type TClassEntity, type TClassLearningTimeEntity, type TClassMeCreate, type TClassMeCreateRes, type TClassMeDetail, type TClassMeDetailRes, type TClassMeList, type TClassMeListRes, type TClassNotificationAddGroupQuestion, type TClassNotificationAddGroupQuestionRes, type TClassNotificationCreate, type TClassNotificationCreateEditor, type TClassNotificationCreateEditorRes, type TClassNotificationCreateRes, type TClassNotificationEntity, type TClassNotificationImport, type TClassNotificationImportRes, type TClassNotificationList, type TClassNotificationListRes, type TClassNotificationStudentList, type TClassNotificationStudentListRes, type TClassNotificationUpdate, type TClassNotificationUpdateRes, type TClassNotificationUpload, type TClassNotificationUploadRes, type TClassSelectOptionsRes, type TClassStatisticGroupByClass, type TClassStatisticGroupByClassRes, type TClassStatisticGroupByMonth, type TClassStatisticGroupByMonthRes, type TClassStudentChangeStatus, type TClassStudentChangeStatusRes, type TClassStudentCountStatus, type TClassStudentCountStatusRes, type TClassStudentDetailRes, type TClassStudentList, type TClassStudentListRes, type TClassStudentSelectOptionsRes, type TClassStudentStatisticGroupByClass, type TClassStudentStatisticGroupByClassRes, type TClassStudentStatisticGroupByMonth, type TClassStudentStatisticGroupByMonthRes, type TClassUpdate, type TClassUpdateRes, type TCompletedAndNotPaidLessonsRes, type TDeletableLessonsRes, type TDeleteDeletableLessonsRes, type TDistrictEntity, type TDocumentChangeOrder, type TDocumentChangeOrderRes, type TDocumentCreateEditor, type TDocumentCreateEditorRes, type TDocumentCreateGroupQuestion, type TDocumentCreateGroupQuestionRes, type TDocumentDeleteEditorRes, type TDocumentDeleteFileRes, type TDocumentList, type TDocumentListRes, type TDocumentProgramListRes, type TDocumentUpload, type TDocumentUploadRes, type TDocumentsEntity, type TEditorDeleteRes, type TEditorDetailRes, type TEditorEntity, type TEditorStudentDetailRes, type TEditorUpdate, type TEditorUpdateRes, type TExtendLessonTimesDTO, type TFileDeleteRes, type TFileEntity, type TFileLessonEntity, type TFileLessonListRes, type TFileLessonStudentListRes, type TFileLessonUpdate, type TFileLessonUpdateRes, type TFileLessonUpload, type TFileLessonUploadRes, type TFileUpdate, type TFileUpdateRes, type TGroupQuestionCreate, type TGroupQuestionCreateRes, type TGroupQuestionDeleteGroupQuestion, type TGroupQuestionDetailRes, type TGroupQuestionEntity, type TGroupQuestionResultRes, type TGroupQuestionStudentDraft, type TGroupQuestionStudentDraftRes, type TGroupQuestionStudentFinishDoing, type TGroupQuestionStudentLessonFinishDoingRes, type TGroupQuestionStudentResultRes, type TGroupQuestionStudentStartDoingRes, type TGroupQuestionUpdate, type TGroupQuestionUpdateRes, type TLesson, type TLessonAllDocuments, type TLessonAllDocumentsRes, type TLessonCheckOverlap, type TLessonCheckOverlapRes, type TLessonConfirm, type TLessonConfirmRes, type TLessonCreateEditor, type TLessonCreateEditorRes, type TLessonCreateGroupQuestion, type TLessonCreateGroupQuestionRes, type TLessonDetailRes, type TLessonDocumentsRes, type TLessonEdit, type TLessonEditRes, type TLessonEntity, type TLessonImport, type TLessonImportRes, type TLessonListMeTutor, type TLessonListMeTutorRes, type TLessonListUnconfirmedRes, type TLessonPrepare, type TLessonPrepareRes, type TLessonRequest, type TLessonRequestDTO, type TLessonRequestFailedOverlappedData, type TLessonRequestRes, type TLessonRequestSingle, type TLessonRequestSingleRes, type TLessonStudentAllDocuments, type TLessonStudentAllDocumentsRes, type TLessonStudentCompletedAndNotPaidLessonsRes, type TLessonStudentDetailRes, type TLessonStudentDocumentsRes, type TLessonStudentList, type TLessonStudentListRes, type TNotificationEntity, type TProgramEntity, type TProgramOptionsMe, type TProgramOptionsMeRes, type TProgramRatingEntity, type TProgramRatingStudentCreateRating, type TProgramRatingStudentCreateRatingRes, type TProgramRatingStudentDeleteRatingRes, type TProgramRatingStudentUpdateRating, type TProgramRatingStudentUpdateRatingRes, type TProgramRegisteredMeTutorEdit, type TProgramRegisteredMeTutorEditRes, type TProgramStudentCheckAllowRegister, type TProgramSuitableLearnerEntity, type TProposedLearningCreate, type TProposedLearningCreateRes, type TProposedLearningDetail, type TProposedLearningDetailRes, type TProposedLearningEdit, type TProposedLearningEditRes, type TProposedLearningEntity, type TProposedLearningLessonEntity, type TProposedLearningList, type TProposedLearningListRes, type TProposedLearningStudentDetail, type TProposedLearningStudentDetailRes, type TProposedLearningStudentList, type TProposedLearningStudentListRes, type TProvinceEntity, type TQuestionEntity, type TQuestionTypeChoiceEntity, type TQuestionTypeEssayEntity, type TQuestionTypeWordArrangementEntity, type TRegisteredProgramCountStatus, type TRegisteredProgramCountStatusRes, type TRegisteredProgramCreatePost, type TRegisteredProgramCreateRes, type TRegisteredProgramEntity, type TRegisteredProgramListSentMeDTO, type TRegisteredProgramListSentMeRes, type TSessionGroupQuestionEntity, type TStudent, type TStudentEntity, type TSubmitGroupQuestion, type TTutorEntity, type TTutorListStudents, type TTutorListStudentsRes };
|
package/dist/index.mjs
CHANGED
|
@@ -12,8 +12,8 @@ var COMMON_ROUTES = {
|
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
var REGISTER_PROGRAM_TIME = 12 * 60 * 60;
|
|
15
|
-
var AT_LEAST_ALLOW_RATING_PROGRAM_HOUR =
|
|
16
|
-
var AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS =
|
|
15
|
+
var AT_LEAST_ALLOW_RATING_PROGRAM_HOUR = 1;
|
|
16
|
+
var AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS = 1;
|
|
17
17
|
|
|
18
18
|
// src/type.ts
|
|
19
19
|
var CUSTOMER_TYPE = /* @__PURE__ */ ((CUSTOMER_TYPE2) => {
|
|
@@ -359,6 +359,28 @@ var OBJECT_QUESTION_TYPES = {
|
|
|
359
359
|
label: "S\u1EAFp x\u1EBFp t\u1EEB"
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
|
+
var OBJECT_RATING = {
|
|
363
|
+
1: {
|
|
364
|
+
value: 1,
|
|
365
|
+
label: "Ch\u01B0a t\u1ED1t"
|
|
366
|
+
},
|
|
367
|
+
2: {
|
|
368
|
+
value: 2,
|
|
369
|
+
label: "B\xECnh th\u01B0\u1EDDng"
|
|
370
|
+
},
|
|
371
|
+
3: {
|
|
372
|
+
value: 3,
|
|
373
|
+
label: "Kh\xE1 t\u1ED1t"
|
|
374
|
+
},
|
|
375
|
+
4: {
|
|
376
|
+
value: 4,
|
|
377
|
+
label: "T\u1ED1t"
|
|
378
|
+
},
|
|
379
|
+
5: {
|
|
380
|
+
value: 5,
|
|
381
|
+
label: "Xu\u1EA5t x\u1EAFc"
|
|
382
|
+
}
|
|
383
|
+
};
|
|
362
384
|
export {
|
|
363
385
|
AT_LEAST_ALLOW_RATING_PROGRAM_HOUR,
|
|
364
386
|
AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS,
|
|
@@ -380,6 +402,7 @@ export {
|
|
|
380
402
|
OBJECT_PROGRAM_METHOD,
|
|
381
403
|
OBJECT_PROGRAM_SUITABLE_LEARNER,
|
|
382
404
|
OBJECT_QUESTION_TYPES,
|
|
405
|
+
OBJECT_RATING,
|
|
383
406
|
OBJECT_REGISTERED_PROGRAM_STATUS,
|
|
384
407
|
OBJECT_REGISTER_METHOD,
|
|
385
408
|
OBJECT_SCHOOL_STATUS,
|