@experts_hub/shared 1.0.298 → 1.0.300

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.
@@ -0,0 +1,11 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ export declare enum CommissionTypeEnum {
3
+ PERCENTAGE = "PERCENTAGE",
4
+ FLAT = "FLAT"
5
+ }
6
+ export declare class Commission extends BaseEntity {
7
+ freelancerCommissionType: CommissionTypeEnum;
8
+ freelancerCommission: number;
9
+ clientCommissionType: CommissionTypeEnum;
10
+ clientCommission: number;
11
+ }
@@ -48,3 +48,4 @@ export * from './admin-role.entity';
48
48
  export * from './admin-permission.entity';
49
49
  export * from './admin-role-permission.entity';
50
50
  export * from './admin-user-role.entity';
51
+ export * from './commission.entity';
package/dist/index.d.mts CHANGED
@@ -443,6 +443,7 @@ declare enum EmploymentType {
443
443
  BOTH = "BOTH"
444
444
  }
445
445
  declare class JobBasicInformationDto {
446
+ isDraft?: boolean;
446
447
  jobRole: string;
447
448
  note?: string;
448
449
  skills: number[];
@@ -2116,4 +2117,15 @@ declare class JobFreelancerRecommendation {
2116
2117
  requiredSkillsCount: number;
2117
2118
  }
2118
2119
 
2119
- export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentStatusEnum, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, COUNTRY_PATTERN, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, Cms, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Country, CreateAdminRoleDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, 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 IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewQuestion, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobFreelancerRecommendation, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LogoutDto, McqStatusEnum, ModeOfHire, ModeOfWork, ModeOfWorkDto, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResetPasswordTokenValidationDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, Skill, State, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
2120
+ declare enum CommissionTypeEnum {
2121
+ PERCENTAGE = "PERCENTAGE",
2122
+ FLAT = "FLAT"
2123
+ }
2124
+ declare class Commission extends BaseEntity {
2125
+ freelancerCommissionType: CommissionTypeEnum;
2126
+ freelancerCommission: number;
2127
+ clientCommissionType: CommissionTypeEnum;
2128
+ clientCommission: number;
2129
+ }
2130
+
2131
+ export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentStatusEnum, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, COUNTRY_PATTERN, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Country, CreateAdminRoleDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, 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 IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewQuestion, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobFreelancerRecommendation, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LogoutDto, McqStatusEnum, ModeOfHire, ModeOfWork, ModeOfWorkDto, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResetPasswordTokenValidationDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, Skill, State, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
package/dist/index.d.ts CHANGED
@@ -443,6 +443,7 @@ declare enum EmploymentType {
443
443
  BOTH = "BOTH"
444
444
  }
445
445
  declare class JobBasicInformationDto {
446
+ isDraft?: boolean;
446
447
  jobRole: string;
447
448
  note?: string;
448
449
  skills: number[];
@@ -2116,4 +2117,15 @@ declare class JobFreelancerRecommendation {
2116
2117
  requiredSkillsCount: number;
2117
2118
  }
2118
2119
 
2119
- export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentStatusEnum, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, COUNTRY_PATTERN, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, Cms, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Country, CreateAdminRoleDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, 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 IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewQuestion, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobFreelancerRecommendation, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LogoutDto, McqStatusEnum, ModeOfHire, ModeOfWork, ModeOfWorkDto, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResetPasswordTokenValidationDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, Skill, State, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
2120
+ declare enum CommissionTypeEnum {
2121
+ PERCENTAGE = "PERCENTAGE",
2122
+ FLAT = "FLAT"
2123
+ }
2124
+ declare class Commission extends BaseEntity {
2125
+ freelancerCommissionType: CommissionTypeEnum;
2126
+ freelancerCommission: number;
2127
+ clientCommissionType: CommissionTypeEnum;
2128
+ clientCommission: number;
2129
+ }
2130
+
2131
+ export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentStatusEnum, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, COUNTRY_PATTERN, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Country, CreateAdminRoleDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, 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 IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewQuestion, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobFreelancerRecommendation, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LogoutDto, McqStatusEnum, ModeOfHire, ModeOfWork, ModeOfWorkDto, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResetPasswordTokenValidationDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, Skill, State, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
package/dist/index.js CHANGED
@@ -70,6 +70,8 @@ __export(index_exports, {
70
70
  ClientCreateAccountDto: () => ClientCreateAccountDto,
71
71
  ClientProfileQuestionDto: () => ClientProfileQuestionDto,
72
72
  Cms: () => Cms,
73
+ Commission: () => Commission,
74
+ CommissionTypeEnum: () => CommissionTypeEnum,
73
75
  CompanyMemberRole: () => CompanyMemberRole,
74
76
  CompanyOnboardingStepEnum: () => CompanyOnboardingStepEnum,
75
77
  CompanyProfile: () => CompanyProfile,
@@ -1080,7 +1082,14 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
1080
1082
  return EmploymentType2;
1081
1083
  })(EmploymentType || {});
1082
1084
  var JobBasicInformationDto = class {
1085
+ constructor() {
1086
+ this.isDraft = false;
1087
+ }
1083
1088
  };
1089
+ __decorateClass([
1090
+ (0, import_class_validator31.IsOptional)(),
1091
+ (0, import_class_transformer.Type)(() => Boolean)
1092
+ ], JobBasicInformationDto.prototype, "isDraft", 2);
1084
1093
  __decorateClass([
1085
1094
  (0, import_class_validator31.IsNotEmpty)({ message: "Please enter job role" }),
1086
1095
  (0, import_class_validator31.IsString)({ message: "Job role must be a string" })
@@ -1090,17 +1099,20 @@ __decorateClass([
1090
1099
  (0, import_class_validator31.IsString)({ message: "Note must be a string" })
1091
1100
  ], JobBasicInformationDto.prototype, "note", 2);
1092
1101
  __decorateClass([
1102
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1093
1103
  (0, import_class_validator31.IsArray)({ message: "Skills must be an array" }),
1094
1104
  (0, import_class_validator31.ArrayNotEmpty)({ message: "Please select at least one skill" }),
1095
1105
  (0, import_class_validator31.IsNumber)({}, { each: true, message: "Each skill must be a number" }),
1096
1106
  (0, import_class_transformer.Type)(() => Number)
1097
1107
  ], JobBasicInformationDto.prototype, "skills", 2);
1098
1108
  __decorateClass([
1109
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1099
1110
  (0, import_class_validator31.IsNumber)({}, { message: "Openings must be a number" }),
1100
1111
  (0, import_class_validator31.Min)(1, { message: "There must be at least 1 opening" }),
1101
1112
  (0, import_class_transformer.Type)(() => Number)
1102
1113
  ], JobBasicInformationDto.prototype, "openings", 2);
1103
1114
  __decorateClass([
1115
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1104
1116
  (0, import_class_validator31.IsEnum)(JobLocation, {
1105
1117
  message: `Location must be one of: ${Object.values(JobLocation).join(
1106
1118
  ", "
@@ -1108,18 +1120,22 @@ __decorateClass([
1108
1120
  })
1109
1121
  ], JobBasicInformationDto.prototype, "location", 2);
1110
1122
  __decorateClass([
1123
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1111
1124
  (0, import_class_validator31.IsNumber)({}, { message: "Country id must be a number" }),
1112
1125
  (0, import_class_transformer.Type)(() => Number)
1113
1126
  ], JobBasicInformationDto.prototype, "countryId", 2);
1114
1127
  __decorateClass([
1128
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1115
1129
  (0, import_class_validator31.IsNumber)({}, { message: "State id must be a number" }),
1116
1130
  (0, import_class_transformer.Type)(() => Number)
1117
1131
  ], JobBasicInformationDto.prototype, "stateId", 2);
1118
1132
  __decorateClass([
1133
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1119
1134
  (0, import_class_validator31.IsNumber)({}, { message: "City id must be a number" }),
1120
1135
  (0, import_class_transformer.Type)(() => Number)
1121
1136
  ], JobBasicInformationDto.prototype, "cityId", 2);
1122
1137
  __decorateClass([
1138
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1123
1139
  (0, import_class_validator31.IsEnum)(EmploymentType, {
1124
1140
  message: `Type of employment must be one of: ${Object.values(
1125
1141
  EmploymentType
@@ -1127,43 +1143,53 @@ __decorateClass([
1127
1143
  })
1128
1144
  ], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
1129
1145
  __decorateClass([
1146
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1130
1147
  (0, import_class_validator31.IsString)({ message: "Currency must be a string" })
1131
1148
  ], JobBasicInformationDto.prototype, "currency", 2);
1132
1149
  __decorateClass([
1150
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1133
1151
  (0, import_class_validator31.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
1134
1152
  (0, import_class_validator31.Min)(0, { message: "Expected salary (from) cannot be negative" }),
1135
1153
  (0, import_class_transformer.Type)(() => Number)
1136
1154
  ], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
1137
1155
  __decorateClass([
1156
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1138
1157
  (0, import_class_validator31.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
1139
1158
  (0, import_class_validator31.Min)(0, { message: "Expected salary (to) cannot be negative" }),
1140
1159
  (0, import_class_transformer.Type)(() => Number)
1141
1160
  ], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
1142
1161
  __decorateClass([
1162
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1143
1163
  (0, import_class_validator31.IsNotEmpty)({ message: "Please enter start date" }),
1144
1164
  (0, import_class_validator31.IsString)({ message: "Start date must be valid" })
1145
1165
  ], JobBasicInformationDto.prototype, "tentativeStartDate", 2);
1146
1166
  __decorateClass([
1167
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1147
1168
  (0, import_class_validator31.IsNotEmpty)({ message: "Please enter end date" }),
1148
1169
  (0, import_class_validator31.IsString)({ message: "End date must be valid" })
1149
1170
  ], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
1150
1171
  __decorateClass([
1172
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1151
1173
  (0, import_class_validator31.IsString)({ message: "Onboarding TAT must be a string" }),
1152
1174
  (0, import_class_validator31.IsOptional)()
1153
1175
  ], JobBasicInformationDto.prototype, "onboardingTat", 2);
1154
1176
  __decorateClass([
1177
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1155
1178
  (0, import_class_validator31.IsString)({ message: "Candidate communication skills must be a string" }),
1156
1179
  (0, import_class_validator31.IsOptional)()
1157
1180
  ], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
1158
1181
  __decorateClass([
1182
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1159
1183
  (0, import_class_validator31.IsNotEmpty)({ message: "Please enter the academic qualification" }),
1160
1184
  (0, import_class_validator31.IsString)({ message: "Academic qualification must be a string" })
1161
1185
  ], JobBasicInformationDto.prototype, "academicQualification", 2);
1162
1186
  __decorateClass([
1187
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1163
1188
  (0, import_class_validator31.IsNotEmpty)({ message: "Please enter the years of experience" }),
1164
1189
  (0, import_class_validator31.IsString)({ message: "Years of experience must be a string" })
1165
1190
  ], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
1166
1191
  __decorateClass([
1192
+ (0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
1167
1193
  (0, import_class_validator31.IsNotEmpty)({ message: "Please enter the business industry" }),
1168
1194
  (0, import_class_validator31.IsString)({ message: "Business industry must be a string" })
1169
1195
  ], JobBasicInformationDto.prototype, "businessIndustry", 2);
@@ -5259,6 +5285,41 @@ JobFreelancerRecommendation = __decorateClass([
5259
5285
  // ✅ important: prevent auto-sync during migrations
5260
5286
  })
5261
5287
  ], JobFreelancerRecommendation);
5288
+
5289
+ // src/entities/commission.entity.ts
5290
+ var import_typeorm51 = require("typeorm");
5291
+ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
5292
+ CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
5293
+ CommissionTypeEnum2["FLAT"] = "FLAT";
5294
+ return CommissionTypeEnum2;
5295
+ })(CommissionTypeEnum || {});
5296
+ var Commission = class extends BaseEntity {
5297
+ };
5298
+ __decorateClass([
5299
+ (0, import_typeorm51.Column)({
5300
+ name: "freelancer_commission_type",
5301
+ type: "enum",
5302
+ enum: CommissionTypeEnum,
5303
+ default: "PERCENTAGE" /* PERCENTAGE */
5304
+ })
5305
+ ], Commission.prototype, "freelancerCommissionType", 2);
5306
+ __decorateClass([
5307
+ (0, import_typeorm51.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
5308
+ ], Commission.prototype, "freelancerCommission", 2);
5309
+ __decorateClass([
5310
+ (0, import_typeorm51.Column)({
5311
+ name: "client_commission_type",
5312
+ type: "enum",
5313
+ enum: CommissionTypeEnum,
5314
+ default: "PERCENTAGE" /* PERCENTAGE */
5315
+ })
5316
+ ], Commission.prototype, "clientCommissionType", 2);
5317
+ __decorateClass([
5318
+ (0, import_typeorm51.Column)({ name: "client_commission", type: "integer", default: 0 })
5319
+ ], Commission.prototype, "clientCommission", 2);
5320
+ Commission = __decorateClass([
5321
+ (0, import_typeorm51.Entity)("commissions")
5322
+ ], Commission);
5262
5323
  // Annotate the CommonJS export names for ESM import in node:
5263
5324
  0 && (module.exports = {
5264
5325
  ADMIN_FREELANCER_PATTERN,
@@ -5304,6 +5365,8 @@ JobFreelancerRecommendation = __decorateClass([
5304
5365
  ClientCreateAccountDto,
5305
5366
  ClientProfileQuestionDto,
5306
5367
  Cms,
5368
+ Commission,
5369
+ CommissionTypeEnum,
5307
5370
  CompanyMemberRole,
5308
5371
  CompanyOnboardingStepEnum,
5309
5372
  CompanyProfile,
package/dist/index.mjs CHANGED
@@ -922,7 +922,8 @@ import {
922
922
  IsNumber,
923
923
  IsOptional as IsOptional5,
924
924
  IsEnum as IsEnum8,
925
- Min
925
+ Min,
926
+ ValidateIf as ValidateIf2
926
927
  } from "class-validator";
927
928
  import { Type } from "class-transformer";
928
929
  var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
@@ -938,7 +939,14 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
938
939
  return EmploymentType2;
939
940
  })(EmploymentType || {});
940
941
  var JobBasicInformationDto = class {
942
+ constructor() {
943
+ this.isDraft = false;
944
+ }
941
945
  };
946
+ __decorateClass([
947
+ IsOptional5(),
948
+ Type(() => Boolean)
949
+ ], JobBasicInformationDto.prototype, "isDraft", 2);
942
950
  __decorateClass([
943
951
  IsNotEmpty27({ message: "Please enter job role" }),
944
952
  IsString11({ message: "Job role must be a string" })
@@ -948,17 +956,20 @@ __decorateClass([
948
956
  IsString11({ message: "Note must be a string" })
949
957
  ], JobBasicInformationDto.prototype, "note", 2);
950
958
  __decorateClass([
959
+ ValidateIf2((o) => !o.isDraft),
951
960
  IsArray({ message: "Skills must be an array" }),
952
961
  ArrayNotEmpty({ message: "Please select at least one skill" }),
953
962
  IsNumber({}, { each: true, message: "Each skill must be a number" }),
954
963
  Type(() => Number)
955
964
  ], JobBasicInformationDto.prototype, "skills", 2);
956
965
  __decorateClass([
966
+ ValidateIf2((o) => !o.isDraft),
957
967
  IsNumber({}, { message: "Openings must be a number" }),
958
968
  Min(1, { message: "There must be at least 1 opening" }),
959
969
  Type(() => Number)
960
970
  ], JobBasicInformationDto.prototype, "openings", 2);
961
971
  __decorateClass([
972
+ ValidateIf2((o) => !o.isDraft),
962
973
  IsEnum8(JobLocation, {
963
974
  message: `Location must be one of: ${Object.values(JobLocation).join(
964
975
  ", "
@@ -966,18 +977,22 @@ __decorateClass([
966
977
  })
967
978
  ], JobBasicInformationDto.prototype, "location", 2);
968
979
  __decorateClass([
980
+ ValidateIf2((o) => !o.isDraft),
969
981
  IsNumber({}, { message: "Country id must be a number" }),
970
982
  Type(() => Number)
971
983
  ], JobBasicInformationDto.prototype, "countryId", 2);
972
984
  __decorateClass([
985
+ ValidateIf2((o) => !o.isDraft),
973
986
  IsNumber({}, { message: "State id must be a number" }),
974
987
  Type(() => Number)
975
988
  ], JobBasicInformationDto.prototype, "stateId", 2);
976
989
  __decorateClass([
990
+ ValidateIf2((o) => !o.isDraft),
977
991
  IsNumber({}, { message: "City id must be a number" }),
978
992
  Type(() => Number)
979
993
  ], JobBasicInformationDto.prototype, "cityId", 2);
980
994
  __decorateClass([
995
+ ValidateIf2((o) => !o.isDraft),
981
996
  IsEnum8(EmploymentType, {
982
997
  message: `Type of employment must be one of: ${Object.values(
983
998
  EmploymentType
@@ -985,43 +1000,53 @@ __decorateClass([
985
1000
  })
986
1001
  ], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
987
1002
  __decorateClass([
1003
+ ValidateIf2((o) => !o.isDraft),
988
1004
  IsString11({ message: "Currency must be a string" })
989
1005
  ], JobBasicInformationDto.prototype, "currency", 2);
990
1006
  __decorateClass([
1007
+ ValidateIf2((o) => !o.isDraft),
991
1008
  IsNumber({}, { message: "Expected salary (from) must be a number" }),
992
1009
  Min(0, { message: "Expected salary (from) cannot be negative" }),
993
1010
  Type(() => Number)
994
1011
  ], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
995
1012
  __decorateClass([
1013
+ ValidateIf2((o) => !o.isDraft),
996
1014
  IsNumber({}, { message: "Expected salary (to) must be a number" }),
997
1015
  Min(0, { message: "Expected salary (to) cannot be negative" }),
998
1016
  Type(() => Number)
999
1017
  ], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
1000
1018
  __decorateClass([
1019
+ ValidateIf2((o) => !o.isDraft),
1001
1020
  IsNotEmpty27({ message: "Please enter start date" }),
1002
1021
  IsString11({ message: "Start date must be valid" })
1003
1022
  ], JobBasicInformationDto.prototype, "tentativeStartDate", 2);
1004
1023
  __decorateClass([
1024
+ ValidateIf2((o) => !o.isDraft),
1005
1025
  IsNotEmpty27({ message: "Please enter end date" }),
1006
1026
  IsString11({ message: "End date must be valid" })
1007
1027
  ], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
1008
1028
  __decorateClass([
1029
+ ValidateIf2((o) => !o.isDraft),
1009
1030
  IsString11({ message: "Onboarding TAT must be a string" }),
1010
1031
  IsOptional5()
1011
1032
  ], JobBasicInformationDto.prototype, "onboardingTat", 2);
1012
1033
  __decorateClass([
1034
+ ValidateIf2((o) => !o.isDraft),
1013
1035
  IsString11({ message: "Candidate communication skills must be a string" }),
1014
1036
  IsOptional5()
1015
1037
  ], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
1016
1038
  __decorateClass([
1039
+ ValidateIf2((o) => !o.isDraft),
1017
1040
  IsNotEmpty27({ message: "Please enter the academic qualification" }),
1018
1041
  IsString11({ message: "Academic qualification must be a string" })
1019
1042
  ], JobBasicInformationDto.prototype, "academicQualification", 2);
1020
1043
  __decorateClass([
1044
+ ValidateIf2((o) => !o.isDraft),
1021
1045
  IsNotEmpty27({ message: "Please enter the years of experience" }),
1022
1046
  IsString11({ message: "Years of experience must be a string" })
1023
1047
  ], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
1024
1048
  __decorateClass([
1049
+ ValidateIf2((o) => !o.isDraft),
1025
1050
  IsNotEmpty27({ message: "Please enter the business industry" }),
1026
1051
  IsString11({ message: "Business industry must be a string" })
1027
1052
  ], JobBasicInformationDto.prototype, "businessIndustry", 2);
@@ -1235,7 +1260,7 @@ import {
1235
1260
  IsEnum as IsEnum11,
1236
1261
  IsNotEmpty as IsNotEmpty32,
1237
1262
  IsOptional as IsOptional8,
1238
- ValidateIf as ValidateIf2
1263
+ ValidateIf as ValidateIf3
1239
1264
  } from "class-validator";
1240
1265
  var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
1241
1266
  BankAccountScope2["DOMESTIC"] = "DOMESTIC";
@@ -1266,19 +1291,19 @@ __decorateClass([
1266
1291
  IsNotEmpty32({ message: "Please enter Branch Name." })
1267
1292
  ], FreelancerBankDetailsDto.prototype, "branchName", 2);
1268
1293
  __decorateClass([
1269
- ValidateIf2((dto) => dto.accountScope === "DOMESTIC"),
1294
+ ValidateIf3((dto) => dto.accountScope === "DOMESTIC"),
1270
1295
  IsNotEmpty32({ message: "IFSC Code is required for DOMESTIC accounts." })
1271
1296
  ], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
1272
1297
  __decorateClass([
1273
- ValidateIf2((dto) => dto.accountScope === "INTERNATIONAL"),
1298
+ ValidateIf3((dto) => dto.accountScope === "INTERNATIONAL"),
1274
1299
  IsNotEmpty32({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
1275
1300
  ], FreelancerBankDetailsDto.prototype, "routingNo", 2);
1276
1301
  __decorateClass([
1277
- ValidateIf2((dto) => dto.accountScope === "INTERNATIONAL"),
1302
+ ValidateIf3((dto) => dto.accountScope === "INTERNATIONAL"),
1278
1303
  IsNotEmpty32({ message: "ABA Number is required for INTERNATIONAL accounts." })
1279
1304
  ], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
1280
1305
  __decorateClass([
1281
- ValidateIf2((dto) => dto.accountScope === "INTERNATIONAL"),
1306
+ ValidateIf3((dto) => dto.accountScope === "INTERNATIONAL"),
1282
1307
  IsNotEmpty32({ message: "IBAN is required for INTERNATIONAL accounts." })
1283
1308
  ], FreelancerBankDetailsDto.prototype, "iban", 2);
1284
1309
  __decorateClass([
@@ -4094,7 +4119,7 @@ import {
4094
4119
  IsNotEmpty as IsNotEmpty42,
4095
4120
  MinLength as MinLength11,
4096
4121
  Matches as Matches8,
4097
- ValidateIf as ValidateIf3
4122
+ ValidateIf as ValidateIf4
4098
4123
  } from "class-validator";
4099
4124
  import { Type as Type6 } from "class-transformer";
4100
4125
  var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
@@ -4164,7 +4189,7 @@ __decorateClass([
4164
4189
  Type6(() => Boolean)
4165
4190
  ], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
4166
4191
  __decorateClass([
4167
- ValidateIf3((o) => o.isImmediateJoiner === false),
4192
+ ValidateIf4((o) => o.isImmediateJoiner === false),
4168
4193
  IsNotEmpty42({ message: "Please enter availability to join." })
4169
4194
  ], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
4170
4195
  __decorateClass([
@@ -4202,7 +4227,7 @@ import {
4202
4227
  MinLength as MinLength12,
4203
4228
  Matches as Matches9,
4204
4229
  IsNotEmpty as IsNotEmpty43,
4205
- ValidateIf as ValidateIf4
4230
+ ValidateIf as ValidateIf5
4206
4231
  } from "class-validator";
4207
4232
  import { Type as Type7 } from "class-transformer";
4208
4233
  var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
@@ -4277,7 +4302,7 @@ __decorateClass([
4277
4302
  Type7(() => Boolean)
4278
4303
  ], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
4279
4304
  __decorateClass([
4280
- ValidateIf4((o) => o.isImmediateJoiner === false),
4305
+ ValidateIf5((o) => o.isImmediateJoiner === false),
4281
4306
  IsNotEmpty43({ message: "Please enter availability to join." })
4282
4307
  ], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
4283
4308
  __decorateClass([
@@ -5404,6 +5429,41 @@ JobFreelancerRecommendation = __decorateClass([
5404
5429
  // ✅ important: prevent auto-sync during migrations
5405
5430
  })
5406
5431
  ], JobFreelancerRecommendation);
5432
+
5433
+ // src/entities/commission.entity.ts
5434
+ import { Entity as Entity49, Column as Column50 } from "typeorm";
5435
+ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
5436
+ CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
5437
+ CommissionTypeEnum2["FLAT"] = "FLAT";
5438
+ return CommissionTypeEnum2;
5439
+ })(CommissionTypeEnum || {});
5440
+ var Commission = class extends BaseEntity {
5441
+ };
5442
+ __decorateClass([
5443
+ Column50({
5444
+ name: "freelancer_commission_type",
5445
+ type: "enum",
5446
+ enum: CommissionTypeEnum,
5447
+ default: "PERCENTAGE" /* PERCENTAGE */
5448
+ })
5449
+ ], Commission.prototype, "freelancerCommissionType", 2);
5450
+ __decorateClass([
5451
+ Column50({ name: "freelancer_commission", type: "integer", default: 0 })
5452
+ ], Commission.prototype, "freelancerCommission", 2);
5453
+ __decorateClass([
5454
+ Column50({
5455
+ name: "client_commission_type",
5456
+ type: "enum",
5457
+ enum: CommissionTypeEnum,
5458
+ default: "PERCENTAGE" /* PERCENTAGE */
5459
+ })
5460
+ ], Commission.prototype, "clientCommissionType", 2);
5461
+ __decorateClass([
5462
+ Column50({ name: "client_commission", type: "integer", default: 0 })
5463
+ ], Commission.prototype, "clientCommission", 2);
5464
+ Commission = __decorateClass([
5465
+ Entity49("commissions")
5466
+ ], Commission);
5407
5467
  export {
5408
5468
  ADMIN_FREELANCER_PATTERN,
5409
5469
  ADMIN_JOB_PATTERN,
@@ -5448,6 +5508,8 @@ export {
5448
5508
  ClientCreateAccountDto,
5449
5509
  ClientProfileQuestionDto,
5450
5510
  Cms,
5511
+ Commission,
5512
+ CommissionTypeEnum,
5451
5513
  CompanyMemberRole,
5452
5514
  CompanyOnboardingStepEnum,
5453
5515
  CompanyProfile,
@@ -9,6 +9,7 @@ export declare enum EmploymentType {
9
9
  BOTH = "BOTH"
10
10
  }
11
11
  export declare class JobBasicInformationDto {
12
+ isDraft?: boolean;
12
13
  jobRole: string;
13
14
  note?: string;
14
15
  skills: number[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.298",
3
+ "version": "1.0.300",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",