refactor: refactor SCThingTypes from union-type to enum. SCThingType-type-attributes are now string-type-attributes.

This commit is contained in:
Michel Jonathan Schmitz
2018-12-05 18:51:28 +01:00
parent 641eff15b8
commit f9056eeb33
25 changed files with 134 additions and 192 deletions

View File

@@ -18,18 +18,13 @@ import {
SCThingThatCanBeOffered,
SCThingThatCanBeOfferedTranslatableProperties,
} from '../base/ThingThatCanBeOffered';
import {SCThingMeta} from '../Thing';
import {SCThingMeta, SCThingType} from '../Thing';
import {SCTranslations} from '../types/i18n';
import {SCISO8601Date, SCISO8601Duration} from '../types/Time';
import {SCAcademicEventWithoutReferences} from './AcademicEvent';
import {SCPersonWithoutReferences} from './Person';
import {SCSportCourseWithoutReferences} from './SportCourse';
/**
* Type of a date series
*/
export type SCDateSeriesType = 'date series';
/**
* Price groups for sport courses
*/
@@ -73,7 +68,7 @@ export interface SCDateSeriesWithoutReferences
/**
* Type of a date series
*/
type: SCDateSeriesType;
type: SCThingType.DateSeries;
}
/**
@@ -99,7 +94,7 @@ export interface SCDateSeries extends SCDateSeriesWithoutReferences, SCThingInPl
/**
* Type of a date series
*/
type: SCDateSeriesType;
type: SCThingType.DateSeries;
}
/**