mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 00:52:55 +00:00
refactor: refactor SCThingTypes from union-type to enum. SCThingType-type-attributes are now string-type-attributes.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user