Inventory
Navixy Repository API is a work in progress. This documentation is published for preview purposes only and doesn't reflect a stable release. Structure, field names, and behaviors are subject to change.
Inventory management for device stock, including warehouses, assignments, and device-inventory relationships.
Queries
inventory
Retrieves an inventory by its ID.
inventory(id: ID!): InventoryArguments
id
ID!
The ID of the inventory to retrieve.
Output types:
Inventory
An inventory or warehouse record for device stock management.
Implements: Node, Versioned, Titled
id
ID!
A globally unique identifier. This ID is opaque and should not be parsed by clients.
version
Int!
The version number for optimistic locking. Incremented on each update. Must be provided in update/delete mutations to prevent lost updates.
title
String!
The human-readable display name.
Organization (entity)
An organization in the hierarchy that owns entities and users.
Implements: Node, Versioned, Titled
id
ID!
A globally unique identifier. This ID is opaque and should not be parsed by clients.
version
Int!
The version number for optimistic locking. Incremented on each update. Must be provided in update/delete mutations to prevent lost updates.
title
String!
The human-readable display name.
externalId
String
An external system identifier for integration purposes.
isActive
Boolean!
Whether this organization is active.
inventories
Lists inventories for an organization.
Arguments
organizationId
ID!
The organization to retrieve inventories for.
filter
InventoryFilter
Filtering options for the returned inventories.
orderBy
InventoryOrder
The ordering options for the returned inventories.
Input types:
InventoryFilter
Filtering options for inventories.
titleContains
String
Partial match on title (case-insensitive contains).
Output types:
InventoryConnection
PageInfo (entity)
Information about the current page in a paginated connection.
hasNextPage
Boolean!
Whether more items exist after the current page.
hasPreviousPage
Boolean!
Whether more items exist before the current page.
startCursor
String
The cursor pointing to the first item in the current page.
endCursor
String
The cursor pointing to the last item in the current page.
Mutations
inventoryCreate
Creates a new inventory.
Arguments
input
InventoryCreateInput!
The input fields for creating the inventory.
Input types:
InventoryCreateInput
Input for creating a new inventory.
organizationId
ID!
The organization that will own the inventory.
title
String!
The display name.
Output types:
Inventory (entity)
An inventory or warehouse record for device stock management.
Implements: Node, Versioned, Titled
id
ID!
A globally unique identifier. This ID is opaque and should not be parsed by clients.
version
Int!
The version number for optimistic locking. Incremented on each update. Must be provided in update/delete mutations to prevent lost updates.
title
String!
The human-readable display name.
inventoryUpdate
Updates an existing inventory.
Arguments
input
InventoryUpdateInput!
The input fields for updating the inventory.
Input types:
InventoryUpdateInput
Input for updating an existing inventory.
id
ID!
The inventory ID to update.
version
Int!
The current version for optimistic locking.
title
String
The new display name.
Output types:
Inventory (entity)
An inventory or warehouse record for device stock management.
Implements: Node, Versioned, Titled
id
ID!
A globally unique identifier. This ID is opaque and should not be parsed by clients.
version
Int!
The version number for optimistic locking. Incremented on each update. Must be provided in update/delete mutations to prevent lost updates.
title
String!
The human-readable display name.
inventoryDelete
Deletes an inventory.
Arguments
input
InventoryDeleteInput!
The input fields for deleting the inventory.
Input types:
InventoryDeleteInput
Input for deleting an inventory.
id
ID!
The inventory ID to delete.
version
Int!
The current version for optimistic locking.
Output types:
DeletePayload
The result of a delete mutation.
deletedId
ID!
The ID of the deleted entity.
deviceInventoryLink
Links a device to an inventory.
Arguments
input
DeviceInventoryLinkInput!
The input fields for linking the device.
Input types:
DeviceInventoryLinkInput
Input for linking a device to an inventory. Both device and inventory must belong to the same organization.
deviceId
ID!
The device ID.
inventoryId
ID!
The inventory ID. Must be in the same organization as the device.
Output types:
DeviceInventoryRelation (entity)
A record of a device's assignment to an inventory.
Implements: Node
id
ID!
A globally unique identifier. This ID is opaque and should not be parsed by clients.
assignedAt
DateTime!
The date and time when the device was assigned.
deviceInventoryUnlink
Unlinks a device from an inventory.
Arguments
input
DeviceInventoryUnlinkInput!
The input fields for unlinking the device.
Input types:
DeviceInventoryUnlinkInput
Input for unlinking a device from an inventory.
deviceId
ID!
The device ID to unlink.
Output types:
DeletePayload
The result of a delete mutation.
deletedId
ID!
The ID of the deleted entity.
Objects
DeviceInventoryRelation
A record of a device's assignment to an inventory.
Implements: Node
id
ID!
A globally unique identifier. This ID is opaque and should not be parsed by clients.
assignedAt
DateTime!
The date and time when the device was assigned.
Inventory
An inventory or warehouse record for device stock management.
Implements: Node, Versioned, Titled
id
ID!
A globally unique identifier. This ID is opaque and should not be parsed by clients.
version
Int!
The version number for optimistic locking. Incremented on each update. Must be provided in update/delete mutations to prevent lost updates.
title
String!
The human-readable display name.
InventoryPayload
The result of an inventory mutation.
DeviceInventoryRelationPayload
The result of a device inventory link mutation.
Inputs
DeviceInventoryRelationOrder
Ordering options for device inventory relations.
InventoryFilter
Filtering options for inventories.
titleContains
String
Partial match on title (case-insensitive contains).
InventoryOrder
Ordering options for inventories.
InventoryCreateInput
Input for creating a new inventory.
organizationId
ID!
The organization that will own the inventory.
title
String!
The display name.
InventoryUpdateInput
Input for updating an existing inventory.
id
ID!
The inventory ID to update.
version
Int!
The current version for optimistic locking.
title
String
The new display name.
InventoryDeleteInput
Input for deleting an inventory.
id
ID!
The inventory ID to delete.
version
Int!
The current version for optimistic locking.
DeviceInventoryLinkInput
Input for linking a device to an inventory. Both device and inventory must belong to the same organization.
deviceId
ID!
The device ID.
inventoryId
ID!
The inventory ID. Must be in the same organization as the device.
DeviceInventoryUnlinkInput
Input for unlinking a device from an inventory.
deviceId
ID!
The device ID to unlink.
Enums
DeviceInventoryRelationOrderField
Fields available for ordering device inventory relations.
ASSIGNED_AT
Order by assignment date.
InventoryOrderField
Fields available for ordering inventories.
TITLE
Order by title.
Interfaces
InventoryItem
An object that can be assigned to an inventory.
Implements: Node
id
ID!
A globally unique identifier.
Pagination types
InventoryConnection
A paginated list of Inventory items.
Implements: Connection
InventoryEdge
An edge in the Inventory connection.
Implements: Edge
cursor
String!
An opaque cursor for this edge.
DeviceInventoryRelationConnection
A paginated list of DeviceInventoryRelation items.
Implements: Connection
DeviceInventoryRelationEdge
An edge in the DeviceInventoryRelation connection.
Implements: Edge
cursor
String!
An opaque cursor for this edge.
Last updated
Was this helpful?