import { CourtType, StepContent, StepInfoNode } from "../model/tactic/Tactic.ts" export interface TacticContext { stepsTree: StepInfoNode name: string courtType: CourtType } export enum ServiceError { UNAUTHORIZED = "UNAUTHORIZED", NOT_FOUND = "NOT_FOUND", } export interface TacticService { getContext(): Promise addStep( parent: StepInfoNode, content: StepContent, ): Promise removeStep(id: number): Promise setName(name: string): Promise saveContent( step: number, content: StepContent, ): Promise getContent(step: number): Promise }