From f549d1d6febf665f70d744c451fd3e9280a80a96 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Tue, 5 Sep 2023 17:42:24 +0200 Subject: [PATCH] refactor: fix lint warnings --- .../src/util/asset-interface-description.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/packages/td-tools/src/util/asset-interface-description.ts b/packages/td-tools/src/util/asset-interface-description.ts index bf4e3780e..db9f76ef7 100644 --- a/packages/td-tools/src/util/asset-interface-description.ts +++ b/packages/td-tools/src/util/asset-interface-description.ts @@ -55,18 +55,6 @@ interface SubmodelInformation { endpointMetadataArray: Array>; } -// TODO can/shall we define als AAS/AID contructs? Difficult since idShort and value array is used *everywhere* -interface EndpointMetadata { - idShort: "EndpointMetadata"; - value: Array; - modelType: "SubmodelElementCollection"; -} - -interface EndpointMetadataValue { - idShort: string; // base, contentType, securityDefinitions -} - -const noSecSS: SecurityScheme = { scheme: "nosec" }; const noSecName = 0 + "_sc"; export class AssetInterfaceDescriptionUtil { @@ -423,6 +411,7 @@ export class AssetInterfaceDescriptionUtil { thing.securityDefinitions = this.getSecurityDefinitionsFromEndpointMetadata(endpointMetadata); thing.security = this.getSecurityFromEndpointMetadata(endpointMetadata); // iterate over securitySchemes + // eslint-disable-next-line unused-imports/no-unused-vars for (const [key, value] of Object.entries(thing.securityDefinitions)) { // console.log(key, value); // TODO we could change the name to avoid name collisions. Shall we do so?