-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
64 lines (58 loc) · 1.18 KB
/
types.ts
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
import { z } from "zod";
import { ScannerSchema } from "./schema/scanner.schema.js";
export type Info = {
score: number;
notes: string;
}
export type Tag = {
material: string;
percentage: string;
};
export type Flags = {
country: string;
dryClean: boolean;
coldWater: boolean;
lineDry: boolean;
tags: Tag[];
};
export type ScannerRequest = z.infer<typeof ScannerSchema>["body"];
export const sustainable: Array<string> = ["organic cotton",
"recycled cotton",
"hemp",
"linen",
"bamboo linen",
"cork",
"econyl",
"recycled polyester",
"deadstock",
"lyocell",
"modal",
"bamboo lyocell",
"ecovero",
"piñatex",
"bananatex",
"scoby leather",
"s.cafe",
"brewed protein",
"apple leather",
"woocoa",
"cupro",
"qmilk",
"sheep wool",
"merino wool",
"alpaca wool",
"cashmere",
"camel",
"yak wool",
"vegetable tanned leather",
"down",
"silk",
"recycled"]; //list of sustainable materials. must be lowercase
export const countries: Array<string> = ["sweden",
"norway", "denmark", "finland",
"germany", "france", "netherlands",
"canada", "australia", "new zealand",
"switzerland", "austria", "united kingdom",
"belgium", "luxembourg", "iceland",
"japan", "south korea", "costa rica",
"uruguay"];