Config parsing yey
This commit is contained in:
32
collector/scraper/src/data/data.ts
Normal file
32
collector/scraper/src/data/data.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
export interface Store {
|
||||
business_id: string,
|
||||
businesses: string
|
||||
}
|
||||
|
||||
// why: because type completion is going to matter later on
|
||||
export enum ProductType {
|
||||
service,
|
||||
good
|
||||
}
|
||||
export enum ProductUnitType {
|
||||
item,
|
||||
weight,
|
||||
hour,
|
||||
volume,
|
||||
}
|
||||
|
||||
export interface Product {
|
||||
id: string,
|
||||
|
||||
business_id: string, // references the business_id in a Store entry
|
||||
|
||||
product_name: string,
|
||||
product_type: ProductType,
|
||||
|
||||
price: number,
|
||||
currency: string, // will likely just be USD for now
|
||||
|
||||
unit_type: UnitType
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user