@genni_tech_team/events
v1.1.0
Published
Event types for Genni Tech Team
Downloads
156
Maintainers
Readme
@genni_tech_team/events
Event types and definitions for Genni Tech Team's event system.
Installation
npm install @genni_tech_team/events
Usage
import { Event, EventType, PostStatusIds } from '@genni_tech_team/events';
// Example handler
const handleEvent: EventHandler = async (event: Event) => {
switch (event.type) {
case EventType.CreatorPostUpdate:
// Handle creator post update
return true;
case EventType.UserForgotPassword:
// Handle forgot password
return true;
default:
return false;
}
};
Events
UserForgotPassword
Triggered when a user requests a password reset.
CreatorPostUpdate
Triggered when a creator post is updated.
Examples
See the examples in the code for JSON format examples.