All files / src/config templates.config.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3

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  7x 7x                                                                       7x                        
import { HBSTemplates } from '@/services/handlebars.service';
 
interface ITemplateBaseConfig {
  core?: string;
  path: string;
  onlyTXT?: boolean;
}
 
interface ITemplateConfig {
  templateConfig: Record<keyof typeof HBSTemplates, ITemplateBaseConfig>;
}
 
const templatesConfigs: ITemplateConfig = {
  templateConfig: {
    RESET_PASSWORD: {
      path: 'emails.auth.reset-password',
      core: 'emails.core',
    },
    VERIFY_EMAIL: {
      path: 'emails.auth.confirm-email',
      core: 'emails.core',
    },
    UPDATE_PASSWORD: {
      path: 'emails.auth.update-password',
      core: 'emails.core',
    },
    CONFIRM_DELETING: {
      path: 'emails.auth.confirm-deleting',
      core: 'emails.core',
    },
    ACCOUNT_DELETED: {
      path: 'emails.auth.account-deleted',
      core: 'emails.core',
    },
    PASSWORD_UPDATED: {
      path: 'emails.auth.password-updated',
      core: 'emails.core',
    },
    MFA_EMAIL: {
      path: 'emails.auth.mfa-email',
      core: 'emails.core',
    },
    OTP_SMS: {
      path: 'sms.auth.otp-message',
      onlyTXT: true,
    },
  },
};
 
export default templatesConfigs;