@experts_hub/shared 1.0.152 → 1.0.154
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/index.d.ts +1 -0
- package/dist/entities/permission.entity.d.ts +7 -0
- package/dist/index.d.mts +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.js +36 -12
- package/dist/index.mjs +35 -12
- package/dist/modules/user/freelancer-education/dto/freelancer-education.dto.d.ts +1 -1
- package/dist/modules/user/freelancer-project/dto/freelancer-project.dto.d.ts +2 -2
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1155,7 +1155,7 @@ declare class EducationDto {
|
|
|
1155
1155
|
yearOfGraduation: string;
|
|
1156
1156
|
}
|
|
1157
1157
|
declare class FreelancerEducationDto {
|
|
1158
|
-
|
|
1158
|
+
educations: EducationDto[];
|
|
1159
1159
|
}
|
|
1160
1160
|
|
|
1161
1161
|
declare const FREELANCER_PROJECT_PATTERN: {
|
|
@@ -1179,8 +1179,8 @@ declare class CaseStudyDto {
|
|
|
1179
1179
|
description?: string;
|
|
1180
1180
|
}
|
|
1181
1181
|
declare class FreelancerProjectDto {
|
|
1182
|
-
|
|
1183
|
-
|
|
1182
|
+
projects: ProjectDto[];
|
|
1183
|
+
casestudies: CaseStudyDto[];
|
|
1184
1184
|
}
|
|
1185
1185
|
|
|
1186
1186
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
@@ -1233,4 +1233,11 @@ declare class Plan extends BaseEntity {
|
|
|
1233
1233
|
features: Feature[];
|
|
1234
1234
|
}
|
|
1235
1235
|
|
|
1236
|
-
|
|
1236
|
+
declare class Permission extends BaseEntity {
|
|
1237
|
+
name: string;
|
|
1238
|
+
slug: string;
|
|
1239
|
+
description: string;
|
|
1240
|
+
isActive: boolean;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CaseStudyDto, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SenseloafLog, SetPasswordDto, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -1155,7 +1155,7 @@ declare class EducationDto {
|
|
|
1155
1155
|
yearOfGraduation: string;
|
|
1156
1156
|
}
|
|
1157
1157
|
declare class FreelancerEducationDto {
|
|
1158
|
-
|
|
1158
|
+
educations: EducationDto[];
|
|
1159
1159
|
}
|
|
1160
1160
|
|
|
1161
1161
|
declare const FREELANCER_PROJECT_PATTERN: {
|
|
@@ -1179,8 +1179,8 @@ declare class CaseStudyDto {
|
|
|
1179
1179
|
description?: string;
|
|
1180
1180
|
}
|
|
1181
1181
|
declare class FreelancerProjectDto {
|
|
1182
|
-
|
|
1183
|
-
|
|
1182
|
+
projects: ProjectDto[];
|
|
1183
|
+
casestudies: CaseStudyDto[];
|
|
1184
1184
|
}
|
|
1185
1185
|
|
|
1186
1186
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
@@ -1233,4 +1233,11 @@ declare class Plan extends BaseEntity {
|
|
|
1233
1233
|
features: Feature[];
|
|
1234
1234
|
}
|
|
1235
1235
|
|
|
1236
|
-
|
|
1236
|
+
declare class Permission extends BaseEntity {
|
|
1237
|
+
name: string;
|
|
1238
|
+
slug: string;
|
|
1239
|
+
description: string;
|
|
1240
|
+
isActive: boolean;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CaseStudyDto, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SenseloafLog, SetPasswordDto, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -112,6 +112,7 @@ __export(index_exports, {
|
|
|
112
112
|
Otp: () => Otp,
|
|
113
113
|
PLAN_PATTERN: () => PLAN_PATTERN,
|
|
114
114
|
PROFILE_PATTERN: () => PROFILE_PATTERN,
|
|
115
|
+
Permission: () => Permission,
|
|
115
116
|
Plan: () => Plan,
|
|
116
117
|
ProjectDto: () => ProjectDto,
|
|
117
118
|
Provider: () => Provider,
|
|
@@ -2475,15 +2476,15 @@ __decorateClass([
|
|
|
2475
2476
|
], EducationDto.prototype, "uuid", 2);
|
|
2476
2477
|
__decorateClass([
|
|
2477
2478
|
(0, import_class_validator38.IsString)(),
|
|
2478
|
-
(0, import_class_validator38.IsNotEmpty)()
|
|
2479
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
2479
2480
|
], EducationDto.prototype, "degree", 2);
|
|
2480
2481
|
__decorateClass([
|
|
2481
2482
|
(0, import_class_validator38.IsString)(),
|
|
2482
|
-
(0, import_class_validator38.IsNotEmpty)()
|
|
2483
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please Enter University " })
|
|
2483
2484
|
], EducationDto.prototype, "university", 2);
|
|
2484
2485
|
__decorateClass([
|
|
2485
2486
|
(0, import_class_validator38.IsString)(),
|
|
2486
|
-
(0, import_class_validator38.IsNotEmpty)()
|
|
2487
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
2487
2488
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
2488
2489
|
var FreelancerEducationDto = class {
|
|
2489
2490
|
};
|
|
@@ -2491,7 +2492,7 @@ __decorateClass([
|
|
|
2491
2492
|
(0, import_class_validator38.IsArray)(),
|
|
2492
2493
|
(0, import_class_validator38.ValidateNested)({ each: true }),
|
|
2493
2494
|
(0, import_class_transformer3.Type)(() => EducationDto)
|
|
2494
|
-
], FreelancerEducationDto.prototype, "
|
|
2495
|
+
], FreelancerEducationDto.prototype, "educations", 2);
|
|
2495
2496
|
|
|
2496
2497
|
// src/modules/user/freelancer-project/pattern/pattern.ts
|
|
2497
2498
|
var FREELANCER_PROJECT_PATTERN = {
|
|
@@ -2509,15 +2510,15 @@ __decorateClass([
|
|
|
2509
2510
|
], ProjectDto.prototype, "uuid", 2);
|
|
2510
2511
|
__decorateClass([
|
|
2511
2512
|
(0, import_class_validator39.IsString)(),
|
|
2512
|
-
(0, import_class_validator39.IsNotEmpty)()
|
|
2513
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
2513
2514
|
], ProjectDto.prototype, "projectName", 2);
|
|
2514
2515
|
__decorateClass([
|
|
2515
2516
|
(0, import_class_validator39.IsDateString)(),
|
|
2516
|
-
(0, import_class_validator39.IsNotEmpty)()
|
|
2517
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
2517
2518
|
], ProjectDto.prototype, "startDate", 2);
|
|
2518
2519
|
__decorateClass([
|
|
2519
2520
|
(0, import_class_validator39.IsDateString)(),
|
|
2520
|
-
(0, import_class_validator39.IsNotEmpty)()
|
|
2521
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
2521
2522
|
], ProjectDto.prototype, "endDate", 2);
|
|
2522
2523
|
__decorateClass([
|
|
2523
2524
|
(0, import_class_validator39.IsOptional)(),
|
|
@@ -2539,15 +2540,16 @@ __decorateClass([
|
|
|
2539
2540
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
2540
2541
|
__decorateClass([
|
|
2541
2542
|
(0, import_class_validator39.IsString)(),
|
|
2542
|
-
(0, import_class_validator39.IsNotEmpty)()
|
|
2543
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
2543
2544
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
2544
2545
|
__decorateClass([
|
|
2545
2546
|
(0, import_class_validator39.IsString)(),
|
|
2546
|
-
(0, import_class_validator39.IsNotEmpty)()
|
|
2547
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please Enter Case Study Link " })
|
|
2547
2548
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
2548
2549
|
__decorateClass([
|
|
2549
2550
|
(0, import_class_validator39.IsOptional)(),
|
|
2550
|
-
(0, import_class_validator39.IsString)()
|
|
2551
|
+
(0, import_class_validator39.IsString)(),
|
|
2552
|
+
(0, import_class_validator39.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
2551
2553
|
], CaseStudyDto.prototype, "description", 2);
|
|
2552
2554
|
var FreelancerProjectDto = class {
|
|
2553
2555
|
};
|
|
@@ -2555,12 +2557,12 @@ __decorateClass([
|
|
|
2555
2557
|
(0, import_class_validator39.IsArray)(),
|
|
2556
2558
|
(0, import_class_validator39.ValidateNested)({ each: true }),
|
|
2557
2559
|
(0, import_class_transformer4.Type)(() => ProjectDto)
|
|
2558
|
-
], FreelancerProjectDto.prototype, "
|
|
2560
|
+
], FreelancerProjectDto.prototype, "projects", 2);
|
|
2559
2561
|
__decorateClass([
|
|
2560
2562
|
(0, import_class_validator39.IsArray)(),
|
|
2561
2563
|
(0, import_class_validator39.ValidateNested)({ each: true }),
|
|
2562
2564
|
(0, import_class_transformer4.Type)(() => CaseStudyDto)
|
|
2563
|
-
], FreelancerProjectDto.prototype, "
|
|
2565
|
+
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
2564
2566
|
|
|
2565
2567
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
2566
2568
|
var import_dotenv = require("dotenv");
|
|
@@ -2876,6 +2878,27 @@ __decorateClass([
|
|
|
2876
2878
|
Plan = __decorateClass([
|
|
2877
2879
|
(0, import_typeorm25.Entity)("plans")
|
|
2878
2880
|
], Plan);
|
|
2881
|
+
|
|
2882
|
+
// src/entities/permission.entity.ts
|
|
2883
|
+
var import_typeorm26 = require("typeorm");
|
|
2884
|
+
var Permission = class extends BaseEntity {
|
|
2885
|
+
};
|
|
2886
|
+
__decorateClass([
|
|
2887
|
+
(0, import_typeorm26.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2888
|
+
], Permission.prototype, "name", 2);
|
|
2889
|
+
__decorateClass([
|
|
2890
|
+
(0, import_typeorm26.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2891
|
+
(0, import_typeorm26.Index)()
|
|
2892
|
+
], Permission.prototype, "slug", 2);
|
|
2893
|
+
__decorateClass([
|
|
2894
|
+
(0, import_typeorm26.Column)({ name: "description", type: "text", nullable: true })
|
|
2895
|
+
], Permission.prototype, "description", 2);
|
|
2896
|
+
__decorateClass([
|
|
2897
|
+
(0, import_typeorm26.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2898
|
+
], Permission.prototype, "isActive", 2);
|
|
2899
|
+
Permission = __decorateClass([
|
|
2900
|
+
(0, import_typeorm26.Entity)("permissions")
|
|
2901
|
+
], Permission);
|
|
2879
2902
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2880
2903
|
0 && (module.exports = {
|
|
2881
2904
|
AUTHENTICATION_PATTERN,
|
|
@@ -2963,6 +2986,7 @@ Plan = __decorateClass([
|
|
|
2963
2986
|
Otp,
|
|
2964
2987
|
PLAN_PATTERN,
|
|
2965
2988
|
PROFILE_PATTERN,
|
|
2989
|
+
Permission,
|
|
2966
2990
|
Plan,
|
|
2967
2991
|
ProjectDto,
|
|
2968
2992
|
Provider,
|
package/dist/index.mjs
CHANGED
|
@@ -2536,15 +2536,15 @@ __decorateClass([
|
|
|
2536
2536
|
], EducationDto.prototype, "uuid", 2);
|
|
2537
2537
|
__decorateClass([
|
|
2538
2538
|
IsString21(),
|
|
2539
|
-
IsNotEmpty30()
|
|
2539
|
+
IsNotEmpty30({ message: "Please Enter Degree " })
|
|
2540
2540
|
], EducationDto.prototype, "degree", 2);
|
|
2541
2541
|
__decorateClass([
|
|
2542
2542
|
IsString21(),
|
|
2543
|
-
IsNotEmpty30()
|
|
2543
|
+
IsNotEmpty30({ message: "Please Enter University " })
|
|
2544
2544
|
], EducationDto.prototype, "university", 2);
|
|
2545
2545
|
__decorateClass([
|
|
2546
2546
|
IsString21(),
|
|
2547
|
-
IsNotEmpty30()
|
|
2547
|
+
IsNotEmpty30({ message: "Please Enter Year of Graduation " })
|
|
2548
2548
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
2549
2549
|
var FreelancerEducationDto = class {
|
|
2550
2550
|
};
|
|
@@ -2552,7 +2552,7 @@ __decorateClass([
|
|
|
2552
2552
|
IsArray2(),
|
|
2553
2553
|
ValidateNested2({ each: true }),
|
|
2554
2554
|
Type3(() => EducationDto)
|
|
2555
|
-
], FreelancerEducationDto.prototype, "
|
|
2555
|
+
], FreelancerEducationDto.prototype, "educations", 2);
|
|
2556
2556
|
|
|
2557
2557
|
// src/modules/user/freelancer-project/pattern/pattern.ts
|
|
2558
2558
|
var FREELANCER_PROJECT_PATTERN = {
|
|
@@ -2570,15 +2570,15 @@ __decorateClass([
|
|
|
2570
2570
|
], ProjectDto.prototype, "uuid", 2);
|
|
2571
2571
|
__decorateClass([
|
|
2572
2572
|
IsString22(),
|
|
2573
|
-
IsNotEmpty31()
|
|
2573
|
+
IsNotEmpty31({ message: "Please Enter Project Name " })
|
|
2574
2574
|
], ProjectDto.prototype, "projectName", 2);
|
|
2575
2575
|
__decorateClass([
|
|
2576
2576
|
IsDateString(),
|
|
2577
|
-
IsNotEmpty31()
|
|
2577
|
+
IsNotEmpty31({ message: "Please Enter Start Date " })
|
|
2578
2578
|
], ProjectDto.prototype, "startDate", 2);
|
|
2579
2579
|
__decorateClass([
|
|
2580
2580
|
IsDateString(),
|
|
2581
|
-
IsNotEmpty31()
|
|
2581
|
+
IsNotEmpty31({ message: "Please Enter End Date " })
|
|
2582
2582
|
], ProjectDto.prototype, "endDate", 2);
|
|
2583
2583
|
__decorateClass([
|
|
2584
2584
|
IsOptional16(),
|
|
@@ -2600,15 +2600,16 @@ __decorateClass([
|
|
|
2600
2600
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
2601
2601
|
__decorateClass([
|
|
2602
2602
|
IsString22(),
|
|
2603
|
-
IsNotEmpty31()
|
|
2603
|
+
IsNotEmpty31({ message: "Please Enter Project Name " })
|
|
2604
2604
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
2605
2605
|
__decorateClass([
|
|
2606
2606
|
IsString22(),
|
|
2607
|
-
IsNotEmpty31()
|
|
2607
|
+
IsNotEmpty31({ message: "Please Enter Case Study Link " })
|
|
2608
2608
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
2609
2609
|
__decorateClass([
|
|
2610
2610
|
IsOptional16(),
|
|
2611
|
-
IsString22()
|
|
2611
|
+
IsString22(),
|
|
2612
|
+
MaxLength13(500, { message: "Description must not exceed 500 characters" })
|
|
2612
2613
|
], CaseStudyDto.prototype, "description", 2);
|
|
2613
2614
|
var FreelancerProjectDto = class {
|
|
2614
2615
|
};
|
|
@@ -2616,12 +2617,12 @@ __decorateClass([
|
|
|
2616
2617
|
IsArray3(),
|
|
2617
2618
|
ValidateNested3({ each: true }),
|
|
2618
2619
|
Type4(() => ProjectDto)
|
|
2619
|
-
], FreelancerProjectDto.prototype, "
|
|
2620
|
+
], FreelancerProjectDto.prototype, "projects", 2);
|
|
2620
2621
|
__decorateClass([
|
|
2621
2622
|
IsArray3(),
|
|
2622
2623
|
ValidateNested3({ each: true }),
|
|
2623
2624
|
Type4(() => CaseStudyDto)
|
|
2624
|
-
], FreelancerProjectDto.prototype, "
|
|
2625
|
+
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
2625
2626
|
|
|
2626
2627
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
2627
2628
|
import { config } from "dotenv";
|
|
@@ -2937,6 +2938,27 @@ __decorateClass([
|
|
|
2937
2938
|
Plan = __decorateClass([
|
|
2938
2939
|
Entity24("plans")
|
|
2939
2940
|
], Plan);
|
|
2941
|
+
|
|
2942
|
+
// src/entities/permission.entity.ts
|
|
2943
|
+
import { Column as Column26, Entity as Entity25, Index as Index18 } from "typeorm";
|
|
2944
|
+
var Permission = class extends BaseEntity {
|
|
2945
|
+
};
|
|
2946
|
+
__decorateClass([
|
|
2947
|
+
Column26({ name: "name", type: "varchar", nullable: true })
|
|
2948
|
+
], Permission.prototype, "name", 2);
|
|
2949
|
+
__decorateClass([
|
|
2950
|
+
Column26({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2951
|
+
Index18()
|
|
2952
|
+
], Permission.prototype, "slug", 2);
|
|
2953
|
+
__decorateClass([
|
|
2954
|
+
Column26({ name: "description", type: "text", nullable: true })
|
|
2955
|
+
], Permission.prototype, "description", 2);
|
|
2956
|
+
__decorateClass([
|
|
2957
|
+
Column26({ name: "is_active", type: "boolean", default: true })
|
|
2958
|
+
], Permission.prototype, "isActive", 2);
|
|
2959
|
+
Permission = __decorateClass([
|
|
2960
|
+
Entity25("permissions")
|
|
2961
|
+
], Permission);
|
|
2940
2962
|
export {
|
|
2941
2963
|
AUTHENTICATION_PATTERN,
|
|
2942
2964
|
AccountStatus,
|
|
@@ -3023,6 +3045,7 @@ export {
|
|
|
3023
3045
|
Otp,
|
|
3024
3046
|
PLAN_PATTERN,
|
|
3025
3047
|
PROFILE_PATTERN,
|
|
3048
|
+
Permission,
|
|
3026
3049
|
Plan,
|
|
3027
3050
|
ProjectDto,
|
|
3028
3051
|
Provider,
|