@experts_hub/shared 1.0.123 → 1.0.125
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 +24 -1
- package/dist/index.d.ts +24 -1
- package/dist/index.js +121 -44
- package/dist/index.mjs +92 -17
- package/dist/modules/user/freelancer-profile/dto/index.d.ts +1 -0
- package/dist/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -745,6 +745,29 @@ declare class FreelancerChangePasswordDto {
|
|
|
745
745
|
newPassword: string;
|
|
746
746
|
}
|
|
747
747
|
|
|
748
|
+
declare enum NatureOfWorkDto {
|
|
749
|
+
FULLTIME = "FULLTIME",
|
|
750
|
+
PARTTIME = "PARTTIME",
|
|
751
|
+
BOTH = "BOTH"
|
|
752
|
+
}
|
|
753
|
+
declare class UpdateFreelancerProfileDto {
|
|
754
|
+
firstName?: string;
|
|
755
|
+
lastName?: string;
|
|
756
|
+
email?: string;
|
|
757
|
+
mobile?: string;
|
|
758
|
+
countryId?: number;
|
|
759
|
+
currency?: string;
|
|
760
|
+
expectedHourlyCompensation?: string;
|
|
761
|
+
natureOfWork: NatureOfWorkDto;
|
|
762
|
+
portfolioLink?: string;
|
|
763
|
+
address?: string;
|
|
764
|
+
about?: string;
|
|
765
|
+
linkedinProfileLink?: string;
|
|
766
|
+
kaggleProfileLink?: string;
|
|
767
|
+
githubProfileLink?: string;
|
|
768
|
+
stackOverflowProfileLink?: string;
|
|
769
|
+
}
|
|
770
|
+
|
|
748
771
|
declare const BANK_PATTERN: {
|
|
749
772
|
addFreelancerBankDetails: string;
|
|
750
773
|
fetchFreelancerBankDetails: string;
|
|
@@ -977,4 +1000,4 @@ declare class Plan extends BaseEntity {
|
|
|
977
1000
|
features: Feature[];
|
|
978
1001
|
}
|
|
979
1002
|
|
|
980
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, 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 IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, 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, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
1003
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, 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 IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, 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, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -745,6 +745,29 @@ declare class FreelancerChangePasswordDto {
|
|
|
745
745
|
newPassword: string;
|
|
746
746
|
}
|
|
747
747
|
|
|
748
|
+
declare enum NatureOfWorkDto {
|
|
749
|
+
FULLTIME = "FULLTIME",
|
|
750
|
+
PARTTIME = "PARTTIME",
|
|
751
|
+
BOTH = "BOTH"
|
|
752
|
+
}
|
|
753
|
+
declare class UpdateFreelancerProfileDto {
|
|
754
|
+
firstName?: string;
|
|
755
|
+
lastName?: string;
|
|
756
|
+
email?: string;
|
|
757
|
+
mobile?: string;
|
|
758
|
+
countryId?: number;
|
|
759
|
+
currency?: string;
|
|
760
|
+
expectedHourlyCompensation?: string;
|
|
761
|
+
natureOfWork: NatureOfWorkDto;
|
|
762
|
+
portfolioLink?: string;
|
|
763
|
+
address?: string;
|
|
764
|
+
about?: string;
|
|
765
|
+
linkedinProfileLink?: string;
|
|
766
|
+
kaggleProfileLink?: string;
|
|
767
|
+
githubProfileLink?: string;
|
|
768
|
+
stackOverflowProfileLink?: string;
|
|
769
|
+
}
|
|
770
|
+
|
|
748
771
|
declare const BANK_PATTERN: {
|
|
749
772
|
addFreelancerBankDetails: string;
|
|
750
773
|
fetchFreelancerBankDetails: string;
|
|
@@ -977,4 +1000,4 @@ declare class Plan extends BaseEntity {
|
|
|
977
1000
|
features: Feature[];
|
|
978
1001
|
}
|
|
979
1002
|
|
|
980
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, 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 IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, 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, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
1003
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, 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 IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, 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, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -84,6 +84,7 @@ __export(index_exports, {
|
|
|
84
84
|
ModeOfWork: () => ModeOfWork,
|
|
85
85
|
NOTIFICATION_PATTERN: () => NOTIFICATION_PATTERN,
|
|
86
86
|
NatureOfWork: () => NatureOfWork,
|
|
87
|
+
NatureOfWorkDto: () => NatureOfWorkDto,
|
|
87
88
|
NotificationRMQAdapter: () => NotificationRMQAdapter,
|
|
88
89
|
NotificationTCPAdapter: () => NotificationTCPAdapter,
|
|
89
90
|
ONBOARDING_PATTERN: () => ONBOARDING_PATTERN,
|
|
@@ -117,6 +118,7 @@ __export(index_exports, {
|
|
|
117
118
|
TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
|
|
118
119
|
UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
|
|
119
120
|
UpdateCompanyRoleDto: () => UpdateCompanyRoleDto,
|
|
121
|
+
UpdateFreelancerProfileDto: () => UpdateFreelancerProfileDto,
|
|
120
122
|
UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
|
|
121
123
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
122
124
|
User: () => User,
|
|
@@ -1796,6 +1798,79 @@ __decorateClass([
|
|
|
1796
1798
|
})
|
|
1797
1799
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1798
1800
|
|
|
1801
|
+
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1802
|
+
var import_class_validator26 = require("class-validator");
|
|
1803
|
+
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
1804
|
+
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
1805
|
+
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
1806
|
+
NatureOfWorkDto2["BOTH"] = "BOTH";
|
|
1807
|
+
return NatureOfWorkDto2;
|
|
1808
|
+
})(NatureOfWorkDto || {});
|
|
1809
|
+
var UpdateFreelancerProfileDto = class {
|
|
1810
|
+
};
|
|
1811
|
+
__decorateClass([
|
|
1812
|
+
(0, import_class_validator26.IsOptional)(),
|
|
1813
|
+
(0, import_class_validator26.IsString)()
|
|
1814
|
+
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1815
|
+
__decorateClass([
|
|
1816
|
+
(0, import_class_validator26.IsOptional)(),
|
|
1817
|
+
(0, import_class_validator26.IsString)()
|
|
1818
|
+
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1819
|
+
__decorateClass([
|
|
1820
|
+
(0, import_class_validator26.IsOptional)(),
|
|
1821
|
+
(0, import_class_validator26.IsEmail)()
|
|
1822
|
+
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1823
|
+
__decorateClass([
|
|
1824
|
+
(0, import_class_validator26.IsOptional)(),
|
|
1825
|
+
(0, import_class_validator26.IsString)()
|
|
1826
|
+
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1827
|
+
__decorateClass([
|
|
1828
|
+
(0, import_class_validator26.IsOptional)(),
|
|
1829
|
+
(0, import_class_validator26.IsNumber)()
|
|
1830
|
+
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1831
|
+
__decorateClass([
|
|
1832
|
+
(0, import_class_validator26.IsOptional)(),
|
|
1833
|
+
(0, import_class_validator26.IsString)()
|
|
1834
|
+
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
1835
|
+
__decorateClass([
|
|
1836
|
+
(0, import_class_validator26.IsOptional)(),
|
|
1837
|
+
(0, import_class_validator26.IsString)()
|
|
1838
|
+
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1839
|
+
__decorateClass([
|
|
1840
|
+
(0, import_class_validator26.IsOptional)(),
|
|
1841
|
+
(0, import_class_validator26.IsEnum)(NatureOfWorkDto, {
|
|
1842
|
+
message: `Engagement Type must be one of: ${Object.values(NatureOfWorkDto).join(", ")}`
|
|
1843
|
+
})
|
|
1844
|
+
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1845
|
+
__decorateClass([
|
|
1846
|
+
(0, import_class_validator26.IsOptional)(),
|
|
1847
|
+
(0, import_class_validator26.IsString)()
|
|
1848
|
+
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1849
|
+
__decorateClass([
|
|
1850
|
+
(0, import_class_validator26.IsOptional)(),
|
|
1851
|
+
(0, import_class_validator26.IsString)()
|
|
1852
|
+
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1853
|
+
__decorateClass([
|
|
1854
|
+
(0, import_class_validator26.IsOptional)(),
|
|
1855
|
+
(0, import_class_validator26.IsString)()
|
|
1856
|
+
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1857
|
+
__decorateClass([
|
|
1858
|
+
(0, import_class_validator26.IsOptional)(),
|
|
1859
|
+
(0, import_class_validator26.IsString)()
|
|
1860
|
+
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1861
|
+
__decorateClass([
|
|
1862
|
+
(0, import_class_validator26.IsOptional)(),
|
|
1863
|
+
(0, import_class_validator26.IsString)()
|
|
1864
|
+
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1865
|
+
__decorateClass([
|
|
1866
|
+
(0, import_class_validator26.IsOptional)(),
|
|
1867
|
+
(0, import_class_validator26.IsString)()
|
|
1868
|
+
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1869
|
+
__decorateClass([
|
|
1870
|
+
(0, import_class_validator26.IsOptional)(),
|
|
1871
|
+
(0, import_class_validator26.IsString)()
|
|
1872
|
+
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1873
|
+
|
|
1799
1874
|
// src/modules/bank/pattern/pattern.ts
|
|
1800
1875
|
var BANK_PATTERN = {
|
|
1801
1876
|
addFreelancerBankDetails: "add.freelancer.bankdetails",
|
|
@@ -1804,7 +1879,7 @@ var BANK_PATTERN = {
|
|
|
1804
1879
|
};
|
|
1805
1880
|
|
|
1806
1881
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1807
|
-
var
|
|
1882
|
+
var import_class_validator27 = require("class-validator");
|
|
1808
1883
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1809
1884
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
1810
1885
|
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
@@ -1813,47 +1888,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1813
1888
|
var FreelancerBankDetailsDto = class {
|
|
1814
1889
|
};
|
|
1815
1890
|
__decorateClass([
|
|
1816
|
-
(0,
|
|
1891
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
1817
1892
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1818
1893
|
__decorateClass([
|
|
1819
|
-
(0,
|
|
1894
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
1820
1895
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1821
1896
|
__decorateClass([
|
|
1822
|
-
(0,
|
|
1897
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter Email." })
|
|
1823
1898
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1824
1899
|
__decorateClass([
|
|
1825
|
-
(0,
|
|
1900
|
+
(0, import_class_validator27.IsOptional)()
|
|
1826
1901
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1827
1902
|
__decorateClass([
|
|
1828
|
-
(0,
|
|
1903
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
1829
1904
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1830
1905
|
__decorateClass([
|
|
1831
|
-
(0,
|
|
1906
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
1832
1907
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1833
1908
|
__decorateClass([
|
|
1834
|
-
(0,
|
|
1909
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
1835
1910
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1836
1911
|
__decorateClass([
|
|
1837
|
-
(0,
|
|
1838
|
-
(0,
|
|
1912
|
+
(0, import_class_validator27.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
|
|
1913
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1839
1914
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1840
1915
|
__decorateClass([
|
|
1841
|
-
(0,
|
|
1842
|
-
(0,
|
|
1916
|
+
(0, import_class_validator27.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1917
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1843
1918
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1844
1919
|
__decorateClass([
|
|
1845
|
-
(0,
|
|
1846
|
-
(0,
|
|
1920
|
+
(0, import_class_validator27.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1921
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1847
1922
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1848
1923
|
__decorateClass([
|
|
1849
|
-
(0,
|
|
1850
|
-
(0,
|
|
1924
|
+
(0, import_class_validator27.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1925
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1851
1926
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1852
1927
|
__decorateClass([
|
|
1853
|
-
(0,
|
|
1928
|
+
(0, import_class_validator27.IsOptional)()
|
|
1854
1929
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1855
1930
|
__decorateClass([
|
|
1856
|
-
(0,
|
|
1931
|
+
(0, import_class_validator27.IsEnum)(BankAccountScope, {
|
|
1857
1932
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1858
1933
|
BankAccountScope
|
|
1859
1934
|
).join(", ")}`
|
|
@@ -1873,7 +1948,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1873
1948
|
};
|
|
1874
1949
|
|
|
1875
1950
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1876
|
-
var
|
|
1951
|
+
var import_class_validator28 = require("class-validator");
|
|
1877
1952
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1878
1953
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
1879
1954
|
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
@@ -1882,10 +1957,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
1882
1957
|
var SystemPreferenceDto = class {
|
|
1883
1958
|
};
|
|
1884
1959
|
__decorateClass([
|
|
1885
|
-
(0,
|
|
1960
|
+
(0, import_class_validator28.IsBoolean)()
|
|
1886
1961
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1887
1962
|
__decorateClass([
|
|
1888
|
-
(0,
|
|
1963
|
+
(0, import_class_validator28.IsEnum)(SystemPreferenceKey, {
|
|
1889
1964
|
message: `key must be one of: ${Object.values(
|
|
1890
1965
|
SystemPreferenceKey
|
|
1891
1966
|
).join(", ")}`
|
|
@@ -1905,26 +1980,26 @@ var RATING_PATTERN = {
|
|
|
1905
1980
|
};
|
|
1906
1981
|
|
|
1907
1982
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1908
|
-
var
|
|
1983
|
+
var import_class_validator29 = require("class-validator");
|
|
1909
1984
|
var CreateRatingDto = class {
|
|
1910
1985
|
};
|
|
1911
1986
|
__decorateClass([
|
|
1912
|
-
(0,
|
|
1913
|
-
(0,
|
|
1987
|
+
(0, import_class_validator29.IsInt)({ message: "Reviewee ID must be a valid integer" }),
|
|
1988
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Reviewee ID is required" })
|
|
1914
1989
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
1915
1990
|
__decorateClass([
|
|
1916
|
-
(0,
|
|
1991
|
+
(0, import_class_validator29.IsEnum)(RatingTypeEnum, {
|
|
1917
1992
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
1918
1993
|
})
|
|
1919
1994
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
1920
1995
|
__decorateClass([
|
|
1921
|
-
(0,
|
|
1922
|
-
(0,
|
|
1923
|
-
(0,
|
|
1996
|
+
(0, import_class_validator29.IsInt)({ message: "Rating must be an integer value" }),
|
|
1997
|
+
(0, import_class_validator29.Min)(1, { message: "Rating must be at least 1" }),
|
|
1998
|
+
(0, import_class_validator29.Max)(5, { message: "Rating must be at most 5" })
|
|
1924
1999
|
], CreateRatingDto.prototype, "rating", 2);
|
|
1925
2000
|
__decorateClass([
|
|
1926
|
-
(0,
|
|
1927
|
-
(0,
|
|
2001
|
+
(0, import_class_validator29.IsOptional)(),
|
|
2002
|
+
(0, import_class_validator29.IsString)({ message: "Review must be a string" })
|
|
1928
2003
|
], CreateRatingDto.prototype, "review", 2);
|
|
1929
2004
|
|
|
1930
2005
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -1940,47 +2015,47 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
1940
2015
|
};
|
|
1941
2016
|
|
|
1942
2017
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
1943
|
-
var
|
|
2018
|
+
var import_class_validator30 = require("class-validator");
|
|
1944
2019
|
var CreateCompanyRoleDto = class {
|
|
1945
2020
|
};
|
|
1946
2021
|
__decorateClass([
|
|
1947
|
-
(0,
|
|
2022
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter company name." })
|
|
1948
2023
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
1949
2024
|
__decorateClass([
|
|
1950
|
-
(0,
|
|
2025
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter slug" })
|
|
1951
2026
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
1952
2027
|
__decorateClass([
|
|
1953
|
-
(0,
|
|
2028
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter description" })
|
|
1954
2029
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
1955
2030
|
__decorateClass([
|
|
1956
|
-
(0,
|
|
1957
|
-
(0,
|
|
2031
|
+
(0, import_class_validator30.IsOptional)(),
|
|
2032
|
+
(0, import_class_validator30.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
1958
2033
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
1959
2034
|
|
|
1960
2035
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
1961
|
-
var
|
|
2036
|
+
var import_class_validator31 = require("class-validator");
|
|
1962
2037
|
var UpdateCompanyRoleDto = class {
|
|
1963
2038
|
};
|
|
1964
2039
|
__decorateClass([
|
|
1965
|
-
(0,
|
|
2040
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter company name." })
|
|
1966
2041
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
1967
2042
|
__decorateClass([
|
|
1968
|
-
(0,
|
|
2043
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter slug" })
|
|
1969
2044
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
1970
2045
|
__decorateClass([
|
|
1971
|
-
(0,
|
|
2046
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter description" })
|
|
1972
2047
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
1973
2048
|
__decorateClass([
|
|
1974
|
-
(0,
|
|
1975
|
-
(0,
|
|
2049
|
+
(0, import_class_validator31.IsOptional)(),
|
|
2050
|
+
(0, import_class_validator31.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
1976
2051
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
1977
2052
|
|
|
1978
2053
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
1979
|
-
var
|
|
2054
|
+
var import_class_validator32 = require("class-validator");
|
|
1980
2055
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
1981
2056
|
};
|
|
1982
2057
|
__decorateClass([
|
|
1983
|
-
(0,
|
|
2058
|
+
(0, import_class_validator32.IsBoolean)()
|
|
1984
2059
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
1985
2060
|
|
|
1986
2061
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -2356,6 +2431,7 @@ Plan = __decorateClass([
|
|
|
2356
2431
|
ModeOfWork,
|
|
2357
2432
|
NOTIFICATION_PATTERN,
|
|
2358
2433
|
NatureOfWork,
|
|
2434
|
+
NatureOfWorkDto,
|
|
2359
2435
|
NotificationRMQAdapter,
|
|
2360
2436
|
NotificationTCPAdapter,
|
|
2361
2437
|
ONBOARDING_PATTERN,
|
|
@@ -2389,6 +2465,7 @@ Plan = __decorateClass([
|
|
|
2389
2465
|
TypeOfEmploymentEnum,
|
|
2390
2466
|
UpdateCompanyProfileDto,
|
|
2391
2467
|
UpdateCompanyRoleDto,
|
|
2468
|
+
UpdateFreelancerProfileDto,
|
|
2392
2469
|
UpdateSubAdminAccountStatusDto,
|
|
2393
2470
|
UpdateSubAdminDto,
|
|
2394
2471
|
User,
|
package/dist/index.mjs
CHANGED
|
@@ -1823,6 +1823,79 @@ __decorateClass([
|
|
|
1823
1823
|
})
|
|
1824
1824
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1825
1825
|
|
|
1826
|
+
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1827
|
+
import { IsOptional as IsOptional8, IsString as IsString14, IsEmail as IsEmail5, IsNumber as IsNumber3, IsEnum as IsEnum7 } from "class-validator";
|
|
1828
|
+
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
1829
|
+
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
1830
|
+
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
1831
|
+
NatureOfWorkDto2["BOTH"] = "BOTH";
|
|
1832
|
+
return NatureOfWorkDto2;
|
|
1833
|
+
})(NatureOfWorkDto || {});
|
|
1834
|
+
var UpdateFreelancerProfileDto = class {
|
|
1835
|
+
};
|
|
1836
|
+
__decorateClass([
|
|
1837
|
+
IsOptional8(),
|
|
1838
|
+
IsString14()
|
|
1839
|
+
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1840
|
+
__decorateClass([
|
|
1841
|
+
IsOptional8(),
|
|
1842
|
+
IsString14()
|
|
1843
|
+
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1844
|
+
__decorateClass([
|
|
1845
|
+
IsOptional8(),
|
|
1846
|
+
IsEmail5()
|
|
1847
|
+
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1848
|
+
__decorateClass([
|
|
1849
|
+
IsOptional8(),
|
|
1850
|
+
IsString14()
|
|
1851
|
+
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1852
|
+
__decorateClass([
|
|
1853
|
+
IsOptional8(),
|
|
1854
|
+
IsNumber3()
|
|
1855
|
+
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1856
|
+
__decorateClass([
|
|
1857
|
+
IsOptional8(),
|
|
1858
|
+
IsString14()
|
|
1859
|
+
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
1860
|
+
__decorateClass([
|
|
1861
|
+
IsOptional8(),
|
|
1862
|
+
IsString14()
|
|
1863
|
+
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1864
|
+
__decorateClass([
|
|
1865
|
+
IsOptional8(),
|
|
1866
|
+
IsEnum7(NatureOfWorkDto, {
|
|
1867
|
+
message: `Engagement Type must be one of: ${Object.values(NatureOfWorkDto).join(", ")}`
|
|
1868
|
+
})
|
|
1869
|
+
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1870
|
+
__decorateClass([
|
|
1871
|
+
IsOptional8(),
|
|
1872
|
+
IsString14()
|
|
1873
|
+
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1874
|
+
__decorateClass([
|
|
1875
|
+
IsOptional8(),
|
|
1876
|
+
IsString14()
|
|
1877
|
+
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1878
|
+
__decorateClass([
|
|
1879
|
+
IsOptional8(),
|
|
1880
|
+
IsString14()
|
|
1881
|
+
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1882
|
+
__decorateClass([
|
|
1883
|
+
IsOptional8(),
|
|
1884
|
+
IsString14()
|
|
1885
|
+
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1886
|
+
__decorateClass([
|
|
1887
|
+
IsOptional8(),
|
|
1888
|
+
IsString14()
|
|
1889
|
+
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1890
|
+
__decorateClass([
|
|
1891
|
+
IsOptional8(),
|
|
1892
|
+
IsString14()
|
|
1893
|
+
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1894
|
+
__decorateClass([
|
|
1895
|
+
IsOptional8(),
|
|
1896
|
+
IsString14()
|
|
1897
|
+
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1898
|
+
|
|
1826
1899
|
// src/modules/bank/pattern/pattern.ts
|
|
1827
1900
|
var BANK_PATTERN = {
|
|
1828
1901
|
addFreelancerBankDetails: "add.freelancer.bankdetails",
|
|
@@ -1832,9 +1905,9 @@ var BANK_PATTERN = {
|
|
|
1832
1905
|
|
|
1833
1906
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1834
1907
|
import {
|
|
1835
|
-
IsEnum as
|
|
1908
|
+
IsEnum as IsEnum8,
|
|
1836
1909
|
IsNotEmpty as IsNotEmpty21,
|
|
1837
|
-
IsOptional as
|
|
1910
|
+
IsOptional as IsOptional9,
|
|
1838
1911
|
ValidateIf
|
|
1839
1912
|
} from "class-validator";
|
|
1840
1913
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -1854,7 +1927,7 @@ __decorateClass([
|
|
|
1854
1927
|
IsNotEmpty21({ message: "Please enter Email." })
|
|
1855
1928
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1856
1929
|
__decorateClass([
|
|
1857
|
-
|
|
1930
|
+
IsOptional9()
|
|
1858
1931
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1859
1932
|
__decorateClass([
|
|
1860
1933
|
IsNotEmpty21({ message: "Please enter Account Number." })
|
|
@@ -1882,10 +1955,10 @@ __decorateClass([
|
|
|
1882
1955
|
IsNotEmpty21({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1883
1956
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1884
1957
|
__decorateClass([
|
|
1885
|
-
|
|
1958
|
+
IsOptional9()
|
|
1886
1959
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1887
1960
|
__decorateClass([
|
|
1888
|
-
|
|
1961
|
+
IsEnum8(BankAccountScope, {
|
|
1889
1962
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1890
1963
|
BankAccountScope
|
|
1891
1964
|
).join(", ")}`
|
|
@@ -1907,7 +1980,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1907
1980
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1908
1981
|
import {
|
|
1909
1982
|
IsBoolean as IsBoolean6,
|
|
1910
|
-
IsEnum as
|
|
1983
|
+
IsEnum as IsEnum9
|
|
1911
1984
|
} from "class-validator";
|
|
1912
1985
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1913
1986
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
@@ -1920,7 +1993,7 @@ __decorateClass([
|
|
|
1920
1993
|
IsBoolean6()
|
|
1921
1994
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1922
1995
|
__decorateClass([
|
|
1923
|
-
|
|
1996
|
+
IsEnum9(SystemPreferenceKey, {
|
|
1924
1997
|
message: `key must be one of: ${Object.values(
|
|
1925
1998
|
SystemPreferenceKey
|
|
1926
1999
|
).join(", ")}`
|
|
@@ -1941,11 +2014,11 @@ var RATING_PATTERN = {
|
|
|
1941
2014
|
|
|
1942
2015
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1943
2016
|
import {
|
|
1944
|
-
IsEnum as
|
|
2017
|
+
IsEnum as IsEnum10,
|
|
1945
2018
|
IsInt,
|
|
1946
2019
|
IsNotEmpty as IsNotEmpty22,
|
|
1947
|
-
IsOptional as
|
|
1948
|
-
IsString as
|
|
2020
|
+
IsOptional as IsOptional10,
|
|
2021
|
+
IsString as IsString15,
|
|
1949
2022
|
Max,
|
|
1950
2023
|
Min as Min2
|
|
1951
2024
|
} from "class-validator";
|
|
@@ -1956,7 +2029,7 @@ __decorateClass([
|
|
|
1956
2029
|
IsNotEmpty22({ message: "Reviewee ID is required" })
|
|
1957
2030
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
1958
2031
|
__decorateClass([
|
|
1959
|
-
|
|
2032
|
+
IsEnum10(RatingTypeEnum, {
|
|
1960
2033
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
1961
2034
|
})
|
|
1962
2035
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
@@ -1966,8 +2039,8 @@ __decorateClass([
|
|
|
1966
2039
|
Max(5, { message: "Rating must be at most 5" })
|
|
1967
2040
|
], CreateRatingDto.prototype, "rating", 2);
|
|
1968
2041
|
__decorateClass([
|
|
1969
|
-
|
|
1970
|
-
|
|
2042
|
+
IsOptional10(),
|
|
2043
|
+
IsString15({ message: "Review must be a string" })
|
|
1971
2044
|
], CreateRatingDto.prototype, "review", 2);
|
|
1972
2045
|
|
|
1973
2046
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -1983,7 +2056,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
1983
2056
|
};
|
|
1984
2057
|
|
|
1985
2058
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
1986
|
-
import { IsBoolean as IsBoolean7, IsNotEmpty as IsNotEmpty23, IsOptional as
|
|
2059
|
+
import { IsBoolean as IsBoolean7, IsNotEmpty as IsNotEmpty23, IsOptional as IsOptional11 } from "class-validator";
|
|
1987
2060
|
var CreateCompanyRoleDto = class {
|
|
1988
2061
|
};
|
|
1989
2062
|
__decorateClass([
|
|
@@ -1996,12 +2069,12 @@ __decorateClass([
|
|
|
1996
2069
|
IsNotEmpty23({ message: "Please enter description" })
|
|
1997
2070
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
1998
2071
|
__decorateClass([
|
|
1999
|
-
|
|
2072
|
+
IsOptional11(),
|
|
2000
2073
|
IsBoolean7({ message: "Is active must be a boolean value" })
|
|
2001
2074
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
2002
2075
|
|
|
2003
2076
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
2004
|
-
import { IsBoolean as IsBoolean8, IsNotEmpty as IsNotEmpty24, IsOptional as
|
|
2077
|
+
import { IsBoolean as IsBoolean8, IsNotEmpty as IsNotEmpty24, IsOptional as IsOptional12 } from "class-validator";
|
|
2005
2078
|
var UpdateCompanyRoleDto = class {
|
|
2006
2079
|
};
|
|
2007
2080
|
__decorateClass([
|
|
@@ -2014,7 +2087,7 @@ __decorateClass([
|
|
|
2014
2087
|
IsNotEmpty24({ message: "Please enter description" })
|
|
2015
2088
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
2016
2089
|
__decorateClass([
|
|
2017
|
-
|
|
2090
|
+
IsOptional12(),
|
|
2018
2091
|
IsBoolean8({ message: "Is active must be a boolean value" })
|
|
2019
2092
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
2020
2093
|
|
|
@@ -2398,6 +2471,7 @@ export {
|
|
|
2398
2471
|
ModeOfWork,
|
|
2399
2472
|
NOTIFICATION_PATTERN,
|
|
2400
2473
|
NatureOfWork,
|
|
2474
|
+
NatureOfWorkDto,
|
|
2401
2475
|
NotificationRMQAdapter,
|
|
2402
2476
|
NotificationTCPAdapter,
|
|
2403
2477
|
ONBOARDING_PATTERN,
|
|
@@ -2431,6 +2505,7 @@ export {
|
|
|
2431
2505
|
TypeOfEmploymentEnum,
|
|
2432
2506
|
UpdateCompanyProfileDto,
|
|
2433
2507
|
UpdateCompanyRoleDto,
|
|
2508
|
+
UpdateFreelancerProfileDto,
|
|
2434
2509
|
UpdateSubAdminAccountStatusDto,
|
|
2435
2510
|
UpdateSubAdminDto,
|
|
2436
2511
|
User,
|
|
@@ -13,8 +13,8 @@ export declare class UpdateFreelancerProfileDto {
|
|
|
13
13
|
expectedHourlyCompensation?: string;
|
|
14
14
|
natureOfWork: NatureOfWorkDto;
|
|
15
15
|
portfolioLink?: string;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
address?: string;
|
|
17
|
+
about?: string;
|
|
18
18
|
linkedinProfileLink?: string;
|
|
19
19
|
kaggleProfileLink?: string;
|
|
20
20
|
githubProfileLink?: string;
|