Athas Boilerplate

@athas/notifications-core

external-ready

Queue and notification runtime contracts shared across adapters.

Purpose

@athas/notifications-core contains framework-agnostic notification primitives used by queue producers and consumers.

Current exports

  • queue contracts: EmailJobData, BulkEmailJobData
  • queue identifiers: QUEUES, EMAIL_JOBS
  • retry/backoff policy defaults: DEFAULT_JOB_OPTIONS, EMAIL_JOB_OPTIONS
  • auth email job helpers: createAuthEmailJob(...)
  • channel/template contracts: NotificationDispatchInputSchema, NotificationChannelSchema, NotificationTemplateSchema
  • dispatch validator helper: createNotificationDispatchInput(...)

Boundary

Keep this package pure and adapter-free.

  • allowed: contracts, naming, retry policy defaults
  • not allowed: NestJS decorators, BullMQ runtime registration, provider SDK calls

On this page