IInventoryService
Methods
__joinerConfig
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
Parameters
Returns
confirmInventory
Parameters
Returns
Promise
Promise<boolean>RequiredcreateInventoryItem
Parameters
context
SharedContextReturns
createInventoryItems
Parameters
context
SharedContextReturns
createInventoryLevel
Parameters
context
SharedContextReturns
createInventoryLevels
Parameters
context
SharedContextReturns
createReservationItem
Parameters
context
SharedContextReturns
createReservationItems
Parameters
context
SharedContextReturns
deleteInventoryItem
Parameters
inventoryItemId
string | string[]Requiredcontext
SharedContextReturns
Promise
Promise<void>RequireddeleteInventoryItemLevelByLocationId
Parameters
locationId
string | string[]Requiredcontext
SharedContextReturns
Promise
Promise<void>RequireddeleteInventoryLevel
Parameters
Returns
Promise
Promise<void>RequireddeleteReservationItem
Parameters
reservationItemId
string | string[]Requiredcontext
SharedContextReturns
Promise
Promise<void>RequireddeleteReservationItemByLocationId
Parameters
locationId
string | string[]Requiredcontext
SharedContextReturns
Promise
Promise<void>RequireddeleteReservationItemsByLineItem
Parameters
lineItemId
string | string[]Requiredcontext
SharedContextReturns
Promise
Promise<void>RequiredlistInventoryItems
Parameters
Returns
listInventoryLevels
Parameters
Returns
listReservationItems
Parameters
Returns
restoreInventoryItem
Parameters
inventoryItemId
string | string[]Requiredcontext
SharedContextReturns
Promise
Promise<void>RequiredretrieveAvailableQuantity
Parameters
Returns
Promise
Promise<number>RequiredretrieveInventoryItem
Parameters
Returns
retrieveInventoryLevel
Parameters
Returns
retrieveReservationItem
Parameters
reservationId
stringRequiredcontext
SharedContextReturns
retrieveReservedQuantity
Parameters
Returns
Promise
Promise<number>RequiredretrieveStockedQuantity
Parameters
Returns
Promise
Promise<number>RequiredupdateInventoryItem
Parameters
Returns
updateInventoryLevel
Parameters
Returns
updateInventoryLevels
Parameters
context
SharedContextReturns
updateReservationItem
Parameters
Returns
Was this section helpful?