Master email touchpoints constants and templates for SimplifyHire enterprise platform
npm install @hirehq/enterprise-master-dataMaster email touchpoints constants and templates for SimplifyHire enterprise platform.
``bash`
npm install @hirehq/enterprise-master-data
`typescript
import {
EMAIL_TEMPLATES,
MASTER_EMAIL_LAYOUT,
COMMUNICATION_PREFERENCES,
EMAIL_EVENT_CODES,
EventCodeConfig
} from '@hirehq/enterprise-master-data';
// Access email templates
const domainVerificationTemplate = EMAIL_TEMPLATES.find(
template => template.eventCode === 'DOMAIN_NAME_VERIFICATION'
);
// Access email layout configuration
const defaultLayout = MASTER_EMAIL_LAYOUT;
// Access communication preferences
const preferences = COMMUNICATION_PREFERENCES;
// Access email event codes and their template variables
const eventCode = EMAIL_EVENT_CODES.DOMAIN_NAME_VERIFICATION;
console.log(eventCode.templateVariables); // Array of template variables
`
- Domain Management: Domain verification and setup emails
- General: Job application notifications
- Offer Management: Offer acceptance and decline notifications
- Contract Management: Contract termination notifications
- Communication: Candidate messaging notifications
- Talent Pool Management: Unbind requests and talent pool notifications
- User Management: User invitations and registrations
- Authentication: Account verification and password reset
- Interview Management: Interview scheduling, confirmations, and feedback
- Analytics: Data report downloads
- Workflow Management: Hiring workflow notifications
- Platform: Various platform-specific notifications
Each email template includes:
- category: Template category for organizationdescription
- : Human-readable descriptionemailTemplate
- : HTML template with variable placeholderseventCode
- : Unique identifier for the eventeventName
- : Event namename
- : Template namesubject
- : Email subject line
Templates use variable placeholders in the format {{VARIABLE_NAME}} for dynamic content:
- {{ENTERPRISE_NAME}} - Enterprise name{{CANDIDATE_NAME}}
- - Candidate name{{JOB_TITLE}}
- - Job title{{APP_NAME}}
- - Application name
- And many more...
Each event code includes:
- code: Unique event code identifiername
- : Human-readable event nametemplateVariables
- : Array of available template variables with labels and values
`bash`
npm run build
`bash`
npm run clean
MIT
1. Fork the repository
2. Create your feature branch (git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature'
3. Commit your changes ()git push origin feature/amazing-feature`)
4. Push to the branch (
5. Open a Pull Request
For support, email support@simplifyhire.com or create an issue in the GitHub repository.