@experts_hub/shared 1.0.178 → 1.0.180
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-permission.entity.d.ts +1 -1
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +11 -1
- package/dist/index.mjs +22 -13
- 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
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MicroserviceOptions } from '@nestjs/microservices';
|
|
2
|
-
import { BaseEntity as BaseEntity$1 } from 'typeorm';
|
|
3
2
|
|
|
4
3
|
declare const AUTHENTICATION_PATTERN: {
|
|
5
4
|
handleValidateToken: string;
|
|
@@ -1044,6 +1043,7 @@ declare class CreateCompanyRoleDto {
|
|
|
1044
1043
|
name: string;
|
|
1045
1044
|
slug: string;
|
|
1046
1045
|
description: string;
|
|
1046
|
+
permissionIds: number[];
|
|
1047
1047
|
isActive: boolean;
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
@@ -1051,6 +1051,7 @@ declare class UpdateCompanyRoleDto {
|
|
|
1051
1051
|
name: string;
|
|
1052
1052
|
slug: string;
|
|
1053
1053
|
description: string;
|
|
1054
|
+
permissionIds: number[];
|
|
1054
1055
|
isActive: boolean;
|
|
1055
1056
|
}
|
|
1056
1057
|
|
|
@@ -1087,6 +1088,7 @@ interface ICreateCompanyRolePayload {
|
|
|
1087
1088
|
slug: string;
|
|
1088
1089
|
description: string;
|
|
1089
1090
|
isActive: boolean;
|
|
1091
|
+
permissionIds: number[];
|
|
1090
1092
|
}
|
|
1091
1093
|
interface ICreateCompanyRoleResponse {
|
|
1092
1094
|
statusCode: number;
|
|
@@ -1098,6 +1100,7 @@ interface IUpdateCompanyRolePayload {
|
|
|
1098
1100
|
slug: string;
|
|
1099
1101
|
description: string;
|
|
1100
1102
|
isActive: boolean;
|
|
1103
|
+
permissionIds: number[];
|
|
1101
1104
|
}
|
|
1102
1105
|
interface IUpdateCompanyRoleResponse {
|
|
1103
1106
|
statusCode: number;
|
|
@@ -1366,7 +1369,7 @@ declare class Permission extends BaseEntity {
|
|
|
1366
1369
|
isActive: boolean;
|
|
1367
1370
|
}
|
|
1368
1371
|
|
|
1369
|
-
declare class CompanyRolePermission extends BaseEntity
|
|
1372
|
+
declare class CompanyRolePermission extends BaseEntity {
|
|
1370
1373
|
companyRoleId: number;
|
|
1371
1374
|
companyRole: CompanyRole;
|
|
1372
1375
|
permissionId: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MicroserviceOptions } from '@nestjs/microservices';
|
|
2
|
-
import { BaseEntity as BaseEntity$1 } from 'typeorm';
|
|
3
2
|
|
|
4
3
|
declare const AUTHENTICATION_PATTERN: {
|
|
5
4
|
handleValidateToken: string;
|
|
@@ -1044,6 +1043,7 @@ declare class CreateCompanyRoleDto {
|
|
|
1044
1043
|
name: string;
|
|
1045
1044
|
slug: string;
|
|
1046
1045
|
description: string;
|
|
1046
|
+
permissionIds: number[];
|
|
1047
1047
|
isActive: boolean;
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
@@ -1051,6 +1051,7 @@ declare class UpdateCompanyRoleDto {
|
|
|
1051
1051
|
name: string;
|
|
1052
1052
|
slug: string;
|
|
1053
1053
|
description: string;
|
|
1054
|
+
permissionIds: number[];
|
|
1054
1055
|
isActive: boolean;
|
|
1055
1056
|
}
|
|
1056
1057
|
|
|
@@ -1087,6 +1088,7 @@ interface ICreateCompanyRolePayload {
|
|
|
1087
1088
|
slug: string;
|
|
1088
1089
|
description: string;
|
|
1089
1090
|
isActive: boolean;
|
|
1091
|
+
permissionIds: number[];
|
|
1090
1092
|
}
|
|
1091
1093
|
interface ICreateCompanyRoleResponse {
|
|
1092
1094
|
statusCode: number;
|
|
@@ -1098,6 +1100,7 @@ interface IUpdateCompanyRolePayload {
|
|
|
1098
1100
|
slug: string;
|
|
1099
1101
|
description: string;
|
|
1100
1102
|
isActive: boolean;
|
|
1103
|
+
permissionIds: number[];
|
|
1101
1104
|
}
|
|
1102
1105
|
interface IUpdateCompanyRoleResponse {
|
|
1103
1106
|
statusCode: number;
|
|
@@ -1366,7 +1369,7 @@ declare class Permission extends BaseEntity {
|
|
|
1366
1369
|
isActive: boolean;
|
|
1367
1370
|
}
|
|
1368
1371
|
|
|
1369
|
-
declare class CompanyRolePermission extends BaseEntity
|
|
1372
|
+
declare class CompanyRolePermission extends BaseEntity {
|
|
1370
1373
|
companyRoleId: number;
|
|
1371
1374
|
companyRole: CompanyRole;
|
|
1372
1375
|
permissionId: number;
|
package/dist/index.js
CHANGED
|
@@ -2588,6 +2588,11 @@ __decorateClass([
|
|
|
2588
2588
|
__decorateClass([
|
|
2589
2589
|
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter description" })
|
|
2590
2590
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
2591
|
+
__decorateClass([
|
|
2592
|
+
(0, import_class_validator36.IsArray)({ message: "Permission IDs must be an array." }),
|
|
2593
|
+
(0, import_class_validator36.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
2594
|
+
(0, import_class_validator36.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
2595
|
+
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
2591
2596
|
__decorateClass([
|
|
2592
2597
|
(0, import_class_validator36.IsOptional)(),
|
|
2593
2598
|
(0, import_class_validator36.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
@@ -2606,6 +2611,11 @@ __decorateClass([
|
|
|
2606
2611
|
__decorateClass([
|
|
2607
2612
|
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter description" })
|
|
2608
2613
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
2614
|
+
__decorateClass([
|
|
2615
|
+
(0, import_class_validator37.IsArray)({ message: "Permission IDs must be an array." }),
|
|
2616
|
+
(0, import_class_validator37.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
2617
|
+
(0, import_class_validator37.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
2618
|
+
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
2609
2619
|
__decorateClass([
|
|
2610
2620
|
(0, import_class_validator37.IsOptional)(),
|
|
2611
2621
|
(0, import_class_validator37.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
@@ -3214,7 +3224,7 @@ Permission = __decorateClass([
|
|
|
3214
3224
|
], Permission);
|
|
3215
3225
|
|
|
3216
3226
|
// src/entities/company-role-permission.entity.ts
|
|
3217
|
-
var CompanyRolePermission = class extends
|
|
3227
|
+
var CompanyRolePermission = class extends BaseEntity {
|
|
3218
3228
|
};
|
|
3219
3229
|
__decorateClass([
|
|
3220
3230
|
(0, import_typeorm28.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
package/dist/index.mjs
CHANGED
|
@@ -2633,7 +2633,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
2633
2633
|
};
|
|
2634
2634
|
|
|
2635
2635
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
2636
|
-
import { IsBoolean as IsBoolean6, IsNotEmpty as IsNotEmpty30, IsOptional as IsOptional10 } from "class-validator";
|
|
2636
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean6, IsInt as IsInt2, IsNotEmpty as IsNotEmpty30, IsOptional as IsOptional10 } from "class-validator";
|
|
2637
2637
|
var CreateCompanyRoleDto = class {
|
|
2638
2638
|
};
|
|
2639
2639
|
__decorateClass([
|
|
@@ -2645,13 +2645,18 @@ __decorateClass([
|
|
|
2645
2645
|
__decorateClass([
|
|
2646
2646
|
IsNotEmpty30({ message: "Please enter description" })
|
|
2647
2647
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
2648
|
+
__decorateClass([
|
|
2649
|
+
IsArray2({ message: "Permission IDs must be an array." }),
|
|
2650
|
+
ArrayNotEmpty2({ message: "Please select at least one permission." }),
|
|
2651
|
+
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
2652
|
+
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
2648
2653
|
__decorateClass([
|
|
2649
2654
|
IsOptional10(),
|
|
2650
2655
|
IsBoolean6({ message: "Is active must be a boolean value" })
|
|
2651
2656
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
2652
2657
|
|
|
2653
2658
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
2654
|
-
import { IsBoolean as IsBoolean7, IsNotEmpty as IsNotEmpty31, IsOptional as IsOptional11 } from "class-validator";
|
|
2659
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean7, IsInt as IsInt3, IsNotEmpty as IsNotEmpty31, IsOptional as IsOptional11 } from "class-validator";
|
|
2655
2660
|
var UpdateCompanyRoleDto = class {
|
|
2656
2661
|
};
|
|
2657
2662
|
__decorateClass([
|
|
@@ -2663,6 +2668,11 @@ __decorateClass([
|
|
|
2663
2668
|
__decorateClass([
|
|
2664
2669
|
IsNotEmpty31({ message: "Please enter description" })
|
|
2665
2670
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
2671
|
+
__decorateClass([
|
|
2672
|
+
IsArray3({ message: "Permission IDs must be an array." }),
|
|
2673
|
+
ArrayNotEmpty3({ message: "Please select at least one permission." }),
|
|
2674
|
+
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
2675
|
+
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
2666
2676
|
__decorateClass([
|
|
2667
2677
|
IsOptional11(),
|
|
2668
2678
|
IsBoolean7({ message: "Is active must be a boolean value" })
|
|
@@ -2771,7 +2781,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
2771
2781
|
};
|
|
2772
2782
|
|
|
2773
2783
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
2774
|
-
import { IsArray as
|
|
2784
|
+
import { IsArray as IsArray4, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional15 } from "class-validator";
|
|
2775
2785
|
import { Type as Type3 } from "class-transformer";
|
|
2776
2786
|
var EducationDto = class {
|
|
2777
2787
|
};
|
|
@@ -2793,7 +2803,7 @@ __decorateClass([
|
|
|
2793
2803
|
var FreelancerEducationDto = class {
|
|
2794
2804
|
};
|
|
2795
2805
|
__decorateClass([
|
|
2796
|
-
|
|
2806
|
+
IsArray4(),
|
|
2797
2807
|
ValidateNested2({ each: true }),
|
|
2798
2808
|
Type3(() => EducationDto)
|
|
2799
2809
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
@@ -2805,7 +2815,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
2805
2815
|
};
|
|
2806
2816
|
|
|
2807
2817
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
2808
|
-
import { IsArray as
|
|
2818
|
+
import { IsArray as IsArray5, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty36, IsOptional as IsOptional16, IsDateString, MaxLength as MaxLength12 } from "class-validator";
|
|
2809
2819
|
import { Type as Type4 } from "class-transformer";
|
|
2810
2820
|
var ProjectDto = class {
|
|
2811
2821
|
};
|
|
@@ -2858,12 +2868,12 @@ __decorateClass([
|
|
|
2858
2868
|
var FreelancerProjectDto = class {
|
|
2859
2869
|
};
|
|
2860
2870
|
__decorateClass([
|
|
2861
|
-
|
|
2871
|
+
IsArray5(),
|
|
2862
2872
|
ValidateNested3({ each: true }),
|
|
2863
2873
|
Type4(() => ProjectDto)
|
|
2864
2874
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
2865
2875
|
__decorateClass([
|
|
2866
|
-
|
|
2876
|
+
IsArray5(),
|
|
2867
2877
|
ValidateNested3({ each: true }),
|
|
2868
2878
|
Type4(() => CaseStudyDto)
|
|
2869
2879
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
@@ -2880,7 +2890,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
2880
2890
|
};
|
|
2881
2891
|
|
|
2882
2892
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
2883
|
-
import { IsArray as
|
|
2893
|
+
import { IsArray as IsArray6, IsString as IsString25, IsOptional as IsOptional17 } from "class-validator";
|
|
2884
2894
|
import { Type as Type5 } from "class-transformer";
|
|
2885
2895
|
var FreelancerSkillDto = class {
|
|
2886
2896
|
constructor() {
|
|
@@ -2891,19 +2901,19 @@ var FreelancerSkillDto = class {
|
|
|
2891
2901
|
};
|
|
2892
2902
|
__decorateClass([
|
|
2893
2903
|
IsOptional17(),
|
|
2894
|
-
|
|
2904
|
+
IsArray6(),
|
|
2895
2905
|
Type5(() => String),
|
|
2896
2906
|
IsString25({ each: true })
|
|
2897
2907
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
2898
2908
|
__decorateClass([
|
|
2899
2909
|
IsOptional17(),
|
|
2900
|
-
|
|
2910
|
+
IsArray6(),
|
|
2901
2911
|
Type5(() => String),
|
|
2902
2912
|
IsString25({ each: true })
|
|
2903
2913
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
2904
2914
|
__decorateClass([
|
|
2905
2915
|
IsOptional17(),
|
|
2906
|
-
|
|
2916
|
+
IsArray6(),
|
|
2907
2917
|
Type5(() => String),
|
|
2908
2918
|
IsString25({ each: true })
|
|
2909
2919
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
@@ -3263,7 +3273,6 @@ import {
|
|
|
3263
3273
|
Entity as Entity27,
|
|
3264
3274
|
ManyToOne as ManyToOne24,
|
|
3265
3275
|
JoinColumn as JoinColumn24,
|
|
3266
|
-
BaseEntity as BaseEntity2,
|
|
3267
3276
|
Index as Index23
|
|
3268
3277
|
} from "typeorm";
|
|
3269
3278
|
|
|
@@ -3289,7 +3298,7 @@ Permission = __decorateClass([
|
|
|
3289
3298
|
], Permission);
|
|
3290
3299
|
|
|
3291
3300
|
// src/entities/company-role-permission.entity.ts
|
|
3292
|
-
var CompanyRolePermission = class extends
|
|
3301
|
+
var CompanyRolePermission = class extends BaseEntity {
|
|
3293
3302
|
};
|
|
3294
3303
|
__decorateClass([
|
|
3295
3304
|
Column28({ name: "company_role_id", type: "integer", nullable: true }),
|
|
@@ -27,6 +27,7 @@ export interface ICreateCompanyRolePayload {
|
|
|
27
27
|
slug: string;
|
|
28
28
|
description: string;
|
|
29
29
|
isActive: boolean;
|
|
30
|
+
permissionIds: number[];
|
|
30
31
|
}
|
|
31
32
|
export interface ICreateCompanyRoleResponse {
|
|
32
33
|
statusCode: number;
|
|
@@ -38,6 +39,7 @@ export interface IUpdateCompanyRolePayload {
|
|
|
38
39
|
slug: string;
|
|
39
40
|
description: string;
|
|
40
41
|
isActive: boolean;
|
|
42
|
+
permissionIds: number[];
|
|
41
43
|
}
|
|
42
44
|
export interface IUpdateCompanyRoleResponse {
|
|
43
45
|
statusCode: number;
|