@experts_hub/shared 1.0.167 → 1.0.168
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/freelancer-declaration.entity.d.ts +17 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +152 -101
- package/dist/index.mjs +131 -76
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseEntity } from "./base.entity";
|
|
2
|
+
import { User } from "./user.entity";
|
|
3
|
+
export declare enum DocumentType {
|
|
4
|
+
AADHAAR = "AADHAAR_CARD",
|
|
5
|
+
PASSPORT = "PASSPORT",
|
|
6
|
+
DRIVING_LICENSE = "DRIVING_LICENSE",
|
|
7
|
+
PAN_CARD = "PAN_CARD"
|
|
8
|
+
}
|
|
9
|
+
export declare class FreelancerDeclaration extends BaseEntity {
|
|
10
|
+
userId: number;
|
|
11
|
+
user: User;
|
|
12
|
+
documentType: DocumentType;
|
|
13
|
+
frontDocumentUrl: string;
|
|
14
|
+
backDocumentUrl: string;
|
|
15
|
+
declarationAccepted: string;
|
|
16
|
+
digitalSignatureUrl: string;
|
|
17
|
+
}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './freelancer-casestudy.entity';
|
|
|
13
13
|
export * from './freelancer-coreskill.entity';
|
|
14
14
|
export * from './freelancer-tool.entity';
|
|
15
15
|
export * from './freelancer-framework.entity';
|
|
16
|
+
export * from './freelancer-declaration.entity';
|
|
16
17
|
export * from './company-profile.entity';
|
|
17
18
|
export * from './company-role.entity';
|
|
18
19
|
export * from './skill.entity';
|
|
@@ -19,6 +19,7 @@ import { FreelancerCoreSkill } from "./freelancer-coreskill.entity";
|
|
|
19
19
|
import { FreelancerTool } from "./freelancer-tool.entity";
|
|
20
20
|
import { FreelancerFramework } from "./freelancer-framework.entity";
|
|
21
21
|
import { FreelancerAssessment } from "./freelancer-assessment.entity";
|
|
22
|
+
import { FreelancerDeclaration } from "./freelancer-declaration.entity";
|
|
22
23
|
export declare enum AccountType {
|
|
23
24
|
ADMIN = "ADMIN",
|
|
24
25
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -87,4 +88,5 @@ export declare class User extends BaseEntity {
|
|
|
87
88
|
freelancerCoreSkill: FreelancerCoreSkill;
|
|
88
89
|
freelancerTool: FreelancerTool;
|
|
89
90
|
freelancerFramework: FreelancerFramework;
|
|
91
|
+
freelancerDeclaration: FreelancerDeclaration;
|
|
90
92
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -898,6 +898,22 @@ declare class FreelancerAssessment extends BaseEntity {
|
|
|
898
898
|
status: AssessmentStatusEnum;
|
|
899
899
|
}
|
|
900
900
|
|
|
901
|
+
declare enum DocumentType {
|
|
902
|
+
AADHAAR = "AADHAAR_CARD",
|
|
903
|
+
PASSPORT = "PASSPORT",
|
|
904
|
+
DRIVING_LICENSE = "DRIVING_LICENSE",
|
|
905
|
+
PAN_CARD = "PAN_CARD"
|
|
906
|
+
}
|
|
907
|
+
declare class FreelancerDeclaration extends BaseEntity {
|
|
908
|
+
userId: number;
|
|
909
|
+
user: User;
|
|
910
|
+
documentType: DocumentType;
|
|
911
|
+
frontDocumentUrl: string;
|
|
912
|
+
backDocumentUrl: string;
|
|
913
|
+
declarationAccepted: string;
|
|
914
|
+
digitalSignatureUrl: string;
|
|
915
|
+
}
|
|
916
|
+
|
|
901
917
|
declare enum AccountType {
|
|
902
918
|
ADMIN = "ADMIN",
|
|
903
919
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -966,6 +982,7 @@ declare class User extends BaseEntity {
|
|
|
966
982
|
freelancerCoreSkill: FreelancerCoreSkill;
|
|
967
983
|
freelancerTool: FreelancerTool;
|
|
968
984
|
freelancerFramework: FreelancerFramework;
|
|
985
|
+
freelancerDeclaration: FreelancerDeclaration;
|
|
969
986
|
}
|
|
970
987
|
|
|
971
988
|
declare enum RatingTypeEnum {
|
|
@@ -1325,4 +1342,4 @@ declare class Permission extends BaseEntity {
|
|
|
1325
1342
|
isActive: boolean;
|
|
1326
1343
|
}
|
|
1327
1344
|
|
|
1328
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, AssessmentStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_ADMIN_PATTERNS, 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_ADMIN_PATTERNS, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCoreSkill, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkillDto, FreelancerTool, 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, PERMISSION_PATTERN, 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, SendGuestOtpDto, SendGuestOtpPurposeEnum, SenseloafLog, SetPasswordDto, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
|
1345
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, AssessmentStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CaseStudyDto, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_ADMIN_PATTERNS, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCoreSkill, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkillDto, FreelancerTool, 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, PERMISSION_PATTERN, 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, SendGuestOtpDto, SendGuestOtpPurposeEnum, SenseloafLog, SetPasswordDto, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
package/dist/index.d.ts
CHANGED
|
@@ -898,6 +898,22 @@ declare class FreelancerAssessment extends BaseEntity {
|
|
|
898
898
|
status: AssessmentStatusEnum;
|
|
899
899
|
}
|
|
900
900
|
|
|
901
|
+
declare enum DocumentType {
|
|
902
|
+
AADHAAR = "AADHAAR_CARD",
|
|
903
|
+
PASSPORT = "PASSPORT",
|
|
904
|
+
DRIVING_LICENSE = "DRIVING_LICENSE",
|
|
905
|
+
PAN_CARD = "PAN_CARD"
|
|
906
|
+
}
|
|
907
|
+
declare class FreelancerDeclaration extends BaseEntity {
|
|
908
|
+
userId: number;
|
|
909
|
+
user: User;
|
|
910
|
+
documentType: DocumentType;
|
|
911
|
+
frontDocumentUrl: string;
|
|
912
|
+
backDocumentUrl: string;
|
|
913
|
+
declarationAccepted: string;
|
|
914
|
+
digitalSignatureUrl: string;
|
|
915
|
+
}
|
|
916
|
+
|
|
901
917
|
declare enum AccountType {
|
|
902
918
|
ADMIN = "ADMIN",
|
|
903
919
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -966,6 +982,7 @@ declare class User extends BaseEntity {
|
|
|
966
982
|
freelancerCoreSkill: FreelancerCoreSkill;
|
|
967
983
|
freelancerTool: FreelancerTool;
|
|
968
984
|
freelancerFramework: FreelancerFramework;
|
|
985
|
+
freelancerDeclaration: FreelancerDeclaration;
|
|
969
986
|
}
|
|
970
987
|
|
|
971
988
|
declare enum RatingTypeEnum {
|
|
@@ -1325,4 +1342,4 @@ declare class Permission extends BaseEntity {
|
|
|
1325
1342
|
isActive: boolean;
|
|
1326
1343
|
}
|
|
1327
1344
|
|
|
1328
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, AssessmentStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_ADMIN_PATTERNS, 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_ADMIN_PATTERNS, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCoreSkill, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkillDto, FreelancerTool, 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, PERMISSION_PATTERN, 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, SendGuestOtpDto, SendGuestOtpPurposeEnum, SenseloafLog, SetPasswordDto, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
|
1345
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, AssessmentStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CaseStudyDto, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_ADMIN_PATTERNS, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCoreSkill, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkillDto, FreelancerTool, 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, PERMISSION_PATTERN, 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, SendGuestOtpDto, SendGuestOtpPurposeEnum, SenseloafLog, SetPasswordDto, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
package/dist/index.js
CHANGED
|
@@ -53,6 +53,7 @@ __export(index_exports, {
|
|
|
53
53
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
54
54
|
CreateRatingDto: () => CreateRatingDto,
|
|
55
55
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
56
|
+
DocumentType: () => DocumentType,
|
|
56
57
|
DurationTypeEnum: () => DurationTypeEnum,
|
|
57
58
|
EducationDto: () => EducationDto,
|
|
58
59
|
EmploymentType: () => EmploymentType,
|
|
@@ -70,6 +71,7 @@ __export(index_exports, {
|
|
|
70
71
|
FreelancerChangePasswordDto: () => FreelancerChangePasswordDto,
|
|
71
72
|
FreelancerCoreSkill: () => FreelancerCoreSkill,
|
|
72
73
|
FreelancerCreateAccountDto: () => FreelancerCreateAccountDto,
|
|
74
|
+
FreelancerDeclaration: () => FreelancerDeclaration,
|
|
73
75
|
FreelancerDevelopmentPreferenceDto: () => FreelancerDevelopmentPreferenceDto,
|
|
74
76
|
FreelancerEducation: () => FreelancerEducation,
|
|
75
77
|
FreelancerEducationDto: () => FreelancerEducationDto,
|
|
@@ -1085,10 +1087,10 @@ var RATING_PATTERN = {
|
|
|
1085
1087
|
var import_class_validator32 = require("class-validator");
|
|
1086
1088
|
|
|
1087
1089
|
// src/entities/rating.entity.ts
|
|
1088
|
-
var
|
|
1090
|
+
var import_typeorm26 = require("typeorm");
|
|
1089
1091
|
|
|
1090
1092
|
// src/entities/user.entity.ts
|
|
1091
|
-
var
|
|
1093
|
+
var import_typeorm25 = require("typeorm");
|
|
1092
1094
|
|
|
1093
1095
|
// src/entities/base.entity.ts
|
|
1094
1096
|
var import_typeorm = require("typeorm");
|
|
@@ -2236,6 +2238,50 @@ FreelancerAssessment = __decorateClass([
|
|
|
2236
2238
|
(0, import_typeorm23.Entity)("freelancer_assessments")
|
|
2237
2239
|
], FreelancerAssessment);
|
|
2238
2240
|
|
|
2241
|
+
// src/entities/freelancer-declaration.entity.ts
|
|
2242
|
+
var import_typeorm24 = require("typeorm");
|
|
2243
|
+
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2244
|
+
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
2245
|
+
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
2246
|
+
DocumentType2["DRIVING_LICENSE"] = "DRIVING_LICENSE";
|
|
2247
|
+
DocumentType2["PAN_CARD"] = "PAN_CARD";
|
|
2248
|
+
return DocumentType2;
|
|
2249
|
+
})(DocumentType || {});
|
|
2250
|
+
var FreelancerDeclaration = class extends BaseEntity {
|
|
2251
|
+
};
|
|
2252
|
+
// individual index to find declaration by user
|
|
2253
|
+
__decorateClass([
|
|
2254
|
+
(0, import_typeorm24.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2255
|
+
(0, import_typeorm24.Index)()
|
|
2256
|
+
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2257
|
+
__decorateClass([
|
|
2258
|
+
(0, import_typeorm24.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
2259
|
+
(0, import_typeorm24.JoinColumn)({ name: "user_id" })
|
|
2260
|
+
], FreelancerDeclaration.prototype, "user", 2);
|
|
2261
|
+
__decorateClass([
|
|
2262
|
+
(0, import_typeorm24.Column)({
|
|
2263
|
+
name: "document_type",
|
|
2264
|
+
type: "enum",
|
|
2265
|
+
enum: DocumentType,
|
|
2266
|
+
nullable: true
|
|
2267
|
+
})
|
|
2268
|
+
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2269
|
+
__decorateClass([
|
|
2270
|
+
(0, import_typeorm24.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2271
|
+
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2272
|
+
__decorateClass([
|
|
2273
|
+
(0, import_typeorm24.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2274
|
+
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2275
|
+
__decorateClass([
|
|
2276
|
+
(0, import_typeorm24.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2277
|
+
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2278
|
+
__decorateClass([
|
|
2279
|
+
(0, import_typeorm24.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2280
|
+
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2281
|
+
FreelancerDeclaration = __decorateClass([
|
|
2282
|
+
(0, import_typeorm24.Entity)("freelancer_declaration")
|
|
2283
|
+
], FreelancerDeclaration);
|
|
2284
|
+
|
|
2239
2285
|
// src/entities/user.entity.ts
|
|
2240
2286
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
2241
2287
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -2261,55 +2307,55 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2261
2307
|
var User = class extends BaseEntity {
|
|
2262
2308
|
};
|
|
2263
2309
|
__decorateClass([
|
|
2264
|
-
(0,
|
|
2310
|
+
(0, import_typeorm25.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
2265
2311
|
], User.prototype, "uniqueId", 2);
|
|
2266
2312
|
__decorateClass([
|
|
2267
|
-
(0,
|
|
2268
|
-
(0,
|
|
2313
|
+
(0, import_typeorm25.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
2314
|
+
(0, import_typeorm25.Index)()
|
|
2269
2315
|
], User.prototype, "parentId", 2);
|
|
2270
2316
|
__decorateClass([
|
|
2271
|
-
(0,
|
|
2272
|
-
(0,
|
|
2317
|
+
(0, import_typeorm25.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2318
|
+
(0, import_typeorm25.Index)()
|
|
2273
2319
|
], User.prototype, "companyRoleId", 2);
|
|
2274
2320
|
__decorateClass([
|
|
2275
|
-
(0,
|
|
2276
|
-
(0,
|
|
2321
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
2322
|
+
(0, import_typeorm25.JoinColumn)({ name: "parent_id" })
|
|
2277
2323
|
], User.prototype, "parent", 2);
|
|
2278
2324
|
__decorateClass([
|
|
2279
|
-
(0,
|
|
2325
|
+
(0, import_typeorm25.OneToMany)(() => User, (user) => user.parent)
|
|
2280
2326
|
], User.prototype, "children", 2);
|
|
2281
2327
|
__decorateClass([
|
|
2282
|
-
(0,
|
|
2328
|
+
(0, import_typeorm25.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2283
2329
|
], User.prototype, "username", 2);
|
|
2284
2330
|
__decorateClass([
|
|
2285
|
-
(0,
|
|
2331
|
+
(0, import_typeorm25.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2286
2332
|
], User.prototype, "firstName", 2);
|
|
2287
2333
|
__decorateClass([
|
|
2288
|
-
(0,
|
|
2334
|
+
(0, import_typeorm25.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2289
2335
|
], User.prototype, "lastName", 2);
|
|
2290
2336
|
__decorateClass([
|
|
2291
|
-
(0,
|
|
2337
|
+
(0, import_typeorm25.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
2292
2338
|
], User.prototype, "dateOfBirth", 2);
|
|
2293
2339
|
__decorateClass([
|
|
2294
|
-
(0,
|
|
2340
|
+
(0, import_typeorm25.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2295
2341
|
], User.prototype, "gender", 2);
|
|
2296
2342
|
__decorateClass([
|
|
2297
|
-
(0,
|
|
2343
|
+
(0, import_typeorm25.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2298
2344
|
], User.prototype, "profilePictureUrl", 2);
|
|
2299
2345
|
__decorateClass([
|
|
2300
|
-
(0,
|
|
2346
|
+
(0, import_typeorm25.Column)({ name: "email", type: "varchar", unique: true })
|
|
2301
2347
|
], User.prototype, "email", 2);
|
|
2302
2348
|
__decorateClass([
|
|
2303
|
-
(0,
|
|
2349
|
+
(0, import_typeorm25.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2304
2350
|
], User.prototype, "mobileCode", 2);
|
|
2305
2351
|
__decorateClass([
|
|
2306
|
-
(0,
|
|
2352
|
+
(0, import_typeorm25.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2307
2353
|
], User.prototype, "mobile", 2);
|
|
2308
2354
|
__decorateClass([
|
|
2309
|
-
(0,
|
|
2355
|
+
(0, import_typeorm25.Column)({ name: "password", type: "varchar", nullable: true })
|
|
2310
2356
|
], User.prototype, "password", 2);
|
|
2311
2357
|
__decorateClass([
|
|
2312
|
-
(0,
|
|
2358
|
+
(0, import_typeorm25.Column)({
|
|
2313
2359
|
name: "account_type",
|
|
2314
2360
|
type: "enum",
|
|
2315
2361
|
enum: AccountType,
|
|
@@ -2317,7 +2363,7 @@ __decorateClass([
|
|
|
2317
2363
|
})
|
|
2318
2364
|
], User.prototype, "accountType", 2);
|
|
2319
2365
|
__decorateClass([
|
|
2320
|
-
(0,
|
|
2366
|
+
(0, import_typeorm25.Column)({
|
|
2321
2367
|
name: "account_status",
|
|
2322
2368
|
type: "enum",
|
|
2323
2369
|
enum: AccountStatus,
|
|
@@ -2325,36 +2371,36 @@ __decorateClass([
|
|
|
2325
2371
|
})
|
|
2326
2372
|
], User.prototype, "accountStatus", 2);
|
|
2327
2373
|
__decorateClass([
|
|
2328
|
-
(0,
|
|
2374
|
+
(0, import_typeorm25.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
2329
2375
|
], User.prototype, "isEmailVerified", 2);
|
|
2330
2376
|
__decorateClass([
|
|
2331
|
-
(0,
|
|
2377
|
+
(0, import_typeorm25.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2332
2378
|
], User.prototype, "isMobileVerified", 2);
|
|
2333
2379
|
__decorateClass([
|
|
2334
|
-
(0,
|
|
2380
|
+
(0, import_typeorm25.Column)({
|
|
2335
2381
|
name: "last_login_at",
|
|
2336
2382
|
type: "timestamp with time zone",
|
|
2337
2383
|
nullable: true
|
|
2338
2384
|
})
|
|
2339
2385
|
], User.prototype, "lastLoginAt", 2);
|
|
2340
2386
|
__decorateClass([
|
|
2341
|
-
(0,
|
|
2387
|
+
(0, import_typeorm25.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2342
2388
|
], User.prototype, "lastLoginIp", 2);
|
|
2343
2389
|
__decorateClass([
|
|
2344
|
-
(0,
|
|
2390
|
+
(0, import_typeorm25.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
2345
2391
|
], User.prototype, "resetToken", 2);
|
|
2346
2392
|
__decorateClass([
|
|
2347
|
-
(0,
|
|
2393
|
+
(0, import_typeorm25.Column)({
|
|
2348
2394
|
name: "reset_token_expire_at",
|
|
2349
2395
|
type: "timestamp with time zone",
|
|
2350
2396
|
nullable: true
|
|
2351
2397
|
})
|
|
2352
2398
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2353
2399
|
__decorateClass([
|
|
2354
|
-
(0,
|
|
2400
|
+
(0, import_typeorm25.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
2355
2401
|
], User.prototype, "refreshTokens", 2);
|
|
2356
2402
|
__decorateClass([
|
|
2357
|
-
(0,
|
|
2403
|
+
(0, import_typeorm25.Column)({
|
|
2358
2404
|
name: "provider",
|
|
2359
2405
|
type: "enum",
|
|
2360
2406
|
enum: Provider,
|
|
@@ -2363,85 +2409,88 @@ __decorateClass([
|
|
|
2363
2409
|
})
|
|
2364
2410
|
], User.prototype, "provider", 2);
|
|
2365
2411
|
__decorateClass([
|
|
2366
|
-
(0,
|
|
2412
|
+
(0, import_typeorm25.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
2367
2413
|
], User.prototype, "providerToken", 2);
|
|
2368
2414
|
__decorateClass([
|
|
2369
|
-
(0,
|
|
2415
|
+
(0, import_typeorm25.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2370
2416
|
], User.prototype, "linkedInId", 2);
|
|
2371
2417
|
__decorateClass([
|
|
2372
|
-
(0,
|
|
2418
|
+
(0, import_typeorm25.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
2373
2419
|
], User.prototype, "googleId", 2);
|
|
2374
2420
|
__decorateClass([
|
|
2375
|
-
(0,
|
|
2421
|
+
(0, import_typeorm25.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2376
2422
|
], User.prototype, "gitLabsId", 2);
|
|
2377
2423
|
__decorateClass([
|
|
2378
|
-
(0,
|
|
2424
|
+
(0, import_typeorm25.OneToMany)(() => Otp, (otp) => otp.user)
|
|
2379
2425
|
], User.prototype, "otps", 2);
|
|
2380
2426
|
__decorateClass([
|
|
2381
|
-
(0,
|
|
2427
|
+
(0, import_typeorm25.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2382
2428
|
], User.prototype, "senseloafLogs", 2);
|
|
2383
2429
|
__decorateClass([
|
|
2384
|
-
(0,
|
|
2430
|
+
(0, import_typeorm25.OneToOne)(
|
|
2385
2431
|
() => FreelancerProfile,
|
|
2386
2432
|
(freelancerProfile) => freelancerProfile.user
|
|
2387
2433
|
)
|
|
2388
2434
|
], User.prototype, "freelancerProfile", 2);
|
|
2389
2435
|
__decorateClass([
|
|
2390
|
-
(0,
|
|
2436
|
+
(0, import_typeorm25.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
2391
2437
|
], User.prototype, "companyProfile", 2);
|
|
2392
2438
|
__decorateClass([
|
|
2393
|
-
(0,
|
|
2439
|
+
(0, import_typeorm25.OneToMany)(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
2394
2440
|
], User.prototype, "assessments", 2);
|
|
2395
2441
|
__decorateClass([
|
|
2396
|
-
(0,
|
|
2442
|
+
(0, import_typeorm25.OneToMany)(() => Job, (job) => job.user)
|
|
2397
2443
|
], User.prototype, "jobs", 2);
|
|
2398
2444
|
__decorateClass([
|
|
2399
|
-
(0,
|
|
2445
|
+
(0, import_typeorm25.OneToMany)(() => Interview, (interview) => interview.user)
|
|
2400
2446
|
], User.prototype, "interviews", 2);
|
|
2401
2447
|
__decorateClass([
|
|
2402
|
-
(0,
|
|
2448
|
+
(0, import_typeorm25.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2403
2449
|
], User.prototype, "bankDetail", 2);
|
|
2404
2450
|
__decorateClass([
|
|
2405
|
-
(0,
|
|
2451
|
+
(0, import_typeorm25.OneToMany)(
|
|
2406
2452
|
() => SystemPreference,
|
|
2407
2453
|
(systemPreference) => systemPreference.user
|
|
2408
2454
|
)
|
|
2409
2455
|
], User.prototype, "systemPreference", 2);
|
|
2410
2456
|
__decorateClass([
|
|
2411
|
-
(0,
|
|
2457
|
+
(0, import_typeorm25.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
2412
2458
|
], User.prototype, "givenRatings", 2);
|
|
2413
2459
|
__decorateClass([
|
|
2414
|
-
(0,
|
|
2460
|
+
(0, import_typeorm25.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
2415
2461
|
], User.prototype, "receivedRatings", 2);
|
|
2416
2462
|
__decorateClass([
|
|
2417
|
-
(0,
|
|
2463
|
+
(0, import_typeorm25.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2418
2464
|
], User.prototype, "jobApplications", 2);
|
|
2419
2465
|
__decorateClass([
|
|
2420
|
-
(0,
|
|
2466
|
+
(0, import_typeorm25.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
|
|
2421
2467
|
], User.prototype, "companyRole", 2);
|
|
2422
2468
|
__decorateClass([
|
|
2423
|
-
(0,
|
|
2469
|
+
(0, import_typeorm25.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
2424
2470
|
], User.prototype, "freelancerExperience", 2);
|
|
2425
2471
|
__decorateClass([
|
|
2426
|
-
(0,
|
|
2472
|
+
(0, import_typeorm25.OneToOne)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
2427
2473
|
], User.prototype, "freelancerEducation", 2);
|
|
2428
2474
|
__decorateClass([
|
|
2429
|
-
(0,
|
|
2475
|
+
(0, import_typeorm25.OneToOne)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
2430
2476
|
], User.prototype, "freelancerProject", 2);
|
|
2431
2477
|
__decorateClass([
|
|
2432
|
-
(0,
|
|
2478
|
+
(0, import_typeorm25.OneToOne)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
2433
2479
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
2434
2480
|
__decorateClass([
|
|
2435
|
-
(0,
|
|
2481
|
+
(0, import_typeorm25.OneToOne)(() => FreelancerCoreSkill, (freelancerCoreSkill) => freelancerCoreSkill.user)
|
|
2436
2482
|
], User.prototype, "freelancerCoreSkill", 2);
|
|
2437
2483
|
__decorateClass([
|
|
2438
|
-
(0,
|
|
2484
|
+
(0, import_typeorm25.OneToOne)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
2439
2485
|
], User.prototype, "freelancerTool", 2);
|
|
2440
2486
|
__decorateClass([
|
|
2441
|
-
(0,
|
|
2487
|
+
(0, import_typeorm25.OneToOne)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
2442
2488
|
], User.prototype, "freelancerFramework", 2);
|
|
2489
|
+
__decorateClass([
|
|
2490
|
+
(0, import_typeorm25.OneToOne)(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
2491
|
+
], User.prototype, "freelancerDeclaration", 2);
|
|
2443
2492
|
User = __decorateClass([
|
|
2444
|
-
(0,
|
|
2493
|
+
(0, import_typeorm25.Entity)("users")
|
|
2445
2494
|
], User);
|
|
2446
2495
|
|
|
2447
2496
|
// src/entities/rating.entity.ts
|
|
@@ -2453,36 +2502,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2453
2502
|
var Rating = class extends BaseEntity {
|
|
2454
2503
|
};
|
|
2455
2504
|
__decorateClass([
|
|
2456
|
-
(0,
|
|
2457
|
-
(0,
|
|
2505
|
+
(0, import_typeorm26.Column)({ name: "reviewer_id", type: "integer" }),
|
|
2506
|
+
(0, import_typeorm26.Index)()
|
|
2458
2507
|
], Rating.prototype, "reviewer_id", 2);
|
|
2459
2508
|
__decorateClass([
|
|
2460
|
-
(0,
|
|
2461
|
-
(0,
|
|
2509
|
+
(0, import_typeorm26.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2510
|
+
(0, import_typeorm26.JoinColumn)({ name: "reviewer_id" })
|
|
2462
2511
|
], Rating.prototype, "reviewer", 2);
|
|
2463
2512
|
__decorateClass([
|
|
2464
|
-
(0,
|
|
2465
|
-
(0,
|
|
2513
|
+
(0, import_typeorm26.Column)({ name: "reviewee_id", type: "integer" }),
|
|
2514
|
+
(0, import_typeorm26.Index)()
|
|
2466
2515
|
], Rating.prototype, "reviewee_id", 2);
|
|
2467
2516
|
__decorateClass([
|
|
2468
|
-
(0,
|
|
2469
|
-
(0,
|
|
2517
|
+
(0, import_typeorm26.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2518
|
+
(0, import_typeorm26.JoinColumn)({ name: "reviewee_id" })
|
|
2470
2519
|
], Rating.prototype, "reviewee", 2);
|
|
2471
2520
|
__decorateClass([
|
|
2472
|
-
(0,
|
|
2521
|
+
(0, import_typeorm26.Column)({
|
|
2473
2522
|
type: "enum",
|
|
2474
2523
|
enum: RatingTypeEnum,
|
|
2475
2524
|
nullable: true
|
|
2476
2525
|
})
|
|
2477
2526
|
], Rating.prototype, "ratingType", 2);
|
|
2478
2527
|
__decorateClass([
|
|
2479
|
-
(0,
|
|
2528
|
+
(0, import_typeorm26.Column)({ type: "integer", nullable: true })
|
|
2480
2529
|
], Rating.prototype, "rating", 2);
|
|
2481
2530
|
__decorateClass([
|
|
2482
|
-
(0,
|
|
2531
|
+
(0, import_typeorm26.Column)({ type: "text", nullable: true })
|
|
2483
2532
|
], Rating.prototype, "review", 2);
|
|
2484
2533
|
Rating = __decorateClass([
|
|
2485
|
-
(0,
|
|
2534
|
+
(0, import_typeorm26.Entity)("ratings")
|
|
2486
2535
|
], Rating);
|
|
2487
2536
|
|
|
2488
2537
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -3016,7 +3065,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3016
3065
|
};
|
|
3017
3066
|
|
|
3018
3067
|
// src/entities/question.entity.ts
|
|
3019
|
-
var
|
|
3068
|
+
var import_typeorm27 = require("typeorm");
|
|
3020
3069
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3021
3070
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3022
3071
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3025,16 +3074,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3025
3074
|
var Question = class extends BaseEntity {
|
|
3026
3075
|
};
|
|
3027
3076
|
__decorateClass([
|
|
3028
|
-
(0,
|
|
3077
|
+
(0, import_typeorm27.Column)({ name: "question", type: "varchar" })
|
|
3029
3078
|
], Question.prototype, "question", 2);
|
|
3030
3079
|
__decorateClass([
|
|
3031
|
-
(0,
|
|
3080
|
+
(0, import_typeorm27.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
3032
3081
|
], Question.prototype, "hint", 2);
|
|
3033
3082
|
__decorateClass([
|
|
3034
|
-
(0,
|
|
3083
|
+
(0, import_typeorm27.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3035
3084
|
], Question.prototype, "slug", 2);
|
|
3036
3085
|
__decorateClass([
|
|
3037
|
-
(0,
|
|
3086
|
+
(0, import_typeorm27.Column)({
|
|
3038
3087
|
name: "question_for",
|
|
3039
3088
|
type: "enum",
|
|
3040
3089
|
enum: QuestionFor,
|
|
@@ -3042,97 +3091,97 @@ __decorateClass([
|
|
|
3042
3091
|
})
|
|
3043
3092
|
], Question.prototype, "questionFor", 2);
|
|
3044
3093
|
__decorateClass([
|
|
3045
|
-
(0,
|
|
3094
|
+
(0, import_typeorm27.Column)({ name: "type", type: "varchar", nullable: true })
|
|
3046
3095
|
], Question.prototype, "type", 2);
|
|
3047
3096
|
__decorateClass([
|
|
3048
|
-
(0,
|
|
3097
|
+
(0, import_typeorm27.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
3049
3098
|
], Question.prototype, "options", 2);
|
|
3050
3099
|
__decorateClass([
|
|
3051
|
-
(0,
|
|
3100
|
+
(0, import_typeorm27.Column)({ name: "is_active", type: "boolean", default: false })
|
|
3052
3101
|
], Question.prototype, "isActive", 2);
|
|
3053
3102
|
Question = __decorateClass([
|
|
3054
|
-
(0,
|
|
3103
|
+
(0, import_typeorm27.Entity)("questions")
|
|
3055
3104
|
], Question);
|
|
3056
3105
|
|
|
3057
3106
|
// src/entities/job-role.entity.ts
|
|
3058
|
-
var
|
|
3107
|
+
var import_typeorm28 = require("typeorm");
|
|
3059
3108
|
var JobRoles = class extends BaseEntity {
|
|
3060
3109
|
};
|
|
3061
3110
|
__decorateClass([
|
|
3062
|
-
(0,
|
|
3111
|
+
(0, import_typeorm28.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3063
3112
|
], JobRoles.prototype, "slug", 2);
|
|
3064
3113
|
__decorateClass([
|
|
3065
|
-
(0,
|
|
3114
|
+
(0, import_typeorm28.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3066
3115
|
], JobRoles.prototype, "name", 2);
|
|
3067
3116
|
__decorateClass([
|
|
3068
|
-
(0,
|
|
3117
|
+
(0, import_typeorm28.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3069
3118
|
], JobRoles.prototype, "isActive", 2);
|
|
3070
3119
|
JobRoles = __decorateClass([
|
|
3071
|
-
(0,
|
|
3120
|
+
(0, import_typeorm28.Entity)("job_roles")
|
|
3072
3121
|
], JobRoles);
|
|
3073
3122
|
|
|
3074
3123
|
// src/entities/plan.entity.ts
|
|
3075
|
-
var
|
|
3124
|
+
var import_typeorm30 = require("typeorm");
|
|
3076
3125
|
|
|
3077
3126
|
// src/entities/feature.entity.ts
|
|
3078
|
-
var
|
|
3127
|
+
var import_typeorm29 = require("typeorm");
|
|
3079
3128
|
var Feature = class extends BaseEntity {
|
|
3080
3129
|
};
|
|
3081
3130
|
__decorateClass([
|
|
3082
|
-
(0,
|
|
3131
|
+
(0, import_typeorm29.Column)({ name: "name", type: "varchar", unique: true })
|
|
3083
3132
|
], Feature.prototype, "name", 2);
|
|
3084
3133
|
__decorateClass([
|
|
3085
|
-
(0,
|
|
3134
|
+
(0, import_typeorm29.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
3086
3135
|
], Feature.prototype, "plans", 2);
|
|
3087
3136
|
Feature = __decorateClass([
|
|
3088
|
-
(0,
|
|
3137
|
+
(0, import_typeorm29.Entity)("features")
|
|
3089
3138
|
], Feature);
|
|
3090
3139
|
|
|
3091
3140
|
// src/entities/plan.entity.ts
|
|
3092
3141
|
var Plan = class extends BaseEntity {
|
|
3093
3142
|
};
|
|
3094
3143
|
__decorateClass([
|
|
3095
|
-
(0,
|
|
3144
|
+
(0, import_typeorm30.Column)({ name: "name", type: "varchar", unique: true })
|
|
3096
3145
|
], Plan.prototype, "name", 2);
|
|
3097
3146
|
__decorateClass([
|
|
3098
|
-
(0,
|
|
3147
|
+
(0, import_typeorm30.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3099
3148
|
], Plan.prototype, "description", 2);
|
|
3100
3149
|
__decorateClass([
|
|
3101
|
-
(0,
|
|
3150
|
+
(0, import_typeorm30.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
3102
3151
|
], Plan.prototype, "price", 2);
|
|
3103
3152
|
__decorateClass([
|
|
3104
|
-
(0,
|
|
3153
|
+
(0, import_typeorm30.Column)({ name: "billing_period", type: "varchar" })
|
|
3105
3154
|
], Plan.prototype, "billingPeriod", 2);
|
|
3106
3155
|
__decorateClass([
|
|
3107
|
-
(0,
|
|
3156
|
+
(0, import_typeorm30.Column)({ name: "is_current", type: "boolean", default: false })
|
|
3108
3157
|
], Plan.prototype, "isCurrent", 2);
|
|
3109
3158
|
__decorateClass([
|
|
3110
|
-
(0,
|
|
3111
|
-
(0,
|
|
3159
|
+
(0, import_typeorm30.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
3160
|
+
(0, import_typeorm30.JoinTable)()
|
|
3112
3161
|
], Plan.prototype, "features", 2);
|
|
3113
3162
|
Plan = __decorateClass([
|
|
3114
|
-
(0,
|
|
3163
|
+
(0, import_typeorm30.Entity)("plans")
|
|
3115
3164
|
], Plan);
|
|
3116
3165
|
|
|
3117
3166
|
// src/entities/permission.entity.ts
|
|
3118
|
-
var
|
|
3167
|
+
var import_typeorm31 = require("typeorm");
|
|
3119
3168
|
var Permission = class extends BaseEntity {
|
|
3120
3169
|
};
|
|
3121
3170
|
__decorateClass([
|
|
3122
|
-
(0,
|
|
3171
|
+
(0, import_typeorm31.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3123
3172
|
], Permission.prototype, "name", 2);
|
|
3124
3173
|
__decorateClass([
|
|
3125
|
-
(0,
|
|
3126
|
-
(0,
|
|
3174
|
+
(0, import_typeorm31.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3175
|
+
(0, import_typeorm31.Index)()
|
|
3127
3176
|
], Permission.prototype, "slug", 2);
|
|
3128
3177
|
__decorateClass([
|
|
3129
|
-
(0,
|
|
3178
|
+
(0, import_typeorm31.Column)({ name: "description", type: "text", nullable: true })
|
|
3130
3179
|
], Permission.prototype, "description", 2);
|
|
3131
3180
|
__decorateClass([
|
|
3132
|
-
(0,
|
|
3181
|
+
(0, import_typeorm31.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3133
3182
|
], Permission.prototype, "isActive", 2);
|
|
3134
3183
|
Permission = __decorateClass([
|
|
3135
|
-
(0,
|
|
3184
|
+
(0, import_typeorm31.Entity)("permissions")
|
|
3136
3185
|
], Permission);
|
|
3137
3186
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3138
3187
|
0 && (module.exports = {
|
|
@@ -3162,6 +3211,7 @@ Permission = __decorateClass([
|
|
|
3162
3211
|
CreateQuestionDto,
|
|
3163
3212
|
CreateRatingDto,
|
|
3164
3213
|
CreateSubAdminDto,
|
|
3214
|
+
DocumentType,
|
|
3165
3215
|
DurationTypeEnum,
|
|
3166
3216
|
EducationDto,
|
|
3167
3217
|
EmploymentType,
|
|
@@ -3179,6 +3229,7 @@ Permission = __decorateClass([
|
|
|
3179
3229
|
FreelancerChangePasswordDto,
|
|
3180
3230
|
FreelancerCoreSkill,
|
|
3181
3231
|
FreelancerCreateAccountDto,
|
|
3232
|
+
FreelancerDeclaration,
|
|
3182
3233
|
FreelancerDevelopmentPreferenceDto,
|
|
3183
3234
|
FreelancerEducation,
|
|
3184
3235
|
FreelancerEducationDto,
|
package/dist/index.mjs
CHANGED
|
@@ -1027,10 +1027,10 @@ import {
|
|
|
1027
1027
|
} from "class-validator";
|
|
1028
1028
|
|
|
1029
1029
|
// src/entities/rating.entity.ts
|
|
1030
|
-
import { Entity as
|
|
1030
|
+
import { Entity as Entity25, Column as Column26, ManyToOne as ManyToOne24, JoinColumn as JoinColumn24, Index as Index22 } from "typeorm";
|
|
1031
1031
|
|
|
1032
1032
|
// src/entities/user.entity.ts
|
|
1033
|
-
import { Entity as
|
|
1033
|
+
import { Entity as Entity24, Column as Column25, OneToMany as OneToMany7, OneToOne, Index as Index21, ManyToOne as ManyToOne23, JoinColumn as JoinColumn23 } from "typeorm";
|
|
1034
1034
|
|
|
1035
1035
|
// src/entities/base.entity.ts
|
|
1036
1036
|
import {
|
|
@@ -2300,6 +2300,56 @@ FreelancerAssessment = __decorateClass([
|
|
|
2300
2300
|
Entity22("freelancer_assessments")
|
|
2301
2301
|
], FreelancerAssessment);
|
|
2302
2302
|
|
|
2303
|
+
// src/entities/freelancer-declaration.entity.ts
|
|
2304
|
+
import {
|
|
2305
|
+
Entity as Entity23,
|
|
2306
|
+
Column as Column24,
|
|
2307
|
+
Index as Index20,
|
|
2308
|
+
ManyToOne as ManyToOne22,
|
|
2309
|
+
JoinColumn as JoinColumn22
|
|
2310
|
+
} from "typeorm";
|
|
2311
|
+
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2312
|
+
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
2313
|
+
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
2314
|
+
DocumentType2["DRIVING_LICENSE"] = "DRIVING_LICENSE";
|
|
2315
|
+
DocumentType2["PAN_CARD"] = "PAN_CARD";
|
|
2316
|
+
return DocumentType2;
|
|
2317
|
+
})(DocumentType || {});
|
|
2318
|
+
var FreelancerDeclaration = class extends BaseEntity {
|
|
2319
|
+
};
|
|
2320
|
+
// individual index to find declaration by user
|
|
2321
|
+
__decorateClass([
|
|
2322
|
+
Column24({ name: "user_id", type: "integer", nullable: true }),
|
|
2323
|
+
Index20()
|
|
2324
|
+
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2325
|
+
__decorateClass([
|
|
2326
|
+
ManyToOne22(() => User, (user) => user.freelancerDeclaration),
|
|
2327
|
+
JoinColumn22({ name: "user_id" })
|
|
2328
|
+
], FreelancerDeclaration.prototype, "user", 2);
|
|
2329
|
+
__decorateClass([
|
|
2330
|
+
Column24({
|
|
2331
|
+
name: "document_type",
|
|
2332
|
+
type: "enum",
|
|
2333
|
+
enum: DocumentType,
|
|
2334
|
+
nullable: true
|
|
2335
|
+
})
|
|
2336
|
+
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2337
|
+
__decorateClass([
|
|
2338
|
+
Column24({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2339
|
+
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2340
|
+
__decorateClass([
|
|
2341
|
+
Column24({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2342
|
+
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2343
|
+
__decorateClass([
|
|
2344
|
+
Column24({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2345
|
+
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2346
|
+
__decorateClass([
|
|
2347
|
+
Column24({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2348
|
+
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2349
|
+
FreelancerDeclaration = __decorateClass([
|
|
2350
|
+
Entity23("freelancer_declaration")
|
|
2351
|
+
], FreelancerDeclaration);
|
|
2352
|
+
|
|
2303
2353
|
// src/entities/user.entity.ts
|
|
2304
2354
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
2305
2355
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -2325,55 +2375,55 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2325
2375
|
var User = class extends BaseEntity {
|
|
2326
2376
|
};
|
|
2327
2377
|
__decorateClass([
|
|
2328
|
-
|
|
2378
|
+
Column25({ name: "unique_id", type: "varchar", unique: true })
|
|
2329
2379
|
], User.prototype, "uniqueId", 2);
|
|
2330
2380
|
__decorateClass([
|
|
2331
|
-
|
|
2332
|
-
|
|
2381
|
+
Column25({ name: "parent_id", type: "integer", nullable: true }),
|
|
2382
|
+
Index21()
|
|
2333
2383
|
], User.prototype, "parentId", 2);
|
|
2334
2384
|
__decorateClass([
|
|
2335
|
-
|
|
2336
|
-
|
|
2385
|
+
Column25({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2386
|
+
Index21()
|
|
2337
2387
|
], User.prototype, "companyRoleId", 2);
|
|
2338
2388
|
__decorateClass([
|
|
2339
|
-
|
|
2340
|
-
|
|
2389
|
+
ManyToOne23(() => User, (user) => user.children, { nullable: true }),
|
|
2390
|
+
JoinColumn23({ name: "parent_id" })
|
|
2341
2391
|
], User.prototype, "parent", 2);
|
|
2342
2392
|
__decorateClass([
|
|
2343
2393
|
OneToMany7(() => User, (user) => user.parent)
|
|
2344
2394
|
], User.prototype, "children", 2);
|
|
2345
2395
|
__decorateClass([
|
|
2346
|
-
|
|
2396
|
+
Column25({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2347
2397
|
], User.prototype, "username", 2);
|
|
2348
2398
|
__decorateClass([
|
|
2349
|
-
|
|
2399
|
+
Column25({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2350
2400
|
], User.prototype, "firstName", 2);
|
|
2351
2401
|
__decorateClass([
|
|
2352
|
-
|
|
2402
|
+
Column25({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2353
2403
|
], User.prototype, "lastName", 2);
|
|
2354
2404
|
__decorateClass([
|
|
2355
|
-
|
|
2405
|
+
Column25({ name: "date_of_birth", type: "date", nullable: true })
|
|
2356
2406
|
], User.prototype, "dateOfBirth", 2);
|
|
2357
2407
|
__decorateClass([
|
|
2358
|
-
|
|
2408
|
+
Column25({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2359
2409
|
], User.prototype, "gender", 2);
|
|
2360
2410
|
__decorateClass([
|
|
2361
|
-
|
|
2411
|
+
Column25({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2362
2412
|
], User.prototype, "profilePictureUrl", 2);
|
|
2363
2413
|
__decorateClass([
|
|
2364
|
-
|
|
2414
|
+
Column25({ name: "email", type: "varchar", unique: true })
|
|
2365
2415
|
], User.prototype, "email", 2);
|
|
2366
2416
|
__decorateClass([
|
|
2367
|
-
|
|
2417
|
+
Column25({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2368
2418
|
], User.prototype, "mobileCode", 2);
|
|
2369
2419
|
__decorateClass([
|
|
2370
|
-
|
|
2420
|
+
Column25({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2371
2421
|
], User.prototype, "mobile", 2);
|
|
2372
2422
|
__decorateClass([
|
|
2373
|
-
|
|
2423
|
+
Column25({ name: "password", type: "varchar", nullable: true })
|
|
2374
2424
|
], User.prototype, "password", 2);
|
|
2375
2425
|
__decorateClass([
|
|
2376
|
-
|
|
2426
|
+
Column25({
|
|
2377
2427
|
name: "account_type",
|
|
2378
2428
|
type: "enum",
|
|
2379
2429
|
enum: AccountType,
|
|
@@ -2381,7 +2431,7 @@ __decorateClass([
|
|
|
2381
2431
|
})
|
|
2382
2432
|
], User.prototype, "accountType", 2);
|
|
2383
2433
|
__decorateClass([
|
|
2384
|
-
|
|
2434
|
+
Column25({
|
|
2385
2435
|
name: "account_status",
|
|
2386
2436
|
type: "enum",
|
|
2387
2437
|
enum: AccountStatus,
|
|
@@ -2389,26 +2439,26 @@ __decorateClass([
|
|
|
2389
2439
|
})
|
|
2390
2440
|
], User.prototype, "accountStatus", 2);
|
|
2391
2441
|
__decorateClass([
|
|
2392
|
-
|
|
2442
|
+
Column25({ name: "is_email_verified", type: "boolean", default: false })
|
|
2393
2443
|
], User.prototype, "isEmailVerified", 2);
|
|
2394
2444
|
__decorateClass([
|
|
2395
|
-
|
|
2445
|
+
Column25({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2396
2446
|
], User.prototype, "isMobileVerified", 2);
|
|
2397
2447
|
__decorateClass([
|
|
2398
|
-
|
|
2448
|
+
Column25({
|
|
2399
2449
|
name: "last_login_at",
|
|
2400
2450
|
type: "timestamp with time zone",
|
|
2401
2451
|
nullable: true
|
|
2402
2452
|
})
|
|
2403
2453
|
], User.prototype, "lastLoginAt", 2);
|
|
2404
2454
|
__decorateClass([
|
|
2405
|
-
|
|
2455
|
+
Column25({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2406
2456
|
], User.prototype, "lastLoginIp", 2);
|
|
2407
2457
|
__decorateClass([
|
|
2408
|
-
|
|
2458
|
+
Column25({ name: "reset_token", type: "varchar", nullable: true })
|
|
2409
2459
|
], User.prototype, "resetToken", 2);
|
|
2410
2460
|
__decorateClass([
|
|
2411
|
-
|
|
2461
|
+
Column25({
|
|
2412
2462
|
name: "reset_token_expire_at",
|
|
2413
2463
|
type: "timestamp with time zone",
|
|
2414
2464
|
nullable: true
|
|
@@ -2418,7 +2468,7 @@ __decorateClass([
|
|
|
2418
2468
|
OneToMany7(() => RefreshToken, (token) => token.user)
|
|
2419
2469
|
], User.prototype, "refreshTokens", 2);
|
|
2420
2470
|
__decorateClass([
|
|
2421
|
-
|
|
2471
|
+
Column25({
|
|
2422
2472
|
name: "provider",
|
|
2423
2473
|
type: "enum",
|
|
2424
2474
|
enum: Provider,
|
|
@@ -2427,16 +2477,16 @@ __decorateClass([
|
|
|
2427
2477
|
})
|
|
2428
2478
|
], User.prototype, "provider", 2);
|
|
2429
2479
|
__decorateClass([
|
|
2430
|
-
|
|
2480
|
+
Column25({ name: "provider_token", type: "varchar", nullable: true })
|
|
2431
2481
|
], User.prototype, "providerToken", 2);
|
|
2432
2482
|
__decorateClass([
|
|
2433
|
-
|
|
2483
|
+
Column25({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2434
2484
|
], User.prototype, "linkedInId", 2);
|
|
2435
2485
|
__decorateClass([
|
|
2436
|
-
|
|
2486
|
+
Column25({ name: "google_id", type: "varchar", nullable: true })
|
|
2437
2487
|
], User.prototype, "googleId", 2);
|
|
2438
2488
|
__decorateClass([
|
|
2439
|
-
|
|
2489
|
+
Column25({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2440
2490
|
], User.prototype, "gitLabsId", 2);
|
|
2441
2491
|
__decorateClass([
|
|
2442
2492
|
OneToMany7(() => Otp, (otp) => otp.user)
|
|
@@ -2504,8 +2554,11 @@ __decorateClass([
|
|
|
2504
2554
|
__decorateClass([
|
|
2505
2555
|
OneToOne(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
2506
2556
|
], User.prototype, "freelancerFramework", 2);
|
|
2557
|
+
__decorateClass([
|
|
2558
|
+
OneToOne(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
2559
|
+
], User.prototype, "freelancerDeclaration", 2);
|
|
2507
2560
|
User = __decorateClass([
|
|
2508
|
-
|
|
2561
|
+
Entity24("users")
|
|
2509
2562
|
], User);
|
|
2510
2563
|
|
|
2511
2564
|
// src/entities/rating.entity.ts
|
|
@@ -2517,36 +2570,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2517
2570
|
var Rating = class extends BaseEntity {
|
|
2518
2571
|
};
|
|
2519
2572
|
__decorateClass([
|
|
2520
|
-
|
|
2521
|
-
|
|
2573
|
+
Column26({ name: "reviewer_id", type: "integer" }),
|
|
2574
|
+
Index22()
|
|
2522
2575
|
], Rating.prototype, "reviewer_id", 2);
|
|
2523
2576
|
__decorateClass([
|
|
2524
|
-
|
|
2525
|
-
|
|
2577
|
+
ManyToOne24(() => User, { onDelete: "CASCADE" }),
|
|
2578
|
+
JoinColumn24({ name: "reviewer_id" })
|
|
2526
2579
|
], Rating.prototype, "reviewer", 2);
|
|
2527
2580
|
__decorateClass([
|
|
2528
|
-
|
|
2529
|
-
|
|
2581
|
+
Column26({ name: "reviewee_id", type: "integer" }),
|
|
2582
|
+
Index22()
|
|
2530
2583
|
], Rating.prototype, "reviewee_id", 2);
|
|
2531
2584
|
__decorateClass([
|
|
2532
|
-
|
|
2533
|
-
|
|
2585
|
+
ManyToOne24(() => User, { onDelete: "CASCADE" }),
|
|
2586
|
+
JoinColumn24({ name: "reviewee_id" })
|
|
2534
2587
|
], Rating.prototype, "reviewee", 2);
|
|
2535
2588
|
__decorateClass([
|
|
2536
|
-
|
|
2589
|
+
Column26({
|
|
2537
2590
|
type: "enum",
|
|
2538
2591
|
enum: RatingTypeEnum,
|
|
2539
2592
|
nullable: true
|
|
2540
2593
|
})
|
|
2541
2594
|
], Rating.prototype, "ratingType", 2);
|
|
2542
2595
|
__decorateClass([
|
|
2543
|
-
|
|
2596
|
+
Column26({ type: "integer", nullable: true })
|
|
2544
2597
|
], Rating.prototype, "rating", 2);
|
|
2545
2598
|
__decorateClass([
|
|
2546
|
-
|
|
2599
|
+
Column26({ type: "text", nullable: true })
|
|
2547
2600
|
], Rating.prototype, "review", 2);
|
|
2548
2601
|
Rating = __decorateClass([
|
|
2549
|
-
|
|
2602
|
+
Entity25("ratings")
|
|
2550
2603
|
], Rating);
|
|
2551
2604
|
|
|
2552
2605
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -3086,7 +3139,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3086
3139
|
};
|
|
3087
3140
|
|
|
3088
3141
|
// src/entities/question.entity.ts
|
|
3089
|
-
import { Entity as
|
|
3142
|
+
import { Entity as Entity26, Column as Column27 } from "typeorm";
|
|
3090
3143
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3091
3144
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3092
3145
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3095,16 +3148,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3095
3148
|
var Question = class extends BaseEntity {
|
|
3096
3149
|
};
|
|
3097
3150
|
__decorateClass([
|
|
3098
|
-
|
|
3151
|
+
Column27({ name: "question", type: "varchar" })
|
|
3099
3152
|
], Question.prototype, "question", 2);
|
|
3100
3153
|
__decorateClass([
|
|
3101
|
-
|
|
3154
|
+
Column27({ name: "hint", type: "varchar", nullable: true })
|
|
3102
3155
|
], Question.prototype, "hint", 2);
|
|
3103
3156
|
__decorateClass([
|
|
3104
|
-
|
|
3157
|
+
Column27({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3105
3158
|
], Question.prototype, "slug", 2);
|
|
3106
3159
|
__decorateClass([
|
|
3107
|
-
|
|
3160
|
+
Column27({
|
|
3108
3161
|
name: "question_for",
|
|
3109
3162
|
type: "enum",
|
|
3110
3163
|
enum: QuestionFor,
|
|
@@ -3112,97 +3165,97 @@ __decorateClass([
|
|
|
3112
3165
|
})
|
|
3113
3166
|
], Question.prototype, "questionFor", 2);
|
|
3114
3167
|
__decorateClass([
|
|
3115
|
-
|
|
3168
|
+
Column27({ name: "type", type: "varchar", nullable: true })
|
|
3116
3169
|
], Question.prototype, "type", 2);
|
|
3117
3170
|
__decorateClass([
|
|
3118
|
-
|
|
3171
|
+
Column27({ name: "options", type: "jsonb", nullable: true })
|
|
3119
3172
|
], Question.prototype, "options", 2);
|
|
3120
3173
|
__decorateClass([
|
|
3121
|
-
|
|
3174
|
+
Column27({ name: "is_active", type: "boolean", default: false })
|
|
3122
3175
|
], Question.prototype, "isActive", 2);
|
|
3123
3176
|
Question = __decorateClass([
|
|
3124
|
-
|
|
3177
|
+
Entity26("questions")
|
|
3125
3178
|
], Question);
|
|
3126
3179
|
|
|
3127
3180
|
// src/entities/job-role.entity.ts
|
|
3128
|
-
import { Entity as
|
|
3181
|
+
import { Entity as Entity27, Column as Column28 } from "typeorm";
|
|
3129
3182
|
var JobRoles = class extends BaseEntity {
|
|
3130
3183
|
};
|
|
3131
3184
|
__decorateClass([
|
|
3132
|
-
|
|
3185
|
+
Column28({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3133
3186
|
], JobRoles.prototype, "slug", 2);
|
|
3134
3187
|
__decorateClass([
|
|
3135
|
-
|
|
3188
|
+
Column28({ name: "name", type: "varchar", nullable: true })
|
|
3136
3189
|
], JobRoles.prototype, "name", 2);
|
|
3137
3190
|
__decorateClass([
|
|
3138
|
-
|
|
3191
|
+
Column28({ name: "is_active", type: "boolean", default: true })
|
|
3139
3192
|
], JobRoles.prototype, "isActive", 2);
|
|
3140
3193
|
JobRoles = __decorateClass([
|
|
3141
|
-
|
|
3194
|
+
Entity27("job_roles")
|
|
3142
3195
|
], JobRoles);
|
|
3143
3196
|
|
|
3144
3197
|
// src/entities/plan.entity.ts
|
|
3145
|
-
import { Entity as
|
|
3198
|
+
import { Entity as Entity29, Column as Column30, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
|
|
3146
3199
|
|
|
3147
3200
|
// src/entities/feature.entity.ts
|
|
3148
|
-
import { Entity as
|
|
3201
|
+
import { Entity as Entity28, Column as Column29, ManyToMany } from "typeorm";
|
|
3149
3202
|
var Feature = class extends BaseEntity {
|
|
3150
3203
|
};
|
|
3151
3204
|
__decorateClass([
|
|
3152
|
-
|
|
3205
|
+
Column29({ name: "name", type: "varchar", unique: true })
|
|
3153
3206
|
], Feature.prototype, "name", 2);
|
|
3154
3207
|
__decorateClass([
|
|
3155
3208
|
ManyToMany(() => Plan, (plan) => plan.features)
|
|
3156
3209
|
], Feature.prototype, "plans", 2);
|
|
3157
3210
|
Feature = __decorateClass([
|
|
3158
|
-
|
|
3211
|
+
Entity28("features")
|
|
3159
3212
|
], Feature);
|
|
3160
3213
|
|
|
3161
3214
|
// src/entities/plan.entity.ts
|
|
3162
3215
|
var Plan = class extends BaseEntity {
|
|
3163
3216
|
};
|
|
3164
3217
|
__decorateClass([
|
|
3165
|
-
|
|
3218
|
+
Column30({ name: "name", type: "varchar", unique: true })
|
|
3166
3219
|
], Plan.prototype, "name", 2);
|
|
3167
3220
|
__decorateClass([
|
|
3168
|
-
|
|
3221
|
+
Column30({ name: "description", type: "varchar", nullable: true })
|
|
3169
3222
|
], Plan.prototype, "description", 2);
|
|
3170
3223
|
__decorateClass([
|
|
3171
|
-
|
|
3224
|
+
Column30({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
3172
3225
|
], Plan.prototype, "price", 2);
|
|
3173
3226
|
__decorateClass([
|
|
3174
|
-
|
|
3227
|
+
Column30({ name: "billing_period", type: "varchar" })
|
|
3175
3228
|
], Plan.prototype, "billingPeriod", 2);
|
|
3176
3229
|
__decorateClass([
|
|
3177
|
-
|
|
3230
|
+
Column30({ name: "is_current", type: "boolean", default: false })
|
|
3178
3231
|
], Plan.prototype, "isCurrent", 2);
|
|
3179
3232
|
__decorateClass([
|
|
3180
3233
|
ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
3181
3234
|
JoinTable()
|
|
3182
3235
|
], Plan.prototype, "features", 2);
|
|
3183
3236
|
Plan = __decorateClass([
|
|
3184
|
-
|
|
3237
|
+
Entity29("plans")
|
|
3185
3238
|
], Plan);
|
|
3186
3239
|
|
|
3187
3240
|
// src/entities/permission.entity.ts
|
|
3188
|
-
import { Column as
|
|
3241
|
+
import { Column as Column31, Entity as Entity30, Index as Index23 } from "typeorm";
|
|
3189
3242
|
var Permission = class extends BaseEntity {
|
|
3190
3243
|
};
|
|
3191
3244
|
__decorateClass([
|
|
3192
|
-
|
|
3245
|
+
Column31({ name: "name", type: "varchar", nullable: true })
|
|
3193
3246
|
], Permission.prototype, "name", 2);
|
|
3194
3247
|
__decorateClass([
|
|
3195
|
-
|
|
3196
|
-
|
|
3248
|
+
Column31({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3249
|
+
Index23()
|
|
3197
3250
|
], Permission.prototype, "slug", 2);
|
|
3198
3251
|
__decorateClass([
|
|
3199
|
-
|
|
3252
|
+
Column31({ name: "description", type: "text", nullable: true })
|
|
3200
3253
|
], Permission.prototype, "description", 2);
|
|
3201
3254
|
__decorateClass([
|
|
3202
|
-
|
|
3255
|
+
Column31({ name: "is_active", type: "boolean", default: true })
|
|
3203
3256
|
], Permission.prototype, "isActive", 2);
|
|
3204
3257
|
Permission = __decorateClass([
|
|
3205
|
-
|
|
3258
|
+
Entity30("permissions")
|
|
3206
3259
|
], Permission);
|
|
3207
3260
|
export {
|
|
3208
3261
|
AUTHENTICATION_PATTERN,
|
|
@@ -3231,6 +3284,7 @@ export {
|
|
|
3231
3284
|
CreateQuestionDto,
|
|
3232
3285
|
CreateRatingDto,
|
|
3233
3286
|
CreateSubAdminDto,
|
|
3287
|
+
DocumentType,
|
|
3234
3288
|
DurationTypeEnum,
|
|
3235
3289
|
EducationDto,
|
|
3236
3290
|
EmploymentType,
|
|
@@ -3248,6 +3302,7 @@ export {
|
|
|
3248
3302
|
FreelancerChangePasswordDto,
|
|
3249
3303
|
FreelancerCoreSkill,
|
|
3250
3304
|
FreelancerCreateAccountDto,
|
|
3305
|
+
FreelancerDeclaration,
|
|
3251
3306
|
FreelancerDevelopmentPreferenceDto,
|
|
3252
3307
|
FreelancerEducation,
|
|
3253
3308
|
FreelancerEducationDto,
|