gst-common 1.1.36 → 1.1.37

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?: AccountEntity;
43
- updatedBy?: AccountEntity;
42
+ createdBy?: TAccountEntity;
43
+ updatedBy?: TAccountEntity;
44
44
  };
45
45
  type DATA_THIRD_PARTY_LOGIN = {
46
46
  fullname: string;
@@ -60,24 +60,24 @@ declare enum SCHOOL_STATUS {
60
60
  GRADUATED = "GRADUATED"
61
61
  }
62
62
 
63
- type ProgramSuitableLearnerEntity = {
63
+ type TProgramSuitableLearnerEntity = {
64
64
  suitableLeanerCode: PROGRAM_SUITABLE_LEARNER;
65
- program: ProgramEntity;
65
+ program: TProgramEntity;
66
66
  } & BaseEntity;
67
- type ProgramEntity = {
67
+ type TProgramEntity = {
68
68
  thumbnail: string;
69
69
  name: string;
70
70
  shortDescription: string;
71
71
  detailDescription: string;
72
- suitableLearners: ProgramSuitableLearnerEntity[];
72
+ suitableLearners: TProgramSuitableLearnerEntity[];
73
73
  fromPrice: number;
74
74
  toPrice: number;
75
- account: AccountEntity;
75
+ account: TAccountEntity;
76
76
  sessionPerWeek: number;
77
77
  method: PROGRAM_METHOD;
78
78
  durationPerSession: number;
79
79
  } & BaseEntity;
80
- type AccountEntity = {
80
+ type TAccountEntity = {
81
81
  id: string;
82
82
  fullname: string;
83
83
  avatar: string | null;
@@ -90,20 +90,20 @@ type AccountEntity = {
90
90
  updatedAt: Date;
91
91
  createdAt: Date;
92
92
  deletedAt: Date | null;
93
- tutor: TutorEntity | null;
93
+ tutor: TTutorEntity | null;
94
94
  birthDay: string | null;
95
95
  hiddenBirthDay: boolean;
96
96
  phoneNumber: string | null;
97
97
  hiddenPhoneNumber: boolean;
98
98
  };
99
- type AdministrativeRegionEntity = {
99
+ type TAdministrativeRegionEntity = {
100
100
  id: number;
101
101
  name: string;
102
102
  nameEn: string;
103
103
  codeName?: string;
104
104
  codeNameEn?: string;
105
105
  };
106
- type AdministrativeUnitEntity = {
106
+ type TAdministrativeUnitEntity = {
107
107
  id: number;
108
108
  fullName?: string;
109
109
  fullNameEn?: string;
@@ -112,41 +112,50 @@ type AdministrativeUnitEntity = {
112
112
  codeName?: string;
113
113
  codeNameEn?: string;
114
114
  };
115
- type ProvinceEntity = {
115
+ type TProvinceEntity = {
116
116
  code: string;
117
117
  name: string;
118
118
  nameEn?: string;
119
119
  fullName: string;
120
120
  fullNameEn?: string;
121
121
  codeName?: string;
122
- administrativeRegion: AdministrativeRegionEntity;
123
- administrativeUnit: AdministrativeUnitEntity;
122
+ administrativeRegion: TAdministrativeRegionEntity;
123
+ administrativeUnit: TAdministrativeUnitEntity;
124
124
  };
125
- type DistrictEntity = {
125
+ type TDistrictEntity = {
126
126
  code: string;
127
127
  name: string;
128
128
  nameEn?: string;
129
129
  fullName?: string;
130
130
  fullNameEn?: string;
131
131
  codeName?: string;
132
- province: ProvinceEntity;
133
- administrativeUnit: AdministrativeUnitEntity;
132
+ province: TProvinceEntity;
133
+ administrativeUnit: TAdministrativeUnitEntity;
134
134
  };
135
- type TutorEntity = {
135
+ type TTutorEntity = {
136
136
  introduction?: string;
137
137
  shortVideoUrl?: string;
138
138
  schoolName?: string;
139
139
  schoolStatus?: SCHOOL_STATUS;
140
140
  hiddenSchool: boolean;
141
- district?: DistrictEntity;
142
- province?: ProvinceEntity;
141
+ district?: TDistrictEntity;
142
+ province?: TProvinceEntity;
143
143
  workAt?: string;
144
144
  birthDay?: string;
145
145
  hiddenBirthDay?: boolean;
146
146
  phoneNumber?: string;
147
147
  hiddenPhoneNumber?: boolean;
148
148
  hiddenWorkAt: boolean;
149
- account: AccountEntity;
149
+ account: TAccountEntity;
150
+ } & BaseEntity;
151
+ type TStudent = {
152
+ account: TAccountEntity;
153
+ district?: TDistrictEntity | null;
154
+ province?: TProvinceEntity | null;
155
+ birthDay?: string | null;
156
+ hiddenBirthDay: boolean;
157
+ phoneNumber?: string | null;
158
+ hiddenPhoneNumber: boolean;
150
159
  } & BaseEntity;
151
160
 
152
161
  declare function sayHello(): void;
@@ -300,4 +309,4 @@ type AccountPostMeResponse = {
300
309
  providerId: string;
301
310
  };
302
311
 
303
- export { type AccountEntity, type AccountPostMeResponse, type AccountSignInResponse, type AdministrativeRegionEntity, type AdministrativeUnitEntity, type BaseEntity, type BasePaginationParams, type BaseResponse, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, type DistrictEntity, 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, type ProgramEntity, type ProgramSuitableLearnerEntity, type ProvinceEntity, REGISTER_METHOD, ResponseStatus, SCHOOL_STATUS, type TutorEntity, sayHello };
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 };
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?: AccountEntity;
43
- updatedBy?: AccountEntity;
42
+ createdBy?: TAccountEntity;
43
+ updatedBy?: TAccountEntity;
44
44
  };
45
45
  type DATA_THIRD_PARTY_LOGIN = {
46
46
  fullname: string;
@@ -60,24 +60,24 @@ declare enum SCHOOL_STATUS {
60
60
  GRADUATED = "GRADUATED"
61
61
  }
62
62
 
63
- type ProgramSuitableLearnerEntity = {
63
+ type TProgramSuitableLearnerEntity = {
64
64
  suitableLeanerCode: PROGRAM_SUITABLE_LEARNER;
65
- program: ProgramEntity;
65
+ program: TProgramEntity;
66
66
  } & BaseEntity;
67
- type ProgramEntity = {
67
+ type TProgramEntity = {
68
68
  thumbnail: string;
69
69
  name: string;
70
70
  shortDescription: string;
71
71
  detailDescription: string;
72
- suitableLearners: ProgramSuitableLearnerEntity[];
72
+ suitableLearners: TProgramSuitableLearnerEntity[];
73
73
  fromPrice: number;
74
74
  toPrice: number;
75
- account: AccountEntity;
75
+ account: TAccountEntity;
76
76
  sessionPerWeek: number;
77
77
  method: PROGRAM_METHOD;
78
78
  durationPerSession: number;
79
79
  } & BaseEntity;
80
- type AccountEntity = {
80
+ type TAccountEntity = {
81
81
  id: string;
82
82
  fullname: string;
83
83
  avatar: string | null;
@@ -90,20 +90,20 @@ type AccountEntity = {
90
90
  updatedAt: Date;
91
91
  createdAt: Date;
92
92
  deletedAt: Date | null;
93
- tutor: TutorEntity | null;
93
+ tutor: TTutorEntity | null;
94
94
  birthDay: string | null;
95
95
  hiddenBirthDay: boolean;
96
96
  phoneNumber: string | null;
97
97
  hiddenPhoneNumber: boolean;
98
98
  };
99
- type AdministrativeRegionEntity = {
99
+ type TAdministrativeRegionEntity = {
100
100
  id: number;
101
101
  name: string;
102
102
  nameEn: string;
103
103
  codeName?: string;
104
104
  codeNameEn?: string;
105
105
  };
106
- type AdministrativeUnitEntity = {
106
+ type TAdministrativeUnitEntity = {
107
107
  id: number;
108
108
  fullName?: string;
109
109
  fullNameEn?: string;
@@ -112,41 +112,50 @@ type AdministrativeUnitEntity = {
112
112
  codeName?: string;
113
113
  codeNameEn?: string;
114
114
  };
115
- type ProvinceEntity = {
115
+ type TProvinceEntity = {
116
116
  code: string;
117
117
  name: string;
118
118
  nameEn?: string;
119
119
  fullName: string;
120
120
  fullNameEn?: string;
121
121
  codeName?: string;
122
- administrativeRegion: AdministrativeRegionEntity;
123
- administrativeUnit: AdministrativeUnitEntity;
122
+ administrativeRegion: TAdministrativeRegionEntity;
123
+ administrativeUnit: TAdministrativeUnitEntity;
124
124
  };
125
- type DistrictEntity = {
125
+ type TDistrictEntity = {
126
126
  code: string;
127
127
  name: string;
128
128
  nameEn?: string;
129
129
  fullName?: string;
130
130
  fullNameEn?: string;
131
131
  codeName?: string;
132
- province: ProvinceEntity;
133
- administrativeUnit: AdministrativeUnitEntity;
132
+ province: TProvinceEntity;
133
+ administrativeUnit: TAdministrativeUnitEntity;
134
134
  };
135
- type TutorEntity = {
135
+ type TTutorEntity = {
136
136
  introduction?: string;
137
137
  shortVideoUrl?: string;
138
138
  schoolName?: string;
139
139
  schoolStatus?: SCHOOL_STATUS;
140
140
  hiddenSchool: boolean;
141
- district?: DistrictEntity;
142
- province?: ProvinceEntity;
141
+ district?: TDistrictEntity;
142
+ province?: TProvinceEntity;
143
143
  workAt?: string;
144
144
  birthDay?: string;
145
145
  hiddenBirthDay?: boolean;
146
146
  phoneNumber?: string;
147
147
  hiddenPhoneNumber?: boolean;
148
148
  hiddenWorkAt: boolean;
149
- account: AccountEntity;
149
+ account: TAccountEntity;
150
+ } & BaseEntity;
151
+ type TStudent = {
152
+ account: TAccountEntity;
153
+ district?: TDistrictEntity | null;
154
+ province?: TProvinceEntity | null;
155
+ birthDay?: string | null;
156
+ hiddenBirthDay: boolean;
157
+ phoneNumber?: string | null;
158
+ hiddenPhoneNumber: boolean;
150
159
  } & BaseEntity;
151
160
 
152
161
  declare function sayHello(): void;
@@ -300,4 +309,4 @@ type AccountPostMeResponse = {
300
309
  providerId: string;
301
310
  };
302
311
 
303
- export { type AccountEntity, type AccountPostMeResponse, type AccountSignInResponse, type AdministrativeRegionEntity, type AdministrativeUnitEntity, type BaseEntity, type BasePaginationParams, type BaseResponse, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, type DistrictEntity, 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, type ProgramEntity, type ProgramSuitableLearnerEntity, type ProvinceEntity, REGISTER_METHOD, ResponseStatus, SCHOOL_STATUS, type TutorEntity, sayHello };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gst-common",
3
- "version": "1.1.36",
3
+ "version": "1.1.37",
4
4
  "description": "store all common variables that we need",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",