File size: 601 Bytes
370c714
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
export enum ProductCategory {
  SHIRT = 'Shirt',
  PANTS = 'Pants',
  EYEWEAR = 'Eyewear',
  NECKLACE = 'Necklace',
  HEADWEAR = 'Headwear'
}

export interface Product {
  id: string;
  name: string;
  category: ProductCategory;
  price: number;
  imageUrl: string;
  description: string;
}

export enum AppView {
  CATALOG = 'CATALOG',
  CAMERA = 'CAMERA',
  RESULT = 'RESULT'
}

export interface TryOnRequest {
  product: Product;
  userImageBase64: string; // The captured frame
}

export interface TryOnResult {
  generatedImageBase64: string | null;
  loading: boolean;
  error: string | null;
}