gst-common 1.3.95 → 1.3.97

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
@@ -49,6 +49,8 @@ __export(index_exports, {
49
49
  OBJECT_SORT_TYPE: () => OBJECT_SORT_TYPE,
50
50
  OBJ_SESSION_PER_WEEK: () => OBJ_SESSION_PER_WEEK,
51
51
  OTP_RESEND_TIME: () => OTP_RESEND_TIME,
52
+ POST_TYPE: () => POST_TYPE,
53
+ PROGRAM_DETAIL_TABS: () => PROGRAM_DETAIL_TABS,
52
54
  PROGRAM_METHOD: () => PROGRAM_METHOD,
53
55
  PROGRAM_SUITABLE_LEARNER: () => PROGRAM_SUITABLE_LEARNER,
54
56
  QUESTION_TYPES: () => QUESTION_TYPES,
@@ -74,6 +76,10 @@ var COMMON_ROUTES = {
74
76
  },
75
77
  studentClassDetail: (id) => {
76
78
  return `/student-class-detail/${id}`;
79
+ },
80
+ programDetail: (id, tab) => {
81
+ if (tab) return `/program-detail/${id}?tab=${tab}`;
82
+ return `/program-detail/${id}`;
77
83
  }
78
84
  };
79
85
  var REGISTER_PROGRAM_TIME = 12 * 60 * 60;
@@ -216,6 +222,16 @@ var SESSION_GROUP_QUESTION = /* @__PURE__ */ ((SESSION_GROUP_QUESTION2) => {
216
222
  SESSION_GROUP_QUESTION2["FINISHED"] = "FINISHED";
217
223
  return SESSION_GROUP_QUESTION2;
218
224
  })(SESSION_GROUP_QUESTION || {});
225
+ var PROGRAM_DETAIL_TABS = /* @__PURE__ */ ((PROGRAM_DETAIL_TABS2) => {
226
+ PROGRAM_DETAIL_TABS2["INTRODUCTION"] = "INTRODUCTION";
227
+ PROGRAM_DETAIL_TABS2["RATING"] = "RATING";
228
+ return PROGRAM_DETAIL_TABS2;
229
+ })(PROGRAM_DETAIL_TABS || {});
230
+ var POST_TYPE = /* @__PURE__ */ ((POST_TYPE2) => {
231
+ POST_TYPE2["DOCUMENT_SHARE"] = "DOCUMENT_SHARE";
232
+ POST_TYPE2["DISCUSSION"] = "DISCUSSION";
233
+ return POST_TYPE2;
234
+ })(POST_TYPE || {});
219
235
 
220
236
  // src/object-enum.ts
221
237
  var OBJECT_REGISTER_METHOD = {
@@ -497,6 +513,8 @@ var OBJECT_RATING = {
497
513
  OBJECT_SORT_TYPE,
498
514
  OBJ_SESSION_PER_WEEK,
499
515
  OTP_RESEND_TIME,
516
+ POST_TYPE,
517
+ PROGRAM_DETAIL_TABS,
500
518
  PROGRAM_METHOD,
501
519
  PROGRAM_SUITABLE_LEARNER,
502
520
  QUESTION_TYPES,
package/dist/index.d.cts CHANGED
@@ -1,137 +1,3 @@
1
- declare const OTP_RESEND_TIME = 20;
2
- declare const COMMON_ROUTES: {
3
- classList: string;
4
- registeredProgram: string;
5
- studentClassList: string;
6
- classDetail: (id: string) => string;
7
- studentClassDetail: (id: string) => string;
8
- };
9
- declare const REGISTER_PROGRAM_TIME: number;
10
- declare const AT_LEAST_ALLOW_RATING_PROGRAM_HOUR = 1;
11
- declare const AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS = 1;
12
- declare const ACCEPTED_IMAGE_TYPES: string[];
13
- declare const ACCEPTED_VIDEO_TYPES: string[];
14
-
15
- declare enum CUSTOMER_TYPE {
16
- TUTOR = "tutor",
17
- STUDENT = "student"
18
- }
19
- declare enum REGISTER_METHOD {
20
- EMAIL = "email",
21
- GOOGLE = "google"
22
- }
23
- declare enum GENDER {
24
- MALE = "male",
25
- FEMALE = "female"
26
- }
27
- declare enum PROGRAM_METHOD {
28
- ONLINE = "online",
29
- OFFLINE = "offline",
30
- ONLINE_OFFLINE = "online/offline"
31
- }
32
- declare enum ResponseStatus {
33
- Success = "success",
34
- BadRequest = "bad_request",
35
- NotFound = "not_found",
36
- Unauthorized = "unauthorized",
37
- Forbidden = "forbidden",
38
- InternalServerError = "internal_server_error"
39
- }
40
- type BaseResponse<T = any> = {
41
- status: ResponseStatus;
42
- message: string;
43
- data: T;
44
- };
45
- type BasePaginationParams = {
46
- page?: number;
47
- limit?: number;
48
- };
49
- type BaseEntity = {
50
- id: string;
51
- createdAt: string;
52
- updatedAt: string;
53
- deletedAt: string | null;
54
- createdBy: TAccountEntity | null;
55
- updatedBy: TAccountEntity | null;
56
- };
57
- type DATA_THIRD_PARTY_LOGIN = {
58
- fullname: string;
59
- providerId: string;
60
- provider: REGISTER_METHOD;
61
- avatar?: string;
62
- };
63
- declare enum PROGRAM_SUITABLE_LEARNER {
64
- PRIMARY_STUDENT = "primary_student",
65
- SECONDARY_STUDENT = "secondary_student",
66
- HIGHT_SCHOOL_STUDENT = "hight_school_student",
67
- UNIVERSITY_STUDENT = "university_student",
68
- WORKING_PEOPLE = "working_people"
69
- }
70
- declare enum SCHOOL_STATUS {
71
- CURRENT = "CURRENT",
72
- GRADUATED = "GRADUATED"
73
- }
74
- declare enum NOTIFICATION_TYPE {
75
- PROGRAM_REGISTER = "program_register",
76
- STANDARD = "STANDARD"
77
- }
78
- declare enum NOTIFICATION_STATUS {
79
- UNREAD = "UNREAD",
80
- READ = "READ"
81
- }
82
- declare enum REGISTERED_PROGRAM_STATUS {
83
- NEW = "NEW",
84
- TESTED = "TESTED",
85
- ACCEPTED = "ACCEPTED",
86
- REJECTED = "REJECTED"
87
- }
88
- declare enum REFRESH_TYPE {
89
- NOTIFICATION = "NOTIFICATION"
90
- }
91
- declare enum SORT_TYPE {
92
- ASC = "ASC",
93
- DESC = "DESC"
94
- }
95
- declare enum CLASS_STATUS {
96
- WAIT_FOR_ACCEPTING = "WAIT_FOR_ACCEPTING",
97
- HAPPENING = "HAPPENING",
98
- PENDING = "PENDING",
99
- FINISHED = "FINISHED",
100
- CANCELED = "CANCELED"
101
- }
102
- declare enum CLASS_STATUS_TUTOR_EDIT {
103
- HAPPENING = "HAPPENING",
104
- PENDING = "PENDING",
105
- FINISHED = "FINISHED"
106
- }
107
- declare enum CLASS_STATUS_STUDENT_EDIT {
108
- CANCELED = "CANCELED",
109
- HAPPENING = "HAPPENING"
110
- }
111
- declare enum LESSON_ACTIVITY_STATUS {
112
- NEW = "NEW",
113
- CANCELED = "CANCELED",
114
- COMPLETED = "COMPLETED"
115
- }
116
- declare enum DAY_OF_WEEK {
117
- MONDAY = "MONDAY",
118
- TUESDAY = "TUESDAY",
119
- WEDNESDAY = "WEDNESDAY",
120
- THURSDAY = "THURSDAY",
121
- FRIDAY = "FRIDAY",
122
- SATURDAY = "SATURDAY",
123
- SUNDAY = "SUNDAY"
124
- }
125
- declare enum QUESTION_TYPES {
126
- CHOICES = "CHOICES",
127
- ESSAY = "ESSAY",
128
- WORD_ARRANGEMENT = "WORD_ARRANGEMENT"
129
- }
130
- declare enum SESSION_GROUP_QUESTION {
131
- IN_PROCESS = "IN_PROCESS",
132
- FINISHED = "FINISHED"
133
- }
134
-
135
1
  type TProgramSuitableLearnerEntity = {
136
2
  suitableLeanerCode: PROGRAM_SUITABLE_LEARNER;
137
3
  program: TProgramEntity;
@@ -356,6 +222,149 @@ type TProgramRatingEntity = {
356
222
  comment: string;
357
223
  } & BaseEntity;
358
224
 
225
+ declare enum CUSTOMER_TYPE {
226
+ TUTOR = "tutor",
227
+ STUDENT = "student"
228
+ }
229
+ declare enum REGISTER_METHOD {
230
+ EMAIL = "email",
231
+ GOOGLE = "google"
232
+ }
233
+ declare enum GENDER {
234
+ MALE = "male",
235
+ FEMALE = "female"
236
+ }
237
+ declare enum PROGRAM_METHOD {
238
+ ONLINE = "online",
239
+ OFFLINE = "offline",
240
+ ONLINE_OFFLINE = "online/offline"
241
+ }
242
+ declare enum ResponseStatus {
243
+ Success = "success",
244
+ BadRequest = "bad_request",
245
+ NotFound = "not_found",
246
+ Unauthorized = "unauthorized",
247
+ Forbidden = "forbidden",
248
+ InternalServerError = "internal_server_error"
249
+ }
250
+ type BaseResponse<T = any> = {
251
+ status: ResponseStatus;
252
+ message: string;
253
+ data: T;
254
+ };
255
+ type BasePaginationParams = {
256
+ page?: number;
257
+ limit?: number;
258
+ };
259
+ type BaseEntity = {
260
+ id: string;
261
+ createdAt: string;
262
+ updatedAt: string;
263
+ deletedAt: string | null;
264
+ createdBy: TAccountEntity | null;
265
+ updatedBy: TAccountEntity | null;
266
+ };
267
+ type DATA_THIRD_PARTY_LOGIN = {
268
+ fullname: string;
269
+ providerId: string;
270
+ provider: REGISTER_METHOD;
271
+ avatar?: string;
272
+ };
273
+ declare enum PROGRAM_SUITABLE_LEARNER {
274
+ PRIMARY_STUDENT = "primary_student",
275
+ SECONDARY_STUDENT = "secondary_student",
276
+ HIGHT_SCHOOL_STUDENT = "hight_school_student",
277
+ UNIVERSITY_STUDENT = "university_student",
278
+ WORKING_PEOPLE = "working_people"
279
+ }
280
+ declare enum SCHOOL_STATUS {
281
+ CURRENT = "CURRENT",
282
+ GRADUATED = "GRADUATED"
283
+ }
284
+ declare enum NOTIFICATION_TYPE {
285
+ PROGRAM_REGISTER = "program_register",
286
+ STANDARD = "STANDARD"
287
+ }
288
+ declare enum NOTIFICATION_STATUS {
289
+ UNREAD = "UNREAD",
290
+ READ = "READ"
291
+ }
292
+ declare enum REGISTERED_PROGRAM_STATUS {
293
+ NEW = "NEW",
294
+ TESTED = "TESTED",
295
+ ACCEPTED = "ACCEPTED",
296
+ REJECTED = "REJECTED"
297
+ }
298
+ declare enum REFRESH_TYPE {
299
+ NOTIFICATION = "NOTIFICATION"
300
+ }
301
+ declare enum SORT_TYPE {
302
+ ASC = "ASC",
303
+ DESC = "DESC"
304
+ }
305
+ declare enum CLASS_STATUS {
306
+ WAIT_FOR_ACCEPTING = "WAIT_FOR_ACCEPTING",
307
+ HAPPENING = "HAPPENING",
308
+ PENDING = "PENDING",
309
+ FINISHED = "FINISHED",
310
+ CANCELED = "CANCELED"
311
+ }
312
+ declare enum CLASS_STATUS_TUTOR_EDIT {
313
+ HAPPENING = "HAPPENING",
314
+ PENDING = "PENDING",
315
+ FINISHED = "FINISHED"
316
+ }
317
+ declare enum CLASS_STATUS_STUDENT_EDIT {
318
+ CANCELED = "CANCELED",
319
+ HAPPENING = "HAPPENING"
320
+ }
321
+ declare enum LESSON_ACTIVITY_STATUS {
322
+ NEW = "NEW",
323
+ CANCELED = "CANCELED",
324
+ COMPLETED = "COMPLETED"
325
+ }
326
+ declare enum DAY_OF_WEEK {
327
+ MONDAY = "MONDAY",
328
+ TUESDAY = "TUESDAY",
329
+ WEDNESDAY = "WEDNESDAY",
330
+ THURSDAY = "THURSDAY",
331
+ FRIDAY = "FRIDAY",
332
+ SATURDAY = "SATURDAY",
333
+ SUNDAY = "SUNDAY"
334
+ }
335
+ declare enum QUESTION_TYPES {
336
+ CHOICES = "CHOICES",
337
+ ESSAY = "ESSAY",
338
+ WORD_ARRANGEMENT = "WORD_ARRANGEMENT"
339
+ }
340
+ declare enum SESSION_GROUP_QUESTION {
341
+ IN_PROCESS = "IN_PROCESS",
342
+ FINISHED = "FINISHED"
343
+ }
344
+ declare enum PROGRAM_DETAIL_TABS {
345
+ INTRODUCTION = "INTRODUCTION",
346
+ RATING = "RATING"
347
+ }
348
+ declare enum POST_TYPE {
349
+ DOCUMENT_SHARE = "DOCUMENT_SHARE",
350
+ DISCUSSION = "DISCUSSION"
351
+ }
352
+
353
+ declare const OTP_RESEND_TIME = 20;
354
+ declare const COMMON_ROUTES: {
355
+ classList: string;
356
+ registeredProgram: string;
357
+ studentClassList: string;
358
+ classDetail: (id: string) => string;
359
+ studentClassDetail: (id: string) => string;
360
+ programDetail: (id: string, tab: PROGRAM_DETAIL_TABS) => string;
361
+ };
362
+ declare const REGISTER_PROGRAM_TIME: number;
363
+ declare const AT_LEAST_ALLOW_RATING_PROGRAM_HOUR = 1;
364
+ declare const AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS = 1;
365
+ declare const ACCEPTED_IMAGE_TYPES: string[];
366
+ declare const ACCEPTED_VIDEO_TYPES: string[];
367
+
359
368
  declare const OBJECT_REGISTER_METHOD: {
360
369
  email: {
361
370
  value: REGISTER_METHOD;
@@ -1461,4 +1470,4 @@ type TProgramRatingStudentCanRateRes = (TClassEntity & {
1461
1470
  program: TProgramEntity;
1462
1471
  })[];
1463
1472
 
1464
- export { ACCEPTED_IMAGE_TYPES, ACCEPTED_VIDEO_TYPES, 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 TProgramRatingPublicCountByScoreRes, type TProgramRatingPublicList, type TProgramRatingPublicListRes, type TProgramRatingStudentCanRate, type TProgramRatingStudentCanRateRes, type TProgramRatingStudentCreateRating, type TProgramRatingStudentCreateRatingRes, type TProgramRatingStudentDeleteRatingRes, type TProgramRatingStudentHasRated, type TProgramRatingStudentHasRatedRes, type TProgramRatingStudentUpdateRating, type TProgramRatingStudentUpdateRatingRes, type TProgramRatingUpload, type TProgramRatingUploadRes, 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 };
1473
+ export { ACCEPTED_IMAGE_TYPES, ACCEPTED_VIDEO_TYPES, 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, POST_TYPE, PROGRAM_DETAIL_TABS, 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 TProgramRatingPublicCountByScoreRes, type TProgramRatingPublicList, type TProgramRatingPublicListRes, type TProgramRatingStudentCanRate, type TProgramRatingStudentCanRateRes, type TProgramRatingStudentCreateRating, type TProgramRatingStudentCreateRatingRes, type TProgramRatingStudentDeleteRatingRes, type TProgramRatingStudentHasRated, type TProgramRatingStudentHasRatedRes, type TProgramRatingStudentUpdateRating, type TProgramRatingStudentUpdateRatingRes, type TProgramRatingUpload, type TProgramRatingUploadRes, 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
@@ -1,137 +1,3 @@
1
- declare const OTP_RESEND_TIME = 20;
2
- declare const COMMON_ROUTES: {
3
- classList: string;
4
- registeredProgram: string;
5
- studentClassList: string;
6
- classDetail: (id: string) => string;
7
- studentClassDetail: (id: string) => string;
8
- };
9
- declare const REGISTER_PROGRAM_TIME: number;
10
- declare const AT_LEAST_ALLOW_RATING_PROGRAM_HOUR = 1;
11
- declare const AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS = 1;
12
- declare const ACCEPTED_IMAGE_TYPES: string[];
13
- declare const ACCEPTED_VIDEO_TYPES: string[];
14
-
15
- declare enum CUSTOMER_TYPE {
16
- TUTOR = "tutor",
17
- STUDENT = "student"
18
- }
19
- declare enum REGISTER_METHOD {
20
- EMAIL = "email",
21
- GOOGLE = "google"
22
- }
23
- declare enum GENDER {
24
- MALE = "male",
25
- FEMALE = "female"
26
- }
27
- declare enum PROGRAM_METHOD {
28
- ONLINE = "online",
29
- OFFLINE = "offline",
30
- ONLINE_OFFLINE = "online/offline"
31
- }
32
- declare enum ResponseStatus {
33
- Success = "success",
34
- BadRequest = "bad_request",
35
- NotFound = "not_found",
36
- Unauthorized = "unauthorized",
37
- Forbidden = "forbidden",
38
- InternalServerError = "internal_server_error"
39
- }
40
- type BaseResponse<T = any> = {
41
- status: ResponseStatus;
42
- message: string;
43
- data: T;
44
- };
45
- type BasePaginationParams = {
46
- page?: number;
47
- limit?: number;
48
- };
49
- type BaseEntity = {
50
- id: string;
51
- createdAt: string;
52
- updatedAt: string;
53
- deletedAt: string | null;
54
- createdBy: TAccountEntity | null;
55
- updatedBy: TAccountEntity | null;
56
- };
57
- type DATA_THIRD_PARTY_LOGIN = {
58
- fullname: string;
59
- providerId: string;
60
- provider: REGISTER_METHOD;
61
- avatar?: string;
62
- };
63
- declare enum PROGRAM_SUITABLE_LEARNER {
64
- PRIMARY_STUDENT = "primary_student",
65
- SECONDARY_STUDENT = "secondary_student",
66
- HIGHT_SCHOOL_STUDENT = "hight_school_student",
67
- UNIVERSITY_STUDENT = "university_student",
68
- WORKING_PEOPLE = "working_people"
69
- }
70
- declare enum SCHOOL_STATUS {
71
- CURRENT = "CURRENT",
72
- GRADUATED = "GRADUATED"
73
- }
74
- declare enum NOTIFICATION_TYPE {
75
- PROGRAM_REGISTER = "program_register",
76
- STANDARD = "STANDARD"
77
- }
78
- declare enum NOTIFICATION_STATUS {
79
- UNREAD = "UNREAD",
80
- READ = "READ"
81
- }
82
- declare enum REGISTERED_PROGRAM_STATUS {
83
- NEW = "NEW",
84
- TESTED = "TESTED",
85
- ACCEPTED = "ACCEPTED",
86
- REJECTED = "REJECTED"
87
- }
88
- declare enum REFRESH_TYPE {
89
- NOTIFICATION = "NOTIFICATION"
90
- }
91
- declare enum SORT_TYPE {
92
- ASC = "ASC",
93
- DESC = "DESC"
94
- }
95
- declare enum CLASS_STATUS {
96
- WAIT_FOR_ACCEPTING = "WAIT_FOR_ACCEPTING",
97
- HAPPENING = "HAPPENING",
98
- PENDING = "PENDING",
99
- FINISHED = "FINISHED",
100
- CANCELED = "CANCELED"
101
- }
102
- declare enum CLASS_STATUS_TUTOR_EDIT {
103
- HAPPENING = "HAPPENING",
104
- PENDING = "PENDING",
105
- FINISHED = "FINISHED"
106
- }
107
- declare enum CLASS_STATUS_STUDENT_EDIT {
108
- CANCELED = "CANCELED",
109
- HAPPENING = "HAPPENING"
110
- }
111
- declare enum LESSON_ACTIVITY_STATUS {
112
- NEW = "NEW",
113
- CANCELED = "CANCELED",
114
- COMPLETED = "COMPLETED"
115
- }
116
- declare enum DAY_OF_WEEK {
117
- MONDAY = "MONDAY",
118
- TUESDAY = "TUESDAY",
119
- WEDNESDAY = "WEDNESDAY",
120
- THURSDAY = "THURSDAY",
121
- FRIDAY = "FRIDAY",
122
- SATURDAY = "SATURDAY",
123
- SUNDAY = "SUNDAY"
124
- }
125
- declare enum QUESTION_TYPES {
126
- CHOICES = "CHOICES",
127
- ESSAY = "ESSAY",
128
- WORD_ARRANGEMENT = "WORD_ARRANGEMENT"
129
- }
130
- declare enum SESSION_GROUP_QUESTION {
131
- IN_PROCESS = "IN_PROCESS",
132
- FINISHED = "FINISHED"
133
- }
134
-
135
1
  type TProgramSuitableLearnerEntity = {
136
2
  suitableLeanerCode: PROGRAM_SUITABLE_LEARNER;
137
3
  program: TProgramEntity;
@@ -356,6 +222,149 @@ type TProgramRatingEntity = {
356
222
  comment: string;
357
223
  } & BaseEntity;
358
224
 
225
+ declare enum CUSTOMER_TYPE {
226
+ TUTOR = "tutor",
227
+ STUDENT = "student"
228
+ }
229
+ declare enum REGISTER_METHOD {
230
+ EMAIL = "email",
231
+ GOOGLE = "google"
232
+ }
233
+ declare enum GENDER {
234
+ MALE = "male",
235
+ FEMALE = "female"
236
+ }
237
+ declare enum PROGRAM_METHOD {
238
+ ONLINE = "online",
239
+ OFFLINE = "offline",
240
+ ONLINE_OFFLINE = "online/offline"
241
+ }
242
+ declare enum ResponseStatus {
243
+ Success = "success",
244
+ BadRequest = "bad_request",
245
+ NotFound = "not_found",
246
+ Unauthorized = "unauthorized",
247
+ Forbidden = "forbidden",
248
+ InternalServerError = "internal_server_error"
249
+ }
250
+ type BaseResponse<T = any> = {
251
+ status: ResponseStatus;
252
+ message: string;
253
+ data: T;
254
+ };
255
+ type BasePaginationParams = {
256
+ page?: number;
257
+ limit?: number;
258
+ };
259
+ type BaseEntity = {
260
+ id: string;
261
+ createdAt: string;
262
+ updatedAt: string;
263
+ deletedAt: string | null;
264
+ createdBy: TAccountEntity | null;
265
+ updatedBy: TAccountEntity | null;
266
+ };
267
+ type DATA_THIRD_PARTY_LOGIN = {
268
+ fullname: string;
269
+ providerId: string;
270
+ provider: REGISTER_METHOD;
271
+ avatar?: string;
272
+ };
273
+ declare enum PROGRAM_SUITABLE_LEARNER {
274
+ PRIMARY_STUDENT = "primary_student",
275
+ SECONDARY_STUDENT = "secondary_student",
276
+ HIGHT_SCHOOL_STUDENT = "hight_school_student",
277
+ UNIVERSITY_STUDENT = "university_student",
278
+ WORKING_PEOPLE = "working_people"
279
+ }
280
+ declare enum SCHOOL_STATUS {
281
+ CURRENT = "CURRENT",
282
+ GRADUATED = "GRADUATED"
283
+ }
284
+ declare enum NOTIFICATION_TYPE {
285
+ PROGRAM_REGISTER = "program_register",
286
+ STANDARD = "STANDARD"
287
+ }
288
+ declare enum NOTIFICATION_STATUS {
289
+ UNREAD = "UNREAD",
290
+ READ = "READ"
291
+ }
292
+ declare enum REGISTERED_PROGRAM_STATUS {
293
+ NEW = "NEW",
294
+ TESTED = "TESTED",
295
+ ACCEPTED = "ACCEPTED",
296
+ REJECTED = "REJECTED"
297
+ }
298
+ declare enum REFRESH_TYPE {
299
+ NOTIFICATION = "NOTIFICATION"
300
+ }
301
+ declare enum SORT_TYPE {
302
+ ASC = "ASC",
303
+ DESC = "DESC"
304
+ }
305
+ declare enum CLASS_STATUS {
306
+ WAIT_FOR_ACCEPTING = "WAIT_FOR_ACCEPTING",
307
+ HAPPENING = "HAPPENING",
308
+ PENDING = "PENDING",
309
+ FINISHED = "FINISHED",
310
+ CANCELED = "CANCELED"
311
+ }
312
+ declare enum CLASS_STATUS_TUTOR_EDIT {
313
+ HAPPENING = "HAPPENING",
314
+ PENDING = "PENDING",
315
+ FINISHED = "FINISHED"
316
+ }
317
+ declare enum CLASS_STATUS_STUDENT_EDIT {
318
+ CANCELED = "CANCELED",
319
+ HAPPENING = "HAPPENING"
320
+ }
321
+ declare enum LESSON_ACTIVITY_STATUS {
322
+ NEW = "NEW",
323
+ CANCELED = "CANCELED",
324
+ COMPLETED = "COMPLETED"
325
+ }
326
+ declare enum DAY_OF_WEEK {
327
+ MONDAY = "MONDAY",
328
+ TUESDAY = "TUESDAY",
329
+ WEDNESDAY = "WEDNESDAY",
330
+ THURSDAY = "THURSDAY",
331
+ FRIDAY = "FRIDAY",
332
+ SATURDAY = "SATURDAY",
333
+ SUNDAY = "SUNDAY"
334
+ }
335
+ declare enum QUESTION_TYPES {
336
+ CHOICES = "CHOICES",
337
+ ESSAY = "ESSAY",
338
+ WORD_ARRANGEMENT = "WORD_ARRANGEMENT"
339
+ }
340
+ declare enum SESSION_GROUP_QUESTION {
341
+ IN_PROCESS = "IN_PROCESS",
342
+ FINISHED = "FINISHED"
343
+ }
344
+ declare enum PROGRAM_DETAIL_TABS {
345
+ INTRODUCTION = "INTRODUCTION",
346
+ RATING = "RATING"
347
+ }
348
+ declare enum POST_TYPE {
349
+ DOCUMENT_SHARE = "DOCUMENT_SHARE",
350
+ DISCUSSION = "DISCUSSION"
351
+ }
352
+
353
+ declare const OTP_RESEND_TIME = 20;
354
+ declare const COMMON_ROUTES: {
355
+ classList: string;
356
+ registeredProgram: string;
357
+ studentClassList: string;
358
+ classDetail: (id: string) => string;
359
+ studentClassDetail: (id: string) => string;
360
+ programDetail: (id: string, tab: PROGRAM_DETAIL_TABS) => string;
361
+ };
362
+ declare const REGISTER_PROGRAM_TIME: number;
363
+ declare const AT_LEAST_ALLOW_RATING_PROGRAM_HOUR = 1;
364
+ declare const AT_LEAST_ALLOW_RATING_PROGRAM_LESSONS = 1;
365
+ declare const ACCEPTED_IMAGE_TYPES: string[];
366
+ declare const ACCEPTED_VIDEO_TYPES: string[];
367
+
359
368
  declare const OBJECT_REGISTER_METHOD: {
360
369
  email: {
361
370
  value: REGISTER_METHOD;
@@ -1461,4 +1470,4 @@ type TProgramRatingStudentCanRateRes = (TClassEntity & {
1461
1470
  program: TProgramEntity;
1462
1471
  })[];
1463
1472
 
1464
- export { ACCEPTED_IMAGE_TYPES, ACCEPTED_VIDEO_TYPES, 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 TProgramRatingPublicCountByScoreRes, type TProgramRatingPublicList, type TProgramRatingPublicListRes, type TProgramRatingStudentCanRate, type TProgramRatingStudentCanRateRes, type TProgramRatingStudentCreateRating, type TProgramRatingStudentCreateRatingRes, type TProgramRatingStudentDeleteRatingRes, type TProgramRatingStudentHasRated, type TProgramRatingStudentHasRatedRes, type TProgramRatingStudentUpdateRating, type TProgramRatingStudentUpdateRatingRes, type TProgramRatingUpload, type TProgramRatingUploadRes, 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 };
1473
+ export { ACCEPTED_IMAGE_TYPES, ACCEPTED_VIDEO_TYPES, 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, POST_TYPE, PROGRAM_DETAIL_TABS, 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 TProgramRatingPublicCountByScoreRes, type TProgramRatingPublicList, type TProgramRatingPublicListRes, type TProgramRatingStudentCanRate, type TProgramRatingStudentCanRateRes, type TProgramRatingStudentCreateRating, type TProgramRatingStudentCreateRatingRes, type TProgramRatingStudentDeleteRatingRes, type TProgramRatingStudentHasRated, type TProgramRatingStudentHasRatedRes, type TProgramRatingStudentUpdateRating, type TProgramRatingStudentUpdateRatingRes, type TProgramRatingUpload, type TProgramRatingUploadRes, 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
@@ -9,6 +9,10 @@ var COMMON_ROUTES = {
9
9
  },
10
10
  studentClassDetail: (id) => {
11
11
  return `/student-class-detail/${id}`;
12
+ },
13
+ programDetail: (id, tab) => {
14
+ if (tab) return `/program-detail/${id}?tab=${tab}`;
15
+ return `/program-detail/${id}`;
12
16
  }
13
17
  };
14
18
  var REGISTER_PROGRAM_TIME = 12 * 60 * 60;
@@ -151,6 +155,16 @@ var SESSION_GROUP_QUESTION = /* @__PURE__ */ ((SESSION_GROUP_QUESTION2) => {
151
155
  SESSION_GROUP_QUESTION2["FINISHED"] = "FINISHED";
152
156
  return SESSION_GROUP_QUESTION2;
153
157
  })(SESSION_GROUP_QUESTION || {});
158
+ var PROGRAM_DETAIL_TABS = /* @__PURE__ */ ((PROGRAM_DETAIL_TABS2) => {
159
+ PROGRAM_DETAIL_TABS2["INTRODUCTION"] = "INTRODUCTION";
160
+ PROGRAM_DETAIL_TABS2["RATING"] = "RATING";
161
+ return PROGRAM_DETAIL_TABS2;
162
+ })(PROGRAM_DETAIL_TABS || {});
163
+ var POST_TYPE = /* @__PURE__ */ ((POST_TYPE2) => {
164
+ POST_TYPE2["DOCUMENT_SHARE"] = "DOCUMENT_SHARE";
165
+ POST_TYPE2["DISCUSSION"] = "DISCUSSION";
166
+ return POST_TYPE2;
167
+ })(POST_TYPE || {});
154
168
 
155
169
  // src/object-enum.ts
156
170
  var OBJECT_REGISTER_METHOD = {
@@ -431,6 +445,8 @@ export {
431
445
  OBJECT_SORT_TYPE,
432
446
  OBJ_SESSION_PER_WEEK,
433
447
  OTP_RESEND_TIME,
448
+ POST_TYPE,
449
+ PROGRAM_DETAIL_TABS,
434
450
  PROGRAM_METHOD,
435
451
  PROGRAM_SUITABLE_LEARNER,
436
452
  QUESTION_TYPES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gst-common",
3
- "version": "1.3.95",
3
+ "version": "1.3.97",
4
4
  "description": "store all common variables that we need",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",