@experts_hub/shared 1.0.179 → 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/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +10 -0
- package/dist/index.mjs +21 -11
- 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
|
@@ -1043,6 +1043,7 @@ declare class CreateCompanyRoleDto {
|
|
|
1043
1043
|
name: string;
|
|
1044
1044
|
slug: string;
|
|
1045
1045
|
description: string;
|
|
1046
|
+
permissionIds: number[];
|
|
1046
1047
|
isActive: boolean;
|
|
1047
1048
|
}
|
|
1048
1049
|
|
|
@@ -1050,6 +1051,7 @@ declare class UpdateCompanyRoleDto {
|
|
|
1050
1051
|
name: string;
|
|
1051
1052
|
slug: string;
|
|
1052
1053
|
description: string;
|
|
1054
|
+
permissionIds: number[];
|
|
1053
1055
|
isActive: boolean;
|
|
1054
1056
|
}
|
|
1055
1057
|
|
|
@@ -1086,6 +1088,7 @@ interface ICreateCompanyRolePayload {
|
|
|
1086
1088
|
slug: string;
|
|
1087
1089
|
description: string;
|
|
1088
1090
|
isActive: boolean;
|
|
1091
|
+
permissionIds: number[];
|
|
1089
1092
|
}
|
|
1090
1093
|
interface ICreateCompanyRoleResponse {
|
|
1091
1094
|
statusCode: number;
|
|
@@ -1097,6 +1100,7 @@ interface IUpdateCompanyRolePayload {
|
|
|
1097
1100
|
slug: string;
|
|
1098
1101
|
description: string;
|
|
1099
1102
|
isActive: boolean;
|
|
1103
|
+
permissionIds: number[];
|
|
1100
1104
|
}
|
|
1101
1105
|
interface IUpdateCompanyRoleResponse {
|
|
1102
1106
|
statusCode: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1043,6 +1043,7 @@ declare class CreateCompanyRoleDto {
|
|
|
1043
1043
|
name: string;
|
|
1044
1044
|
slug: string;
|
|
1045
1045
|
description: string;
|
|
1046
|
+
permissionIds: number[];
|
|
1046
1047
|
isActive: boolean;
|
|
1047
1048
|
}
|
|
1048
1049
|
|
|
@@ -1050,6 +1051,7 @@ declare class UpdateCompanyRoleDto {
|
|
|
1050
1051
|
name: string;
|
|
1051
1052
|
slug: string;
|
|
1052
1053
|
description: string;
|
|
1054
|
+
permissionIds: number[];
|
|
1053
1055
|
isActive: boolean;
|
|
1054
1056
|
}
|
|
1055
1057
|
|
|
@@ -1086,6 +1088,7 @@ interface ICreateCompanyRolePayload {
|
|
|
1086
1088
|
slug: string;
|
|
1087
1089
|
description: string;
|
|
1088
1090
|
isActive: boolean;
|
|
1091
|
+
permissionIds: number[];
|
|
1089
1092
|
}
|
|
1090
1093
|
interface ICreateCompanyRoleResponse {
|
|
1091
1094
|
statusCode: number;
|
|
@@ -1097,6 +1100,7 @@ interface IUpdateCompanyRolePayload {
|
|
|
1097
1100
|
slug: string;
|
|
1098
1101
|
description: string;
|
|
1099
1102
|
isActive: boolean;
|
|
1103
|
+
permissionIds: number[];
|
|
1100
1104
|
}
|
|
1101
1105
|
interface IUpdateCompanyRoleResponse {
|
|
1102
1106
|
statusCode: 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" })
|
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);
|
|
@@ -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;
|