21 lines
420 B
TypeScript
Executable File
21 lines
420 B
TypeScript
Executable File
export type ItemStatus = 'available' | 'reserved' | 'sold';
|
|
|
|
export interface ItemImage {
|
|
id: number;
|
|
image_path: string;
|
|
sort_order: number;
|
|
}
|
|
|
|
export interface Item {
|
|
id: number;
|
|
name: string;
|
|
description: string | null;
|
|
price_cents: number;
|
|
images: ItemImage[];
|
|
status: ItemStatus;
|
|
reserved_until: string | null;
|
|
sold_at: string | null;
|
|
paypal_order_id: string | null;
|
|
created_at: string;
|
|
}
|