mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-30 10:46:35 +02:00
14 lines
452 B
TypeScript
14 lines
452 B
TypeScript
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;
|
|
}
|