@experts_hub/shared 1.0.143 → 1.0.145

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.
@@ -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;
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;
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;
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" })
@@ -2044,7 +2049,7 @@ __decorateClass([
2044
2049
  (0, import_typeorm18.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
2045
2050
  ], User.prototype, "mobile", 2);
2046
2051
  __decorateClass([
2047
- (0, import_typeorm18.Column)({ name: "password", type: "varchar" })
2052
+ (0, import_typeorm18.Column)({ name: "password", type: "varchar", nullable: true })
2048
2053
  ], User.prototype, "password", 2);
2049
2054
  __decorateClass([
2050
2055
  (0, import_typeorm18.Column)({
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" })
@@ -2085,7 +2090,7 @@ __decorateClass([
2085
2090
  Column18({ name: "mobile", type: "varchar", unique: true, nullable: true })
2086
2091
  ], User.prototype, "mobile", 2);
2087
2092
  __decorateClass([
2088
- Column18({ name: "password", type: "varchar" })
2093
+ Column18({ name: "password", type: "varchar", nullable: true })
2089
2094
  ], User.prototype, "password", 2);
2090
2095
  __decorateClass([
2091
2096
  Column18({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.143",
3
+ "version": "1.0.145",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",