refactor: every indexable thing can be a favorite

This commit is contained in:
Jovan Krunić
2021-07-27 11:11:45 +02:00
committed by Rainer Killinger
parent 2cf1027796
commit 4ab8770fbc
7 changed files with 72 additions and 47 deletions

View File

@@ -72,7 +72,7 @@ export const SCClasses: { [K in SCThingType]: object } = {
'video': SCVideoMeta,
};
export type SCThingsWithoutDiff =
export type SCIndexableThings =
SCAcademicEvent
| SCArticle
| SCBook
@@ -82,7 +82,6 @@ export type SCThingsWithoutDiff =
| SCCourseOfStudies
| SCDateSeries
| SCDish
| SCFavorite
| SCFloor
| SCMessage
| SCOrganization
@@ -90,7 +89,6 @@ export type SCThingsWithoutDiff =
| SCPointOfInterest
| SCRoom
| SCSemester
| SCSetting
| SCSportCourse
| SCStudyModule
| SCTicket
@@ -102,8 +100,8 @@ export type SCThingsWithoutDiff =
* An object that exists in the StAppsCore
*/
export type SCThings =
SCThingsWithoutDiff
| SCDiff;
SCIndexableThings
| SCDiff | SCFavorite | SCSetting;
/**
* A field of a thing