Spaces:
Runtime error

File size: 1,207 Bytes
cd86722
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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;
}