File size: 1,893 Bytes
8d87873
 
 
0fba372
 
 
6241e51
 
0fba372
 
 
8d87873
bf6e8ac
8d87873
 
 
0fba372
 
 
a9fc7b2
b4e0778
 
 
 
 
 
 
 
a9fc7b2
 
 
 
 
b4e0778
 
 
 
a9fc7b2
 
 
 
 
b4e0778
a9fc7b2
 
b4e0778
 
 
 
8d87873
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6241e51
 
 
 
 
 
 
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
export interface Product {
  name: string;
  brand: string;
  color: string;
  material: string;
  category: string;
  price_text: string;
  price_nok: number;
  original_price_nok: number;
  currency: string;
  on_sale: boolean;
  image_url: string;
  image_urls: string[];
  url: string;
  store: string;
  score: number;
  in_stock: boolean;
  sizes: string[];
  external_id: string;
  canonical_category: string;
  scandi_score: number | null;
}

export interface PaletteSwatch {
  source: string;
  lab: number[];
  hex: string;
  name: string;
}

export interface OutfitComplement {
  bucket: string;
  product: Product;
  rationale: string;
  color_name: string;
  color_score: number;
  axes_added: string[];
}

export interface Outfit {
  anchor: Product;
  anchor_bucket: string;
  anchor_color_name: string;
  complements: OutfitComplement[];
  total_nok: number;
  palette: PaletteSwatch[];
  axes_covered: string[];
  axes_contrasted: string[];
  scandi_score: number;
}

export interface ProductsResponse {
  items: Product[];
  total: number;
  page: number;
  page_size: number;
}

export interface StoreInfo {
  name: string;
  count: number;
  top: number;
  avg: number;
}

export interface Rating {
  filename: string;
  rating: number;
  image_url: string;
}

export interface RatingsResponse {
  ratings: Rating[];
  total: number;
  liked: number;
  disliked: number;
}

export interface StoreStats {
  count: number;
  top: number;
  avg: number;
}

export interface TasteStats {
  total: number;
  liked: number;
  disliked: number;
}

export interface Stats {
  total_products: number;
  stores: Record<string, StoreStats>;
  taste: TasteStats;
}

export interface ScanStatus {
  running: boolean;
  step: string;
  progress: number;
  error: string | null;
}

export interface DiscoverStats {
  total: number;
  likes: number;
  dislikes: number;
  skips: number;
}