-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from techstartucalgary/scanner-score
Scanner score
- Loading branch information
Showing
6 changed files
with
209 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,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"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters