Rename files/classes to their exported name

This commit is contained in:
Daniel Kluge
2023-11-23 13:27:13 +01:00
parent 376312aae6
commit 63c6ad2b49
4 changed files with 11 additions and 11 deletions
@@ -12,7 +12,7 @@ export type OnEventCallback = (response: any) => void
* This should be used as base class for your own connectors. * This should be used as base class for your own connectors.
* @public * @public
*/ */
export default abstract class InterfaceConnectionObject<ConfigInterface> { export default abstract class AbstractConnectionObject<ConfigInterface> {
/** /**
* A name for your connector. * A name for your connector.
* @public * @public
@@ -8,7 +8,7 @@ import type { OnRequestCallback } from "./types/requests";
* @typeParam ConfigInterface - The config interface for your interface server. * @typeParam ConfigInterface - The config interface for your interface server.
* @public * @public
*/ */
export default abstract class AASInterfaceServer<ConfigInterface> { export default abstract class AbstractInterfaceServer<ConfigInterface> {
/** /**
* A name for your interface server. * A name for your interface server.
* @remarks * @remarks
+2 -2
View File
@@ -1,6 +1,6 @@
export { default as MultiMessageBroker } from "./multimessageBroker"; export { default as MultiMessageBroker } from "./multimessageBroker";
export { default as AbstractConnectionObject } from "./interfaceConnectionObject"; export { default as AbstractConnectionObject } from "./abstractConnectionObject";
export { default as AbstractInterfaceServer } from "./server"; export { default as AbstractInterfaceServer } from "./abstractInterfaceServer";
export { default as AIMCMapper } from "./AIMCMapper"; export { default as AIMCMapper } from "./AIMCMapper";
export * as Types from "./types"; export * as Types from "./types";
+7 -7
View File
@@ -1,7 +1,7 @@
import { types } from "@aas-core-works/aas-core3.0-typescript"; import { types } from "@aas-core-works/aas-core3.0-typescript";
import type AASInterfaceServer from "./server"; import type AbstractInterfaceServer from "./abstractInterfaceServer";
import type { Request } from "./types/requests"; import type { Request } from "./types/requests";
import type InterfaceConnectionObject from "interfaceConnectionObject"; import type AbstractConnectionObject from "./abstractConnectionObject";
import AIMCMapper from "./AIMCMapper"; import AIMCMapper from "./AIMCMapper";
import AIDParser from "./parser/AIDParser"; import AIDParser from "./parser/AIDParser";
import { EndpointMetadata } from "types/aidConf"; import { EndpointMetadata } from "types/aidConf";
@@ -12,18 +12,18 @@ type AASRegistration = {
} }
type AASRegistrationPrepared = AASRegistration & { type AASRegistrationPrepared = AASRegistration & {
serverInstances: AASInterfaceServer<any>[]; serverInstances: AbstractInterfaceServer<any>[];
connectorInterfaces: InterfaceConnectionObject<any>[]; connectorInterfaces: AbstractConnectionObject<any>[];
mappingConfiguration: AIMCMapper; mappingConfiguration: AIMCMapper;
} }
type ServerInterfaceEntry<ConfigInterface> = { type ServerInterfaceEntry<ConfigInterface> = {
serverInterface: typeof AASInterfaceServer<ConfigInterface>, serverInterface: typeof AbstractInterfaceServer<ConfigInterface>,
config: ConfigInterface config: ConfigInterface
} }
type InterfaceConnectionEntry<ConfigInterface> = { type InterfaceConnectionEntry<ConfigInterface> = {
interfaceConnection: typeof InterfaceConnectionObject<ConfigInterface>, interfaceConnection: typeof AbstractConnectionObject<ConfigInterface>,
config: ConfigInterface config: ConfigInterface
} }
@@ -99,7 +99,7 @@ export default class MultiMessageBroker {
/** /**
* Prepare the broker. * Prepare the broker.
* @remarks * @remarks
* This will create instances of the {@link AASInterfaceServer} and {@link InterfaceConnectionObject} classes. * This will create instances of the {@link AbstractInterfaceServer} and {@link AbstractConnectionObject} classes.
*/ */
public prepare(): void { public prepare(): void {
for (const registration of this.aasRegistrations) { for (const registration of this.aasRegistrations) {