@mulutime/plugin-types
Version:
TypeScript types for the MuluTime plugin system
83 lines • 4.65 kB
JavaScript
;
/**
* System Events for Plugin Automation and Webhooks
* These events are triggered automatically by the booking system
* and plugins can subscribe to them for automatic actions
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.SystemEventType = void 0;
var SystemEventType;
(function (SystemEventType) {
// Booking Events
SystemEventType["BOOKING_CREATED"] = "booking.created";
SystemEventType["BOOKING_UPDATED"] = "booking.updated";
SystemEventType["BOOKING_CANCELLED"] = "booking.cancelled";
SystemEventType["BOOKING_CONFIRMED"] = "booking.confirmed";
SystemEventType["BOOKING_RESCHEDULED"] = "booking.rescheduled";
SystemEventType["BOOKING_COMPLETED"] = "booking.completed";
SystemEventType["BOOKING_NO_SHOW"] = "booking.no_show";
SystemEventType["BOOKING_REMINDER"] = "booking.reminder";
// User Events
SystemEventType["USER_CREATED"] = "user.created";
SystemEventType["USER_UPDATED"] = "user.updated";
SystemEventType["USER_DELETED"] = "user.deleted";
SystemEventType["USER_LOGIN"] = "user.login";
SystemEventType["USER_PROFILE_UPDATED"] = "user.profile_updated";
// Schedule Events
SystemEventType["SCHEDULE_CREATED"] = "schedule.created";
SystemEventType["SCHEDULE_UPDATED"] = "schedule.updated";
SystemEventType["SCHEDULE_DELETED"] = "schedule.deleted";
SystemEventType["AVAILABILITY_CHANGED"] = "availability.changed";
SystemEventType["WORKING_HOURS_UPDATED"] = "working_hours.updated";
// Event Type Events
SystemEventType["EVENT_TYPE_CREATED"] = "event_type.created";
SystemEventType["EVENT_TYPE_UPDATED"] = "event_type.updated";
SystemEventType["EVENT_TYPE_DELETED"] = "event_type.deleted";
SystemEventType["EVENT_TYPE_PUBLISHED"] = "event_type.published";
SystemEventType["EVENT_TYPE_UNPUBLISHED"] = "event_type.unpublished";
// Organization Events
SystemEventType["ORGANIZATION_CREATED"] = "organization.created";
SystemEventType["ORGANIZATION_UPDATED"] = "organization.updated";
SystemEventType["ORGANIZATION_MEMBER_ADDED"] = "organization.member_added";
SystemEventType["ORGANIZATION_MEMBER_REMOVED"] = "organization.member_removed";
SystemEventType["ORGANIZATION_SETTINGS_UPDATED"] = "organization.settings_updated";
// Integration Events
SystemEventType["INTEGRATION_CONNECTED"] = "integration.connected";
SystemEventType["INTEGRATION_DISCONNECTED"] = "integration.disconnected";
SystemEventType["INTEGRATION_ERROR"] = "integration.error";
SystemEventType["INTEGRATION_SYNC_COMPLETED"] = "integration.sync_completed";
// Calendar Events
SystemEventType["CALENDAR_EVENT_CREATED"] = "calendar.event_created";
SystemEventType["CALENDAR_EVENT_UPDATED"] = "calendar.event_updated";
SystemEventType["CALENDAR_EVENT_DELETED"] = "calendar.event_deleted";
SystemEventType["CALENDAR_SYNC_STARTED"] = "calendar.sync_started";
SystemEventType["CALENDAR_SYNC_COMPLETED"] = "calendar.sync_completed";
// Payment Events
SystemEventType["PAYMENT_RECEIVED"] = "payment.received";
SystemEventType["PAYMENT_FAILED"] = "payment.failed";
SystemEventType["PAYMENT_REFUNDED"] = "payment.refunded";
SystemEventType["PAYMENT_DISPUTED"] = "payment.disputed";
// Communication Events
SystemEventType["EMAIL_SENT"] = "email.sent";
SystemEventType["EMAIL_FAILED"] = "email.failed";
SystemEventType["SMS_SENT"] = "sms.sent";
SystemEventType["SMS_FAILED"] = "sms.failed";
SystemEventType["NOTIFICATION_SENT"] = "notification.sent";
// Time-based Events
SystemEventType["DAILY_SUMMARY"] = "system.daily_summary";
SystemEventType["WEEKLY_REPORT"] = "system.weekly_report";
SystemEventType["MONTHLY_REPORT"] = "system.monthly_report";
// System Events
SystemEventType["SYSTEM_MAINTENANCE_START"] = "system.maintenance_start";
SystemEventType["SYSTEM_MAINTENANCE_END"] = "system.maintenance_end";
SystemEventType["SYSTEM_BACKUP_COMPLETED"] = "system.backup_completed";
// Plugin Events
SystemEventType["PLUGIN_INSTALLED"] = "plugin.installed";
SystemEventType["PLUGIN_UNINSTALLED"] = "plugin.uninstalled";
SystemEventType["PLUGIN_ERROR"] = "plugin.error";
// Scheduled Function Events
SystemEventType["SCHEDULED_FUNCTION_TRIGGERED"] = "scheduled.function_triggered";
SystemEventType["SCHEDULED_FUNCTION_COMPLETED"] = "scheduled.function_completed";
SystemEventType["SCHEDULED_FUNCTION_FAILED"] = "scheduled.function_failed";
})(SystemEventType || (exports.SystemEventType = SystemEventType = {}));
//# sourceMappingURL=system-events.js.map