forked from Github/frigate
* Allow embedding of snapshot for description via config option * docs * frontend button * Backend * crop snapshot to region * only show dropdown when event has snapshot * fix cursor on dropdown * crop on initial generation as well * use enum for type * fix type
20 lines
340 B
Python
20 lines
340 B
Python
"""Types for event management."""
|
|
|
|
from enum import Enum
|
|
|
|
|
|
class EventTypeEnum(str, Enum):
|
|
api = "api"
|
|
tracked_object = "tracked_object"
|
|
|
|
|
|
class EventStateEnum(str, Enum):
|
|
start = "start"
|
|
update = "update"
|
|
end = "end"
|
|
|
|
|
|
class RegenerateDescriptionEnum(str, Enum):
|
|
thumbnails = "thumbnails"
|
|
snapshot = "snapshot"
|