mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-15 18:06:48 +02:00
First public commit
This commit is contained in:
commit
e05cd62e53
228 changed files with 17717 additions and 0 deletions
14
api-client/get-poll.ts
Normal file
14
api-client/get-poll.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { Link, Option, Participant, Poll, User, Vote } from "@prisma/client";
|
||||
|
||||
export interface GetPollApiResponse extends Omit<Poll, "verificationCode"> {
|
||||
options: Array<Option & { votes: Vote[] }>;
|
||||
participants: Array<Participant & { votes: Vote[] }>;
|
||||
user: User;
|
||||
role: "admin" | "participant";
|
||||
links: Array<Link>;
|
||||
pollId: string;
|
||||
}
|
||||
|
||||
export interface GetPollResponse extends Omit<GetPollApiResponse, "createdAt"> {
|
||||
createdAt: string;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue