Skip to main content
Skip to main content

IInventoryService

Methods

__joinerConfig

Returns

ModuleJoinerConfigOmit<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 }Required

adjustInventory

Parameters

inventoryItemIdstringRequired
locationIdstringRequired
adjustmentnumberRequired

Returns

PromisePromise<InventoryLevelDTO>Required

confirmInventory

Parameters

inventoryItemIdstringRequired
locationIdsstring[]Required
quantitynumberRequired

Returns

PromisePromise<boolean>Required

createInventoryItem

Parameters

Returns

PromisePromise<InventoryItemDTO>Required

createInventoryItems

Parameters

Returns

PromisePromise<InventoryItemDTO[]>Required

createInventoryLevel

Parameters

Returns

PromisePromise<InventoryLevelDTO>Required

createInventoryLevels

Parameters

Returns

PromisePromise<InventoryLevelDTO[]>Required

createReservationItem

Parameters

Returns

PromisePromise<ReservationItemDTO>Required

createReservationItems

Parameters

Returns

PromisePromise<ReservationItemDTO[]>Required

deleteInventoryItem

Parameters

inventoryItemIdstring | string[]Required

Returns

PromisePromise<void>Required

deleteInventoryItemLevelByLocationId

Parameters

locationIdstring | string[]Required

Returns

PromisePromise<void>Required

deleteInventoryLevel

Parameters

inventoryLevelIdstringRequired
locationIdstringRequired

Returns

PromisePromise<void>Required

deleteReservationItem

Parameters

reservationItemIdstring | string[]Required

Returns

PromisePromise<void>Required

deleteReservationItemByLocationId

Parameters

locationIdstring | string[]Required

Returns

PromisePromise<void>Required

deleteReservationItemsByLineItem

Parameters

lineItemIdstring | string[]Required

Returns

PromisePromise<void>Required

listInventoryItems

Parameters

Returns

PromisePromise<[InventoryItemDTO[], number]>Required

listInventoryLevels

Parameters

Returns

PromisePromise<[InventoryLevelDTO[], number]>Required

listReservationItems

Parameters

Returns

PromisePromise<[ReservationItemDTO[], number]>Required

restoreInventoryItem

Parameters

inventoryItemIdstring | string[]Required

Returns

PromisePromise<void>Required

retrieveAvailableQuantity

Parameters

inventoryItemIdstringRequired
locationIdsstring[]Required

Returns

PromisePromise<number>Required

retrieveInventoryItem

Parameters

inventoryItemIdstringRequired

Returns

PromisePromise<InventoryItemDTO>Required

retrieveInventoryLevel

Parameters

inventoryItemIdstringRequired
locationIdstringRequired

Returns

PromisePromise<InventoryLevelDTO>Required

retrieveReservationItem

Parameters

reservationIdstringRequired

Returns

PromisePromise<ReservationItemDTO>Required

retrieveReservedQuantity

Parameters

inventoryItemIdstringRequired
locationIdsstring[]Required

Returns

PromisePromise<number>Required

retrieveStockedQuantity

Parameters

inventoryItemIdstringRequired
locationIdsstring[]Required

Returns

PromisePromise<number>Required

updateInventoryItem

Parameters

inventoryItemIdstringRequired

Returns

PromisePromise<InventoryItemDTO>Required

updateInventoryLevel

Parameters

inventoryItemIdstringRequired
locationIdstringRequired

Returns

PromisePromise<InventoryLevelDTO>Required

updateInventoryLevels

Parameters

updates{ inventory_item_id: string ; location_id: string } & UpdateInventoryLevelInput[]Required

Returns

PromisePromise<InventoryLevelDTO[]>Required

updateReservationItem

Parameters

reservationItemIdstringRequired

Returns

PromisePromise<ReservationItemDTO>Required
Was this section helpful?