mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 08:02:55 +00:00
feat: use tag @validatable to mark schema types
This commit is contained in:
@@ -49,6 +49,11 @@ export interface SCAcademicEventWithoutReferences
|
||||
type: SCThingType.AcademicEvent;
|
||||
}
|
||||
|
||||
/**
|
||||
* An academic event
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCAcademicEvent extends SCEvent, SCAcademicEventWithoutReferences {
|
||||
/**
|
||||
* Translated fields of an academic event
|
||||
|
||||
@@ -50,6 +50,8 @@ export interface SCArticleWithoutReferences
|
||||
|
||||
/**
|
||||
* An article
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCArticle extends SCCreativeWork, SCArticleWithoutReferences {
|
||||
/**
|
||||
|
||||
@@ -54,6 +54,8 @@ export interface SCBookWithoutReferences extends SCCreativeWorkWithoutReferences
|
||||
|
||||
/**
|
||||
* A book
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCBook extends SCCreativeWork, SCBookWithoutReferences {
|
||||
/**
|
||||
|
||||
@@ -56,6 +56,11 @@ export interface SCBuildingWithoutReferences
|
||||
type: SCThingType.Building;
|
||||
}
|
||||
|
||||
/**
|
||||
* A building
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCBuilding extends SCBuildingWithoutReferences {
|
||||
/**
|
||||
* Type of the building
|
||||
|
||||
@@ -37,6 +37,8 @@ export interface SCCatalogWithoutReferences
|
||||
|
||||
/**
|
||||
* A catalog
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCCatalog extends SCCatalogWithoutReferences {
|
||||
/**
|
||||
|
||||
@@ -61,6 +61,8 @@ export interface SCCourseOfStudiesWithoutReferences extends
|
||||
|
||||
/**
|
||||
* A course of studies
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCCourseOfStudies extends SCCourseOfStudiesWithoutReferences {
|
||||
/**
|
||||
|
||||
@@ -73,6 +73,8 @@ export interface SCDateSeriesWithoutReferences
|
||||
|
||||
/**
|
||||
* A date series
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCDateSeries extends SCDateSeriesWithoutReferences, SCThingInPlace {
|
||||
/**
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import * as jsonpatch from 'json-patch';
|
||||
import {SCThingsWithoutDiff} from '../Classes';
|
||||
import {SCThing, SCThingMeta, SCThingType} from '../Thing';
|
||||
import {SCISO8601Date} from '../types/Time';
|
||||
@@ -43,6 +44,8 @@ export interface SCDiffWithoutReferences extends SCThing {
|
||||
|
||||
/**
|
||||
* A diff
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCDiff extends SCDiffWithoutReferences {
|
||||
/**
|
||||
|
||||
@@ -66,6 +66,8 @@ export interface SCDishWithoutReferences
|
||||
|
||||
/**
|
||||
* A dish
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCDish extends SCDishWithoutReferences, SCThingInPlace {
|
||||
/**
|
||||
|
||||
@@ -50,6 +50,8 @@ export interface SCFavoriteWithoutReferences extends SCThing {
|
||||
|
||||
/**
|
||||
* A favorite
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCFavorite extends SCFavoriteWithoutReferences {
|
||||
/**
|
||||
|
||||
@@ -46,6 +46,8 @@ export interface SCFloorWithoutReferences extends SCThing {
|
||||
|
||||
/**
|
||||
* A floor
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCFloor extends SCFloorWithoutReferences, SCThingInPlace {
|
||||
/**
|
||||
|
||||
@@ -54,6 +54,8 @@ export interface SCMessageWithoutReferences extends SCCreativeWorkWithoutReferen
|
||||
|
||||
/**
|
||||
* A message
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCMessage extends SCCreativeWork, SCMessageWithoutReferences {
|
||||
/**
|
||||
|
||||
@@ -27,6 +27,8 @@ export interface SCOrganizationWithoutReferences extends SCThing {
|
||||
|
||||
/**
|
||||
* An organization
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCOrganization extends SCOrganizationWithoutReferences, SCThingInPlace {
|
||||
/**
|
||||
|
||||
@@ -99,6 +99,8 @@ export interface SCPersonWithoutReferences extends SCThing {
|
||||
|
||||
/**
|
||||
* A person
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCPerson extends SCPersonWithoutReferences {
|
||||
/**
|
||||
|
||||
@@ -42,6 +42,8 @@ export interface SCPointOfInterestWithoutReferences
|
||||
|
||||
/**
|
||||
* A point of interest
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCPointOfInterest extends SCPointOfInterestWithoutReferences, SCThingInPlace {
|
||||
/**
|
||||
|
||||
@@ -70,6 +70,8 @@ export interface SCRoomWithoutReferences
|
||||
|
||||
/**
|
||||
* A room
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCRoom extends SCRoomWithoutReferences, SCThingInPlace {
|
||||
/**
|
||||
|
||||
@@ -34,6 +34,8 @@ export interface SCSemesterWithoutReferences extends SCAcademicTermWithoutRefere
|
||||
|
||||
/**
|
||||
* A semester
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCSemester extends SCSemesterWithoutReferences {
|
||||
/**
|
||||
|
||||
@@ -13,11 +13,12 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {
|
||||
SCThingWithCategoriesSpecificValues, SCThingWithCategoriesTranslatableProperties,
|
||||
SCThingWithCategoriesSpecificValues,
|
||||
SCThingWithCategoriesTranslatableProperties,
|
||||
SCThingWithCategoriesWithoutReferences,
|
||||
} from '../base/ThingWithCategories';
|
||||
import {SCThingMeta, SCThingType} from '../Thing';
|
||||
import { SCTranslations } from '../types/i18n';
|
||||
import {SCTranslations} from '../types/i18n';
|
||||
|
||||
export type SCSettingCategories = string;
|
||||
|
||||
@@ -56,6 +57,8 @@ export type SCSettingInputType = SCSettingSingleChoice
|
||||
|
||||
/**
|
||||
* A setting with references
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCSetting extends SCSettingWithoutReferences {
|
||||
/**
|
||||
|
||||
@@ -27,6 +27,8 @@ export interface SCSportCourseWithoutReferences extends SCEventWithoutReferences
|
||||
|
||||
/**
|
||||
* A sport course
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCSportCourse extends SCEvent, SCSportCourseWithoutReferences {
|
||||
/**
|
||||
|
||||
@@ -43,6 +43,8 @@ export interface SCTicketWithoutReferences extends SCThing {
|
||||
|
||||
/**
|
||||
* A ticket
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCTicket extends SCTicketWithoutReferences, SCThingInPlace {
|
||||
/**
|
||||
|
||||
@@ -36,6 +36,8 @@ export interface SCTourWithoutReferences extends SCThing {
|
||||
|
||||
/**
|
||||
* A tour
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCTour extends SCTourWithoutReferences {
|
||||
/**
|
||||
|
||||
@@ -99,6 +99,8 @@ export interface SCVideoTrack {
|
||||
|
||||
/**
|
||||
* A video
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCVideo extends SCCreativeWork, SCVideoWithoutReferences {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user