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:
parent
f872da9fde
commit
ce65f15015
1 changed files with 9 additions and 0 deletions
|
|
@ -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[]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue