Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; import { Document, Schema as MongooseSchema } from 'mongoose'; @Schema({ timestamps: true, collection: 'recruitment_configurations' }) export class RecruitmentConfiguration extends Document { @Prop({ required: true, index: true }) tenantId: string; @Prop({ default: true }) recruitmentEnabled: boolean; @Prop({ default: true }) manpowerPlanningEnabled: boolean; @Prop({ default: true }) manpowerApprovalRequired: boolean; @Prop({ default: true }) jobRequisitionApprovalRequired: boolean; @Prop({ default: true }) jobPublishingApprovalRequired: boolean; @Prop({ default: true }) offerApprovalRequired: boolean; @Prop({ default: true }) publicCareersEnabled: boolean; @Prop({ default: true }) candidatePortalEnabled: boolean; @Prop({ default: true }) employeeReferralEnabled: boolean; @Prop({ default: true }) recruitmentAgencyEnabled: boolean; @Prop({ default: true }) resumeOcrEnabled: boolean; @Prop({ default: true }) duplicateCandidateDetectionEnabled: boolean; @Prop({ default: true }) aiScreeningEnabled: boolean; @Prop({ default: true }) aiRankingEnabled: boolean; @Prop({ default: true }) candidateConsentRequired: boolean; @Prop({ default: true }) backgroundCheckRequired: boolean; @Prop({ default: true }) interviewFeedbackRequired: boolean; @Prop({ default: true }) scorecardRequired: boolean; @Prop({ default: true }) preboardingEnabled: boolean; @Prop({ default: true }) autoCreateEmployeeDraft: boolean; @Prop({ default: 30 }) offerExpiryDays: number; @Prop({ default: true }) applicationAcknowledgementEnabled: boolean; @Prop({ default: true }) interviewReminderEnabled: boolean; @Prop({ default: true }) joiningReminderEnabled: boolean; @Prop({ default: 365 }) rejectedCandidateRetentionDays: number; @Prop({ default: 730 }) hiredCandidateRetentionDays: number; @Prop({ default: 180 }) withdrawnCandidateRetentionDays: number; @Prop({ default: true }) autoArchiveRejectedCandidates: boolean; @Prop() defaultPipelineId?: string; @Prop() defaultRecruiterId?: string; @Prop({ default: 'Full-time' }) defaultEmploymentType: string; @Prop({ default: 'Careers Page' }) defaultApplicationSource: string; @Prop() defaultOfferTemplateId?: string; @Prop() defaultPreboardingTemplateId?: string; } export const RecruitmentConfigurationSchema = SchemaFactory.createForClass(RecruitmentConfiguration); @Schema({ timestamps: true, collection: 'candidate_privacy_configurations' }) export class CandidatePrivacyConfiguration extends Document { @Prop({ required: true, index: true }) tenantId: string; @Prop({ default: true }) consentRequired: boolean; @Prop({ default: 'GDPR/CCPA privacy rules text here' }) consentText: string; @Prop({ default: true }) allowDataExport: boolean; @Prop({ default: true }) allowDataDeletion: boolean; } export const CandidatePrivacyConfigurationSchema = SchemaFactory.createForClass(CandidatePrivacyConfiguration); |