feat: implement extraction event handling and update extraction list on status changes
This commit is contained in:
@@ -36,6 +36,7 @@ export const authEvents = new EventEmitter()
|
||||
export const playerEvents = new EventEmitter()
|
||||
export const soundEvents = new EventEmitter()
|
||||
export const userEvents = new EventEmitter()
|
||||
export const extractionEvents = new EventEmitter()
|
||||
|
||||
// Auth event types
|
||||
export const AUTH_EVENTS = {
|
||||
@@ -60,3 +61,11 @@ export const SOUND_EVENTS = {
|
||||
export const USER_EVENTS = {
|
||||
USER_CREDITS_CHANGED: 'user_credits_changed',
|
||||
} as const
|
||||
|
||||
// Extraction event types
|
||||
export const EXTRACTION_EVENTS = {
|
||||
EXTRACTION_STATUS_UPDATED: 'extraction_status_updated',
|
||||
EXTRACTION_CREATED: 'extraction_created',
|
||||
EXTRACTION_COMPLETED: 'extraction_completed',
|
||||
EXTRACTION_FAILED: 'extraction_failed',
|
||||
} as const
|
||||
|
||||
Reference in New Issue
Block a user