gst-common 1.1.35 → 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 +35 -22
- package/dist/index.d.ts +35 -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,24 @@ 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 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:
|
|
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
|
|
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
|
|
106
|
+
type TAdministrativeUnitEntity = {
|
|
107
107
|
id: number;
|
|
108
108
|
fullName?: string;
|
|
109
109
|
fullNameEn?: string;
|
|
@@ -112,37 +112,50 @@ type AdministrativeUnitEntity = {
|
|
|
112
112
|
codeName?: string;
|
|
113
113
|
codeNameEn?: string;
|
|
114
114
|
};
|
|
115
|
-
type
|
|
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:
|
|
123
|
-
administrativeUnit:
|
|
122
|
+
administrativeRegion: TAdministrativeRegionEntity;
|
|
123
|
+
administrativeUnit: TAdministrativeUnitEntity;
|
|
124
124
|
};
|
|
125
|
-
type
|
|
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:
|
|
133
|
-
administrativeUnit:
|
|
132
|
+
province: TProvinceEntity;
|
|
133
|
+
administrativeUnit: TAdministrativeUnitEntity;
|
|
134
134
|
};
|
|
135
|
-
type
|
|
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?:
|
|
142
|
-
province?:
|
|
141
|
+
district?: TDistrictEntity;
|
|
142
|
+
province?: TProvinceEntity;
|
|
143
143
|
workAt?: string;
|
|
144
|
+
birthDay?: string;
|
|
145
|
+
hiddenBirthDay?: boolean;
|
|
146
|
+
phoneNumber?: string;
|
|
147
|
+
hiddenPhoneNumber?: boolean;
|
|
144
148
|
hiddenWorkAt: boolean;
|
|
145
|
-
account:
|
|
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;
|
|
146
159
|
} & BaseEntity;
|
|
147
160
|
|
|
148
161
|
declare function sayHello(): void;
|
|
@@ -296,4 +309,4 @@ type AccountPostMeResponse = {
|
|
|
296
309
|
providerId: string;
|
|
297
310
|
};
|
|
298
311
|
|
|
299
|
-
export { type
|
|
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?:
|
|
43
|
-
updatedBy?:
|
|
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
|
|
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 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:
|
|
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
|
|
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
|
|
106
|
+
type TAdministrativeUnitEntity = {
|
|
107
107
|
id: number;
|
|
108
108
|
fullName?: string;
|
|
109
109
|
fullNameEn?: string;
|
|
@@ -112,37 +112,50 @@ type AdministrativeUnitEntity = {
|
|
|
112
112
|
codeName?: string;
|
|
113
113
|
codeNameEn?: string;
|
|
114
114
|
};
|
|
115
|
-
type
|
|
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:
|
|
123
|
-
administrativeUnit:
|
|
122
|
+
administrativeRegion: TAdministrativeRegionEntity;
|
|
123
|
+
administrativeUnit: TAdministrativeUnitEntity;
|
|
124
124
|
};
|
|
125
|
-
type
|
|
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:
|
|
133
|
-
administrativeUnit:
|
|
132
|
+
province: TProvinceEntity;
|
|
133
|
+
administrativeUnit: TAdministrativeUnitEntity;
|
|
134
134
|
};
|
|
135
|
-
type
|
|
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?:
|
|
142
|
-
province?:
|
|
141
|
+
district?: TDistrictEntity;
|
|
142
|
+
province?: TProvinceEntity;
|
|
143
143
|
workAt?: string;
|
|
144
|
+
birthDay?: string;
|
|
145
|
+
hiddenBirthDay?: boolean;
|
|
146
|
+
phoneNumber?: string;
|
|
147
|
+
hiddenPhoneNumber?: boolean;
|
|
144
148
|
hiddenWorkAt: boolean;
|
|
145
|
-
account:
|
|
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;
|
|
146
159
|
} & BaseEntity;
|
|
147
160
|
|
|
148
161
|
declare function sayHello(): void;
|
|
@@ -296,4 +309,4 @@ type AccountPostMeResponse = {
|
|
|
296
309
|
providerId: string;
|
|
297
310
|
};
|
|
298
311
|
|
|
299
|
-
export { type
|
|
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 };
|