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](/references/js-client/ModulesSdkTypes/types/internal.internal-1.ModulesSdkTypes.ModuleJoinerRelationship) ; serviceName: string }[] ; isLink?: boolean ; isReadOnlyLink?: boolean ; linkableKeys?: Record<string, string> ; primaryKeys?: string[] ; relationships?: [ModuleJoinerRelationship](/references/js-client/ModulesSdkTypes/types/internal.internal-1.ModulesSdkTypes.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
updates
{ inventory_item_id: string ; location_id: string } & UpdateInventoryLevelInput[]Requiredcontext
SharedContextReturns
updateReservationItem
Parameters
Returns
Was this section helpful?