gst-common 1.1.42 → 1.2.1

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
@@ -38,19 +38,13 @@ __export(index_exports, {
38
38
  REGISTERED_PROGRAM_STATUS: () => REGISTERED_PROGRAM_STATUS,
39
39
  REGISTER_METHOD: () => REGISTER_METHOD,
40
40
  ResponseStatus: () => ResponseStatus,
41
- SCHOOL_STATUS: () => SCHOOL_STATUS,
42
- sayHello: () => sayHello
41
+ SCHOOL_STATUS: () => SCHOOL_STATUS
43
42
  });
44
43
  module.exports = __toCommonJS(index_exports);
45
44
 
46
45
  // src/constant.ts
47
46
  var OTP_RESEND_TIME = 20;
48
47
 
49
- // src/functions.ts
50
- function sayHello() {
51
- console.log("HELLO WORLD");
52
- }
53
-
54
48
  // src/type.ts
55
49
  var CUSTOMER_TYPE = /* @__PURE__ */ ((CUSTOMER_TYPE2) => {
56
50
  CUSTOMER_TYPE2["TUTOR"] = "tutor";
@@ -269,6 +263,5 @@ var OBJECT_REGISTERED_PROGRAM_STATUS = {
269
263
  REGISTERED_PROGRAM_STATUS,
270
264
  REGISTER_METHOD,
271
265
  ResponseStatus,
272
- SCHOOL_STATUS,
273
- sayHello
266
+ SCHOOL_STATUS
274
267
  });
package/dist/index.d.cts CHANGED
@@ -91,11 +91,11 @@ type TProgramEntity = {
91
91
  durationPerSession: number;
92
92
  } & BaseEntity;
93
93
  type TStudentEntity = {
94
- district?: TDistrictEntity | null;
95
- province?: TProvinceEntity | null;
96
- birthDay?: Date | null;
94
+ district: TDistrictEntity | null | null;
95
+ province: TProvinceEntity | null | null;
96
+ birthDay: Date | null | null;
97
97
  hiddenBirthDay: boolean;
98
- phoneNumber?: string | null;
98
+ phoneNumber: string | null | null;
99
99
  hiddenPhoneNumber: boolean;
100
100
  account: TAccountEntity;
101
101
  } & BaseEntity;
@@ -112,8 +112,8 @@ type TAccountEntity = {
112
112
  updatedAt: Date;
113
113
  createdAt: Date;
114
114
  deletedAt: Date | null;
115
- tutor?: TTutorEntity | null;
116
- student?: TStudentEntity | null;
115
+ tutor: TTutorEntity | null | null;
116
+ student: TStudentEntity | null | null;
117
117
  birthDay: string | null;
118
118
  hiddenBirthDay: boolean;
119
119
  phoneNumber: string | null;
@@ -123,72 +123,82 @@ type TAdministrativeRegionEntity = {
123
123
  id: number;
124
124
  name: string;
125
125
  nameEn: string;
126
- codeName?: string;
127
- codeNameEn?: string;
126
+ codeName: string | null;
127
+ codeNameEn: string | null;
128
128
  };
129
129
  type TAdministrativeUnitEntity = {
130
130
  id: number;
131
- fullName?: string;
132
- fullNameEn?: string;
133
- shortName?: string;
134
- shortNameEn?: string;
135
- codeName?: string;
136
- codeNameEn?: string;
131
+ fullName: string | null;
132
+ fullNameEn: string | null;
133
+ shortName: string | null;
134
+ shortNameEn: string | null;
135
+ codeName: string | null;
136
+ codeNameEn: string | null;
137
137
  };
138
138
  type TProvinceEntity = {
139
139
  code: string;
140
140
  name: string;
141
- nameEn?: string;
141
+ nameEn: string | null;
142
142
  fullName: string;
143
- fullNameEn?: string;
144
- codeName?: string;
143
+ fullNameEn: string | null;
144
+ codeName: string | null;
145
145
  administrativeRegion: TAdministrativeRegionEntity;
146
146
  administrativeUnit: TAdministrativeUnitEntity;
147
147
  };
148
148
  type TDistrictEntity = {
149
149
  code: string;
150
150
  name: string;
151
- nameEn?: string;
152
- fullName?: string;
153
- fullNameEn?: string;
154
- codeName?: string;
151
+ nameEn: string | null;
152
+ fullName: string | null;
153
+ fullNameEn: string | null;
154
+ codeName: string | null;
155
155
  province: TProvinceEntity;
156
156
  administrativeUnit: TAdministrativeUnitEntity;
157
157
  };
158
158
  type TTutorEntity = {
159
- introduction?: string;
160
- shortVideoUrl?: string;
161
- schoolName?: string;
162
- schoolStatus?: SCHOOL_STATUS;
159
+ introduction: string | null;
160
+ shortVideoUrl: string | null;
161
+ schoolName: string | null;
162
+ schoolStatus: SCHOOL_STATUS | null;
163
163
  hiddenSchool: boolean;
164
- district?: TDistrictEntity;
165
- province?: TProvinceEntity;
166
- workAt?: string;
167
- birthDay?: string;
168
- hiddenBirthDay?: boolean;
169
- phoneNumber?: string;
170
- hiddenPhoneNumber?: boolean;
164
+ district: TDistrictEntity | null;
165
+ province: TProvinceEntity | null;
166
+ workAt: string | null;
167
+ birthDay: string | null;
168
+ hiddenBirthDay: boolean | null;
169
+ phoneNumber: string | null;
170
+ hiddenPhoneNumber: boolean | null;
171
171
  hiddenWorkAt: boolean;
172
172
  account: TAccountEntity;
173
173
  } & BaseEntity;
174
174
  type TStudent = {
175
175
  account: TAccountEntity;
176
- district?: TDistrictEntity | null;
177
- province?: TProvinceEntity | null;
178
- birthDay?: string | null;
176
+ district: TDistrictEntity | null | null;
177
+ province: TProvinceEntity | null | null;
178
+ birthDay: string | null | null;
179
179
  hiddenBirthDay: boolean;
180
- phoneNumber?: string | null;
180
+ phoneNumber: string | null | null;
181
181
  hiddenPhoneNumber: boolean;
182
182
  } & BaseEntity;
183
183
  type TNotificationEntity = {
184
- title?: string;
185
- content?: string;
184
+ title: string | null;
185
+ content: string | null;
186
186
  type: NOTIFICATION_TYPE;
187
- sender?: TAccountEntity | null;
188
- receiver?: TAccountEntity | null;
187
+ sender: TAccountEntity | null;
188
+ receiver: TAccountEntity | null;
189
189
  } & BaseEntity;
190
-
191
- declare function sayHello(): void;
190
+ type TRegisteredProgramEntity = {
191
+ status: REGISTERED_PROGRAM_STATUS;
192
+ note: string | null;
193
+ studentNote: string | null;
194
+ studentPhoneNumber: string;
195
+ studentProgramMethodDesired: PROGRAM_METHOD | null;
196
+ studentProvince: TProvinceEntity | null;
197
+ studentDistrict: TDistrictEntity | null;
198
+ addressStudent: string | null;
199
+ studentInterestedProgram: TProgramEntity;
200
+ registeredStudent: TAccountEntity;
201
+ };
192
202
 
193
203
  declare const OBJECT_REGISTER_METHOD: {
194
204
  email: {
@@ -327,6 +337,16 @@ declare const OBJECT_REGISTERED_PROGRAM_STATUS: {
327
337
  };
328
338
  };
329
339
 
340
+ type TRegisteredProgramCreatePost = {
341
+ studentNote?: string;
342
+ studentPhoneNumber?: string;
343
+ studentProgramMethodDesired?: PROGRAM_METHOD;
344
+ studentProvinceCode?: string;
345
+ studentDistrictCode?: string;
346
+ addressStudent?: string;
347
+ studentInterestedProgramId: string;
348
+ };
349
+
330
350
  type AccountSignInResponse = {
331
351
  accessToken: string;
332
352
  account: {
@@ -356,5 +376,6 @@ type AccountPostMeResponse = {
356
376
  avatar: string | null;
357
377
  providerId: string;
358
378
  };
379
+ type TRegisteredProgramCreateRes = TRegisteredProgramEntity;
359
380
 
360
- export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, GENDER, NOTIFICATION_TYPE, OBJECT_CUSTOMER_TYPE, OBJECT_GENDER, OBJECT_PROGRAM_METHOD, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_REGISTERED_PROGRAM_STATUS, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, REFRESH_TYPE, REGISTERED_PROGRAM_STATUS, REGISTER_METHOD, ResponseStatus, SCHOOL_STATUS, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TDistrictEntity, type TNotificationEntity, type TProgramEntity, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TStudent, type TStudentEntity, type TTutorEntity, sayHello };
381
+ export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, GENDER, NOTIFICATION_TYPE, OBJECT_CUSTOMER_TYPE, OBJECT_GENDER, OBJECT_PROGRAM_METHOD, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_REGISTERED_PROGRAM_STATUS, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, REFRESH_TYPE, REGISTERED_PROGRAM_STATUS, REGISTER_METHOD, ResponseStatus, SCHOOL_STATUS, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TDistrictEntity, type TNotificationEntity, type TProgramEntity, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TRegisteredProgramCreatePost, type TRegisteredProgramCreateRes, type TRegisteredProgramEntity, type TStudent, type TStudentEntity, type TTutorEntity };
package/dist/index.d.ts CHANGED
@@ -91,11 +91,11 @@ type TProgramEntity = {
91
91
  durationPerSession: number;
92
92
  } & BaseEntity;
93
93
  type TStudentEntity = {
94
- district?: TDistrictEntity | null;
95
- province?: TProvinceEntity | null;
96
- birthDay?: Date | null;
94
+ district: TDistrictEntity | null | null;
95
+ province: TProvinceEntity | null | null;
96
+ birthDay: Date | null | null;
97
97
  hiddenBirthDay: boolean;
98
- phoneNumber?: string | null;
98
+ phoneNumber: string | null | null;
99
99
  hiddenPhoneNumber: boolean;
100
100
  account: TAccountEntity;
101
101
  } & BaseEntity;
@@ -112,8 +112,8 @@ type TAccountEntity = {
112
112
  updatedAt: Date;
113
113
  createdAt: Date;
114
114
  deletedAt: Date | null;
115
- tutor?: TTutorEntity | null;
116
- student?: TStudentEntity | null;
115
+ tutor: TTutorEntity | null | null;
116
+ student: TStudentEntity | null | null;
117
117
  birthDay: string | null;
118
118
  hiddenBirthDay: boolean;
119
119
  phoneNumber: string | null;
@@ -123,72 +123,82 @@ type TAdministrativeRegionEntity = {
123
123
  id: number;
124
124
  name: string;
125
125
  nameEn: string;
126
- codeName?: string;
127
- codeNameEn?: string;
126
+ codeName: string | null;
127
+ codeNameEn: string | null;
128
128
  };
129
129
  type TAdministrativeUnitEntity = {
130
130
  id: number;
131
- fullName?: string;
132
- fullNameEn?: string;
133
- shortName?: string;
134
- shortNameEn?: string;
135
- codeName?: string;
136
- codeNameEn?: string;
131
+ fullName: string | null;
132
+ fullNameEn: string | null;
133
+ shortName: string | null;
134
+ shortNameEn: string | null;
135
+ codeName: string | null;
136
+ codeNameEn: string | null;
137
137
  };
138
138
  type TProvinceEntity = {
139
139
  code: string;
140
140
  name: string;
141
- nameEn?: string;
141
+ nameEn: string | null;
142
142
  fullName: string;
143
- fullNameEn?: string;
144
- codeName?: string;
143
+ fullNameEn: string | null;
144
+ codeName: string | null;
145
145
  administrativeRegion: TAdministrativeRegionEntity;
146
146
  administrativeUnit: TAdministrativeUnitEntity;
147
147
  };
148
148
  type TDistrictEntity = {
149
149
  code: string;
150
150
  name: string;
151
- nameEn?: string;
152
- fullName?: string;
153
- fullNameEn?: string;
154
- codeName?: string;
151
+ nameEn: string | null;
152
+ fullName: string | null;
153
+ fullNameEn: string | null;
154
+ codeName: string | null;
155
155
  province: TProvinceEntity;
156
156
  administrativeUnit: TAdministrativeUnitEntity;
157
157
  };
158
158
  type TTutorEntity = {
159
- introduction?: string;
160
- shortVideoUrl?: string;
161
- schoolName?: string;
162
- schoolStatus?: SCHOOL_STATUS;
159
+ introduction: string | null;
160
+ shortVideoUrl: string | null;
161
+ schoolName: string | null;
162
+ schoolStatus: SCHOOL_STATUS | null;
163
163
  hiddenSchool: boolean;
164
- district?: TDistrictEntity;
165
- province?: TProvinceEntity;
166
- workAt?: string;
167
- birthDay?: string;
168
- hiddenBirthDay?: boolean;
169
- phoneNumber?: string;
170
- hiddenPhoneNumber?: boolean;
164
+ district: TDistrictEntity | null;
165
+ province: TProvinceEntity | null;
166
+ workAt: string | null;
167
+ birthDay: string | null;
168
+ hiddenBirthDay: boolean | null;
169
+ phoneNumber: string | null;
170
+ hiddenPhoneNumber: boolean | null;
171
171
  hiddenWorkAt: boolean;
172
172
  account: TAccountEntity;
173
173
  } & BaseEntity;
174
174
  type TStudent = {
175
175
  account: TAccountEntity;
176
- district?: TDistrictEntity | null;
177
- province?: TProvinceEntity | null;
178
- birthDay?: string | null;
176
+ district: TDistrictEntity | null | null;
177
+ province: TProvinceEntity | null | null;
178
+ birthDay: string | null | null;
179
179
  hiddenBirthDay: boolean;
180
- phoneNumber?: string | null;
180
+ phoneNumber: string | null | null;
181
181
  hiddenPhoneNumber: boolean;
182
182
  } & BaseEntity;
183
183
  type TNotificationEntity = {
184
- title?: string;
185
- content?: string;
184
+ title: string | null;
185
+ content: string | null;
186
186
  type: NOTIFICATION_TYPE;
187
- sender?: TAccountEntity | null;
188
- receiver?: TAccountEntity | null;
187
+ sender: TAccountEntity | null;
188
+ receiver: TAccountEntity | null;
189
189
  } & BaseEntity;
190
-
191
- declare function sayHello(): void;
190
+ type TRegisteredProgramEntity = {
191
+ status: REGISTERED_PROGRAM_STATUS;
192
+ note: string | null;
193
+ studentNote: string | null;
194
+ studentPhoneNumber: string;
195
+ studentProgramMethodDesired: PROGRAM_METHOD | null;
196
+ studentProvince: TProvinceEntity | null;
197
+ studentDistrict: TDistrictEntity | null;
198
+ addressStudent: string | null;
199
+ studentInterestedProgram: TProgramEntity;
200
+ registeredStudent: TAccountEntity;
201
+ };
192
202
 
193
203
  declare const OBJECT_REGISTER_METHOD: {
194
204
  email: {
@@ -327,6 +337,16 @@ declare const OBJECT_REGISTERED_PROGRAM_STATUS: {
327
337
  };
328
338
  };
329
339
 
340
+ type TRegisteredProgramCreatePost = {
341
+ studentNote?: string;
342
+ studentPhoneNumber?: string;
343
+ studentProgramMethodDesired?: PROGRAM_METHOD;
344
+ studentProvinceCode?: string;
345
+ studentDistrictCode?: string;
346
+ addressStudent?: string;
347
+ studentInterestedProgramId: string;
348
+ };
349
+
330
350
  type AccountSignInResponse = {
331
351
  accessToken: string;
332
352
  account: {
@@ -356,5 +376,6 @@ type AccountPostMeResponse = {
356
376
  avatar: string | null;
357
377
  providerId: string;
358
378
  };
379
+ type TRegisteredProgramCreateRes = TRegisteredProgramEntity;
359
380
 
360
- export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, GENDER, NOTIFICATION_TYPE, OBJECT_CUSTOMER_TYPE, OBJECT_GENDER, OBJECT_PROGRAM_METHOD, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_REGISTERED_PROGRAM_STATUS, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, REFRESH_TYPE, REGISTERED_PROGRAM_STATUS, REGISTER_METHOD, ResponseStatus, SCHOOL_STATUS, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TDistrictEntity, type TNotificationEntity, type TProgramEntity, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TStudent, type TStudentEntity, type TTutorEntity, sayHello };
381
+ export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, GENDER, NOTIFICATION_TYPE, OBJECT_CUSTOMER_TYPE, OBJECT_GENDER, OBJECT_PROGRAM_METHOD, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_REGISTERED_PROGRAM_STATUS, OBJECT_REGISTER_METHOD, OBJECT_SCHOOL_STATUS, OBJ_SESSION_PER_WEEK, OTP_RESEND_TIME, PROGRAM_METHOD, PROGRAM_SUITABLE_LEARNER, REFRESH_TYPE, REGISTERED_PROGRAM_STATUS, REGISTER_METHOD, ResponseStatus, SCHOOL_STATUS, type TAccountEntity, type TAdministrativeRegionEntity, type TAdministrativeUnitEntity, type TDistrictEntity, type TNotificationEntity, type TProgramEntity, type TProgramSuitableLearnerEntity, type TProvinceEntity, type TRegisteredProgramCreatePost, type TRegisteredProgramCreateRes, type TRegisteredProgramEntity, type TStudent, type TStudentEntity, type TTutorEntity };
package/dist/index.mjs CHANGED
@@ -1,11 +1,6 @@
1
1
  // src/constant.ts
2
2
  var OTP_RESEND_TIME = 20;
3
3
 
4
- // src/functions.ts
5
- function sayHello() {
6
- console.log("HELLO WORLD");
7
- }
8
-
9
4
  // src/type.ts
10
5
  var CUSTOMER_TYPE = /* @__PURE__ */ ((CUSTOMER_TYPE2) => {
11
6
  CUSTOMER_TYPE2["TUTOR"] = "tutor";
@@ -223,6 +218,5 @@ export {
223
218
  REGISTERED_PROGRAM_STATUS,
224
219
  REGISTER_METHOD,
225
220
  ResponseStatus,
226
- SCHOOL_STATUS,
227
- sayHello
221
+ SCHOOL_STATUS
228
222
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gst-common",
3
- "version": "1.1.42",
3
+ "version": "1.2.1",
4
4
  "description": "store all common variables that we need",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",