gst-common 1.2.16 → 1.2.17

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.d.cts CHANGED
@@ -39,8 +39,8 @@ type BaseEntity = {
39
39
  createdAt: string;
40
40
  updatedAt: string;
41
41
  deletedAt: string | null;
42
- createdBy?: TAccountEntity;
43
- updatedBy?: TAccountEntity;
42
+ createdBy: TAccountEntity | null;
43
+ updatedBy: TAccountEntity | null;
44
44
  };
45
45
  type DATA_THIRD_PARTY_LOGIN = {
46
46
  fullname: string;
@@ -228,6 +228,16 @@ type TClassEntity = {
228
228
  student: TAccountEntity | null;
229
229
  tutor: TAccountEntity;
230
230
  } & BaseEntity;
231
+ type TLessonEntity = {
232
+ startTime: string;
233
+ endTime: string;
234
+ status: LESSON_ACTIVITY_STATUS | null;
235
+ note: string;
236
+ hasApproved: boolean;
237
+ hasPaid: boolean;
238
+ fee: number;
239
+ class: TClassEntity;
240
+ } & BaseEntity;
231
241
 
232
242
  declare const OBJECT_REGISTER_METHOD: {
233
243
  email: {
@@ -422,6 +432,15 @@ type TClassMeList = {
422
432
  programId?: string;
423
433
  name?: string;
424
434
  } & BasePaginationParams;
435
+ type TLessonRequest = {
436
+ classId: string;
437
+ lessons: {
438
+ startTime: string;
439
+ endTime: string;
440
+ note?: string;
441
+ fee: number;
442
+ }[];
443
+ };
425
444
 
426
445
  type TProgramRegisteredMeTutorEdit = {
427
446
  id: string;
@@ -469,5 +488,6 @@ type TProgramOptionsMeRes = {
469
488
  programs: Pick<TProgramEntity, "id" | "name">[];
470
489
  count: number;
471
490
  };
491
+ type TLessonRequestRes = TLessonEntity[];
472
492
 
473
- export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, GENDER, LESSON_ACTIVITY_STATUS, NOTIFICATION_STATUS, NOTIFICATION_TYPE, OBJECT_CLASS_STATUS, OBJECT_CUSTOMER_TYPE, OBJECT_GENDER, 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 TClassEntity, type TClassMeCreate, type TClassMeCreateRes, type TClassMeList, type TDistrictEntity, type TNotificationEntity, type TProgramEntity, type TProgramOptionsMe, type TProgramOptionsMeRes, type TProgramRegisteredMeTutorEdit, type TProgramRegisteredMeTutorEditRes, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TRegisteredProgramCreatePost, type TRegisteredProgramCreateRes, type TRegisteredProgramEntity, type TRegisteredProgramListSentMeDTO, type TRegisteredProgramListSentMeRes, type TStudent, type TStudentEntity, type TTutorEntity };
493
+ export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, GENDER, LESSON_ACTIVITY_STATUS, NOTIFICATION_STATUS, NOTIFICATION_TYPE, OBJECT_CLASS_STATUS, OBJECT_CUSTOMER_TYPE, OBJECT_GENDER, 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 TClassEntity, type TClassMeCreate, type TClassMeCreateRes, type TClassMeList, type TDistrictEntity, type TLessonEntity, type TLessonRequest, type TLessonRequestRes, type TNotificationEntity, type TProgramEntity, type TProgramOptionsMe, type TProgramOptionsMeRes, type TProgramRegisteredMeTutorEdit, type TProgramRegisteredMeTutorEditRes, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TRegisteredProgramCreatePost, type TRegisteredProgramCreateRes, type TRegisteredProgramEntity, type TRegisteredProgramListSentMeDTO, type TRegisteredProgramListSentMeRes, type TStudent, type TStudentEntity, type TTutorEntity };
package/dist/index.d.ts CHANGED
@@ -39,8 +39,8 @@ type BaseEntity = {
39
39
  createdAt: string;
40
40
  updatedAt: string;
41
41
  deletedAt: string | null;
42
- createdBy?: TAccountEntity;
43
- updatedBy?: TAccountEntity;
42
+ createdBy: TAccountEntity | null;
43
+ updatedBy: TAccountEntity | null;
44
44
  };
45
45
  type DATA_THIRD_PARTY_LOGIN = {
46
46
  fullname: string;
@@ -228,6 +228,16 @@ type TClassEntity = {
228
228
  student: TAccountEntity | null;
229
229
  tutor: TAccountEntity;
230
230
  } & BaseEntity;
231
+ type TLessonEntity = {
232
+ startTime: string;
233
+ endTime: string;
234
+ status: LESSON_ACTIVITY_STATUS | null;
235
+ note: string;
236
+ hasApproved: boolean;
237
+ hasPaid: boolean;
238
+ fee: number;
239
+ class: TClassEntity;
240
+ } & BaseEntity;
231
241
 
232
242
  declare const OBJECT_REGISTER_METHOD: {
233
243
  email: {
@@ -422,6 +432,15 @@ type TClassMeList = {
422
432
  programId?: string;
423
433
  name?: string;
424
434
  } & BasePaginationParams;
435
+ type TLessonRequest = {
436
+ classId: string;
437
+ lessons: {
438
+ startTime: string;
439
+ endTime: string;
440
+ note?: string;
441
+ fee: number;
442
+ }[];
443
+ };
425
444
 
426
445
  type TProgramRegisteredMeTutorEdit = {
427
446
  id: string;
@@ -469,5 +488,6 @@ type TProgramOptionsMeRes = {
469
488
  programs: Pick<TProgramEntity, "id" | "name">[];
470
489
  count: number;
471
490
  };
491
+ type TLessonRequestRes = TLessonEntity[];
472
492
 
473
- export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, GENDER, LESSON_ACTIVITY_STATUS, NOTIFICATION_STATUS, NOTIFICATION_TYPE, OBJECT_CLASS_STATUS, OBJECT_CUSTOMER_TYPE, OBJECT_GENDER, 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 TClassEntity, type TClassMeCreate, type TClassMeCreateRes, type TClassMeList, type TDistrictEntity, type TNotificationEntity, type TProgramEntity, type TProgramOptionsMe, type TProgramOptionsMeRes, type TProgramRegisteredMeTutorEdit, type TProgramRegisteredMeTutorEditRes, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TRegisteredProgramCreatePost, type TRegisteredProgramCreateRes, type TRegisteredProgramEntity, type TRegisteredProgramListSentMeDTO, type TRegisteredProgramListSentMeRes, type TStudent, type TStudentEntity, type TTutorEntity };
493
+ export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, GENDER, LESSON_ACTIVITY_STATUS, NOTIFICATION_STATUS, NOTIFICATION_TYPE, OBJECT_CLASS_STATUS, OBJECT_CUSTOMER_TYPE, OBJECT_GENDER, 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 TClassEntity, type TClassMeCreate, type TClassMeCreateRes, type TClassMeList, type TDistrictEntity, type TLessonEntity, type TLessonRequest, type TLessonRequestRes, type TNotificationEntity, type TProgramEntity, type TProgramOptionsMe, type TProgramOptionsMeRes, type TProgramRegisteredMeTutorEdit, type TProgramRegisteredMeTutorEditRes, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TRegisteredProgramCreatePost, type TRegisteredProgramCreateRes, type TRegisteredProgramEntity, type TRegisteredProgramListSentMeDTO, type TRegisteredProgramListSentMeRes, type TStudent, type TStudentEntity, type TTutorEntity };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gst-common",
3
- "version": "1.2.16",
3
+ "version": "1.2.17",
4
4
  "description": "store all common variables that we need",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",