Config parsing yey

This commit is contained in:
2026-05-16 15:50:49 -07:00
parent dea3eb8cc2
commit 4a74e1bca5
10 changed files with 299 additions and 0 deletions

View 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
}