diff --git a/.gitignore b/.gitignore index 1b5afbe91..3acf8256b 100644 --- a/.gitignore +++ b/.gitignore @@ -39,4 +39,7 @@ yarn-error.log* # playwright /playwright-report -/test-results \ No newline at end of file +/test-results + +# ts +tsconfig.tsbuildinfo \ No newline at end of file diff --git a/api-client/add-participant.ts b/api-client/add-participant.ts index d6325d4f4..535eea1de 100644 --- a/api-client/add-participant.ts +++ b/api-client/add-participant.ts @@ -1,10 +1,10 @@ -import { Participant, Vote } from "@prisma/client"; +import { Participant, Vote, VoteType } from "@prisma/client"; import axios from "axios"; export interface AddParticipantPayload { pollId: string; name: string; - votes: string[]; + votes: Array<{ optionId: string; type: VoteType }>; } export type AddParticipantResponse = Participant & { diff --git a/api-client/get-poll.ts b/api-client/get-poll.ts index 1c981cc9e..b1b3ba357 100644 --- a/api-client/get-poll.ts +++ b/api-client/get-poll.ts @@ -1,7 +1,7 @@ import { Link, Option, Participant, Poll, User, Vote } from "@prisma/client"; export interface GetPollApiResponse extends Omit { - options: Array