Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing soa exports #62

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
12 changes: 6 additions & 6 deletions clients/soa/js/src/peer/webrtc-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -361,7 +361,7 @@ export class WebRTCPeerConnection extends TypedEmitter<PeerConnectionEvents> 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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
8 changes: 4 additions & 4 deletions clients/soa_services/electricalConnection/js/src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -63,7 +63,7 @@ export class SPISlaveInterface
super();
this.configuration = configuration;
}

retransmit(): void {
throw new Error("Method not implemented.");
}
Expand Down Expand Up @@ -97,7 +97,7 @@ export class SPIMasterInterface
super();
this.configuration = configuration;
}

retransmit(): void {
throw new Error("Method not implemented.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -51,7 +51,7 @@ export class TWIMasterInterface
super();
this.configuration = configuration;
}

retransmit(): void {
throw new Error("Method not implemented.");
}
Expand Down Expand Up @@ -85,7 +85,7 @@ export class TWISlaveInterface
super();
this.configuration = configuration;
}

retransmit(): void {
throw new Error("Method not implemented.");
}
Expand Down
2 changes: 1 addition & 1 deletion clients/soa_services/file/js/src/file_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class FileService__Producer implements Service {
}
}

interface FileService__ConsumerEvents {
export interface FileService__ConsumerEvents {
file: (event: FileServiceEvent) => void;
}

Expand Down
2 changes: 1 addition & 1 deletion clients/soa_services/message/js/src/message_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class MessageService__Producer implements Service {
}
}

interface MessageService__ConsumerEvents {
export interface MessageService__ConsumerEvents {
message: (event: MessageServiceEvent) => void;
}

Expand Down