File size: 1,014 Bytes
b4f2238 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | """Module for case material protocols."""
from typing import Any, Protocol
class ICaseMaterialService(Protocol):
def list_bind_candidates(
self,
*,
case_id: int,
user: Any,
org_access: Any,
perm_open_access: bool,
) -> list[Any]: ...
def bind_materials(
self,
*,
case_id: int,
items: list[dict[str, Any]],
user: Any,
org_access: Any,
perm_open_access: bool,
) -> list[Any]: ...
def save_group_order(
self,
*,
case_id: int,
category: str,
ordered_type_ids: list[int],
side: str | None,
supervising_authority_id: int | None,
user: Any,
org_access: Any,
perm_open_access: bool,
) -> None: ...
def get_case_materials_view(
self,
*,
case_id: int,
user: Any | None = None,
org_access: Any | None = None,
perm_open_access: bool = False,
) -> Any: ...
|