diff --git a/clients/soa/js/src/peer/webrtc-connection.ts b/clients/soa/js/src/peer/webrtc-connection.ts index 4f11b3c8..c16fccab 100644 --- a/clients/soa/js/src/peer/webrtc-connection.ts +++ b/clients/soa/js/src/peer/webrtc-connection.ts @@ -17,29 +17,29 @@ import {PeerConnection, PeerConnectionEvents, ServiceConfig} from './connection' const log = console; log.trace = log.log; -interface RTCSignalingCandidateMessage extends SignalingMessage { +export interface RTCSignalingCandidateMessage extends SignalingMessage { signalingType: 'candidate'; content: RTCIceCandidate; } -interface RTCSignalingOfferMessage extends SignalingMessage { +export interface RTCSignalingOfferMessage extends SignalingMessage { signalingType: 'offer'; content: RTCSessionDescriptionInit; } -interface RTCSignalingAnswerMessage extends SignalingMessage { +export interface RTCSignalingAnswerMessage extends SignalingMessage { signalingType: 'answer'; content: RTCSessionDescriptionInit; } export type RTCSignalingMessage = RTCSignalingCandidateMessage | RTCSignalingOfferMessage | RTCSignalingAnswerMessage; -enum WebRTCRole { +export enum WebRTCRole { Callee, Caller, } -enum ConnectionState { +export enum ConnectionState { Unitintialized, Calling, WaitingForCall, @@ -361,7 +361,7 @@ export class WebRTCPeerConnection extends TypedEmitter imp }); if (sectionIdx!== -1) { const modifiedSection = sections[sectionIdx].replace(msidRegex, '$1' + label); - + if (modifiedSection===sections[sectionIdx]) { log.error('WebRTCPeerConnection.modifySDP no msid found for transeiver', {transeiver}); } else { diff --git a/clients/soa_services/electricalConnection/js/src/gpio/connectionInterface.ts b/clients/soa_services/electricalConnection/js/src/gpio/connectionInterface.ts index d5c3a0b1..8b473746 100644 --- a/clients/soa_services/electricalConnection/js/src/gpio/connectionInterface.ts +++ b/clients/soa_services/electricalConnection/js/src/gpio/connectionInterface.ts @@ -27,12 +27,12 @@ export enum GPIOState { 'WeakHigh' = 'weakH', } -interface GPIOInterfaceData { +export interface GPIOInterfaceData { driver: string; state: GPIOState; } -type SignalChangeEvent = { +export type SignalChangeEvent = { state: GPIOState; oldState: GPIOState; }; diff --git a/clients/soa_services/electricalConnection/js/src/service.ts b/clients/soa_services/electricalConnection/js/src/service.ts index aaf436d6..44a5725e 100644 --- a/clients/soa_services/electricalConnection/js/src/service.ts +++ b/clients/soa_services/electricalConnection/js/src/service.ts @@ -6,13 +6,13 @@ import {DataChannel} from '@cross-lab-project/soa-client'; import {PeerConnection} from '@cross-lab-project/soa-client'; import Queue from 'queue'; -interface ConnectionInterfaceConfigurationUpstream extends ConnectionInterfaceConfiguration { +export interface ConnectionInterfaceConfigurationUpstream extends ConnectionInterfaceConfiguration { interfaceType: string; interfaceId: string; busId: string; } -interface ElectricalServiceMessage { +export interface ElectricalServiceMessage { busId: string; data: unknown; } @@ -30,11 +30,11 @@ function checkConfig(config: ServiceConfiguration): asserts config is Electrical } } -interface NewInterfaceEvent { +export interface NewInterfaceEvent { connectionInterface: ConnectionInterface; } -interface ElectricalConnectionServiceEvents { +export interface ElectricalConnectionServiceEvents { newInterface: (event: NewInterfaceEvent) => void; } diff --git a/clients/soa_services/electricalConnection/js/src/spi/connectionInterface.ts b/clients/soa_services/electricalConnection/js/src/spi/connectionInterface.ts index 038bb217..e756f21c 100644 --- a/clients/soa_services/electricalConnection/js/src/spi/connectionInterface.ts +++ b/clients/soa_services/electricalConnection/js/src/spi/connectionInterface.ts @@ -44,9 +44,9 @@ export interface SPIMasterInterfaceEvents extends ConnectionInterfaceEvents { slaveSelectChanged(event: ReceiveByteEvent): void; } -type SPIInterfaceDataType = "SendByte" | "PrepareByte" | "SetSlaveSelect"; +export type SPIInterfaceDataType = "SendByte" | "PrepareByte" | "SetSlaveSelect"; -interface SPIInterfaceData { +export interface SPIInterfaceData { type: SPIInterfaceDataType; byte?: number; value?: boolean; @@ -63,7 +63,7 @@ export class SPISlaveInterface super(); this.configuration = configuration; } - + retransmit(): void { throw new Error("Method not implemented."); } @@ -97,7 +97,7 @@ export class SPIMasterInterface super(); this.configuration = configuration; } - + retransmit(): void { throw new Error("Method not implemented."); } diff --git a/clients/soa_services/electricalConnection/js/src/twi/connectionInterface.ts b/clients/soa_services/electricalConnection/js/src/twi/connectionInterface.ts index cad37cb9..dc23c722 100644 --- a/clients/soa_services/electricalConnection/js/src/twi/connectionInterface.ts +++ b/clients/soa_services/electricalConnection/js/src/twi/connectionInterface.ts @@ -31,9 +31,9 @@ export interface TWIMasterInterfaceEvents extends ConnectionInterfaceEvents { prepareByte(event: ReceiveByteEvent): void; } -type TWIInterfaceDataType = "SendByte" | "PrepareByte" | "SendAddress"; +export type TWIInterfaceDataType = "SendByte" | "PrepareByte" | "SendAddress"; -interface TWIInterfaceData { +export interface TWIInterfaceData { type: TWIInterfaceDataType; byte?: number; address?: number; @@ -51,7 +51,7 @@ export class TWIMasterInterface super(); this.configuration = configuration; } - + retransmit(): void { throw new Error("Method not implemented."); } @@ -85,7 +85,7 @@ export class TWISlaveInterface super(); this.configuration = configuration; } - + retransmit(): void { throw new Error("Method not implemented."); } diff --git a/clients/soa_services/file/js/src/file_service.ts b/clients/soa_services/file/js/src/file_service.ts index 54f9160a..b01cde6b 100644 --- a/clients/soa_services/file/js/src/file_service.ts +++ b/clients/soa_services/file/js/src/file_service.ts @@ -55,7 +55,7 @@ export class FileService__Producer implements Service { } } -interface FileService__ConsumerEvents { +export interface FileService__ConsumerEvents { file: (event: FileServiceEvent) => void; } diff --git a/clients/soa_services/message/js/src/message_service.ts b/clients/soa_services/message/js/src/message_service.ts index 1c492498..ca7fd050 100644 --- a/clients/soa_services/message/js/src/message_service.ts +++ b/clients/soa_services/message/js/src/message_service.ts @@ -54,7 +54,7 @@ export class MessageService__Producer implements Service { } } -interface MessageService__ConsumerEvents { +export interface MessageService__ConsumerEvents { message: (event: MessageServiceEvent) => void; }