@experts_hub/shared 1.0.167 → 1.0.169
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 +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +156 -103
- package/dist/index.mjs +135 -78
- package/dist/modules/client-admin/pattern/pattern.d.ts +1 -0
- package/dist/modules/freelancer-admin/pattern/pattern.d.ts +1 -0
- 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 {
|
|
@@ -1262,10 +1279,12 @@ declare class FreelancerSkillDto {
|
|
|
1262
1279
|
|
|
1263
1280
|
declare const FREELANCER_ADMIN_PATTERNS: {
|
|
1264
1281
|
fetchAdminFreelancers: string;
|
|
1282
|
+
exportAdminFreelancers: string;
|
|
1265
1283
|
};
|
|
1266
1284
|
|
|
1267
1285
|
declare const CLIENT_ADMIN_PATTERNS: {
|
|
1268
1286
|
fetchAdminClients: string;
|
|
1287
|
+
exportAdminClients: string;
|
|
1269
1288
|
};
|
|
1270
1289
|
|
|
1271
1290
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
@@ -1325,4 +1344,4 @@ declare class Permission extends BaseEntity {
|
|
|
1325
1344
|
isActive: boolean;
|
|
1326
1345
|
}
|
|
1327
1346
|
|
|
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 };
|
|
1347
|
+
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 {
|
|
@@ -1262,10 +1279,12 @@ declare class FreelancerSkillDto {
|
|
|
1262
1279
|
|
|
1263
1280
|
declare const FREELANCER_ADMIN_PATTERNS: {
|
|
1264
1281
|
fetchAdminFreelancers: string;
|
|
1282
|
+
exportAdminFreelancers: string;
|
|
1265
1283
|
};
|
|
1266
1284
|
|
|
1267
1285
|
declare const CLIENT_ADMIN_PATTERNS: {
|
|
1268
1286
|
fetchAdminClients: string;
|
|
1287
|
+
exportAdminClients: string;
|
|
1269
1288
|
};
|
|
1270
1289
|
|
|
1271
1290
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
@@ -1325,4 +1344,4 @@ declare class Permission extends BaseEntity {
|
|
|
1325
1344
|
isActive: boolean;
|
|
1326
1345
|
}
|
|
1327
1346
|
|
|
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 };
|
|
1347
|
+
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
|
|
@@ -2791,12 +2840,14 @@ __decorateClass([
|
|
|
2791
2840
|
|
|
2792
2841
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
2793
2842
|
var FREELANCER_ADMIN_PATTERNS = {
|
|
2794
|
-
fetchAdminFreelancers: "fetch.admin.freelancers"
|
|
2843
|
+
fetchAdminFreelancers: "fetch.admin.freelancers",
|
|
2844
|
+
exportAdminFreelancers: "export.admin.freelancers"
|
|
2795
2845
|
};
|
|
2796
2846
|
|
|
2797
2847
|
// src/modules/client-admin/pattern/pattern.ts
|
|
2798
2848
|
var CLIENT_ADMIN_PATTERNS = {
|
|
2799
|
-
fetchAdminClients: "fetch.admin.clients"
|
|
2849
|
+
fetchAdminClients: "fetch.admin.clients",
|
|
2850
|
+
exportAdminClients: "export.admin.clients"
|
|
2800
2851
|
};
|
|
2801
2852
|
|
|
2802
2853
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -3016,7 +3067,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3016
3067
|
};
|
|
3017
3068
|
|
|
3018
3069
|
// src/entities/question.entity.ts
|
|
3019
|
-
var
|
|
3070
|
+
var import_typeorm27 = require("typeorm");
|
|
3020
3071
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3021
3072
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3022
3073
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3025,16 +3076,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3025
3076
|
var Question = class extends BaseEntity {
|
|
3026
3077
|
};
|
|
3027
3078
|
__decorateClass([
|
|
3028
|
-
(0,
|
|
3079
|
+
(0, import_typeorm27.Column)({ name: "question", type: "varchar" })
|
|
3029
3080
|
], Question.prototype, "question", 2);
|
|
3030
3081
|
__decorateClass([
|
|
3031
|
-
(0,
|
|
3082
|
+
(0, import_typeorm27.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
3032
3083
|
], Question.prototype, "hint", 2);
|
|
3033
3084
|
__decorateClass([
|
|
3034
|
-
(0,
|
|
3085
|
+
(0, import_typeorm27.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3035
3086
|
], Question.prototype, "slug", 2);
|
|
3036
3087
|
__decorateClass([
|
|
3037
|
-
(0,
|
|
3088
|
+
(0, import_typeorm27.Column)({
|
|
3038
3089
|
name: "question_for",
|
|
3039
3090
|
type: "enum",
|
|
3040
3091
|
enum: QuestionFor,
|
|
@@ -3042,97 +3093,97 @@ __decorateClass([
|
|
|
3042
3093
|
})
|
|
3043
3094
|
], Question.prototype, "questionFor", 2);
|
|
3044
3095
|
__decorateClass([
|
|
3045
|
-
(0,
|
|
3096
|
+
(0, import_typeorm27.Column)({ name: "type", type: "varchar", nullable: true })
|
|
3046
3097
|
], Question.prototype, "type", 2);
|
|
3047
3098
|
__decorateClass([
|
|
3048
|
-
(0,
|
|
3099
|
+
(0, import_typeorm27.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
3049
3100
|
], Question.prototype, "options", 2);
|
|
3050
3101
|
__decorateClass([
|
|
3051
|
-
(0,
|
|
3102
|
+
(0, import_typeorm27.Column)({ name: "is_active", type: "boolean", default: false })
|
|
3052
3103
|
], Question.prototype, "isActive", 2);
|
|
3053
3104
|
Question = __decorateClass([
|
|
3054
|
-
(0,
|
|
3105
|
+
(0, import_typeorm27.Entity)("questions")
|
|
3055
3106
|
], Question);
|
|
3056
3107
|
|
|
3057
3108
|
// src/entities/job-role.entity.ts
|
|
3058
|
-
var
|
|
3109
|
+
var import_typeorm28 = require("typeorm");
|
|
3059
3110
|
var JobRoles = class extends BaseEntity {
|
|
3060
3111
|
};
|
|
3061
3112
|
__decorateClass([
|
|
3062
|
-
(0,
|
|
3113
|
+
(0, import_typeorm28.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3063
3114
|
], JobRoles.prototype, "slug", 2);
|
|
3064
3115
|
__decorateClass([
|
|
3065
|
-
(0,
|
|
3116
|
+
(0, import_typeorm28.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3066
3117
|
], JobRoles.prototype, "name", 2);
|
|
3067
3118
|
__decorateClass([
|
|
3068
|
-
(0,
|
|
3119
|
+
(0, import_typeorm28.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3069
3120
|
], JobRoles.prototype, "isActive", 2);
|
|
3070
3121
|
JobRoles = __decorateClass([
|
|
3071
|
-
(0,
|
|
3122
|
+
(0, import_typeorm28.Entity)("job_roles")
|
|
3072
3123
|
], JobRoles);
|
|
3073
3124
|
|
|
3074
3125
|
// src/entities/plan.entity.ts
|
|
3075
|
-
var
|
|
3126
|
+
var import_typeorm30 = require("typeorm");
|
|
3076
3127
|
|
|
3077
3128
|
// src/entities/feature.entity.ts
|
|
3078
|
-
var
|
|
3129
|
+
var import_typeorm29 = require("typeorm");
|
|
3079
3130
|
var Feature = class extends BaseEntity {
|
|
3080
3131
|
};
|
|
3081
3132
|
__decorateClass([
|
|
3082
|
-
(0,
|
|
3133
|
+
(0, import_typeorm29.Column)({ name: "name", type: "varchar", unique: true })
|
|
3083
3134
|
], Feature.prototype, "name", 2);
|
|
3084
3135
|
__decorateClass([
|
|
3085
|
-
(0,
|
|
3136
|
+
(0, import_typeorm29.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
3086
3137
|
], Feature.prototype, "plans", 2);
|
|
3087
3138
|
Feature = __decorateClass([
|
|
3088
|
-
(0,
|
|
3139
|
+
(0, import_typeorm29.Entity)("features")
|
|
3089
3140
|
], Feature);
|
|
3090
3141
|
|
|
3091
3142
|
// src/entities/plan.entity.ts
|
|
3092
3143
|
var Plan = class extends BaseEntity {
|
|
3093
3144
|
};
|
|
3094
3145
|
__decorateClass([
|
|
3095
|
-
(0,
|
|
3146
|
+
(0, import_typeorm30.Column)({ name: "name", type: "varchar", unique: true })
|
|
3096
3147
|
], Plan.prototype, "name", 2);
|
|
3097
3148
|
__decorateClass([
|
|
3098
|
-
(0,
|
|
3149
|
+
(0, import_typeorm30.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3099
3150
|
], Plan.prototype, "description", 2);
|
|
3100
3151
|
__decorateClass([
|
|
3101
|
-
(0,
|
|
3152
|
+
(0, import_typeorm30.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
3102
3153
|
], Plan.prototype, "price", 2);
|
|
3103
3154
|
__decorateClass([
|
|
3104
|
-
(0,
|
|
3155
|
+
(0, import_typeorm30.Column)({ name: "billing_period", type: "varchar" })
|
|
3105
3156
|
], Plan.prototype, "billingPeriod", 2);
|
|
3106
3157
|
__decorateClass([
|
|
3107
|
-
(0,
|
|
3158
|
+
(0, import_typeorm30.Column)({ name: "is_current", type: "boolean", default: false })
|
|
3108
3159
|
], Plan.prototype, "isCurrent", 2);
|
|
3109
3160
|
__decorateClass([
|
|
3110
|
-
(0,
|
|
3111
|
-
(0,
|
|
3161
|
+
(0, import_typeorm30.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
3162
|
+
(0, import_typeorm30.JoinTable)()
|
|
3112
3163
|
], Plan.prototype, "features", 2);
|
|
3113
3164
|
Plan = __decorateClass([
|
|
3114
|
-
(0,
|
|
3165
|
+
(0, import_typeorm30.Entity)("plans")
|
|
3115
3166
|
], Plan);
|
|
3116
3167
|
|
|
3117
3168
|
// src/entities/permission.entity.ts
|
|
3118
|
-
var
|
|
3169
|
+
var import_typeorm31 = require("typeorm");
|
|
3119
3170
|
var Permission = class extends BaseEntity {
|
|
3120
3171
|
};
|
|
3121
3172
|
__decorateClass([
|
|
3122
|
-
(0,
|
|
3173
|
+
(0, import_typeorm31.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3123
3174
|
], Permission.prototype, "name", 2);
|
|
3124
3175
|
__decorateClass([
|
|
3125
|
-
(0,
|
|
3126
|
-
(0,
|
|
3176
|
+
(0, import_typeorm31.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3177
|
+
(0, import_typeorm31.Index)()
|
|
3127
3178
|
], Permission.prototype, "slug", 2);
|
|
3128
3179
|
__decorateClass([
|
|
3129
|
-
(0,
|
|
3180
|
+
(0, import_typeorm31.Column)({ name: "description", type: "text", nullable: true })
|
|
3130
3181
|
], Permission.prototype, "description", 2);
|
|
3131
3182
|
__decorateClass([
|
|
3132
|
-
(0,
|
|
3183
|
+
(0, import_typeorm31.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3133
3184
|
], Permission.prototype, "isActive", 2);
|
|
3134
3185
|
Permission = __decorateClass([
|
|
3135
|
-
(0,
|
|
3186
|
+
(0, import_typeorm31.Entity)("permissions")
|
|
3136
3187
|
], Permission);
|
|
3137
3188
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3138
3189
|
0 && (module.exports = {
|
|
@@ -3162,6 +3213,7 @@ Permission = __decorateClass([
|
|
|
3162
3213
|
CreateQuestionDto,
|
|
3163
3214
|
CreateRatingDto,
|
|
3164
3215
|
CreateSubAdminDto,
|
|
3216
|
+
DocumentType,
|
|
3165
3217
|
DurationTypeEnum,
|
|
3166
3218
|
EducationDto,
|
|
3167
3219
|
EmploymentType,
|
|
@@ -3179,6 +3231,7 @@ Permission = __decorateClass([
|
|
|
3179
3231
|
FreelancerChangePasswordDto,
|
|
3180
3232
|
FreelancerCoreSkill,
|
|
3181
3233
|
FreelancerCreateAccountDto,
|
|
3234
|
+
FreelancerDeclaration,
|
|
3182
3235
|
FreelancerDevelopmentPreferenceDto,
|
|
3183
3236
|
FreelancerEducation,
|
|
3184
3237
|
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
|
|
@@ -2861,12 +2914,14 @@ __decorateClass([
|
|
|
2861
2914
|
|
|
2862
2915
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
2863
2916
|
var FREELANCER_ADMIN_PATTERNS = {
|
|
2864
|
-
fetchAdminFreelancers: "fetch.admin.freelancers"
|
|
2917
|
+
fetchAdminFreelancers: "fetch.admin.freelancers",
|
|
2918
|
+
exportAdminFreelancers: "export.admin.freelancers"
|
|
2865
2919
|
};
|
|
2866
2920
|
|
|
2867
2921
|
// src/modules/client-admin/pattern/pattern.ts
|
|
2868
2922
|
var CLIENT_ADMIN_PATTERNS = {
|
|
2869
|
-
fetchAdminClients: "fetch.admin.clients"
|
|
2923
|
+
fetchAdminClients: "fetch.admin.clients",
|
|
2924
|
+
exportAdminClients: "export.admin.clients"
|
|
2870
2925
|
};
|
|
2871
2926
|
|
|
2872
2927
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -3086,7 +3141,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3086
3141
|
};
|
|
3087
3142
|
|
|
3088
3143
|
// src/entities/question.entity.ts
|
|
3089
|
-
import { Entity as
|
|
3144
|
+
import { Entity as Entity26, Column as Column27 } from "typeorm";
|
|
3090
3145
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3091
3146
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3092
3147
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3095,16 +3150,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3095
3150
|
var Question = class extends BaseEntity {
|
|
3096
3151
|
};
|
|
3097
3152
|
__decorateClass([
|
|
3098
|
-
|
|
3153
|
+
Column27({ name: "question", type: "varchar" })
|
|
3099
3154
|
], Question.prototype, "question", 2);
|
|
3100
3155
|
__decorateClass([
|
|
3101
|
-
|
|
3156
|
+
Column27({ name: "hint", type: "varchar", nullable: true })
|
|
3102
3157
|
], Question.prototype, "hint", 2);
|
|
3103
3158
|
__decorateClass([
|
|
3104
|
-
|
|
3159
|
+
Column27({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3105
3160
|
], Question.prototype, "slug", 2);
|
|
3106
3161
|
__decorateClass([
|
|
3107
|
-
|
|
3162
|
+
Column27({
|
|
3108
3163
|
name: "question_for",
|
|
3109
3164
|
type: "enum",
|
|
3110
3165
|
enum: QuestionFor,
|
|
@@ -3112,97 +3167,97 @@ __decorateClass([
|
|
|
3112
3167
|
})
|
|
3113
3168
|
], Question.prototype, "questionFor", 2);
|
|
3114
3169
|
__decorateClass([
|
|
3115
|
-
|
|
3170
|
+
Column27({ name: "type", type: "varchar", nullable: true })
|
|
3116
3171
|
], Question.prototype, "type", 2);
|
|
3117
3172
|
__decorateClass([
|
|
3118
|
-
|
|
3173
|
+
Column27({ name: "options", type: "jsonb", nullable: true })
|
|
3119
3174
|
], Question.prototype, "options", 2);
|
|
3120
3175
|
__decorateClass([
|
|
3121
|
-
|
|
3176
|
+
Column27({ name: "is_active", type: "boolean", default: false })
|
|
3122
3177
|
], Question.prototype, "isActive", 2);
|
|
3123
3178
|
Question = __decorateClass([
|
|
3124
|
-
|
|
3179
|
+
Entity26("questions")
|
|
3125
3180
|
], Question);
|
|
3126
3181
|
|
|
3127
3182
|
// src/entities/job-role.entity.ts
|
|
3128
|
-
import { Entity as
|
|
3183
|
+
import { Entity as Entity27, Column as Column28 } from "typeorm";
|
|
3129
3184
|
var JobRoles = class extends BaseEntity {
|
|
3130
3185
|
};
|
|
3131
3186
|
__decorateClass([
|
|
3132
|
-
|
|
3187
|
+
Column28({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3133
3188
|
], JobRoles.prototype, "slug", 2);
|
|
3134
3189
|
__decorateClass([
|
|
3135
|
-
|
|
3190
|
+
Column28({ name: "name", type: "varchar", nullable: true })
|
|
3136
3191
|
], JobRoles.prototype, "name", 2);
|
|
3137
3192
|
__decorateClass([
|
|
3138
|
-
|
|
3193
|
+
Column28({ name: "is_active", type: "boolean", default: true })
|
|
3139
3194
|
], JobRoles.prototype, "isActive", 2);
|
|
3140
3195
|
JobRoles = __decorateClass([
|
|
3141
|
-
|
|
3196
|
+
Entity27("job_roles")
|
|
3142
3197
|
], JobRoles);
|
|
3143
3198
|
|
|
3144
3199
|
// src/entities/plan.entity.ts
|
|
3145
|
-
import { Entity as
|
|
3200
|
+
import { Entity as Entity29, Column as Column30, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
|
|
3146
3201
|
|
|
3147
3202
|
// src/entities/feature.entity.ts
|
|
3148
|
-
import { Entity as
|
|
3203
|
+
import { Entity as Entity28, Column as Column29, ManyToMany } from "typeorm";
|
|
3149
3204
|
var Feature = class extends BaseEntity {
|
|
3150
3205
|
};
|
|
3151
3206
|
__decorateClass([
|
|
3152
|
-
|
|
3207
|
+
Column29({ name: "name", type: "varchar", unique: true })
|
|
3153
3208
|
], Feature.prototype, "name", 2);
|
|
3154
3209
|
__decorateClass([
|
|
3155
3210
|
ManyToMany(() => Plan, (plan) => plan.features)
|
|
3156
3211
|
], Feature.prototype, "plans", 2);
|
|
3157
3212
|
Feature = __decorateClass([
|
|
3158
|
-
|
|
3213
|
+
Entity28("features")
|
|
3159
3214
|
], Feature);
|
|
3160
3215
|
|
|
3161
3216
|
// src/entities/plan.entity.ts
|
|
3162
3217
|
var Plan = class extends BaseEntity {
|
|
3163
3218
|
};
|
|
3164
3219
|
__decorateClass([
|
|
3165
|
-
|
|
3220
|
+
Column30({ name: "name", type: "varchar", unique: true })
|
|
3166
3221
|
], Plan.prototype, "name", 2);
|
|
3167
3222
|
__decorateClass([
|
|
3168
|
-
|
|
3223
|
+
Column30({ name: "description", type: "varchar", nullable: true })
|
|
3169
3224
|
], Plan.prototype, "description", 2);
|
|
3170
3225
|
__decorateClass([
|
|
3171
|
-
|
|
3226
|
+
Column30({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
3172
3227
|
], Plan.prototype, "price", 2);
|
|
3173
3228
|
__decorateClass([
|
|
3174
|
-
|
|
3229
|
+
Column30({ name: "billing_period", type: "varchar" })
|
|
3175
3230
|
], Plan.prototype, "billingPeriod", 2);
|
|
3176
3231
|
__decorateClass([
|
|
3177
|
-
|
|
3232
|
+
Column30({ name: "is_current", type: "boolean", default: false })
|
|
3178
3233
|
], Plan.prototype, "isCurrent", 2);
|
|
3179
3234
|
__decorateClass([
|
|
3180
3235
|
ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
3181
3236
|
JoinTable()
|
|
3182
3237
|
], Plan.prototype, "features", 2);
|
|
3183
3238
|
Plan = __decorateClass([
|
|
3184
|
-
|
|
3239
|
+
Entity29("plans")
|
|
3185
3240
|
], Plan);
|
|
3186
3241
|
|
|
3187
3242
|
// src/entities/permission.entity.ts
|
|
3188
|
-
import { Column as
|
|
3243
|
+
import { Column as Column31, Entity as Entity30, Index as Index23 } from "typeorm";
|
|
3189
3244
|
var Permission = class extends BaseEntity {
|
|
3190
3245
|
};
|
|
3191
3246
|
__decorateClass([
|
|
3192
|
-
|
|
3247
|
+
Column31({ name: "name", type: "varchar", nullable: true })
|
|
3193
3248
|
], Permission.prototype, "name", 2);
|
|
3194
3249
|
__decorateClass([
|
|
3195
|
-
|
|
3196
|
-
|
|
3250
|
+
Column31({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3251
|
+
Index23()
|
|
3197
3252
|
], Permission.prototype, "slug", 2);
|
|
3198
3253
|
__decorateClass([
|
|
3199
|
-
|
|
3254
|
+
Column31({ name: "description", type: "text", nullable: true })
|
|
3200
3255
|
], Permission.prototype, "description", 2);
|
|
3201
3256
|
__decorateClass([
|
|
3202
|
-
|
|
3257
|
+
Column31({ name: "is_active", type: "boolean", default: true })
|
|
3203
3258
|
], Permission.prototype, "isActive", 2);
|
|
3204
3259
|
Permission = __decorateClass([
|
|
3205
|
-
|
|
3260
|
+
Entity30("permissions")
|
|
3206
3261
|
], Permission);
|
|
3207
3262
|
export {
|
|
3208
3263
|
AUTHENTICATION_PATTERN,
|
|
@@ -3231,6 +3286,7 @@ export {
|
|
|
3231
3286
|
CreateQuestionDto,
|
|
3232
3287
|
CreateRatingDto,
|
|
3233
3288
|
CreateSubAdminDto,
|
|
3289
|
+
DocumentType,
|
|
3234
3290
|
DurationTypeEnum,
|
|
3235
3291
|
EducationDto,
|
|
3236
3292
|
EmploymentType,
|
|
@@ -3248,6 +3304,7 @@ export {
|
|
|
3248
3304
|
FreelancerChangePasswordDto,
|
|
3249
3305
|
FreelancerCoreSkill,
|
|
3250
3306
|
FreelancerCreateAccountDto,
|
|
3307
|
+
FreelancerDeclaration,
|
|
3251
3308
|
FreelancerDevelopmentPreferenceDto,
|
|
3252
3309
|
FreelancerEducation,
|
|
3253
3310
|
FreelancerEducationDto,
|