Skip to main content
Skip to main content

IInventoryService

Methods

__joinerConfig

Returns

ModuleJoinerConfigOmit<JoinerServiceConfig, "serviceName" | "primaryKeys" | "relationships" | "extends"> & &#123; databaseConfig?: &#123; extraFields?: Record&#60;string, &#123; defaultValue?: string ; nullable?: boolean ; options?: Record&#60;string, unknown&#62; ; type: "date"\|"time"\|"datetime"\|"bigint"\|"blob"\|"uint8array"\|"array"\|"enumArray"\|"enum"\|"json"\|"integer"\|"smallint"\|"tinyint"\|"mediumint"\|"float"\|"double"\|"boolean"\|"decimal"\|"string"\|"uuid"\|"text" &#125;&#62; ; idPrefix?: string ; tableName?: string &#125; ; extends?: &#123; fieldAlias?: Record&#60;string, string \| &#123; forwardArgumentsOnPath: string[] ; path: string &#125;&#62; ; relationship: [ModuleJoinerRelationship](/references/js-client/ModulesSdkTypes/types/internal.internal-1.ModulesSdkTypes.ModuleJoinerRelationship) ; serviceName: string &#125;[] ; isLink?: boolean ; isReadOnlyLink?: boolean ; linkableKeys?: Record&#60;string, string&#62; ; primaryKeys?: string[] ; relationships?: [ModuleJoinerRelationship](/references/js-client/ModulesSdkTypes/types/internal.internal-1.ModulesSdkTypes.ModuleJoinerRelationship)[] ; schema?: string ; serviceName?: string &#125;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&#123; inventory_item_id: string ; location_id: string &#125; & UpdateInventoryLevelInput[]Required

Returns

PromisePromise<InventoryLevelDTO[]>Required

updateReservationItem

Parameters

reservationItemIdstringRequired

Returns

PromisePromise<ReservationItemDTO>Required
Was this section helpful?