gst-common 1.1.20 → 1.1.21
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 -1
- package/dist/index.d.ts +23 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -25,6 +25,14 @@ type BasePaginationParams = {
|
|
|
25
25
|
page?: number;
|
|
26
26
|
limit?: number;
|
|
27
27
|
};
|
|
28
|
+
type BaseEntity = {
|
|
29
|
+
id: string;
|
|
30
|
+
createdAt: string;
|
|
31
|
+
updatedAt: string;
|
|
32
|
+
deletedAt: string | null;
|
|
33
|
+
createdBy?: AccountEntity;
|
|
34
|
+
updatedBy?: AccountEntity;
|
|
35
|
+
};
|
|
28
36
|
type DATA_THIRD_PARTY_LOGIN = {
|
|
29
37
|
fullname: string;
|
|
30
38
|
providerId: string;
|
|
@@ -53,6 +61,20 @@ type ProgramEntity = {
|
|
|
53
61
|
toPrice: number;
|
|
54
62
|
fromTeachingHour: number;
|
|
55
63
|
toTeachingHour: number;
|
|
64
|
+
} & BaseEntity;
|
|
65
|
+
type AccountEntity = {
|
|
66
|
+
id: string;
|
|
67
|
+
fullname: string;
|
|
68
|
+
avatar?: string | null;
|
|
69
|
+
type?: CUSTOMER_TYPE | null;
|
|
70
|
+
registerMethod: REGISTER_METHOD;
|
|
71
|
+
password?: string;
|
|
72
|
+
username: string;
|
|
73
|
+
keyForgot?: string | null;
|
|
74
|
+
providerId?: string | null;
|
|
75
|
+
updatedAt: Date;
|
|
76
|
+
createdAt: Date;
|
|
77
|
+
deletedAt?: Date | null;
|
|
56
78
|
};
|
|
57
79
|
|
|
58
80
|
declare function sayHello(): void;
|
|
@@ -130,4 +152,4 @@ type AccountPostMeResponse = {
|
|
|
130
152
|
providerId: string;
|
|
131
153
|
};
|
|
132
154
|
|
|
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 };
|
|
155
|
+
export { type AccountEntity, type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, 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
|
@@ -25,6 +25,14 @@ type BasePaginationParams = {
|
|
|
25
25
|
page?: number;
|
|
26
26
|
limit?: number;
|
|
27
27
|
};
|
|
28
|
+
type BaseEntity = {
|
|
29
|
+
id: string;
|
|
30
|
+
createdAt: string;
|
|
31
|
+
updatedAt: string;
|
|
32
|
+
deletedAt: string | null;
|
|
33
|
+
createdBy?: AccountEntity;
|
|
34
|
+
updatedBy?: AccountEntity;
|
|
35
|
+
};
|
|
28
36
|
type DATA_THIRD_PARTY_LOGIN = {
|
|
29
37
|
fullname: string;
|
|
30
38
|
providerId: string;
|
|
@@ -53,6 +61,20 @@ type ProgramEntity = {
|
|
|
53
61
|
toPrice: number;
|
|
54
62
|
fromTeachingHour: number;
|
|
55
63
|
toTeachingHour: number;
|
|
64
|
+
} & BaseEntity;
|
|
65
|
+
type AccountEntity = {
|
|
66
|
+
id: string;
|
|
67
|
+
fullname: string;
|
|
68
|
+
avatar?: string | null;
|
|
69
|
+
type?: CUSTOMER_TYPE | null;
|
|
70
|
+
registerMethod: REGISTER_METHOD;
|
|
71
|
+
password?: string;
|
|
72
|
+
username: string;
|
|
73
|
+
keyForgot?: string | null;
|
|
74
|
+
providerId?: string | null;
|
|
75
|
+
updatedAt: Date;
|
|
76
|
+
createdAt: Date;
|
|
77
|
+
deletedAt?: Date | null;
|
|
56
78
|
};
|
|
57
79
|
|
|
58
80
|
declare function sayHello(): void;
|
|
@@ -130,4 +152,4 @@ type AccountPostMeResponse = {
|
|
|
130
152
|
providerId: string;
|
|
131
153
|
};
|
|
132
154
|
|
|
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 };
|
|
155
|
+
export { type AccountEntity, type AccountPostMeResponse, type AccountSignInResponse, type BaseEntity, 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 };
|