Skip to main content

GraphQL Asset Summary

Released asset summaries in the GraphQL API.

The new assetSummary field supports obtaining unique counts of commonly used asset fields like brand, model, criticality, types, etc. It accepts the same AssetFiltersInput as the assets search field, so they can easily be combined if needed.

➕ GQL: Query.assetSummary

See all relevant GQL documentation

trackunit/ui-icons v0.0.76 - new format for icons

[Breaking change] In this version of our App SDK a new format was introduced for icons, which require an update of jest configurations in extensions that use this library.

Extensions created with @trackunit/iris-app@0.0.366 should already have the required configuration.

Add the following entries to the moduleNameMapper array of jest.config.ts in all relevant libraries.

'@trackunit/ui-icons/icons-sprite-outline.svg': 'jest-transform-stub',
'@trackunit/ui-icons/icons-sprite-solid.svg': 'jest-transform-stub',

The end result should look like the following.

export default {
displayName: 'extension',
preset: '../../jest.preset.js',
transform: {
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest',
'^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/react/babel'] }],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/libs/extension',
moduleNameMapper: {
'@trackunit/css-core': 'jest-transform-stub',
'@trackunit/ui-icons/icons-sprite-outline.svg': 'jest-transform-stub',
'@trackunit/ui-icons/icons-sprite-solid.svg': 'jest-transform-stub',
},
};

trackunit/iris-app v0.0.367 - renamed publishApp to submitApp

[Breaking change] In this version of our App SDK we have renamed publishApp to submitApp to avoid confusion about when an app was actually made public. This change means that for existing apps you should open up the project.json file and change:

"publishApp": {
"executor": "@trackunit/iris-app:publish",

To now refer to the submit executor:

"submitApp": {
"executor": "@trackunit/iris-app:submit",

GraphQL API

Released stable version of GraphQL API.

The GraphQL API offers more flexible queries than the Trackunit REST APIs and only retrieves the data needed. Making it easier to quickly retrieve the data needed for your application. With GraphQL, you construct queries and mutations to fetch or modify data. Unlike REST APIs, which use multiple endpoints, GraphQL uses a single endpoint to handle all requests.

➕ Trackunit Iris GraphQL API

See all relevant GQL documentation

Locations API v1

Released stable version v1 of Location API.

Discover the power of our Location API, your key to effortlessly accessing and tracking real-time GPS coordinates for your entire fleet of connected assets. With two convenient endpoints at your disposal, you can choose to retrieve precise location snapshots for a specific asset or access a paginated list containing all your assets.

Below a list of all available endpoints:

➕ GET: /location/v1/locations/{assetId}

Get location

➕ GET: /location/v1/locations

Get locations

Assets API v1

Released stable version v1 of Assets API.

Discover the power of our Assets API, your key to manage the asset domain. By leveraging the Assets API, developers can easily onboard and offboard assets to Trackunit Iris and get all assets in a fleet as well as update specifications for an asset. This API also allows to manage assets across accounts by enabling the share, transfer, unshare and remove visibility actions. For more information, see the documentation of the endpoints.

Below a list of all available endpoints:

➕ GET: /asset/v1/assets

Get asset

➕ GET: /asset/v1/assets

Get assets

➕ POST: /asset/v1/assets/onboard

Onboard asset

➕ POST: /asset/v1/assets/{assetId}/offboard

Offboard asset

➕ PATCH: /asset/v1/assets/{assetId}

Update asset