@experts_hub/shared 1.0.143 → 1.0.144
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/entities/user.entity.d.ts +4 -1
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +8 -0
- package/dist/index.mjs +8 -0
- package/package.json +1 -1
|
@@ -17,7 +17,8 @@ export declare enum AccountType {
|
|
|
17
17
|
ADMIN = "ADMIN",
|
|
18
18
|
SUB_ADMIN = "SUB_ADMIN",
|
|
19
19
|
CLIENT = "CLIENT",
|
|
20
|
-
FREELANCER = "FREELANCER"
|
|
20
|
+
FREELANCER = "FREELANCER",
|
|
21
|
+
CLIENT_EMPLOYEE = "CLIENT_EMPLOYEE"
|
|
21
22
|
}
|
|
22
23
|
export declare enum AccountStatus {
|
|
23
24
|
INACTIVE = "INACTIVE",
|
|
@@ -33,6 +34,7 @@ export declare enum Provider {
|
|
|
33
34
|
export declare class User extends BaseEntity {
|
|
34
35
|
uniqueId: string;
|
|
35
36
|
parentId: number;
|
|
37
|
+
companyRoleId: number;
|
|
36
38
|
parent: User;
|
|
37
39
|
children: User[];
|
|
38
40
|
username: string;
|
|
@@ -49,6 +51,7 @@ export declare class User extends BaseEntity {
|
|
|
49
51
|
accountStatus: AccountStatus;
|
|
50
52
|
isEmailVerified: boolean;
|
|
51
53
|
isMobileVerified: boolean;
|
|
54
|
+
isPasswordSetByUser: boolean;
|
|
52
55
|
lastLoginAt: Date;
|
|
53
56
|
lastLoginIp: string;
|
|
54
57
|
resetToken: string | null;
|
package/dist/index.d.mts
CHANGED
|
@@ -817,7 +817,8 @@ declare enum AccountType {
|
|
|
817
817
|
ADMIN = "ADMIN",
|
|
818
818
|
SUB_ADMIN = "SUB_ADMIN",
|
|
819
819
|
CLIENT = "CLIENT",
|
|
820
|
-
FREELANCER = "FREELANCER"
|
|
820
|
+
FREELANCER = "FREELANCER",
|
|
821
|
+
CLIENT_EMPLOYEE = "CLIENT_EMPLOYEE"
|
|
821
822
|
}
|
|
822
823
|
declare enum AccountStatus {
|
|
823
824
|
INACTIVE = "INACTIVE",
|
|
@@ -833,6 +834,7 @@ declare enum Provider {
|
|
|
833
834
|
declare class User extends BaseEntity {
|
|
834
835
|
uniqueId: string;
|
|
835
836
|
parentId: number;
|
|
837
|
+
companyRoleId: number;
|
|
836
838
|
parent: User;
|
|
837
839
|
children: User[];
|
|
838
840
|
username: string;
|
|
@@ -849,6 +851,7 @@ declare class User extends BaseEntity {
|
|
|
849
851
|
accountStatus: AccountStatus;
|
|
850
852
|
isEmailVerified: boolean;
|
|
851
853
|
isMobileVerified: boolean;
|
|
854
|
+
isPasswordSetByUser: boolean;
|
|
852
855
|
lastLoginAt: Date;
|
|
853
856
|
lastLoginIp: string;
|
|
854
857
|
resetToken: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -817,7 +817,8 @@ declare enum AccountType {
|
|
|
817
817
|
ADMIN = "ADMIN",
|
|
818
818
|
SUB_ADMIN = "SUB_ADMIN",
|
|
819
819
|
CLIENT = "CLIENT",
|
|
820
|
-
FREELANCER = "FREELANCER"
|
|
820
|
+
FREELANCER = "FREELANCER",
|
|
821
|
+
CLIENT_EMPLOYEE = "CLIENT_EMPLOYEE"
|
|
821
822
|
}
|
|
822
823
|
declare enum AccountStatus {
|
|
823
824
|
INACTIVE = "INACTIVE",
|
|
@@ -833,6 +834,7 @@ declare enum Provider {
|
|
|
833
834
|
declare class User extends BaseEntity {
|
|
834
835
|
uniqueId: string;
|
|
835
836
|
parentId: number;
|
|
837
|
+
companyRoleId: number;
|
|
836
838
|
parent: User;
|
|
837
839
|
children: User[];
|
|
838
840
|
username: string;
|
|
@@ -849,6 +851,7 @@ declare class User extends BaseEntity {
|
|
|
849
851
|
accountStatus: AccountStatus;
|
|
850
852
|
isEmailVerified: boolean;
|
|
851
853
|
isMobileVerified: boolean;
|
|
854
|
+
isPasswordSetByUser: boolean;
|
|
852
855
|
lastLoginAt: Date;
|
|
853
856
|
lastLoginIp: string;
|
|
854
857
|
resetToken: string | null;
|
package/dist/index.js
CHANGED
|
@@ -1985,6 +1985,7 @@ var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
|
1985
1985
|
AccountType2["SUB_ADMIN"] = "SUB_ADMIN";
|
|
1986
1986
|
AccountType2["CLIENT"] = "CLIENT";
|
|
1987
1987
|
AccountType2["FREELANCER"] = "FREELANCER";
|
|
1988
|
+
AccountType2["CLIENT_EMPLOYEE"] = "CLIENT_EMPLOYEE";
|
|
1988
1989
|
return AccountType2;
|
|
1989
1990
|
})(AccountType || {});
|
|
1990
1991
|
var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
@@ -2009,6 +2010,10 @@ __decorateClass([
|
|
|
2009
2010
|
(0, import_typeorm18.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
2010
2011
|
(0, import_typeorm18.Index)()
|
|
2011
2012
|
], User.prototype, "parentId", 2);
|
|
2013
|
+
__decorateClass([
|
|
2014
|
+
(0, import_typeorm18.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2015
|
+
(0, import_typeorm18.Index)()
|
|
2016
|
+
], User.prototype, "companyRoleId", 2);
|
|
2012
2017
|
__decorateClass([
|
|
2013
2018
|
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
2014
2019
|
(0, import_typeorm18.JoinColumn)({ name: "parent_id" })
|
|
@@ -2068,6 +2073,9 @@ __decorateClass([
|
|
|
2068
2073
|
__decorateClass([
|
|
2069
2074
|
(0, import_typeorm18.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2070
2075
|
], User.prototype, "isMobileVerified", 2);
|
|
2076
|
+
__decorateClass([
|
|
2077
|
+
(0, import_typeorm18.Column)({ name: "is_password_set_by_user", type: "boolean", default: false })
|
|
2078
|
+
], User.prototype, "isPasswordSetByUser", 2);
|
|
2071
2079
|
__decorateClass([
|
|
2072
2080
|
(0, import_typeorm18.Column)({
|
|
2073
2081
|
name: "last_login_at",
|
package/dist/index.mjs
CHANGED
|
@@ -2026,6 +2026,7 @@ var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
|
2026
2026
|
AccountType2["SUB_ADMIN"] = "SUB_ADMIN";
|
|
2027
2027
|
AccountType2["CLIENT"] = "CLIENT";
|
|
2028
2028
|
AccountType2["FREELANCER"] = "FREELANCER";
|
|
2029
|
+
AccountType2["CLIENT_EMPLOYEE"] = "CLIENT_EMPLOYEE";
|
|
2029
2030
|
return AccountType2;
|
|
2030
2031
|
})(AccountType || {});
|
|
2031
2032
|
var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
@@ -2050,6 +2051,10 @@ __decorateClass([
|
|
|
2050
2051
|
Column18({ name: "parent_id", type: "integer", nullable: true }),
|
|
2051
2052
|
Index14()
|
|
2052
2053
|
], User.prototype, "parentId", 2);
|
|
2054
|
+
__decorateClass([
|
|
2055
|
+
Column18({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2056
|
+
Index14()
|
|
2057
|
+
], User.prototype, "companyRoleId", 2);
|
|
2053
2058
|
__decorateClass([
|
|
2054
2059
|
ManyToOne16(() => User, (user) => user.children, { nullable: true }),
|
|
2055
2060
|
JoinColumn16({ name: "parent_id" })
|
|
@@ -2109,6 +2114,9 @@ __decorateClass([
|
|
|
2109
2114
|
__decorateClass([
|
|
2110
2115
|
Column18({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2111
2116
|
], User.prototype, "isMobileVerified", 2);
|
|
2117
|
+
__decorateClass([
|
|
2118
|
+
Column18({ name: "is_password_set_by_user", type: "boolean", default: false })
|
|
2119
|
+
], User.prototype, "isPasswordSetByUser", 2);
|
|
2112
2120
|
__decorateClass([
|
|
2113
2121
|
Column18({
|
|
2114
2122
|
name: "last_login_at",
|