gst-common 1.1.37 → 1.1.38

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
@@ -77,6 +77,15 @@ type TProgramEntity = {
77
77
  method: PROGRAM_METHOD;
78
78
  durationPerSession: number;
79
79
  } & BaseEntity;
80
+ type TStudentEntity = {
81
+ district?: TDistrictEntity | null;
82
+ province?: TProvinceEntity | null;
83
+ birthDay?: Date | null;
84
+ hiddenBirthDay: boolean;
85
+ phoneNumber?: string | null;
86
+ hiddenPhoneNumber: boolean;
87
+ account: TAccountEntity;
88
+ } & BaseEntity;
80
89
  type TAccountEntity = {
81
90
  id: string;
82
91
  fullname: string;
@@ -90,7 +99,8 @@ type TAccountEntity = {
90
99
  updatedAt: Date;
91
100
  createdAt: Date;
92
101
  deletedAt: Date | null;
93
- tutor: TTutorEntity | null;
102
+ tutor?: TTutorEntity | null;
103
+ student?: TStudentEntity | null;
94
104
  birthDay: string | null;
95
105
  hiddenBirthDay: boolean;
96
106
  phoneNumber: string | null;
@@ -309,4 +319,4 @@ type AccountPostMeResponse = {
309
319
  providerId: string;
310
320
  };
311
321
 
312
- export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, GENDER, OBJECT_CUSTOMER_TYPE, OBJECT_GENDER, OBJECT_PROGRAM_METHOD, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, REGISTER_METHOD, ResponseStatus, SCHOOL_STATUS, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TDistrictEntity, type TProgramEntity, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TStudent, type TTutorEntity, sayHello };
322
+ export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, GENDER, OBJECT_CUSTOMER_TYPE, OBJECT_GENDER, OBJECT_PROGRAM_METHOD, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, REGISTER_METHOD, ResponseStatus, SCHOOL_STATUS, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TDistrictEntity, type TProgramEntity, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TStudent, type TStudentEntity, type TTutorEntity, sayHello };
package/dist/index.d.ts CHANGED
@@ -77,6 +77,15 @@ type TProgramEntity = {
77
77
  method: PROGRAM_METHOD;
78
78
  durationPerSession: number;
79
79
  } & BaseEntity;
80
+ type TStudentEntity = {
81
+ district?: TDistrictEntity | null;
82
+ province?: TProvinceEntity | null;
83
+ birthDay?: Date | null;
84
+ hiddenBirthDay: boolean;
85
+ phoneNumber?: string | null;
86
+ hiddenPhoneNumber: boolean;
87
+ account: TAccountEntity;
88
+ } & BaseEntity;
80
89
  type TAccountEntity = {
81
90
  id: string;
82
91
  fullname: string;
@@ -90,7 +99,8 @@ type TAccountEntity = {
90
99
  updatedAt: Date;
91
100
  createdAt: Date;
92
101
  deletedAt: Date | null;
93
- tutor: TTutorEntity | null;
102
+ tutor?: TTutorEntity | null;
103
+ student?: TStudentEntity | null;
94
104
  birthDay: string | null;
95
105
  hiddenBirthDay: boolean;
96
106
  phoneNumber: string | null;
@@ -309,4 +319,4 @@ type AccountPostMeResponse = {
309
319
  providerId: string;
310
320
  };
311
321
 
312
- export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, GENDER, OBJECT_CUSTOMER_TYPE, OBJECT_GENDER, OBJECT_PROGRAM_METHOD, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, REGISTER_METHOD, ResponseStatus, SCHOOL_STATUS, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TDistrictEntity, type TProgramEntity, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TStudent, type TTutorEntity, sayHello };
322
+ export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, GENDER, OBJECT_CUSTOMER_TYPE, OBJECT_GENDER, OBJECT_PROGRAM_METHOD, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, REGISTER_METHOD, ResponseStatus, SCHOOL_STATUS, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TDistrictEntity, type TProgramEntity, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TStudent, type TStudentEntity, type TTutorEntity, sayHello };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gst-common",
3
- "version": "1.1.37",
3
+ "version": "1.1.38",
4
4
  "description": "store all common variables that we need",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",