IInventoryService
Methods
__joinerConfig
**__joinerConfig**(): [ModuleJoinerConfig](/references/services/types/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](/references/services/types/ModuleJoinerRelationship) ; serviceName: string }[] ; isLink?: boolean ; isReadOnlyLink?: boolean ; linkableKeys?: Record<string, string> ; primaryKeys?: string[] ; relationships?: [ModuleJoinerRelationship](/references/services/types/ModuleJoinerRelationship)[] ; schema?: string ; serviceName?: string }RequiredadjustInventory
**adjustInventory**(inventoryItemId, locationId, adjustment, context?): Promise<[InventoryLevelDTO](/references/services/types/InventoryLevelDTO)>
Parameters
Returns
Promise<InventoryLevelDTO>
confirmInventory
**confirmInventory**(inventoryItemId, locationIds, quantity, context?): Promise<boolean>
Parameters
Returns
Promise<boolean>
Promise
Promise<boolean>RequiredcreateInventoryItem
**createInventoryItem**(input, context?): Promise<[InventoryItemDTO](/references/services/types/InventoryItemDTO)>
Parameters
context
SharedContextReturns
Promise<InventoryItemDTO>
createInventoryItems
**createInventoryItems**(input, context?): Promise<[InventoryItemDTO](/references/services/types/InventoryItemDTO)[]>
Parameters
context
SharedContextReturns
Promise<InventoryItemDTO[]>
createInventoryLevel
**createInventoryLevel**(data, context?): Promise<[InventoryLevelDTO](/references/services/types/InventoryLevelDTO)>
Parameters
context
SharedContextReturns
Promise<InventoryLevelDTO>
createInventoryLevels
**createInventoryLevels**(data, context?): Promise<[InventoryLevelDTO](/references/services/types/InventoryLevelDTO)[]>
Parameters
context
SharedContextReturns
Promise<InventoryLevelDTO[]>
createReservationItem
**createReservationItem**(input, context?): Promise<[ReservationItemDTO](/references/services/types/ReservationItemDTO)>
Parameters
context
SharedContextReturns
Promise<ReservationItemDTO>
createReservationItems
**createReservationItems**(input, context?): Promise<[ReservationItemDTO](/references/services/types/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](/references/services/types/InventoryItemDTO)[], number]>
Parameters
Returns
Promise<[InventoryItemDTO[], number]>
listInventoryLevels
**listInventoryLevels**(selector, config?, context?): Promise<[[InventoryLevelDTO](/references/services/types/InventoryLevelDTO)[], number]>
Parameters
Returns
Promise<[InventoryLevelDTO[], number]>
listReservationItems
**listReservationItems**(selector, config?, context?): Promise<[[ReservationItemDTO](/references/services/types/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>RequiredretrieveInventoryItem
**retrieveInventoryItem**(inventoryItemId, config?, context?): Promise<[InventoryItemDTO](/references/services/types/InventoryItemDTO)>
Parameters
Returns
Promise<InventoryItemDTO>
retrieveInventoryLevel
**retrieveInventoryLevel**(inventoryItemId, locationId, context?): Promise<[InventoryLevelDTO](/references/services/types/InventoryLevelDTO)>
Parameters
Returns
Promise<InventoryLevelDTO>
retrieveReservationItem
**retrieveReservationItem**(reservationId, context?): Promise<[ReservationItemDTO](/references/services/types/ReservationItemDTO)>
Parameters
reservationId
stringRequiredcontext
SharedContextReturns
Promise<ReservationItemDTO>
retrieveReservedQuantity
**retrieveReservedQuantity**(inventoryItemId, locationIds, context?): Promise<number>
Parameters
Returns
Promise<number>
Promise
Promise<number>RequiredretrieveStockedQuantity
**retrieveStockedQuantity**(inventoryItemId, locationIds, context?): Promise<number>
Parameters
Returns
Promise<number>
Promise
Promise<number>RequiredupdateInventoryItem
**updateInventoryItem**(inventoryItemId, input, context?): Promise<[InventoryItemDTO](/references/services/types/InventoryItemDTO)>
Parameters
Returns
Promise<InventoryItemDTO>
updateInventoryLevel
**updateInventoryLevel**(inventoryItemId, locationId, update, context?): Promise<[InventoryLevelDTO](/references/services/types/InventoryLevelDTO)>
Parameters
Returns
Promise<InventoryLevelDTO>
updateInventoryLevels
**updateInventoryLevels**(updates, context?): Promise<[InventoryLevelDTO](/references/services/types/InventoryLevelDTO)[]>
Parameters
updates
{ inventory_item_id: string ; location_id: string } & UpdateInventoryLevelInput[]Requiredcontext
SharedContextReturns
Promise<InventoryLevelDTO[]>
updateReservationItem
**updateReservationItem**(reservationItemId, input, context?): Promise<[ReservationItemDTO](/references/services/types/ReservationItemDTO)>
Parameters
Returns
Promise<ReservationItemDTO>