@experts_hub/shared 1.0.179 → 1.0.181
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/company-role.entity.d.ts +3 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +30 -23
- package/dist/index.d.ts +30 -23
- package/dist/index.js +281 -234
- package/dist/index.mjs +347 -290
- package/dist/modules/company-role/company-role.interface.d.ts +2 -0
- package/dist/modules/company-role/dto/create-company-role.dto.d.ts +1 -0
- package/dist/modules/company-role/dto/update-company-role.dto.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { BaseEntity } from "./base.entity";
|
|
2
2
|
import { CompanyRolePermission } from "./company-role-permission.entity";
|
|
3
|
+
import { User } from "./user.entity";
|
|
3
4
|
export declare class CompanyRole extends BaseEntity {
|
|
5
|
+
userId: number;
|
|
6
|
+
user: User;
|
|
4
7
|
name: string;
|
|
5
8
|
slug: string;
|
|
6
9
|
description: string;
|
|
@@ -10,6 +10,7 @@ import { BankDetail } from "./bank-details.entity";
|
|
|
10
10
|
import { SystemPreference } from "./system-preference.entity";
|
|
11
11
|
import { Rating } from "./rating.entity";
|
|
12
12
|
import { JobApplication } from "./job-application.entity";
|
|
13
|
+
import { CompanyRole } from "./company-role.entity";
|
|
13
14
|
import { FreelancerExperience } from "./freelancer-experience.entity";
|
|
14
15
|
import { FreelancerEducation } from "./freelancer-education.entity";
|
|
15
16
|
import { FreelancerProject } from "./freelancer-project.entity";
|
|
@@ -70,6 +71,7 @@ export declare class User extends BaseEntity {
|
|
|
70
71
|
senseloafLogs: SenseloafLog[];
|
|
71
72
|
freelancerProfile: FreelancerProfile;
|
|
72
73
|
companyProfile: CompanyProfile;
|
|
74
|
+
companyRoles: CompanyRole[];
|
|
73
75
|
assessments: FreelancerAssessment[];
|
|
74
76
|
jobs: Job[];
|
|
75
77
|
interviews: Interview[];
|
package/dist/index.d.mts
CHANGED
|
@@ -832,6 +832,31 @@ declare class SystemPreference extends BaseEntity {
|
|
|
832
832
|
value: boolean;
|
|
833
833
|
}
|
|
834
834
|
|
|
835
|
+
declare class Permission extends BaseEntity {
|
|
836
|
+
name: string;
|
|
837
|
+
slug: string;
|
|
838
|
+
description: string;
|
|
839
|
+
isActive: boolean;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
declare class CompanyRolePermission extends BaseEntity {
|
|
843
|
+
companyRoleId: number;
|
|
844
|
+
companyRole: CompanyRole;
|
|
845
|
+
permissionId: number;
|
|
846
|
+
permission: Permission;
|
|
847
|
+
assignedBy?: number;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
declare class CompanyRole extends BaseEntity {
|
|
851
|
+
userId: number;
|
|
852
|
+
user: User;
|
|
853
|
+
name: string;
|
|
854
|
+
slug: string;
|
|
855
|
+
description: string;
|
|
856
|
+
isActive: boolean;
|
|
857
|
+
rolePermissions: CompanyRolePermission[];
|
|
858
|
+
}
|
|
859
|
+
|
|
835
860
|
declare class FreelancerExperience extends BaseEntity {
|
|
836
861
|
userId: number;
|
|
837
862
|
user: User;
|
|
@@ -970,6 +995,7 @@ declare class User extends BaseEntity {
|
|
|
970
995
|
senseloafLogs: SenseloafLog[];
|
|
971
996
|
freelancerProfile: FreelancerProfile;
|
|
972
997
|
companyProfile: CompanyProfile;
|
|
998
|
+
companyRoles: CompanyRole[];
|
|
973
999
|
assessments: FreelancerAssessment[];
|
|
974
1000
|
jobs: Job[];
|
|
975
1001
|
interviews: Interview[];
|
|
@@ -1043,6 +1069,7 @@ declare class CreateCompanyRoleDto {
|
|
|
1043
1069
|
name: string;
|
|
1044
1070
|
slug: string;
|
|
1045
1071
|
description: string;
|
|
1072
|
+
permissionIds: number[];
|
|
1046
1073
|
isActive: boolean;
|
|
1047
1074
|
}
|
|
1048
1075
|
|
|
@@ -1050,6 +1077,7 @@ declare class UpdateCompanyRoleDto {
|
|
|
1050
1077
|
name: string;
|
|
1051
1078
|
slug: string;
|
|
1052
1079
|
description: string;
|
|
1080
|
+
permissionIds: number[];
|
|
1053
1081
|
isActive: boolean;
|
|
1054
1082
|
}
|
|
1055
1083
|
|
|
@@ -1086,6 +1114,7 @@ interface ICreateCompanyRolePayload {
|
|
|
1086
1114
|
slug: string;
|
|
1087
1115
|
description: string;
|
|
1088
1116
|
isActive: boolean;
|
|
1117
|
+
permissionIds: number[];
|
|
1089
1118
|
}
|
|
1090
1119
|
interface ICreateCompanyRoleResponse {
|
|
1091
1120
|
statusCode: number;
|
|
@@ -1097,6 +1126,7 @@ interface IUpdateCompanyRolePayload {
|
|
|
1097
1126
|
slug: string;
|
|
1098
1127
|
description: string;
|
|
1099
1128
|
isActive: boolean;
|
|
1129
|
+
permissionIds: number[];
|
|
1100
1130
|
}
|
|
1101
1131
|
interface IUpdateCompanyRoleResponse {
|
|
1102
1132
|
statusCode: number;
|
|
@@ -1358,29 +1388,6 @@ declare class Question extends BaseEntity {
|
|
|
1358
1388
|
isActive: boolean;
|
|
1359
1389
|
}
|
|
1360
1390
|
|
|
1361
|
-
declare class Permission extends BaseEntity {
|
|
1362
|
-
name: string;
|
|
1363
|
-
slug: string;
|
|
1364
|
-
description: string;
|
|
1365
|
-
isActive: boolean;
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
declare class CompanyRolePermission extends BaseEntity {
|
|
1369
|
-
companyRoleId: number;
|
|
1370
|
-
companyRole: CompanyRole;
|
|
1371
|
-
permissionId: number;
|
|
1372
|
-
permission: Permission;
|
|
1373
|
-
assignedBy?: number;
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
declare class CompanyRole extends BaseEntity {
|
|
1377
|
-
name: string;
|
|
1378
|
-
slug: string;
|
|
1379
|
-
description: string;
|
|
1380
|
-
isActive: boolean;
|
|
1381
|
-
rolePermissions: CompanyRolePermission[];
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
1391
|
declare class JobRoles extends BaseEntity {
|
|
1385
1392
|
slug: string;
|
|
1386
1393
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -832,6 +832,31 @@ declare class SystemPreference extends BaseEntity {
|
|
|
832
832
|
value: boolean;
|
|
833
833
|
}
|
|
834
834
|
|
|
835
|
+
declare class Permission extends BaseEntity {
|
|
836
|
+
name: string;
|
|
837
|
+
slug: string;
|
|
838
|
+
description: string;
|
|
839
|
+
isActive: boolean;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
declare class CompanyRolePermission extends BaseEntity {
|
|
843
|
+
companyRoleId: number;
|
|
844
|
+
companyRole: CompanyRole;
|
|
845
|
+
permissionId: number;
|
|
846
|
+
permission: Permission;
|
|
847
|
+
assignedBy?: number;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
declare class CompanyRole extends BaseEntity {
|
|
851
|
+
userId: number;
|
|
852
|
+
user: User;
|
|
853
|
+
name: string;
|
|
854
|
+
slug: string;
|
|
855
|
+
description: string;
|
|
856
|
+
isActive: boolean;
|
|
857
|
+
rolePermissions: CompanyRolePermission[];
|
|
858
|
+
}
|
|
859
|
+
|
|
835
860
|
declare class FreelancerExperience extends BaseEntity {
|
|
836
861
|
userId: number;
|
|
837
862
|
user: User;
|
|
@@ -970,6 +995,7 @@ declare class User extends BaseEntity {
|
|
|
970
995
|
senseloafLogs: SenseloafLog[];
|
|
971
996
|
freelancerProfile: FreelancerProfile;
|
|
972
997
|
companyProfile: CompanyProfile;
|
|
998
|
+
companyRoles: CompanyRole[];
|
|
973
999
|
assessments: FreelancerAssessment[];
|
|
974
1000
|
jobs: Job[];
|
|
975
1001
|
interviews: Interview[];
|
|
@@ -1043,6 +1069,7 @@ declare class CreateCompanyRoleDto {
|
|
|
1043
1069
|
name: string;
|
|
1044
1070
|
slug: string;
|
|
1045
1071
|
description: string;
|
|
1072
|
+
permissionIds: number[];
|
|
1046
1073
|
isActive: boolean;
|
|
1047
1074
|
}
|
|
1048
1075
|
|
|
@@ -1050,6 +1077,7 @@ declare class UpdateCompanyRoleDto {
|
|
|
1050
1077
|
name: string;
|
|
1051
1078
|
slug: string;
|
|
1052
1079
|
description: string;
|
|
1080
|
+
permissionIds: number[];
|
|
1053
1081
|
isActive: boolean;
|
|
1054
1082
|
}
|
|
1055
1083
|
|
|
@@ -1086,6 +1114,7 @@ interface ICreateCompanyRolePayload {
|
|
|
1086
1114
|
slug: string;
|
|
1087
1115
|
description: string;
|
|
1088
1116
|
isActive: boolean;
|
|
1117
|
+
permissionIds: number[];
|
|
1089
1118
|
}
|
|
1090
1119
|
interface ICreateCompanyRoleResponse {
|
|
1091
1120
|
statusCode: number;
|
|
@@ -1097,6 +1126,7 @@ interface IUpdateCompanyRolePayload {
|
|
|
1097
1126
|
slug: string;
|
|
1098
1127
|
description: string;
|
|
1099
1128
|
isActive: boolean;
|
|
1129
|
+
permissionIds: number[];
|
|
1100
1130
|
}
|
|
1101
1131
|
interface IUpdateCompanyRoleResponse {
|
|
1102
1132
|
statusCode: number;
|
|
@@ -1358,29 +1388,6 @@ declare class Question extends BaseEntity {
|
|
|
1358
1388
|
isActive: boolean;
|
|
1359
1389
|
}
|
|
1360
1390
|
|
|
1361
|
-
declare class Permission extends BaseEntity {
|
|
1362
|
-
name: string;
|
|
1363
|
-
slug: string;
|
|
1364
|
-
description: string;
|
|
1365
|
-
isActive: boolean;
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
declare class CompanyRolePermission extends BaseEntity {
|
|
1369
|
-
companyRoleId: number;
|
|
1370
|
-
companyRole: CompanyRole;
|
|
1371
|
-
permissionId: number;
|
|
1372
|
-
permission: Permission;
|
|
1373
|
-
assignedBy?: number;
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
declare class CompanyRole extends BaseEntity {
|
|
1377
|
-
name: string;
|
|
1378
|
-
slug: string;
|
|
1379
|
-
description: string;
|
|
1380
|
-
isActive: boolean;
|
|
1381
|
-
rolePermissions: CompanyRolePermission[];
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
1391
|
declare class JobRoles extends BaseEntity {
|
|
1385
1392
|
slug: string;
|
|
1386
1393
|
name: string;
|