gst-common 1.2.19 → 1.2.20

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
@@ -22,12 +22,14 @@ var index_exports = {};
22
22
  __export(index_exports, {
23
23
  CLASS_STATUS: () => CLASS_STATUS,
24
24
  CUSTOMER_TYPE: () => CUSTOMER_TYPE,
25
+ DAY_OF_WEEK: () => DAY_OF_WEEK,
25
26
  GENDER: () => GENDER,
26
27
  LESSON_ACTIVITY_STATUS: () => LESSON_ACTIVITY_STATUS,
27
28
  NOTIFICATION_STATUS: () => NOTIFICATION_STATUS,
28
29
  NOTIFICATION_TYPE: () => NOTIFICATION_TYPE,
29
30
  OBJECT_CLASS_STATUS: () => OBJECT_CLASS_STATUS,
30
31
  OBJECT_CUSTOMER_TYPE: () => OBJECT_CUSTOMER_TYPE,
32
+ OBJECT_DAY_OF_WEEK: () => OBJECT_DAY_OF_WEEK,
31
33
  OBJECT_GENDER: () => OBJECT_GENDER,
32
34
  OBJECT_PROGRAM_METHOD: () => OBJECT_PROGRAM_METHOD,
33
35
  OBJECT_PROGRAM_SUITABLE_LEARNER: () => OBJECT_PROGRAM_SUITABLE_LEARNER,
@@ -133,6 +135,16 @@ var LESSON_ACTIVITY_STATUS = /* @__PURE__ */ ((LESSON_ACTIVITY_STATUS2) => {
133
135
  LESSON_ACTIVITY_STATUS2["COMPLETED"] = "COMPLETED";
134
136
  return LESSON_ACTIVITY_STATUS2;
135
137
  })(LESSON_ACTIVITY_STATUS || {});
138
+ var DAY_OF_WEEK = /* @__PURE__ */ ((DAY_OF_WEEK2) => {
139
+ DAY_OF_WEEK2["MONDAY"] = "MONDAY";
140
+ DAY_OF_WEEK2["TUESDAY"] = "TUESDAY";
141
+ DAY_OF_WEEK2["WEDNESDAY"] = "WEDNESDAY";
142
+ DAY_OF_WEEK2["THURSDAY"] = "THURSDAY";
143
+ DAY_OF_WEEK2["FRIDAY"] = "FRIDAY";
144
+ DAY_OF_WEEK2["SATURDAY"] = "SATURDAY";
145
+ DAY_OF_WEEK2["SUNDAY"] = "SUNDAY";
146
+ return DAY_OF_WEEK2;
147
+ })(DAY_OF_WEEK || {});
136
148
 
137
149
  // src/object-enum.ts
138
150
  var OBJECT_REGISTER_METHOD = {
@@ -299,16 +311,48 @@ var OBJECT_CLASS_STATUS = {
299
311
  label: "Ho\xE0n th\xE0nh"
300
312
  }
301
313
  };
314
+ var OBJECT_DAY_OF_WEEK = {
315
+ ["MONDAY" /* MONDAY */]: {
316
+ value: "MONDAY" /* MONDAY */,
317
+ label: "Th\u1EE9 hai"
318
+ },
319
+ ["TUESDAY" /* TUESDAY */]: {
320
+ value: "TUESDAY" /* TUESDAY */,
321
+ label: "Th\u1EE9 ba"
322
+ },
323
+ ["WEDNESDAY" /* WEDNESDAY */]: {
324
+ value: "WEDNESDAY" /* WEDNESDAY */,
325
+ label: "Th\u1EE9 t\u01B0"
326
+ },
327
+ ["THURSDAY" /* THURSDAY */]: {
328
+ value: "THURSDAY" /* THURSDAY */,
329
+ label: "Th\u1EE9 n\u0103m"
330
+ },
331
+ ["FRIDAY" /* FRIDAY */]: {
332
+ value: "FRIDAY" /* FRIDAY */,
333
+ label: "Th\u1EE9 s\xE1u"
334
+ },
335
+ ["SATURDAY" /* SATURDAY */]: {
336
+ value: "SATURDAY" /* SATURDAY */,
337
+ label: "Th\u1EE9 b\u1EA3y"
338
+ },
339
+ ["SUNDAY" /* SUNDAY */]: {
340
+ value: "SUNDAY" /* SUNDAY */,
341
+ label: "Ch\u1EE7 nh\u1EADt"
342
+ }
343
+ };
302
344
  // Annotate the CommonJS export names for ESM import in node:
303
345
  0 && (module.exports = {
304
346
  CLASS_STATUS,
305
347
  CUSTOMER_TYPE,
348
+ DAY_OF_WEEK,
306
349
  GENDER,
307
350
  LESSON_ACTIVITY_STATUS,
308
351
  NOTIFICATION_STATUS,
309
352
  NOTIFICATION_TYPE,
310
353
  OBJECT_CLASS_STATUS,
311
354
  OBJECT_CUSTOMER_TYPE,
355
+ OBJECT_DAY_OF_WEEK,
312
356
  OBJECT_GENDER,
313
357
  OBJECT_PROGRAM_METHOD,
314
358
  OBJECT_PROGRAM_SUITABLE_LEARNER,
package/dist/index.d.cts CHANGED
@@ -90,6 +90,15 @@ declare enum LESSON_ACTIVITY_STATUS {
90
90
  CANCELED = "CANCELED",
91
91
  COMPLETED = "COMPLETED"
92
92
  }
93
+ declare enum DAY_OF_WEEK {
94
+ MONDAY = "MONDAY",
95
+ TUESDAY = "TUESDAY",
96
+ WEDNESDAY = "WEDNESDAY",
97
+ THURSDAY = "THURSDAY",
98
+ FRIDAY = "FRIDAY",
99
+ SATURDAY = "SATURDAY",
100
+ SUNDAY = "SUNDAY"
101
+ }
93
102
 
94
103
  type TProgramSuitableLearnerEntity = {
95
104
  suitableLeanerCode: PROGRAM_SUITABLE_LEARNER;
@@ -403,6 +412,36 @@ declare const OBJECT_CLASS_STATUS: {
403
412
  label: string;
404
413
  };
405
414
  };
415
+ declare const OBJECT_DAY_OF_WEEK: {
416
+ MONDAY: {
417
+ value: DAY_OF_WEEK;
418
+ label: string;
419
+ };
420
+ TUESDAY: {
421
+ value: DAY_OF_WEEK;
422
+ label: string;
423
+ };
424
+ WEDNESDAY: {
425
+ value: DAY_OF_WEEK;
426
+ label: string;
427
+ };
428
+ THURSDAY: {
429
+ value: DAY_OF_WEEK;
430
+ label: string;
431
+ };
432
+ FRIDAY: {
433
+ value: DAY_OF_WEEK;
434
+ label: string;
435
+ };
436
+ SATURDAY: {
437
+ value: DAY_OF_WEEK;
438
+ label: string;
439
+ };
440
+ SUNDAY: {
441
+ value: DAY_OF_WEEK;
442
+ label: string;
443
+ };
444
+ };
406
445
 
407
446
  type TRegisteredProgramCreatePost = {
408
447
  studentNote?: string;
@@ -441,6 +480,11 @@ type TLessonRequest = {
441
480
  fee: number;
442
481
  }[];
443
482
  };
483
+ type TLessonListMeTutor = {
484
+ fromDate: string;
485
+ toDate: string;
486
+ classId?: string;
487
+ } & BasePaginationParams;
444
488
 
445
489
  type TProgramRegisteredMeTutorEdit = {
446
490
  id: string;
@@ -505,5 +549,9 @@ type TLessonRequestFailedOverlappedData = {
505
549
  declare enum TLessonRequestResFailType {
506
550
  OVERLAPPED = "OVERLAPPED"
507
551
  }
552
+ type TLessonListMeTutorRes = {
553
+ lessons: TLessonEntity[];
554
+ total: number;
555
+ };
508
556
 
509
- 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 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 };
557
+ export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, DAY_OF_WEEK, GENDER, LESSON_ACTIVITY_STATUS, NOTIFICATION_STATUS, NOTIFICATION_TYPE, OBJECT_CLASS_STATUS, OBJECT_CUSTOMER_TYPE, OBJECT_DAY_OF_WEEK, 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 TLessonListMeTutor, type TLessonListMeTutorRes, type TLessonRequest, type TLessonRequestFailedOverlappedData, 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
@@ -90,6 +90,15 @@ declare enum LESSON_ACTIVITY_STATUS {
90
90
  CANCELED = "CANCELED",
91
91
  COMPLETED = "COMPLETED"
92
92
  }
93
+ declare enum DAY_OF_WEEK {
94
+ MONDAY = "MONDAY",
95
+ TUESDAY = "TUESDAY",
96
+ WEDNESDAY = "WEDNESDAY",
97
+ THURSDAY = "THURSDAY",
98
+ FRIDAY = "FRIDAY",
99
+ SATURDAY = "SATURDAY",
100
+ SUNDAY = "SUNDAY"
101
+ }
93
102
 
94
103
  type TProgramSuitableLearnerEntity = {
95
104
  suitableLeanerCode: PROGRAM_SUITABLE_LEARNER;
@@ -403,6 +412,36 @@ declare const OBJECT_CLASS_STATUS: {
403
412
  label: string;
404
413
  };
405
414
  };
415
+ declare const OBJECT_DAY_OF_WEEK: {
416
+ MONDAY: {
417
+ value: DAY_OF_WEEK;
418
+ label: string;
419
+ };
420
+ TUESDAY: {
421
+ value: DAY_OF_WEEK;
422
+ label: string;
423
+ };
424
+ WEDNESDAY: {
425
+ value: DAY_OF_WEEK;
426
+ label: string;
427
+ };
428
+ THURSDAY: {
429
+ value: DAY_OF_WEEK;
430
+ label: string;
431
+ };
432
+ FRIDAY: {
433
+ value: DAY_OF_WEEK;
434
+ label: string;
435
+ };
436
+ SATURDAY: {
437
+ value: DAY_OF_WEEK;
438
+ label: string;
439
+ };
440
+ SUNDAY: {
441
+ value: DAY_OF_WEEK;
442
+ label: string;
443
+ };
444
+ };
406
445
 
407
446
  type TRegisteredProgramCreatePost = {
408
447
  studentNote?: string;
@@ -441,6 +480,11 @@ type TLessonRequest = {
441
480
  fee: number;
442
481
  }[];
443
482
  };
483
+ type TLessonListMeTutor = {
484
+ fromDate: string;
485
+ toDate: string;
486
+ classId?: string;
487
+ } & BasePaginationParams;
444
488
 
445
489
  type TProgramRegisteredMeTutorEdit = {
446
490
  id: string;
@@ -505,5 +549,9 @@ type TLessonRequestFailedOverlappedData = {
505
549
  declare enum TLessonRequestResFailType {
506
550
  OVERLAPPED = "OVERLAPPED"
507
551
  }
552
+ type TLessonListMeTutorRes = {
553
+ lessons: TLessonEntity[];
554
+ total: number;
555
+ };
508
556
 
509
- 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 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 };
557
+ export { type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, type BasePaginationParams, type BaseResponse, CLASS_STATUS, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, DAY_OF_WEEK, GENDER, LESSON_ACTIVITY_STATUS, NOTIFICATION_STATUS, NOTIFICATION_TYPE, OBJECT_CLASS_STATUS, OBJECT_CUSTOMER_TYPE, OBJECT_DAY_OF_WEEK, 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 TLessonListMeTutor, type TLessonListMeTutorRes, type TLessonRequest, type TLessonRequestFailedOverlappedData, 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.mjs CHANGED
@@ -83,6 +83,16 @@ var LESSON_ACTIVITY_STATUS = /* @__PURE__ */ ((LESSON_ACTIVITY_STATUS2) => {
83
83
  LESSON_ACTIVITY_STATUS2["COMPLETED"] = "COMPLETED";
84
84
  return LESSON_ACTIVITY_STATUS2;
85
85
  })(LESSON_ACTIVITY_STATUS || {});
86
+ var DAY_OF_WEEK = /* @__PURE__ */ ((DAY_OF_WEEK2) => {
87
+ DAY_OF_WEEK2["MONDAY"] = "MONDAY";
88
+ DAY_OF_WEEK2["TUESDAY"] = "TUESDAY";
89
+ DAY_OF_WEEK2["WEDNESDAY"] = "WEDNESDAY";
90
+ DAY_OF_WEEK2["THURSDAY"] = "THURSDAY";
91
+ DAY_OF_WEEK2["FRIDAY"] = "FRIDAY";
92
+ DAY_OF_WEEK2["SATURDAY"] = "SATURDAY";
93
+ DAY_OF_WEEK2["SUNDAY"] = "SUNDAY";
94
+ return DAY_OF_WEEK2;
95
+ })(DAY_OF_WEEK || {});
86
96
 
87
97
  // src/object-enum.ts
88
98
  var OBJECT_REGISTER_METHOD = {
@@ -249,15 +259,47 @@ var OBJECT_CLASS_STATUS = {
249
259
  label: "Ho\xE0n th\xE0nh"
250
260
  }
251
261
  };
262
+ var OBJECT_DAY_OF_WEEK = {
263
+ ["MONDAY" /* MONDAY */]: {
264
+ value: "MONDAY" /* MONDAY */,
265
+ label: "Th\u1EE9 hai"
266
+ },
267
+ ["TUESDAY" /* TUESDAY */]: {
268
+ value: "TUESDAY" /* TUESDAY */,
269
+ label: "Th\u1EE9 ba"
270
+ },
271
+ ["WEDNESDAY" /* WEDNESDAY */]: {
272
+ value: "WEDNESDAY" /* WEDNESDAY */,
273
+ label: "Th\u1EE9 t\u01B0"
274
+ },
275
+ ["THURSDAY" /* THURSDAY */]: {
276
+ value: "THURSDAY" /* THURSDAY */,
277
+ label: "Th\u1EE9 n\u0103m"
278
+ },
279
+ ["FRIDAY" /* FRIDAY */]: {
280
+ value: "FRIDAY" /* FRIDAY */,
281
+ label: "Th\u1EE9 s\xE1u"
282
+ },
283
+ ["SATURDAY" /* SATURDAY */]: {
284
+ value: "SATURDAY" /* SATURDAY */,
285
+ label: "Th\u1EE9 b\u1EA3y"
286
+ },
287
+ ["SUNDAY" /* SUNDAY */]: {
288
+ value: "SUNDAY" /* SUNDAY */,
289
+ label: "Ch\u1EE7 nh\u1EADt"
290
+ }
291
+ };
252
292
  export {
253
293
  CLASS_STATUS,
254
294
  CUSTOMER_TYPE,
295
+ DAY_OF_WEEK,
255
296
  GENDER,
256
297
  LESSON_ACTIVITY_STATUS,
257
298
  NOTIFICATION_STATUS,
258
299
  NOTIFICATION_TYPE,
259
300
  OBJECT_CLASS_STATUS,
260
301
  OBJECT_CUSTOMER_TYPE,
302
+ OBJECT_DAY_OF_WEEK,
261
303
  OBJECT_GENDER,
262
304
  OBJECT_PROGRAM_METHOD,
263
305
  OBJECT_PROGRAM_SUITABLE_LEARNER,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gst-common",
3
- "version": "1.2.19",
3
+ "version": "1.2.20",
4
4
  "description": "store all common variables that we need",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",