gst-common 1.1.18 → 1.1.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.d.cts +23 -3
- package/dist/index.d.ts +23 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
declare const OTP_RESEND_TIME = 20;
|
|
2
2
|
|
|
3
|
-
declare function sayHello(): void;
|
|
4
|
-
|
|
5
3
|
declare enum CUSTOMER_TYPE {
|
|
6
4
|
TUTOR = "tutor",
|
|
7
5
|
STUDENT = "student"
|
|
@@ -23,6 +21,10 @@ type BaseResponse<T = any> = {
|
|
|
23
21
|
message: string;
|
|
24
22
|
data: T;
|
|
25
23
|
};
|
|
24
|
+
type BasePaginationParams = {
|
|
25
|
+
page?: number;
|
|
26
|
+
limit?: number;
|
|
27
|
+
};
|
|
26
28
|
type DATA_THIRD_PARTY_LOGIN = {
|
|
27
29
|
fullname: string;
|
|
28
30
|
providerId: string;
|
|
@@ -37,6 +39,24 @@ declare enum PROGRAM_SUITABLE_LEARNER {
|
|
|
37
39
|
WORKING_PEOPLE = "working_people"
|
|
38
40
|
}
|
|
39
41
|
|
|
42
|
+
type ProgramSuitableLearnerEntity = {
|
|
43
|
+
suitableLeanerCode: PROGRAM_SUITABLE_LEARNER;
|
|
44
|
+
program: ProgramEntity;
|
|
45
|
+
};
|
|
46
|
+
type ProgramEntity = {
|
|
47
|
+
thumbnail: string;
|
|
48
|
+
name: string;
|
|
49
|
+
shortDescription: string;
|
|
50
|
+
detailDescription: string;
|
|
51
|
+
suitableLearners: ProgramSuitableLearnerEntity[];
|
|
52
|
+
fromPrice: number;
|
|
53
|
+
toPrice: number;
|
|
54
|
+
fromTeachingHour: number;
|
|
55
|
+
toTeachingHour: number;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
declare function sayHello(): void;
|
|
59
|
+
|
|
40
60
|
declare const OBJECT_REGISTER_METHOD: {
|
|
41
61
|
email: {
|
|
42
62
|
value: REGISTER_METHOD;
|
|
@@ -110,4 +130,4 @@ type AccountPostMeResponse = {
|
|
|
110
130
|
providerId: string;
|
|
111
131
|
};
|
|
112
132
|
|
|
113
|
-
export { type AccountPostMeResponse, type AccountSignInResponse, type BaseResponse, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, OBJECT_CUSTOMER_TYPE, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_REGISTER_METHOD, OTP_RESEND_TIME, PROGRAM_SUITABLE_LEARNER, REGISTER_METHOD, ResponseStatus, sayHello };
|
|
133
|
+
export { type AccountPostMeResponse, type AccountSignInResponse, type BasePaginationParams, type BaseResponse, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, OBJECT_CUSTOMER_TYPE, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_REGISTER_METHOD, OTP_RESEND_TIME, PROGRAM_SUITABLE_LEARNER, type ProgramEntity, type ProgramSuitableLearnerEntity, REGISTER_METHOD, ResponseStatus, sayHello };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
declare const OTP_RESEND_TIME = 20;
|
|
2
2
|
|
|
3
|
-
declare function sayHello(): void;
|
|
4
|
-
|
|
5
3
|
declare enum CUSTOMER_TYPE {
|
|
6
4
|
TUTOR = "tutor",
|
|
7
5
|
STUDENT = "student"
|
|
@@ -23,6 +21,10 @@ type BaseResponse<T = any> = {
|
|
|
23
21
|
message: string;
|
|
24
22
|
data: T;
|
|
25
23
|
};
|
|
24
|
+
type BasePaginationParams = {
|
|
25
|
+
page?: number;
|
|
26
|
+
limit?: number;
|
|
27
|
+
};
|
|
26
28
|
type DATA_THIRD_PARTY_LOGIN = {
|
|
27
29
|
fullname: string;
|
|
28
30
|
providerId: string;
|
|
@@ -37,6 +39,24 @@ declare enum PROGRAM_SUITABLE_LEARNER {
|
|
|
37
39
|
WORKING_PEOPLE = "working_people"
|
|
38
40
|
}
|
|
39
41
|
|
|
42
|
+
type ProgramSuitableLearnerEntity = {
|
|
43
|
+
suitableLeanerCode: PROGRAM_SUITABLE_LEARNER;
|
|
44
|
+
program: ProgramEntity;
|
|
45
|
+
};
|
|
46
|
+
type ProgramEntity = {
|
|
47
|
+
thumbnail: string;
|
|
48
|
+
name: string;
|
|
49
|
+
shortDescription: string;
|
|
50
|
+
detailDescription: string;
|
|
51
|
+
suitableLearners: ProgramSuitableLearnerEntity[];
|
|
52
|
+
fromPrice: number;
|
|
53
|
+
toPrice: number;
|
|
54
|
+
fromTeachingHour: number;
|
|
55
|
+
toTeachingHour: number;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
declare function sayHello(): void;
|
|
59
|
+
|
|
40
60
|
declare const OBJECT_REGISTER_METHOD: {
|
|
41
61
|
email: {
|
|
42
62
|
value: REGISTER_METHOD;
|
|
@@ -110,4 +130,4 @@ type AccountPostMeResponse = {
|
|
|
110
130
|
providerId: string;
|
|
111
131
|
};
|
|
112
132
|
|
|
113
|
-
export { type AccountPostMeResponse, type AccountSignInResponse, type BaseResponse, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, OBJECT_CUSTOMER_TYPE, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_REGISTER_METHOD, OTP_RESEND_TIME, PROGRAM_SUITABLE_LEARNER, REGISTER_METHOD, ResponseStatus, sayHello };
|
|
133
|
+
export { type AccountPostMeResponse, type AccountSignInResponse, type BasePaginationParams, type BaseResponse, CUSTOMER_TYPE, type DATA_THIRD_PARTY_LOGIN, OBJECT_CUSTOMER_TYPE, OBJECT_PROGRAM_SUITABLE_LEARNER, OBJECT_REGISTER_METHOD, OTP_RESEND_TIME, PROGRAM_SUITABLE_LEARNER, type ProgramEntity, type ProgramSuitableLearnerEntity, REGISTER_METHOD, ResponseStatus, sayHello };
|