Catalog items

circle-exclamation

Operations and types for managing catalog items - the configurable lookup entries.

Queries

catalog

Retrieves a catalog by its ID.

catalog(id: ID!): Catalog

Arguments

Name
Type
Description

id

ID!

The ID of the catalog to retrieve.

Output types:

chevron-rightCataloghashtag

A catalog definition that contains catalog items. Catalogs are themselves catalog items.

Implements: CatalogItem, Node, Versioned, Titled

Field
Type
Description

id

ID!

A globally unique identifier.

version

Int!

The version number for optimistic locking.

title

String!

The human-readable display name. Can be localized.

code

Code!

A machine-readable code, unique within the catalog scope.

order

Int!

The display order within the same level or category.

catalog

Self-reference for the meta-catalog.

organization

The organization that owns this item. Null for system items.

meta

Metadata about this item including description, origin, and display properties.

module

The module this catalog is associated with.

items

The items in this catalog.

chevron-rightOrganization (entity)hashtag

An organization in the hierarchy that owns entities and users.

Implements: Node, Versioned, Titled

Field
Type
Description

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.

features

The feature flags enabled for this organization.

parent

The parent organization in the hierarchy. Null for root organizations.

children

The child organizations.

members

The members of this organization.

devices

The devices owned by this organization.

assets

The assets owned by this organization.

geoObjects

The geographic objects owned by this organization.

schedules

The schedules owned by this organization.


catalogs

Lists catalogs for an organization.

Arguments

Name
Type
Description

organizationId

ID!

The organization to retrieve catalogs for.

filter

CatalogItemFilter

Filtering options for the returned catalogs.

first

Int

The first n elements from the paginated listarrow-up-right.

after

String

The elements that come after the specified cursorarrow-up-right.

last

Int

The last n elements from the paginated listarrow-up-right.

before

String

The elements that come before the specified cursorarrow-up-right.

orderBy

CatalogItemOrder

The ordering options for the returned catalogs.

Input types:

chevron-rightCatalogItemFilterhashtag

Filtering options for catalog items.

Field
Type
Description

titleContains

String

Partial match on title (case-insensitive contains).

codes

[Code!]

Match any of these codes.

chevron-rightCatalogItemOrderhashtag

Ordering options for catalog items.

Field
Type
Description

field

The field to order by.

direction

The direction to order.

Output types:

chevron-rightCatalogConnectionhashtag

A paginated list of Catalog items.

Implements: Connection

Field
Type
Description

edges

A list of edges.

nodes

A list of nodes in the connection (without edge metadata).

pageInfo

Information about the current page.

total

The total count of items matching the filter.

chevron-rightPageInfo (entity)hashtag

Information about the current page in a paginated connection.

Field
Type
Description

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.


Objects

Catalog

A catalog definition that contains catalog items. Catalogs are themselves catalog items.

Implements: CatalogItem, Node, Versioned, Titled

Field
Type
Description

id

ID!

A globally unique identifier.

version

Int!

The version number for optimistic locking.

title

String!

The human-readable display name. Can be localized.

code

Code!

A machine-readable code, unique within the catalog scope.

order

Int!

The display order within the same level or category.

catalog

Self-reference for the meta-catalog.

organization

The organization that owns this item. Null for system items.

meta

Metadata about this item including description, origin, and display properties.

module

The module this catalog is associated with.

items

The items in this catalog.


CatalogItemMeta

Metadata about a catalog item.

Field
Type
Description

description

String

A description of the catalog item. Can be localized.

origin

The origin indicating how this item was created.

canBeDeleted

Boolean!

Whether this item can be deleted. Returns false if the item has dependencies or is system-managed.

hidden

Boolean!

Whether this item is hidden from regular UI lists.

textColor

HexColorCode

The text color for UI display.

backgroundColor

HexColorCode

The background color for UI display.

icon

String

A relative URL to the icon for this item.


Inputs

CatalogItemFilter

Filtering options for catalog items.

Field
Type
Description

titleContains

String

Partial match on title (case-insensitive contains).

codes

[Code!]

Match any of these codes.


CatalogItemChildrenFilter

Filtering options for catalog item children.

Field
Type
Description

titleContains

String

Partial match on title (case-insensitive contains).


CatalogItemOrder

Ordering options for catalog items.

Field
Type
Description

field

The field to order by.

direction

The direction to order.


CatalogItemMetaInput

Display properties for catalog items.

Field
Type
Description

description

String

The description.

hidden

Boolean

Whether the item is hidden from regular UI lists.

textColor

HexColorCode

The text color for UI display.

backgroundColor

HexColorCode

The background color for UI display.

icon

String

A relative URL to the icon.


CatalogItemDeleteInput

Input for deleting a catalog item.

Field
Type
Description

id

ID!

The catalog item ID to delete.

version

Int!

The current version for optimistic locking.


Enums

CatalogItemOrderField

Fields available for ordering catalog items.

Value
Description

ORDER

Order by display order.

CODE

Order by code.

TITLE

Order by title.

CREATED_AT

Order by creation date and time.


CatalogItemOrigin

The origin of a catalog item, indicating how it was created.

Value
Description

SYSTEM

Predefined by platform. Immutable and available to all organizations.

ORGANIZATION

Created by the current organization.

PARENT_ORGANIZATION

Inherited from a parent organization in the dealer hierarchy.


Interfaces

CatalogItem

A dictionary item that provides reference data for the system.

Implements: Node, Versioned, Titled

Field
Type
Description

id

ID!

A globally unique identifier.

version

Int!

The version number for optimistic locking.

title

String!

The human-readable display name. Can be localized.

code

Code!

A machine-readable code, unique within the catalog scope.

order

Int!

The display order within the same level or category.

catalog

The catalog this item belongs to.

organization

The organization that owns this item. Null for system items.

meta

Metadata about this item including description, origin, and display properties.


HierarchicalCatalogItem

A catalog item that supports parent-child hierarchy.

Field
Type
Description

parent

The parent item in the hierarchy. Null for root items.


Pagination types

CatalogItemConnection

A paginated list of CatalogItem items.

Implements: Connection

Field
Type
Description

edges

A list of edges.

nodes

A list of nodes in the connection (without edge metadata).

pageInfo

Information about the current page.

total

The total count of items matching the filter.


CatalogItemEdge

An edge in the CatalogItem connection.

Implements: Edge

Field
Type
Description

cursor

String!

An opaque cursor for this edge.

node

The catalog item at the end of the edge.


CatalogConnection

A paginated list of Catalog items.

Implements: Connection

Field
Type
Description

edges

A list of edges.

nodes

A list of nodes in the connection (without edge metadata).

pageInfo

Information about the current page.

total

The total count of items matching the filter.


CatalogEdge

An edge in the Catalog connection.

Implements: Edge

Field
Type
Description

cursor

String!

An opaque cursor for this edge.

node

The catalog at the end of the edge.


Last updated

Was this helpful?