open-index/open-npm huggingface dataset:
npm package: @livetronics/wocul-email-config
Description: Email configuration utilities for Wocul services
Latest version: 1.6.0

# @livetronics/wocul-email-config

Shared email templates configuration for Wocul services.

## Installation

```bash
npm install @livetronics/wocul-email-config


## Usage

import {
  EMAIL_TEMPLATES,
  validateEmailParams,
  getEmailTemplate,
  getTemplateName
} from '@livetronics/wocul-email-config'

// Validate email parameters before queueing
const validation = validateEmailParams('Staff', 'Task', 'Task-Assigned', {
  assignee: 'John Doe',
  task_title: 'Fix bug',
  // ... other variables
})

if (!validation.valid) {
  console.error(validation.errors)
}

// Get template name for an environment
const templateName = getTemplateName('Staff', 'Task', 'Task-Assigned', 'production')

// Get template configuration
const template = getEmailTemplate('Staff', 'Task', 'Task-Assigned')
console.log(template?.variables) // List of required variables