gst-common 1.2.55 → 1.2.57

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
@@ -22,6 +22,7 @@ var index_exports = {};
22
22
  __export(index_exports, {
23
23
  CLASS_STATUS: () => CLASS_STATUS,
24
24
  CLASS_STATUS_TUTOR_EDIT: () => CLASS_STATUS_TUTOR_EDIT,
25
+ COMMON_ROUTES: () => COMMON_ROUTES,
25
26
  CUSTOMER_TYPE: () => CUSTOMER_TYPE,
26
27
  DAY_OF_WEEK: () => DAY_OF_WEEK,
27
28
  GENDER: () => GENDER,
@@ -54,6 +55,9 @@ module.exports = __toCommonJS(index_exports);
54
55
 
55
56
  // src/constant.ts
56
57
  var OTP_RESEND_TIME = 20;
58
+ var COMMON_ROUTES = {
59
+ registeredProgram: "/registered-program"
60
+ };
57
61
 
58
62
  // src/type.ts
59
63
  var CUSTOMER_TYPE = /* @__PURE__ */ ((CUSTOMER_TYPE2) => {
@@ -368,6 +372,7 @@ var OBJECT_LESSON_ACTIVITY_STATUS = {
368
372
  0 && (module.exports = {
369
373
  CLASS_STATUS,
370
374
  CLASS_STATUS_TUTOR_EDIT,
375
+ COMMON_ROUTES,
371
376
  CUSTOMER_TYPE,
372
377
  DAY_OF_WEEK,
373
378
  GENDER,
package/dist/index.d.cts CHANGED
@@ -1,4 +1,7 @@
1
1
  declare const OTP_RESEND_TIME = 20;
2
+ declare const COMMON_ROUTES: {
3
+ registeredProgram: string;
4
+ };
2
5
 
3
6
  declare enum CUSTOMER_TYPE {
4
7
  TUTOR = "tutor",
@@ -570,6 +573,7 @@ type TClassNotificationList = {
570
573
  } & BasePaginationParams;
571
574
  type TTutorListStudents = {
572
575
  fullname?: string;
576
+ createdAtSort?: SORT_TYPE;
573
577
  } & BasePaginationParams;
574
578
 
575
579
  type TProgramRegisteredMeTutorEdit = {
@@ -736,15 +740,17 @@ type TTutorListStudentsRes = {
736
740
  students: {
737
741
  studentId: string;
738
742
  studentName: string;
743
+ lastJoinedAt: string;
739
744
  studentAvatar: string | null;
740
745
  phoneNumber: string | null;
741
746
  classes: {
742
747
  classId: string;
743
748
  className: string;
744
749
  classStatus: CLASS_STATUS;
750
+ classCreatedAt: string;
745
751
  }[];
746
752
  }[];
747
753
  total: number;
748
754
  };
749
755
 
750
- export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, CLASS_STATUS_TUTOR_EDIT, 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, 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 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 };
756
+ 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, 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 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
@@ -1,4 +1,7 @@
1
1
  declare const OTP_RESEND_TIME = 20;
2
+ declare const COMMON_ROUTES: {
3
+ registeredProgram: string;
4
+ };
2
5
 
3
6
  declare enum CUSTOMER_TYPE {
4
7
  TUTOR = "tutor",
@@ -570,6 +573,7 @@ type TClassNotificationList = {
570
573
  } & BasePaginationParams;
571
574
  type TTutorListStudents = {
572
575
  fullname?: string;
576
+ createdAtSort?: SORT_TYPE;
573
577
  } & BasePaginationParams;
574
578
 
575
579
  type TProgramRegisteredMeTutorEdit = {
@@ -736,15 +740,17 @@ type TTutorListStudentsRes = {
736
740
  students: {
737
741
  studentId: string;
738
742
  studentName: string;
743
+ lastJoinedAt: string;
739
744
  studentAvatar: string | null;
740
745
  phoneNumber: string | null;
741
746
  classes: {
742
747
  classId: string;
743
748
  className: string;
744
749
  classStatus: CLASS_STATUS;
750
+ classCreatedAt: string;
745
751
  }[];
746
752
  }[];
747
753
  total: number;
748
754
  };
749
755
 
750
- export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, CLASS_STATUS_TUTOR_EDIT, 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, 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 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 };
756
+ 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, 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 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
@@ -1,5 +1,8 @@
1
1
  // src/constant.ts
2
2
  var OTP_RESEND_TIME = 20;
3
+ var COMMON_ROUTES = {
4
+ registeredProgram: "/registered-program"
5
+ };
3
6
 
4
7
  // src/type.ts
5
8
  var CUSTOMER_TYPE = /* @__PURE__ */ ((CUSTOMER_TYPE2) => {
@@ -313,6 +316,7 @@ var OBJECT_LESSON_ACTIVITY_STATUS = {
313
316
  export {
314
317
  CLASS_STATUS,
315
318
  CLASS_STATUS_TUTOR_EDIT,
319
+ COMMON_ROUTES,
316
320
  CUSTOMER_TYPE,
317
321
  DAY_OF_WEEK,
318
322
  GENDER,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gst-common",
3
- "version": "1.2.55",
3
+ "version": "1.2.57",
4
4
  "description": "store all common variables that we need",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",