gst-common 1.1.20 → 1.1.22

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 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;
@@ -51,8 +59,23 @@ type ProgramEntity = {
51
59
  suitableLearners: ProgramSuitableLearnerEntity[];
52
60
  fromPrice: number;
53
61
  toPrice: number;
62
+ account: AccountEntity;
54
63
  fromTeachingHour: number;
55
64
  toTeachingHour: number;
65
+ } & BaseEntity;
66
+ type AccountEntity = {
67
+ id: string;
68
+ fullname: string;
69
+ avatar?: string | null;
70
+ type?: CUSTOMER_TYPE | null;
71
+ registerMethod: REGISTER_METHOD;
72
+ password?: string;
73
+ username: string;
74
+ keyForgot?: string | null;
75
+ providerId?: string | null;
76
+ updatedAt: Date;
77
+ createdAt: Date;
78
+ deletedAt?: Date | null;
56
79
  };
57
80
 
58
81
  declare function sayHello(): void;
@@ -130,4 +153,4 @@ type AccountPostMeResponse = {
130
153
  providerId: string;
131
154
  };
132
155
 
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 };
156
+ 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;
@@ -51,8 +59,23 @@ type ProgramEntity = {
51
59
  suitableLearners: ProgramSuitableLearnerEntity[];
52
60
  fromPrice: number;
53
61
  toPrice: number;
62
+ account: AccountEntity;
54
63
  fromTeachingHour: number;
55
64
  toTeachingHour: number;
65
+ } & BaseEntity;
66
+ type AccountEntity = {
67
+ id: string;
68
+ fullname: string;
69
+ avatar?: string | null;
70
+ type?: CUSTOMER_TYPE | null;
71
+ registerMethod: REGISTER_METHOD;
72
+ password?: string;
73
+ username: string;
74
+ keyForgot?: string | null;
75
+ providerId?: string | null;
76
+ updatedAt: Date;
77
+ createdAt: Date;
78
+ deletedAt?: Date | null;
56
79
  };
57
80
 
58
81
  declare function sayHello(): void;
@@ -130,4 +153,4 @@ type AccountPostMeResponse = {
130
153
  providerId: string;
131
154
  };
132
155
 
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 };
156
+ 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gst-common",
3
- "version": "1.1.20",
3
+ "version": "1.1.22",
4
4
  "description": "store all common variables that we need",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",