2023-01-04 13:18:05 -05:00
|
|
|
"""Interfaces."""
|
|
|
|
from typing import NewType
|
2023-01-04 13:12:36 -05:00
|
|
|
from typing import TYPE_CHECKING
|
2023-01-04 13:18:05 -05:00
|
|
|
from typing import TypedDict
|
2023-01-04 13:12:36 -05:00
|
|
|
|
|
|
|
if TYPE_CHECKING:
|
|
|
|
from spiffworkflow_backend.models.process_group import ProcessGroup
|
|
|
|
|
|
|
|
|
|
|
|
IdToProcessGroupMapping = NewType("IdToProcessGroupMapping", dict[str, "ProcessGroup"])
|
|
|
|
|
|
|
|
|
|
|
|
class ProcessGroupLite(TypedDict):
|
2023-01-04 13:18:05 -05:00
|
|
|
"""ProcessGroupLite."""
|
2023-01-04 13:12:36 -05:00
|
|
|
|
|
|
|
id: str
|
|
|
|
display_name: str
|
|
|
|
|
|
|
|
|
|
|
|
class ProcessGroupLitesWithCache(TypedDict):
|
2023-01-04 13:18:05 -05:00
|
|
|
"""ProcessGroupLitesWithCache."""
|
2023-01-04 13:12:36 -05:00
|
|
|
|
|
|
|
cache: dict[str, "ProcessGroup"]
|
|
|
|
process_groups: list[ProcessGroupLite]
|