Files
gameno-api/constants/eventNames.js
T

36 lines
1.0 KiB
JavaScript

// /constants/eventNames.js
const EVENT_NAMES = {
USER_REGISTERED: 'user.registered',
USER_CREATED: 'user.created',
USER_ENROLLED: 'user.enrolled',
USER_UPDATED: 'user.updated',
PROFESSOR_CREATED: 'professor.created',
COURSE_CREATED: 'course.created',
COURSE_PRICE_CHANGED: 'course.price_changed',
SESSION_CREATED: 'session.created',
SESSION_CANCELLED: 'session.cancelled',
SESSION_HOLDING: 'session.holding',
SESSION_REMINDER: 'session.reminder',
ATTENDANCE_RECORDED: 'attendance.recorded',
ATTENDANCE_BULK_RECORDED: 'attendance.bulk_recorded',
PAYMENT_CREATED: 'payment.created',
PAYMENT_STATUS_CHANGED: 'payment.status_changed',
PAYMENT_TRANSACTION_ADDED: 'payment.transaction_added',
PAYMENT_REMINDER_DUE: 'payment.reminder_due',
NOTIFICATION_CREATED: 'notification.created',
NOTIFICATION_SENT: 'notification.sent',
NOTIFICATION_FAILED: 'notification.failed',
CERTIFICATE_ISSUED: 'certificate.issued',
CERTIFICATE_UPLOADED: 'certificate.uploaded'
};
module.exports = EVENT_NAMES;