gst-common 1.1.36 → 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 +41 -22
- package/dist/index.d.ts +41 -22
- package/package.json +1 -1
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;
|
|
43
|
+
updatedBy?: TAccountEntity;
|
|
44
44
|
};
|
|
45
45
|
type DATA_THIRD_PARTY_LOGIN = {
|
|
46
46
|
fullname: string;
|
|
@@ -60,24 +60,33 @@ declare enum SCHOOL_STATUS {
|
|
|
60
60
|
GRADUATED = "GRADUATED"
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
type
|
|
63
|
+
type TProgramSuitableLearnerEntity = {
|
|
64
64
|
suitableLeanerCode: PROGRAM_SUITABLE_LEARNER;
|
|
65
|
-
program:
|
|
65
|
+
program: TProgramEntity;
|
|
66
66
|
} & BaseEntity;
|
|
67
|
-
type
|
|
67
|
+
type TProgramEntity = {
|
|
68
68
|
thumbnail: string;
|
|
69
69
|
name: string;
|
|
70
70
|
shortDescription: string;
|
|
71
71
|
detailDescription: string;
|
|
72
|
-
suitableLearners:
|
|
72
|
+
suitableLearners: TProgramSuitableLearnerEntity[];
|
|
73
73
|
fromPrice: number;
|
|
74
74
|
toPrice: number;
|
|
75
|
-
account:
|
|
75
|
+
account: TAccountEntity;
|
|
76
76
|
sessionPerWeek: number;
|
|
77
77
|
method: PROGRAM_METHOD;
|
|
78
78
|
durationPerSession: number;
|
|
79
79
|
} & BaseEntity;
|
|
80
|
-
type
|
|
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;
|
|
89
|
+
type TAccountEntity = {
|
|
81
90
|
id: string;
|
|
82
91
|
fullname: string;
|
|
83
92
|
avatar: string | null;
|
|
@@ -90,20 +99,21 @@ type AccountEntity = {
|
|
|
90
99
|
updatedAt: Date;
|
|
91
100
|
createdAt: Date;
|
|
92
101
|
deletedAt: Date | null;
|
|
93
|
-
tutor
|
|
102
|
+
tutor?: TTutorEntity | null;
|
|
103
|
+
student?: TStudentEntity | null;
|
|
94
104
|
birthDay: string | null;
|
|
95
105
|
hiddenBirthDay: boolean;
|
|
96
106
|
phoneNumber: string | null;
|
|
97
107
|
hiddenPhoneNumber: boolean;
|
|
98
108
|
};
|
|
99
|
-
type
|
|
109
|
+
type TAdministrativeRegionEntity = {
|
|
100
110
|
id: number;
|
|
101
111
|
name: string;
|
|
102
112
|
nameEn: string;
|
|
103
113
|
codeName?: string;
|
|
104
114
|
codeNameEn?: string;
|
|
105
115
|
};
|
|
106
|
-
type
|
|
116
|
+
type TAdministrativeUnitEntity = {
|
|
107
117
|
id: number;
|
|
108
118
|
fullName?: string;
|
|
109
119
|
fullNameEn?: string;
|
|
@@ -112,41 +122,50 @@ type AdministrativeUnitEntity = {
|
|
|
112
122
|
codeName?: string;
|
|
113
123
|
codeNameEn?: string;
|
|
114
124
|
};
|
|
115
|
-
type
|
|
125
|
+
type TProvinceEntity = {
|
|
116
126
|
code: string;
|
|
117
127
|
name: string;
|
|
118
128
|
nameEn?: string;
|
|
119
129
|
fullName: string;
|
|
120
130
|
fullNameEn?: string;
|
|
121
131
|
codeName?: string;
|
|
122
|
-
administrativeRegion:
|
|
123
|
-
administrativeUnit:
|
|
132
|
+
administrativeRegion: TAdministrativeRegionEntity;
|
|
133
|
+
administrativeUnit: TAdministrativeUnitEntity;
|
|
124
134
|
};
|
|
125
|
-
type
|
|
135
|
+
type TDistrictEntity = {
|
|
126
136
|
code: string;
|
|
127
137
|
name: string;
|
|
128
138
|
nameEn?: string;
|
|
129
139
|
fullName?: string;
|
|
130
140
|
fullNameEn?: string;
|
|
131
141
|
codeName?: string;
|
|
132
|
-
province:
|
|
133
|
-
administrativeUnit:
|
|
142
|
+
province: TProvinceEntity;
|
|
143
|
+
administrativeUnit: TAdministrativeUnitEntity;
|
|
134
144
|
};
|
|
135
|
-
type
|
|
145
|
+
type TTutorEntity = {
|
|
136
146
|
introduction?: string;
|
|
137
147
|
shortVideoUrl?: string;
|
|
138
148
|
schoolName?: string;
|
|
139
149
|
schoolStatus?: SCHOOL_STATUS;
|
|
140
150
|
hiddenSchool: boolean;
|
|
141
|
-
district?:
|
|
142
|
-
province?:
|
|
151
|
+
district?: TDistrictEntity;
|
|
152
|
+
province?: TProvinceEntity;
|
|
143
153
|
workAt?: string;
|
|
144
154
|
birthDay?: string;
|
|
145
155
|
hiddenBirthDay?: boolean;
|
|
146
156
|
phoneNumber?: string;
|
|
147
157
|
hiddenPhoneNumber?: boolean;
|
|
148
158
|
hiddenWorkAt: boolean;
|
|
149
|
-
account:
|
|
159
|
+
account: TAccountEntity;
|
|
160
|
+
} & BaseEntity;
|
|
161
|
+
type TStudent = {
|
|
162
|
+
account: TAccountEntity;
|
|
163
|
+
district?: TDistrictEntity | null;
|
|
164
|
+
province?: TProvinceEntity | null;
|
|
165
|
+
birthDay?: string | null;
|
|
166
|
+
hiddenBirthDay: boolean;
|
|
167
|
+
phoneNumber?: string | null;
|
|
168
|
+
hiddenPhoneNumber: boolean;
|
|
150
169
|
} & BaseEntity;
|
|
151
170
|
|
|
152
171
|
declare function sayHello(): void;
|
|
@@ -300,4 +319,4 @@ type AccountPostMeResponse = {
|
|
|
300
319
|
providerId: string;
|
|
301
320
|
};
|
|
302
321
|
|
|
303
|
-
export { type
|
|
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
|
@@ -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;
|
|
43
|
+
updatedBy?: TAccountEntity;
|
|
44
44
|
};
|
|
45
45
|
type DATA_THIRD_PARTY_LOGIN = {
|
|
46
46
|
fullname: string;
|
|
@@ -60,24 +60,33 @@ declare enum SCHOOL_STATUS {
|
|
|
60
60
|
GRADUATED = "GRADUATED"
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
type
|
|
63
|
+
type TProgramSuitableLearnerEntity = {
|
|
64
64
|
suitableLeanerCode: PROGRAM_SUITABLE_LEARNER;
|
|
65
|
-
program:
|
|
65
|
+
program: TProgramEntity;
|
|
66
66
|
} & BaseEntity;
|
|
67
|
-
type
|
|
67
|
+
type TProgramEntity = {
|
|
68
68
|
thumbnail: string;
|
|
69
69
|
name: string;
|
|
70
70
|
shortDescription: string;
|
|
71
71
|
detailDescription: string;
|
|
72
|
-
suitableLearners:
|
|
72
|
+
suitableLearners: TProgramSuitableLearnerEntity[];
|
|
73
73
|
fromPrice: number;
|
|
74
74
|
toPrice: number;
|
|
75
|
-
account:
|
|
75
|
+
account: TAccountEntity;
|
|
76
76
|
sessionPerWeek: number;
|
|
77
77
|
method: PROGRAM_METHOD;
|
|
78
78
|
durationPerSession: number;
|
|
79
79
|
} & BaseEntity;
|
|
80
|
-
type
|
|
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;
|
|
89
|
+
type TAccountEntity = {
|
|
81
90
|
id: string;
|
|
82
91
|
fullname: string;
|
|
83
92
|
avatar: string | null;
|
|
@@ -90,20 +99,21 @@ type AccountEntity = {
|
|
|
90
99
|
updatedAt: Date;
|
|
91
100
|
createdAt: Date;
|
|
92
101
|
deletedAt: Date | null;
|
|
93
|
-
tutor
|
|
102
|
+
tutor?: TTutorEntity | null;
|
|
103
|
+
student?: TStudentEntity | null;
|
|
94
104
|
birthDay: string | null;
|
|
95
105
|
hiddenBirthDay: boolean;
|
|
96
106
|
phoneNumber: string | null;
|
|
97
107
|
hiddenPhoneNumber: boolean;
|
|
98
108
|
};
|
|
99
|
-
type
|
|
109
|
+
type TAdministrativeRegionEntity = {
|
|
100
110
|
id: number;
|
|
101
111
|
name: string;
|
|
102
112
|
nameEn: string;
|
|
103
113
|
codeName?: string;
|
|
104
114
|
codeNameEn?: string;
|
|
105
115
|
};
|
|
106
|
-
type
|
|
116
|
+
type TAdministrativeUnitEntity = {
|
|
107
117
|
id: number;
|
|
108
118
|
fullName?: string;
|
|
109
119
|
fullNameEn?: string;
|
|
@@ -112,41 +122,50 @@ type AdministrativeUnitEntity = {
|
|
|
112
122
|
codeName?: string;
|
|
113
123
|
codeNameEn?: string;
|
|
114
124
|
};
|
|
115
|
-
type
|
|
125
|
+
type TProvinceEntity = {
|
|
116
126
|
code: string;
|
|
117
127
|
name: string;
|
|
118
128
|
nameEn?: string;
|
|
119
129
|
fullName: string;
|
|
120
130
|
fullNameEn?: string;
|
|
121
131
|
codeName?: string;
|
|
122
|
-
administrativeRegion:
|
|
123
|
-
administrativeUnit:
|
|
132
|
+
administrativeRegion: TAdministrativeRegionEntity;
|
|
133
|
+
administrativeUnit: TAdministrativeUnitEntity;
|
|
124
134
|
};
|
|
125
|
-
type
|
|
135
|
+
type TDistrictEntity = {
|
|
126
136
|
code: string;
|
|
127
137
|
name: string;
|
|
128
138
|
nameEn?: string;
|
|
129
139
|
fullName?: string;
|
|
130
140
|
fullNameEn?: string;
|
|
131
141
|
codeName?: string;
|
|
132
|
-
province:
|
|
133
|
-
administrativeUnit:
|
|
142
|
+
province: TProvinceEntity;
|
|
143
|
+
administrativeUnit: TAdministrativeUnitEntity;
|
|
134
144
|
};
|
|
135
|
-
type
|
|
145
|
+
type TTutorEntity = {
|
|
136
146
|
introduction?: string;
|
|
137
147
|
shortVideoUrl?: string;
|
|
138
148
|
schoolName?: string;
|
|
139
149
|
schoolStatus?: SCHOOL_STATUS;
|
|
140
150
|
hiddenSchool: boolean;
|
|
141
|
-
district?:
|
|
142
|
-
province?:
|
|
151
|
+
district?: TDistrictEntity;
|
|
152
|
+
province?: TProvinceEntity;
|
|
143
153
|
workAt?: string;
|
|
144
154
|
birthDay?: string;
|
|
145
155
|
hiddenBirthDay?: boolean;
|
|
146
156
|
phoneNumber?: string;
|
|
147
157
|
hiddenPhoneNumber?: boolean;
|
|
148
158
|
hiddenWorkAt: boolean;
|
|
149
|
-
account:
|
|
159
|
+
account: TAccountEntity;
|
|
160
|
+
} & BaseEntity;
|
|
161
|
+
type TStudent = {
|
|
162
|
+
account: TAccountEntity;
|
|
163
|
+
district?: TDistrictEntity | null;
|
|
164
|
+
province?: TProvinceEntity | null;
|
|
165
|
+
birthDay?: string | null;
|
|
166
|
+
hiddenBirthDay: boolean;
|
|
167
|
+
phoneNumber?: string | null;
|
|
168
|
+
hiddenPhoneNumber: boolean;
|
|
150
169
|
} & BaseEntity;
|
|
151
170
|
|
|
152
171
|
declare function sayHello(): void;
|
|
@@ -300,4 +319,4 @@ type AccountPostMeResponse = {
|
|
|
300
319
|
providerId: string;
|
|
301
320
|
};
|
|
302
321
|
|
|
303
|
-
export { type
|
|
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 };
|