feat(medusa): Stock location module (#2907)

* feat: stock location module
This commit is contained in:
Carlos R. L. Rodrigues
2023-01-04 13:11:59 -03:00
committed by GitHub
parent cc10c20f35
commit c07ffb6165
50 changed files with 2040 additions and 198 deletions
@@ -0,0 +1,3 @@
export interface IEventBusService {
emit(event: string, data: any): Promise<void>
}
@@ -1,3 +1,4 @@
export * from "./cache"
export * from "./event-bus"
export * from "./stock-location"
export * from "./inventory"
@@ -18,7 +18,10 @@ export interface IStockLocationService {
config?: FindConfig<StockLocationDTO>
): Promise<[StockLocationDTO[], number]>
retrieve(id: string): Promise<StockLocationDTO>
retrieve(
id: string,
config?: FindConfig<StockLocationDTO>
): Promise<StockLocationDTO>
create(input: CreateStockLocationInput): Promise<StockLocationDTO>