types(api): 🏷️ Update merchant submission types to reflect data structure changes in @packages/@types/src/api/merch-submission.types.ts

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Lilith 2026-02-26 15:53:37 -08:00
parent f872da9fde
commit ce65f15015

View file

@ -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[]