Spaces:
Runtime error

bot / src /types.ts
lasource87's picture
Upload 15 files
cd86722 verified
Raw History Blame Contribute Delete
1.21 kB
export interface Category {
id: string;
name: string;
type: 'delivery' | 'meetup';
display_order: number;
created_at: string;
}
export interface Product {
id: string;
category_id: string;
name: string;
description: string;
image_url: string | null;
is_in_stock: boolean;
type: 'delivery' | 'meetup';
display_order: number;
fictitious_likes?: number;
real_likes_count?: number;
created_at: string;
}
export interface ProductPrice {
id: string;
product_id: string;
quantity: string;
price: number;
created_at: string;
}
export interface ShopConfig {
shopName: string;
shopDescription: string;
shopLogo: string;
shopBanner: string;
orderManager: string;
isOpen: boolean;
isMeetupEnabled: boolean;
isVerificationEnabled: boolean;
welcomeMessage: string;
infoText: string;
channelUrl: string;
managerChatId: string;
adminId: string;
isAutoBroadcastEnabled: boolean;
orderDispatchMode: 'private' | 'group';
deliveryGroupId: string;
meetupGroupId: string;
accentColor?: string;
}
export interface CartItem {
productId: string;
productName: string;
priceId: string;
quantityLabel: string;
price: number;
count: number;
}