gst-common 1.2.16 → 1.2.18
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/bun.lockb +0 -0
- package/dist/index.d.cts +37 -3
- package/dist/index.d.ts +37 -3
- package/package.json +1 -1
package/bun.lockb
CHANGED
|
Binary file
|
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
|
|
43
|
-
updatedBy
|
|
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,20 @@ type TProgramOptionsMeRes = {
|
|
|
469
488
|
programs: Pick<TProgramEntity, "id" | "name">[];
|
|
470
489
|
count: number;
|
|
471
490
|
};
|
|
491
|
+
type TLessonRequestRes = TLessonEntity[];
|
|
492
|
+
type TLesson = {
|
|
493
|
+
startTime: string;
|
|
494
|
+
endTime: string;
|
|
495
|
+
classId: string;
|
|
496
|
+
className: string;
|
|
497
|
+
};
|
|
498
|
+
type TLessonRequestFailedOverlappedData = {
|
|
499
|
+
type: TLessonRequestResFailType;
|
|
500
|
+
conflicts: Record<string, {
|
|
501
|
+
newLesson: Omit<TLesson, "classId" | "className">;
|
|
502
|
+
conflictingLessons: TLesson[];
|
|
503
|
+
}>;
|
|
504
|
+
};
|
|
505
|
+
type TLessonRequestResFailType = "OVERLAPPED";
|
|
472
506
|
|
|
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 };
|
|
507
|
+
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 TLesson, type TLessonEntity, type TLessonRequest, type TLessonRequestFailedOverlappedData, type TLessonRequestRes, type TLessonRequestResFailType, 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
|
|
43
|
-
updatedBy
|
|
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,20 @@ type TProgramOptionsMeRes = {
|
|
|
469
488
|
programs: Pick<TProgramEntity, "id" | "name">[];
|
|
470
489
|
count: number;
|
|
471
490
|
};
|
|
491
|
+
type TLessonRequestRes = TLessonEntity[];
|
|
492
|
+
type TLesson = {
|
|
493
|
+
startTime: string;
|
|
494
|
+
endTime: string;
|
|
495
|
+
classId: string;
|
|
496
|
+
className: string;
|
|
497
|
+
};
|
|
498
|
+
type TLessonRequestFailedOverlappedData = {
|
|
499
|
+
type: TLessonRequestResFailType;
|
|
500
|
+
conflicts: Record<string, {
|
|
501
|
+
newLesson: Omit<TLesson, "classId" | "className">;
|
|
502
|
+
conflictingLessons: TLesson[];
|
|
503
|
+
}>;
|
|
504
|
+
};
|
|
505
|
+
type TLessonRequestResFailType = "OVERLAPPED";
|
|
472
506
|
|
|
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 };
|
|
507
|
+
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 TLesson, type TLessonEntity, type TLessonRequest, type TLessonRequestFailedOverlappedData, type TLessonRequestRes, type TLessonRequestResFailType, 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 };
|