Adds a bunch of methods on the Backend
Created by: rileyp2000
I did some basic tests in the debugStuff() function that gets called, but it is really only happy path testing. These are the methods that were added:
- getCategories()
- addProductToInventory()
- deleteProductFromInventory(prodId: number): Promise<unknown[]> {
- getProductsByCategory(category: number,): Promise<types.DBProduct[]>
- updateProduct(prod: types.DBProduct): Promise
- updateProductInventory(prod: types.InventoryCount): Promise
- getInventoryByProduct(prodId: number): Promise<types.InventoryCount>
- updateCategory(category: types.Category): Promise
It also adds some types that were needed in types.ts