TypeScript SDK - OverviewΒΆ
The library comes with the typescript SDK which can be used to access Insights Hub APIs.
It implements support for both frontend (browser e.g. angular, react...) and backend development in node.js while supporting different Insights Hub authentication types.
Frontend: - Browser (Session, Cookies)
Backend (node.js): - UserCredentials - AppCredentials - ServiceCredentials - Insights Hub Agents
The SDK implements the Clients for following APIs:
Platform Core APIsΒΆ
Name | SDK - Client | Command |
---|---|---|
Identity Management | β | β |
Resource Access Management1 | β | β |
Oauth Authorization | β | β |
Tenant Management | β | β |
Token Management | β | β |
Message Broker2 (preview) | β | β |
Usage Transparency | β |
1 In the first stage of the availability Resource Access Management must be enabled for the tenant via Insights Hub support team.
2 Message Broker is only available on preview tenants
IoT and StorageΒΆ
Name | SDK - Client | Command |
---|---|---|
IoT File | β | β |
IoT Time Series | β | β |
IoT TS Aggregates (v3, v4) | β | β |
IoT TS Bulk | β | β |
Integrated Data Lake | β | β |
ConnectivityΒΆ
Name | SDK - Client | Command |
---|---|---|
Agent Management | β | β |
MindConnect API | β | β |
Commanding API (sync) | β | β |
OPC UA PubSub | β |
Advanced ServicesΒΆ
Name | SDK - Client | Command |
---|---|---|
Asset Management | β | β |
Event Management | β | β |
Notification | β | β |
WorkOrder Management | β | β |
Visual Flow Creator | β | β |
Analytics ServicesΒΆ
Name | SDK - Client | Command |
---|---|---|
Anomaly Detection | β | β |
Data Exchange | β | β |
Event Analytics | β | β |
Job Manager | β | β |
KPI Calculation | β | β |
Model Management | β | β |
Signal Calculation | β | β |
Signal Validation | β | β |
Spectrum Analysis | β | β |
Trend Prediction | β | β |
MindConnect Open EdgeΒΆ
Name | SDK - Client | Command |
---|---|---|
Device Management | β | β |
Device Status | β | β |
Deployment Workflow | β | β |
Device Configuration | β | β |
Edge App Deployment | β | β |
Edge App Instance Management | β | β |
Firmware Deployment | β | β |
Semantic Data InterconnectΒΆ
Name | SDK - Client | Command |
---|---|---|
SDI Data Management | β | β |
SDI Data Query | β | β |
SDI Semantic Modelling | β | β |
The example below shows how to use the SDK from browser:
// The example shows how to Get Assets from Insights Hub with custom AssetType
// using frontend authentication
// you can pass an instance an Authorizer
// (BrowserAuth, UserAuth, CredentialsAuth, TokenManagerAuth, MindConnectAgent)
// to use different authorization types in Insights Hub or implement the TokenRotation
// interface if you want to provide your own authorizer.
//
// The default constructor uses frontend authorization.
const sdk = new MindSphereSdk();
const am = sdk.GetAssetManagementClient();
const assets = await am.GetAssets({
filter: JSON.stringify({
typeId: {
startsWith: `${tenant}`,
},
}),
});
// you will get fully typed assets in response
If an API is missing (and you would like to contribute a client for it), take a look at contributing to SDK.