|
1
|
import { ModuleJoinerConfig } from "@medusajs/framework/types" |
|
2
|
import { Modules } from "@medusajs/framework/utils" |
|
3
|
|
|
4
|
export const InventoryLevelStockLocation: ModuleJoinerConfig = { |
|
5
|
isLink: true, |
|
6
|
isReadOnlyLink: true, |
|
7
|
extends: [ |
|
8
|
{ |
|
9
|
serviceName: Modules.INVENTORY, |
|
10
|
entity: "InventoryLevel", |
|
11
|
relationship: { |
|
12
|
serviceName: Modules.STOCK_LOCATION, |
|
13
|
entity: "StockLocation", |
|
14
|
primaryKey: "id", |
|
15
|
foreignKey: "location_id", |
|
16
|
alias: "stock_locations", |
|
17
|
args: { |
|
18
|
methodSuffix: "StockLocations", |
|
19
|
}, |
|
20
|
isList: true, |
|
21
|
}, |
|
22
|
}, |
|
23
|
], |
|
24
|
} |