Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion backend/shared/model/north-connector.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ import { SouthConnectorLightDTO } from './south-connector.model';
export const OIBUS_NORTH_CATEGORIES = ['debug', 'api', 'file'] as const;
export type OIBusNorthCategory = (typeof OIBUS_NORTH_CATEGORIES)[number];

export const OIBUS_NORTH_TYPES = ['azure-blob', 'aws-s3', 'console', 'file-writer', 'oianalytics', 'sftp', 'rest'] as const;
export const OIBUS_NORTH_TYPES = [
'azure-blob',
'aws-s3',
'console',
'file-writer',
'metroscope-lithium',
'oianalytics',
'sftp',
'rest'
] as const;
export type OIBusNorthType = (typeof OIBUS_NORTH_TYPES)[number];

export interface NorthType {
Expand Down
10 changes: 10 additions & 0 deletions backend/shared/model/north-settings.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ export interface NorthFileWriterSettings {
suffix: string | null;
}

export interface NorthMetroscopeLithiumSettings {
endpoint: string;
apiKey: string | null;
sourceId: string;
group: string;
label: string | null;
timeout: number;
}

export interface NorthOIAnalyticsSettings {
useOiaModule: boolean;
timeout: number;
Expand Down Expand Up @@ -118,6 +127,7 @@ export type NorthSettings =
| NorthAzureBlobSettings
| NorthConsoleSettings
| NorthFileWriterSettings
| NorthMetroscopeLithiumSettings
| NorthOIAnalyticsSettings
| NorthRESTSettings
| NorthSFTPSettings;
65 changes: 65 additions & 0 deletions backend/src/north/north-metroscope-lithium/manifest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import { NorthConnectorManifest } from '../../../shared/model/north-connector.model';

const manifest: NorthConnectorManifest = {
id: 'metroscope-lithium',
category: 'api',
modes: {
files: false,
points: true
},
settings: [
{
key: 'endpoint',
type: 'OibText',
newRow: true,
translationKey: 'north.metroscope-lithium.endpoint',
defaultValue: 'https://lithium.metroscope.io/api/open/import',
displayInViewMode: true,
validators: [{ key: 'required' }]
},
{
key: 'apiKey',
type: 'OibSecret',
translationKey: 'north.metroscope-lithium.api-key',
defaultValue: '',
displayInViewMode: false
},
{
key: 'sourceId',
type: 'OibText',
translationKey: 'north.metroscope-lithium.source-id',
defaultValue: 'oibus',
displayInViewMode: true,
validators: [{ key: 'required' }],
class: 'col-6'
},
{
key: 'group',
type: 'OibText',
translationKey: 'north.metroscope-lithium.group',
defaultValue: 'cycle',
displayInViewMode: true,
validators: [{ key: 'required' }],
class: 'col-6'
},
{
key: 'label',
type: 'OibText',
translationKey: 'north.metroscope-lithium.label',
defaultValue: '',
displayInViewMode: true,
class: 'col-6'
},
{
key: 'timeout',
type: 'OibNumber',
translationKey: 'north.metroscope-lithium.timeout',
defaultValue: 30,
unitLabel: 's',
validators: [{ key: 'required' }],
class: 'col-6'
}
]
};

export default manifest;
Loading