IInventoryService
admin/discounts.internal.IInventoryService
Methods
__joinerConfig
__joinerConfig(): ModuleJoinerConfig
Returns
ModuleJoinerConfig
Omit<JoinerServiceConfig, "serviceName" | "primaryKeys" | "relationships" | "extends"> & { databaseConfig?: { extraFields?: Record<string, { defaultValue?: string ; nullable?: boolean ; options?: Record<string, unknown> ; type: "date" | "time" | "datetime" | "bigint" | "blob" | "uint8array" | "array" | "enumArray" | "enum" | "json" | "integer" | "smallint" | "tinyint" | "mediumint" | "float" | "double" | "boolean" | "decimal" | "string" | "uuid" | "text" }> ; idPrefix?: string ; tableName?: string } ; extends?: { fieldAlias?: Record<string, string | { forwardArgumentsOnPath: string[] ; path: string }> ; relationship: ModuleJoinerRelationship ; serviceName: string }[] ; isLink?: boolean ; isReadOnlyLink?: boolean ; linkableKeys?: Record<string, string> ; primaryKeys?: string[] ; relationships?: ModuleJoinerRelationship[] ; schema?: string ; serviceName?: string }RequiredadjustInventory
adjustInventory(inventoryItemId
, locationId
, adjustment
, context?
): Promise
<InventoryLevelDTO
>
Parameters
Returns
Promise
<InventoryLevelDTO
>
confirmInventory
confirmInventory(inventoryItemId
, locationIds
, quantity
, context?
): Promise
<boolean
>
Parameters
Returns
Promise
<boolean
>
Promise
Promise<boolean>Required
Promise
Promise<boolean>RequiredcreateInventoryItem
createInventoryItem(input
, context?
): Promise
<InventoryItemDTO
>
Parameters
context
SharedContextReturns
Promise
<InventoryItemDTO
>
createInventoryItems
createInventoryItems(input
, context?
): Promise
<InventoryItemDTO
[]>
Parameters
context
SharedContextReturns
Promise
<InventoryItemDTO
[]>
createInventoryLevel
createInventoryLevel(data
, context?
): Promise
<InventoryLevelDTO
>
Parameters
context
SharedContextReturns
Promise
<InventoryLevelDTO
>
createInventoryLevels
createInventoryLevels(data
, context?
): Promise
<InventoryLevelDTO
[]>
Parameters
context
SharedContextReturns
Promise
<InventoryLevelDTO
[]>
createReservationItem
createReservationItem(input
, context?
): Promise
<ReservationItemDTO
>
Parameters
context
SharedContextReturns
Promise
<ReservationItemDTO
>
createReservationItems
createReservationItems(input
, context?
): Promise
<ReservationItemDTO
[]>
Parameters
context
SharedContextReturns
Promise
<ReservationItemDTO
[]>
deleteInventoryItem
deleteInventoryItem(inventoryItemId
, context?
): Promise
<void
>
Parameters
inventoryItemId
string | string[]Requiredcontext
SharedContextReturns
Promise
<void
>
Promise
Promise<void>RequireddeleteInventoryItemLevelByLocationId
deleteInventoryItemLevelByLocationId(locationId
, context?
): Promise
<void
>
Parameters
locationId
string | string[]Requiredcontext
SharedContextReturns
Promise
<void
>
Promise
Promise<void>RequireddeleteInventoryLevel
deleteInventoryLevel(inventoryLevelId
, locationId
, context?
): Promise
<void
>
Parameters
Returns
Promise
<void
>
Promise
Promise<void>RequireddeleteReservationItem
deleteReservationItem(reservationItemId
, context?
): Promise
<void
>
Parameters
reservationItemId
string | string[]Requiredcontext
SharedContextReturns
Promise
<void
>
Promise
Promise<void>RequireddeleteReservationItemByLocationId
deleteReservationItemByLocationId(locationId
, context?
): Promise
<void
>
Parameters
locationId
string | string[]Requiredcontext
SharedContextReturns
Promise
<void
>
Promise
Promise<void>RequireddeleteReservationItemsByLineItem
deleteReservationItemsByLineItem(lineItemId
, context?
): Promise
<void
>
Parameters
lineItemId
string | string[]Requiredcontext
SharedContextReturns
Promise
<void
>
Promise
Promise<void>RequiredlistInventoryItems
listInventoryItems(selector
, config?
, context?
): Promise
<[InventoryItemDTO
[], number
]>
Parameters
Returns
Promise
<[InventoryItemDTO
[], number
]>
listInventoryLevels
listInventoryLevels(selector
, config?
, context?
): Promise
<[InventoryLevelDTO
[], number
]>
Parameters
Returns
Promise
<[InventoryLevelDTO
[], number
]>
listReservationItems
listReservationItems(selector
, config?
, context?
): Promise
<[ReservationItemDTO
[], number
]>
Parameters
Returns
Promise
<[ReservationItemDTO
[], number
]>
restoreInventoryItem
restoreInventoryItem(inventoryItemId
, context?
): Promise
<void
>
Parameters
inventoryItemId
string | string[]Requiredcontext
SharedContextReturns
Promise
<void
>
Promise
Promise<void>RequiredretrieveAvailableQuantity
retrieveAvailableQuantity(inventoryItemId
, locationIds
, context?
): Promise
<number
>
Parameters
Returns
Promise
<number
>
Promise
Promise<number>Required
Promise
Promise<number>RequiredretrieveInventoryItem
retrieveInventoryItem(inventoryItemId
, config?
, context?
): Promise
<InventoryItemDTO
>
Parameters
Returns
Promise
<InventoryItemDTO
>
retrieveInventoryLevel
retrieveInventoryLevel(inventoryItemId
, locationId
, context?
): Promise
<InventoryLevelDTO
>
Parameters
Returns
Promise
<InventoryLevelDTO
>
retrieveReservationItem
retrieveReservationItem(reservationId
, context?
): Promise
<ReservationItemDTO
>
Parameters
reservationId
stringRequiredcontext
SharedContextReturns
Promise
<ReservationItemDTO
>
retrieveReservedQuantity
retrieveReservedQuantity(inventoryItemId
, locationIds
, context?
): Promise
<number
>
Parameters
Returns
Promise
<number
>
Promise
Promise<number>Required
Promise
Promise<number>RequiredretrieveStockedQuantity
retrieveStockedQuantity(inventoryItemId
, locationIds
, context?
): Promise
<number
>
Parameters
Returns
Promise
<number
>
Promise
Promise<number>Required
Promise
Promise<number>RequiredupdateInventoryItem
updateInventoryItem(inventoryItemId
, input
, context?
): Promise
<InventoryItemDTO
>
Parameters
Returns
Promise
<InventoryItemDTO
>
updateInventoryLevel
updateInventoryLevel(inventoryItemId
, locationId
, update
, context?
): Promise
<InventoryLevelDTO
>
Parameters
Returns
Promise
<InventoryLevelDTO
>
updateInventoryLevels
updateInventoryLevels(updates
, context?
): Promise
<InventoryLevelDTO
[]>
Parameters
context
SharedContextReturns
Promise
<InventoryLevelDTO
[]>
updateReservationItem
updateReservationItem(reservationItemId
, input
, context?
): Promise
<ReservationItemDTO
>
Parameters
Returns
Promise
<ReservationItemDTO
>