mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 01:22:54 +00:00
refactor: remodel entities for library search and results
This commit is contained in:
committed by
Jovan Krunić
parent
4ab8770fbc
commit
2dfb64bafd
@@ -39,6 +39,8 @@ import {SCTicket, SCTicketWithoutReferences} from '../src/things/ticket';
|
||||
import {SCToDo, SCToDoWithoutReferences} from '../src/things/todo';
|
||||
import {SCTour, SCTourWithoutReferences} from '../src/things/tour';
|
||||
import {SCVideo, SCVideoWithoutReferences} from '../src/things/video';
|
||||
import {SCPeriodical, SCPeriodicalWithoutReferences} from '../src/things/periodical';
|
||||
import {SCPublicationEvent, SCPublicationEventWithoutReferences} from '../src/things/publication-event';
|
||||
|
||||
// tslint:disable:no-any
|
||||
// tslint:disable:completed-docs
|
||||
@@ -226,6 +228,17 @@ assert<Has<SCOrganizationPropertyTypes, SCThing>>(false);
|
||||
assert<Extends<SCOrganizationWithoutReferences, SCThing>>(false);
|
||||
assert<Extends<SCOrganization, SCThing>>(true);
|
||||
|
||||
/**
|
||||
* Types of properties of SCPeriodical
|
||||
*/
|
||||
type SCPeriodicalPropertyTypes = PropertyTypesNested<SCPeriodical>;
|
||||
assert<NotHas<SCPeriodicalPropertyTypes, SCThingWithoutReferences>>(false);
|
||||
assert<Has<SCPeriodicalPropertyTypes, SCThingWithoutReferences>>(true);
|
||||
assert<NotHas<SCPeriodicalPropertyTypes, SCThing>>(true);
|
||||
assert<Has<SCPeriodicalPropertyTypes, SCThing>>(false);
|
||||
assert<Extends<SCPeriodicalWithoutReferences, SCThing>>(false);
|
||||
assert<Extends<SCPeriodical, SCThing>>(true);
|
||||
|
||||
/**
|
||||
* Types of properties of SCPerson
|
||||
*/
|
||||
@@ -248,6 +261,17 @@ assert<Has<SCPointOfInterestPropertyTypes, SCThing>>(false);
|
||||
assert<Extends<SCPointOfInterestWithoutReferences, SCThing>>(false);
|
||||
assert<Extends<SCPointOfInterest, SCThing>>(true);
|
||||
|
||||
/**
|
||||
* Types of properties of SCPublicationEvent
|
||||
*/
|
||||
type SCPublicationEventPropertyTypes = PropertyTypesNested<SCPublicationEvent>;
|
||||
assert<NotHas<SCPublicationEventPropertyTypes, SCThingWithoutReferences>>(false);
|
||||
assert<Has<SCPublicationEventPropertyTypes, SCThingWithoutReferences>>(true);
|
||||
assert<NotHas<SCPublicationEventPropertyTypes, SCThing>>(true);
|
||||
assert<Has<SCPublicationEventPropertyTypes, SCThing>>(false);
|
||||
assert<Extends<SCPublicationEventWithoutReferences, SCThing>>(false);
|
||||
assert<Extends<SCPublicationEvent, SCThing>>(true);
|
||||
|
||||
/**
|
||||
* Types of properties of SCRoom
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user