gst-common 1.2.61 → 1.2.63

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 CHANGED
@@ -136,6 +136,7 @@ var CLASS_STATUS = /* @__PURE__ */ ((CLASS_STATUS2) => {
136
136
  CLASS_STATUS2["HAPPENING"] = "HAPPENING";
137
137
  CLASS_STATUS2["PENDING"] = "PENDING";
138
138
  CLASS_STATUS2["FINISHED"] = "FINISHED";
139
+ CLASS_STATUS2["CANCELED"] = "CANCELED";
139
140
  return CLASS_STATUS2;
140
141
  })(CLASS_STATUS || {});
141
142
  var CLASS_STATUS_TUTOR_EDIT = /* @__PURE__ */ ((CLASS_STATUS_TUTOR_EDIT2) => {
@@ -324,6 +325,10 @@ var OBJECT_CLASS_STATUS = {
324
325
  ["FINISHED" /* FINISHED */]: {
325
326
  value: "FINISHED" /* FINISHED */,
326
327
  label: "Ho\xE0n th\xE0nh"
328
+ },
329
+ ["CANCELED" /* CANCELED */]: {
330
+ value: "CANCELED" /* CANCELED */,
331
+ label: "\u0110\xE3 hu\u1EF7"
327
332
  }
328
333
  };
329
334
  var OBJECT_DAY_OF_WEEK = {
package/dist/index.d.cts CHANGED
@@ -88,7 +88,8 @@ declare enum CLASS_STATUS {
88
88
  WAIT_FOR_ACCEPTING = "WAIT_FOR_ACCEPTING",
89
89
  HAPPENING = "HAPPENING",
90
90
  PENDING = "PENDING",
91
- FINISHED = "FINISHED"
91
+ FINISHED = "FINISHED",
92
+ CANCELED = "CANCELED"
92
93
  }
93
94
  declare enum CLASS_STATUS_TUTOR_EDIT {
94
95
  HAPPENING = "HAPPENING",
@@ -433,6 +434,10 @@ declare const OBJECT_CLASS_STATUS: {
433
434
  value: CLASS_STATUS;
434
435
  label: string;
435
436
  };
437
+ CANCELED: {
438
+ value: CLASS_STATUS;
439
+ label: string;
440
+ };
436
441
  };
437
442
  declare const OBJECT_DAY_OF_WEEK: {
438
443
  MONDAY: {
@@ -577,6 +582,20 @@ type TTutorListStudents = {
577
582
  fullname?: string;
578
583
  createdAtSort?: SORT_TYPE;
579
584
  } & BasePaginationParams;
585
+ type TClassStudentList = {
586
+ status?: CLASS_STATUS;
587
+ name?: string;
588
+ } & BasePaginationParams;
589
+ type TLessonStudentList = {
590
+ classId: string;
591
+ fromDate: string;
592
+ toDate: string;
593
+ } & BasePaginationParams;
594
+ type TCLassStudentStatistic = {
595
+ classId: string;
596
+ startTime?: string;
597
+ endTime?: string;
598
+ };
580
599
 
581
600
  type TProgramRegisteredMeTutorEdit = {
582
601
  id: string;
@@ -704,6 +723,24 @@ type TCLassStatisticRes = {
704
723
  totalUnconfirmedFee: number;
705
724
  totalUnpaidFee: number;
706
725
  };
726
+ type TCLassStudentStatisticRes = {
727
+ total: number;
728
+ totalCompleted: number;
729
+ totalNew: number;
730
+ totalCancelled: number;
731
+ totalConfirmed: number;
732
+ totalPaid: number;
733
+ totalUnconfirmed: number;
734
+ totalUnpaid: number;
735
+ totalFee: number;
736
+ totalCompletedFee: number;
737
+ totalNewFee: number;
738
+ totalCancelledFee: number;
739
+ totalConfirmedFee: number;
740
+ totalPaidFee: number;
741
+ totalUnconfirmedFee: number;
742
+ totalUnpaidFee: number;
743
+ };
707
744
  type TClassNotificationCreateRes = TClassNotificationEntity;
708
745
  type TClassNotificationUpdateRes = TClassNotificationEntity;
709
746
  type TClassNotificationListRes = {
@@ -720,6 +757,15 @@ type TClassCountStatusRes = {
720
757
  totalHappening: number;
721
758
  totalPending: number;
722
759
  totalWaitingForAccepting: number;
760
+ totalCancelled: number;
761
+ };
762
+ type TClasStudentCountStatusRes = {
763
+ total: number;
764
+ totalFinish: number;
765
+ totalHappening: number;
766
+ totalPending: number;
767
+ totalWaitingForAccepting: number;
768
+ totalCancelled: number;
723
769
  };
724
770
  type TRegisteredProgramCountStatusRes = {
725
771
  total: number;
@@ -759,5 +805,13 @@ type TProgramStudentCheckAllowRegister = {
759
805
  maxCreateAt: string | null;
760
806
  allow: boolean;
761
807
  };
808
+ type TClassStudentListRes = {
809
+ classes: TClassEntity[];
810
+ count: number;
811
+ };
812
+ type TLessonStudentListRes = {
813
+ lessons: TLessonEntity[];
814
+ total: number;
815
+ };
762
816
 
763
- export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, 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_REGISTERED_PROGRAM_STATUS, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJECT_SORT_TYPE, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, REFRESH_TYPE, REGISTERED_PROGRAM_STATUS, REGISTER_METHOD, REGISTER_PROGRAM_TIME, ResponseStatus, SCHOOL_STATUS, SORT_TYPE, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TCLassStatistic, type TCLassStatisticRes, type TClassCountStatusRes, type TClassEntity, type TClassLearningTimeEntity, type TClassMeCreate, type TClassMeCreateRes, type TClassMeDetail, type TClassMeDetailRes, type TClassMeList, type TClassMeListRes, type TClassNotificationCreate, type TClassNotificationCreateRes, type TClassNotificationEntity, type TClassNotificationList, type TClassNotificationListRes, type TClassNotificationUpdate, type TClassNotificationUpdateRes, type TClassSelectOptionsRes, type TClassUpdate, type TClassUpdateRes, type TDeletableLessonsRes, type TDeleteDeletableLessonsRes, type TDistrictEntity, type TExtendLessonTimesDTO, type TLesson, type TLessonCheckOverlap, type TLessonCheckOverlapRes, type TLessonEdit, type TLessonEditRes, type TLessonEntity, type TLessonListMeTutor, type TLessonListMeTutorRes, type TLessonPrepare, type TLessonPrepareRes, type TLessonRequest, type TLessonRequestDTO, type TLessonRequestFailedOverlappedData, type TLessonRequestRes, type TLessonRequestSingle, type TLessonRequestSingleRes, type TNotificationEntity, type TProgramEntity, type TProgramOptionsMe, type TProgramOptionsMeRes, type TProgramRegisteredMeTutorEdit, type TProgramRegisteredMeTutorEditRes, type TProgramStudentCheckAllowRegister, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TRegisteredProgramCountStatusRes, type TRegisteredProgramCreatePost, type TRegisteredProgramCreateRes, type TRegisteredProgramEntity, type TRegisteredProgramListSentMeDTO, type TRegisteredProgramListSentMeRes, type TStudent, type TStudentEntity, type TTutorEntity, type TTutorListStudents, type TTutorListStudentsRes };
817
+ export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, 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_REGISTERED_PROGRAM_STATUS, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJECT_SORT_TYPE, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, REFRESH_TYPE, REGISTERED_PROGRAM_STATUS, REGISTER_METHOD, REGISTER_PROGRAM_TIME, ResponseStatus, SCHOOL_STATUS, SORT_TYPE, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TCLassStatistic, type TCLassStatisticRes, type TCLassStudentStatistic, type TCLassStudentStatisticRes, type TClasStudentCountStatusRes, type TClassCountStatusRes, type TClassEntity, type TClassLearningTimeEntity, type TClassMeCreate, type TClassMeCreateRes, type TClassMeDetail, type TClassMeDetailRes, type TClassMeList, type TClassMeListRes, type TClassNotificationCreate, type TClassNotificationCreateRes, type TClassNotificationEntity, type TClassNotificationList, type TClassNotificationListRes, type TClassNotificationUpdate, type TClassNotificationUpdateRes, type TClassSelectOptionsRes, type TClassStudentList, type TClassStudentListRes, type TClassUpdate, type TClassUpdateRes, type TDeletableLessonsRes, type TDeleteDeletableLessonsRes, type TDistrictEntity, type TExtendLessonTimesDTO, type TLesson, type TLessonCheckOverlap, type TLessonCheckOverlapRes, type TLessonEdit, type TLessonEditRes, type TLessonEntity, type TLessonListMeTutor, type TLessonListMeTutorRes, type TLessonPrepare, type TLessonPrepareRes, type TLessonRequest, type TLessonRequestDTO, type TLessonRequestFailedOverlappedData, type TLessonRequestRes, type TLessonRequestSingle, type TLessonRequestSingleRes, type TLessonStudentList, type TLessonStudentListRes, type TNotificationEntity, type TProgramEntity, type TProgramOptionsMe, type TProgramOptionsMeRes, type TProgramRegisteredMeTutorEdit, type TProgramRegisteredMeTutorEditRes, type TProgramStudentCheckAllowRegister, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TRegisteredProgramCountStatusRes, type TRegisteredProgramCreatePost, type TRegisteredProgramCreateRes, type TRegisteredProgramEntity, type TRegisteredProgramListSentMeDTO, type TRegisteredProgramListSentMeRes, type TStudent, type TStudentEntity, type TTutorEntity, type TTutorListStudents, type TTutorListStudentsRes };
package/dist/index.d.ts CHANGED
@@ -88,7 +88,8 @@ declare enum CLASS_STATUS {
88
88
  WAIT_FOR_ACCEPTING = "WAIT_FOR_ACCEPTING",
89
89
  HAPPENING = "HAPPENING",
90
90
  PENDING = "PENDING",
91
- FINISHED = "FINISHED"
91
+ FINISHED = "FINISHED",
92
+ CANCELED = "CANCELED"
92
93
  }
93
94
  declare enum CLASS_STATUS_TUTOR_EDIT {
94
95
  HAPPENING = "HAPPENING",
@@ -433,6 +434,10 @@ declare const OBJECT_CLASS_STATUS: {
433
434
  value: CLASS_STATUS;
434
435
  label: string;
435
436
  };
437
+ CANCELED: {
438
+ value: CLASS_STATUS;
439
+ label: string;
440
+ };
436
441
  };
437
442
  declare const OBJECT_DAY_OF_WEEK: {
438
443
  MONDAY: {
@@ -577,6 +582,20 @@ type TTutorListStudents = {
577
582
  fullname?: string;
578
583
  createdAtSort?: SORT_TYPE;
579
584
  } & BasePaginationParams;
585
+ type TClassStudentList = {
586
+ status?: CLASS_STATUS;
587
+ name?: string;
588
+ } & BasePaginationParams;
589
+ type TLessonStudentList = {
590
+ classId: string;
591
+ fromDate: string;
592
+ toDate: string;
593
+ } & BasePaginationParams;
594
+ type TCLassStudentStatistic = {
595
+ classId: string;
596
+ startTime?: string;
597
+ endTime?: string;
598
+ };
580
599
 
581
600
  type TProgramRegisteredMeTutorEdit = {
582
601
  id: string;
@@ -704,6 +723,24 @@ type TCLassStatisticRes = {
704
723
  totalUnconfirmedFee: number;
705
724
  totalUnpaidFee: number;
706
725
  };
726
+ type TCLassStudentStatisticRes = {
727
+ total: number;
728
+ totalCompleted: number;
729
+ totalNew: number;
730
+ totalCancelled: number;
731
+ totalConfirmed: number;
732
+ totalPaid: number;
733
+ totalUnconfirmed: number;
734
+ totalUnpaid: number;
735
+ totalFee: number;
736
+ totalCompletedFee: number;
737
+ totalNewFee: number;
738
+ totalCancelledFee: number;
739
+ totalConfirmedFee: number;
740
+ totalPaidFee: number;
741
+ totalUnconfirmedFee: number;
742
+ totalUnpaidFee: number;
743
+ };
707
744
  type TClassNotificationCreateRes = TClassNotificationEntity;
708
745
  type TClassNotificationUpdateRes = TClassNotificationEntity;
709
746
  type TClassNotificationListRes = {
@@ -720,6 +757,15 @@ type TClassCountStatusRes = {
720
757
  totalHappening: number;
721
758
  totalPending: number;
722
759
  totalWaitingForAccepting: number;
760
+ totalCancelled: number;
761
+ };
762
+ type TClasStudentCountStatusRes = {
763
+ total: number;
764
+ totalFinish: number;
765
+ totalHappening: number;
766
+ totalPending: number;
767
+ totalWaitingForAccepting: number;
768
+ totalCancelled: number;
723
769
  };
724
770
  type TRegisteredProgramCountStatusRes = {
725
771
  total: number;
@@ -759,5 +805,13 @@ type TProgramStudentCheckAllowRegister = {
759
805
  maxCreateAt: string | null;
760
806
  allow: boolean;
761
807
  };
808
+ type TClassStudentListRes = {
809
+ classes: TClassEntity[];
810
+ count: number;
811
+ };
812
+ type TLessonStudentListRes = {
813
+ lessons: TLessonEntity[];
814
+ total: number;
815
+ };
762
816
 
763
- export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, 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_REGISTERED_PROGRAM_STATUS, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJECT_SORT_TYPE, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, REFRESH_TYPE, REGISTERED_PROGRAM_STATUS, REGISTER_METHOD, REGISTER_PROGRAM_TIME, ResponseStatus, SCHOOL_STATUS, SORT_TYPE, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TCLassStatistic, type TCLassStatisticRes, type TClassCountStatusRes, type TClassEntity, type TClassLearningTimeEntity, type TClassMeCreate, type TClassMeCreateRes, type TClassMeDetail, type TClassMeDetailRes, type TClassMeList, type TClassMeListRes, type TClassNotificationCreate, type TClassNotificationCreateRes, type TClassNotificationEntity, type TClassNotificationList, type TClassNotificationListRes, type TClassNotificationUpdate, type TClassNotificationUpdateRes, type TClassSelectOptionsRes, type TClassUpdate, type TClassUpdateRes, type TDeletableLessonsRes, type TDeleteDeletableLessonsRes, type TDistrictEntity, type TExtendLessonTimesDTO, type TLesson, type TLessonCheckOverlap, type TLessonCheckOverlapRes, type TLessonEdit, type TLessonEditRes, type TLessonEntity, type TLessonListMeTutor, type TLessonListMeTutorRes, type TLessonPrepare, type TLessonPrepareRes, type TLessonRequest, type TLessonRequestDTO, type TLessonRequestFailedOverlappedData, type TLessonRequestRes, type TLessonRequestSingle, type TLessonRequestSingleRes, type TNotificationEntity, type TProgramEntity, type TProgramOptionsMe, type TProgramOptionsMeRes, type TProgramRegisteredMeTutorEdit, type TProgramRegisteredMeTutorEditRes, type TProgramStudentCheckAllowRegister, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TRegisteredProgramCountStatusRes, type TRegisteredProgramCreatePost, type TRegisteredProgramCreateRes, type TRegisteredProgramEntity, type TRegisteredProgramListSentMeDTO, type TRegisteredProgramListSentMeRes, type TStudent, type TStudentEntity, type TTutorEntity, type TTutorListStudents, type TTutorListStudentsRes };
817
+ export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, 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_REGISTERED_PROGRAM_STATUS, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJECT_SORT_TYPE, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, REFRESH_TYPE, REGISTERED_PROGRAM_STATUS, REGISTER_METHOD, REGISTER_PROGRAM_TIME, ResponseStatus, SCHOOL_STATUS, SORT_TYPE, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TCLassStatistic, type TCLassStatisticRes, type TCLassStudentStatistic, type TCLassStudentStatisticRes, type TClasStudentCountStatusRes, type TClassCountStatusRes, type TClassEntity, type TClassLearningTimeEntity, type TClassMeCreate, type TClassMeCreateRes, type TClassMeDetail, type TClassMeDetailRes, type TClassMeList, type TClassMeListRes, type TClassNotificationCreate, type TClassNotificationCreateRes, type TClassNotificationEntity, type TClassNotificationList, type TClassNotificationListRes, type TClassNotificationUpdate, type TClassNotificationUpdateRes, type TClassSelectOptionsRes, type TClassStudentList, type TClassStudentListRes, type TClassUpdate, type TClassUpdateRes, type TDeletableLessonsRes, type TDeleteDeletableLessonsRes, type TDistrictEntity, type TExtendLessonTimesDTO, type TLesson, type TLessonCheckOverlap, type TLessonCheckOverlapRes, type TLessonEdit, type TLessonEditRes, type TLessonEntity, type TLessonListMeTutor, type TLessonListMeTutorRes, type TLessonPrepare, type TLessonPrepareRes, type TLessonRequest, type TLessonRequestDTO, type TLessonRequestFailedOverlappedData, type TLessonRequestRes, type TLessonRequestSingle, type TLessonRequestSingleRes, type TLessonStudentList, type TLessonStudentListRes, type TNotificationEntity, type TProgramEntity, type TProgramOptionsMe, type TProgramOptionsMeRes, type TProgramRegisteredMeTutorEdit, type TProgramRegisteredMeTutorEditRes, type TProgramStudentCheckAllowRegister, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TRegisteredProgramCountStatusRes, type TRegisteredProgramCreatePost, type TRegisteredProgramCreateRes, type TRegisteredProgramEntity, type TRegisteredProgramListSentMeDTO, type TRegisteredProgramListSentMeRes, type TStudent, type TStudentEntity, type TTutorEntity, type TTutorListStudents, type TTutorListStudentsRes };
package/dist/index.mjs CHANGED
@@ -80,6 +80,7 @@ var CLASS_STATUS = /* @__PURE__ */ ((CLASS_STATUS2) => {
80
80
  CLASS_STATUS2["HAPPENING"] = "HAPPENING";
81
81
  CLASS_STATUS2["PENDING"] = "PENDING";
82
82
  CLASS_STATUS2["FINISHED"] = "FINISHED";
83
+ CLASS_STATUS2["CANCELED"] = "CANCELED";
83
84
  return CLASS_STATUS2;
84
85
  })(CLASS_STATUS || {});
85
86
  var CLASS_STATUS_TUTOR_EDIT = /* @__PURE__ */ ((CLASS_STATUS_TUTOR_EDIT2) => {
@@ -268,6 +269,10 @@ var OBJECT_CLASS_STATUS = {
268
269
  ["FINISHED" /* FINISHED */]: {
269
270
  value: "FINISHED" /* FINISHED */,
270
271
  label: "Ho\xE0n th\xE0nh"
272
+ },
273
+ ["CANCELED" /* CANCELED */]: {
274
+ value: "CANCELED" /* CANCELED */,
275
+ label: "\u0110\xE3 hu\u1EF7"
271
276
  }
272
277
  };
273
278
  var OBJECT_DAY_OF_WEEK = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gst-common",
3
- "version": "1.2.61",
3
+ "version": "1.2.63",
4
4
  "description": "store all common variables that we need",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",