37 lines
616 B
Python
37 lines
616 B
Python
from typing import List, Optional
|
|
import strawberry
|
|
from strawberry import ID
|
|
from strawberry.relay import GlobalID
|
|
|
|
|
|
@strawberry.input
|
|
class OpenServiceSessionInput:
|
|
service_id: ID
|
|
|
|
|
|
@strawberry.input
|
|
class CloseServiceSessionInput:
|
|
service_id: ID
|
|
task_ids: List[ID]
|
|
|
|
|
|
@strawberry.input
|
|
class RevertServiceSessionInput:
|
|
service_id: ID
|
|
|
|
|
|
@strawberry.input
|
|
class ProjectSessionStartInput:
|
|
project_id: ID
|
|
|
|
|
|
@strawberry.input
|
|
class ProjectSessionCloseInput:
|
|
project_id: ID
|
|
completed_task_ids: Optional[List[ID]] = None
|
|
|
|
|
|
@strawberry.input
|
|
class ProjectSessionRevertInput:
|
|
project_id: ID
|