From da0507ee341af75cd15dddeeb3f4cbe08899434c Mon Sep 17 00:00:00 2001 From: Karl-Philipp Wulfert Date: Tue, 14 May 2019 16:59:01 +0200 Subject: [PATCH] fix: add thing without references, split thing References #69 --- src/core/Thing.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/core/Thing.ts b/src/core/Thing.ts index 207785a9..dacab373 100644 --- a/src/core/Thing.ts +++ b/src/core/Thing.ts @@ -49,9 +49,9 @@ export enum SCThingType { } /** - * A thing + * A thing without references */ -export interface SCThing { +export interface SCThingWithoutReferences { /** * Alternate names of the thing */ @@ -72,10 +72,6 @@ export interface SCThing { * @minLength 1 */ name: string; - /** - * Origin of the thing - */ - origin: SCThingRemoteOrigin | SCThingUserOrigin; /** * Translations of specific values of the object * @@ -96,6 +92,16 @@ export interface SCThing { url?: string; } +/** + * A thing + */ +export interface SCThing extends SCThingWithoutReferences { + /** + * Origin of the thing + */ + origin: SCThingRemoteOrigin | SCThingUserOrigin; +} + /** * Possible types of an origin */