mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 18:13:25 +00:00
Add id to update event
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
export type UpdateEventStatus = 'success' | 'failure' | 'notfound' | 'pending';
|
||||
|
||||
export type UpdateEvent = {
|
||||
id: string; // id presented in start event
|
||||
percentage: number;
|
||||
status: UpdateEventStatus;
|
||||
error?: unknown; // set when status is failure
|
||||
@@ -21,13 +22,6 @@ export type DiscoverEmbedsEvent = {
|
||||
}>;
|
||||
};
|
||||
|
||||
export type StartScrapingEvent = {
|
||||
sourceId: string;
|
||||
|
||||
// embed Id (not embedScraperId)
|
||||
embedId?: string;
|
||||
};
|
||||
|
||||
export type SingleScraperEvents = {
|
||||
update?: (evt: UpdateEvent) => void;
|
||||
};
|
||||
|
Reference in New Issue
Block a user