feat(core-flows, types, medusa): Add Update location level endpoint for api-v2 (#6743)
* initialize update-location-level * update middlewares * readd middleware * pr feedback
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { BaseFilterable, OperatorMap } from "../../dal"
|
||||
|
||||
import { NumericalComparisonOperator } from "../../common"
|
||||
|
||||
/**
|
||||
@@ -53,7 +55,8 @@ export interface InventoryLevelDTO {
|
||||
deleted_at: string | Date | null
|
||||
}
|
||||
|
||||
export interface FilterableInventoryLevelProps {
|
||||
export interface FilterableInventoryLevelProps
|
||||
extends BaseFilterable<FilterableInventoryLevelProps> {
|
||||
/**
|
||||
* Filter inventory levels by the ID of their associated inventory item.
|
||||
*/
|
||||
@@ -65,13 +68,13 @@ export interface FilterableInventoryLevelProps {
|
||||
/**
|
||||
* Filters to apply on inventory levels' `stocked_quantity` attribute.
|
||||
*/
|
||||
stocked_quantity?: number | NumericalComparisonOperator
|
||||
stocked_quantity?: number | OperatorMap<Number>
|
||||
/**
|
||||
* Filters to apply on inventory levels' `reserved_quantity` attribute.
|
||||
*/
|
||||
reserved_quantity?: number | NumericalComparisonOperator
|
||||
reserved_quantity?: number | OperatorMap<Number>
|
||||
/**
|
||||
* Filters to apply on inventory levels' `incoming_quantity` attribute.
|
||||
*/
|
||||
incoming_quantity?: number | NumericalComparisonOperator
|
||||
incoming_quantity?: number | OperatorMap<Number>
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ export interface UpdateInventoryLevelInput {
|
||||
/**
|
||||
* id of the inventory level to update
|
||||
*/
|
||||
id: string
|
||||
id?: string
|
||||
/**
|
||||
* The stocked quantity of the associated inventory item in the associated location.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user