diff --git a/server/src/types/data.d.ts b/server/src/types/data.d.ts index 35e7948..a47611c 100644 --- a/server/src/types/data.d.ts +++ b/server/src/types/data.d.ts @@ -80,12 +80,21 @@ interface UpdateAnswerResponse extends response { interface UpdatePlayer { + action: "modify" | "remove"; + game_code: string; name: string; - team: team; - role: role; + from: { + team: team; + role: role; + }; + to: { + team: team; + role: role; + }; } interface UpdatePlayerResponse { - name: string; - team: team; - role: role; + action?: "modify" | "new" | "remove"; + name?: string; // action: all + team?: team; // action: "modify" + role?: role; // action: "modify" } \ No newline at end of file