() => (ctx: RequestContext, stockLocationId: ID) => Promise<StockLocation | undefined>(ctx: RequestContext, options?: ListQueryOptions<StockLocation>, relations?: RelationPaths<StockLocation>) => Promise<PaginatedList<StockLocation>>(ctx: RequestContext, input: CreateStockLocationInput) => Promise<StockLocation>(ctx: RequestContext, input: UpdateStockLocationInput) => Promise<StockLocation>(ctx: RequestContext, input: DeleteStockLocationInput) => Promise<DeletionResponse>Deletes a StockLocation. If transferToLocationId is specified in the input, all stock levels
from the deleted location will be transferred to the target location. The last StockLocation
cannot be deleted.
(ctx: RequestContext, input: AssignStockLocationsToChannelInput) => Promise<StockLocation[]>Assigns multiple StockLocations to the specified Channel. Requires the UpdateStockLocation
permission on the target channel.
(ctx: RequestContext, input: RemoveStockLocationsFromChannelInput) => Promise<StockLocation[]>Removes multiple StockLocations from the specified Channel. Requires the DeleteStockLocation
permission on the target channel. StockLocations cannot be removed from the default channel.
(ctx: RequestContext) => (ctx: RequestContext, orderLine: OrderLine, quantity: number) => Returns the locations and quantities to use for allocating stock when an OrderLine is created. This uses the configured StockLocationStrategy.
(ctx: RequestContext, orderLine: OrderLine, quantity: number) => Returns the locations and quantities to use for releasing allocated stock when an OrderLine is cancelled or modified. This uses the configured StockLocationStrategy.
(ctx: RequestContext, orderLine: OrderLine, quantity: number) => Returns the locations and quantities to use for creating sales when an Order is fulfilled. This uses the configured StockLocationStrategy.
(ctx: RequestContext, orderLine: OrderLine, quantity: number) => Returns the locations and quantities to use for cancelling sales when an OrderLine is cancelled after fulfillment. This uses the configured StockLocationStrategy.
Architecture reviews, custom plugin work, migrations, ongoing support. Get a hand from the team that builds Vendure.
Talk to the team