feat(api): tokens on all routes; items expose claims/claimedQuantity/remainingQuantity
This commit is contained in:
16
lib/api.ts
16
lib/api.ts
@@ -71,6 +71,15 @@ export interface Wishlist {
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface ItemClaim {
|
||||
id: string;
|
||||
quantity: number;
|
||||
note: string | null;
|
||||
isPurchased: boolean;
|
||||
claimedAt: string;
|
||||
guest: { id: string; name: string };
|
||||
}
|
||||
|
||||
export interface Item {
|
||||
id: string;
|
||||
wishlistId: string;
|
||||
@@ -82,10 +91,9 @@ export interface Item {
|
||||
imageUrl: string | null;
|
||||
purchaseUrls: Array<{ label: string; url: string }> | null;
|
||||
isArchived: boolean;
|
||||
claimedByName: string | null;
|
||||
claimedByNote: string | null;
|
||||
claimedAt: string | null;
|
||||
isPurchased: boolean;
|
||||
claims: ItemClaim[];
|
||||
claimedQuantity: number;
|
||||
remainingQuantity: number;
|
||||
sortOrder: number;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
|
||||
Reference in New Issue
Block a user