diff --git a/@packages/@types/src/api/merch-submission.types.ts b/@packages/@types/src/api/merch-submission.types.ts index 11a3b71d7..5b4643f37 100755 --- a/@packages/@types/src/api/merch-submission.types.ts +++ b/@packages/@types/src/api/merch-submission.types.ts @@ -331,6 +331,8 @@ export interface VoteableIdea { uniqueVoters: number /** User's current vote allocation (null if not logged in) */ userVoteAllocation?: number | null + /** Whether the user has cast their free daily vote on this idea today */ + hasVotedFreeToday?: boolean | null publishedAt: string // ISO 8601 hotScore: number /** The main phrase/slogan for this idea */ @@ -375,6 +377,13 @@ export interface AllocateVotesResponseDto { ideaTotalVotes: number } +/** Response when casting a free daily vote */ +export interface CastFreeVoteResponseDto { + success: boolean + ideaTotalVotes: number + freeVoteCastToday: boolean +} + /** Paginated list of voteable ideas */ export interface IdeasListResponseDto { data: VoteableIdea[]