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:
Philip Korsholm
2024-03-25 07:43:41 +01:00
committed by GitHub
parent 0168c819da
commit aa154665de
11 changed files with 269 additions and 10 deletions

View File

@@ -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>
}

View File

@@ -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.
*/