mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2026-03-10 20:41:46 +00:00
- Introduce constants for notification event names - Implement interfaces for transaction created events - Create a transaction notification listener to handle transaction notifications - Develop a notification factory service for sending notifications based on user preferences - Add a migration to include a data column in the notifications table
16 lines
349 B
TypeScript
16 lines
349 B
TypeScript
/**
|
|
* Notification event names
|
|
* These are the event identifiers used throughout the notification system
|
|
*/
|
|
export const NOTIFICATION_EVENTS = {
|
|
// Transaction events
|
|
TRANSACTION_CREATED: 'notification.transaction.created',
|
|
} as const;
|
|
|
|
export type NotificationEventName =
|
|
typeof NOTIFICATION_EVENTS[keyof typeof NOTIFICATION_EVENTS];
|
|
|
|
|
|
|
|
|