mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-04 20:42:52 +00:00
68 lines
3.2 KiB
TypeScript
68 lines
3.2 KiB
TypeScript
import academicEventSchema from 'schema:./things/academic-event.js#SCAcademicEvent';
|
|
import articleSchema from 'schema:./things/article.js#SCArticle';
|
|
import assessmentSchema from 'schema:./things/assessment.js#SCAssessment';
|
|
import bookSchema from 'schema:./things/book.js#SCBook';
|
|
import buildingSchema from 'schema:./things/building.js#SCBuilding';
|
|
import catalogSchema from 'schema:./things/catalog.js#SCCatalog';
|
|
import certificationSchema from 'schema:./things/certification.js#SCCertification';
|
|
import contactPointSchema from 'schema:./things/contact-point.js#SCContactPoint';
|
|
import courseOfStudySchema from 'schema:./things/course-of-study.js#SCCourseOfStudy';
|
|
import dateSeriesSchema from 'schema:./things/date-series.js#SCDateSeries';
|
|
import diffSchema from 'schema:./things/diff.js#SCDiff';
|
|
import dishSchema from 'schema:./things/dish.js#SCDish';
|
|
import favoriteSchema from 'schema:./things/favorite.js#SCFavorite';
|
|
import floorSchema from 'schema:./things/floor.js#SCFloor';
|
|
import idCardSchema from 'schema:./things/id-card.js#SCIdCard';
|
|
import jopPostingSchema from 'schema:./things/job-posting.js#SCJobPosting';
|
|
import messageSchema from 'schema:./things/message.js#SCMessage';
|
|
import organizationSchema from 'schema:./things/organization.js#SCOrganization';
|
|
import periodicalSchema from 'schema:./things/periodical.js#SCPeriodical';
|
|
import personSchema from 'schema:./things/person.js#SCPerson';
|
|
import pointOfInterestSchema from 'schema:./things/point-of-interest.js#SCPointOfInterest';
|
|
import publicationEventSchema from 'schema:./things/publication-event.js#SCPublicationEvent';
|
|
import roomSchema from 'schema:./things/room.js#SCRoom';
|
|
import semesterSchema from 'schema:./things/semester.js#SCSemester';
|
|
import settingSchema from 'schema:./things/setting.js#SCSetting';
|
|
import sportCourseSchema from 'schema:./things/sport-course.js#SCSportCourse';
|
|
import studyModuleSchema from 'schema:./things/study-module.js#SCStudyModule';
|
|
import ticketSchema from 'schema:./things/ticket.js#SCTicket';
|
|
import todoSchema from 'schema:./things/todo.js#SCToDo';
|
|
import tourSchema from 'schema:./things/tour.js#SCTour';
|
|
import videoSchema from 'schema:./things/video.js#SCVideo';
|
|
import {SCThingType} from './things/abstract/thing.js';
|
|
import {JSONSchema7} from 'json-schema';
|
|
|
|
export const thingSchemas: Record<SCThingType, JSONSchema7> = {
|
|
'academic event': academicEventSchema,
|
|
'article': articleSchema,
|
|
'assessment': assessmentSchema,
|
|
'book': bookSchema,
|
|
'building': buildingSchema,
|
|
'catalog': catalogSchema,
|
|
'certification': certificationSchema,
|
|
'contact point': contactPointSchema,
|
|
'course of study': courseOfStudySchema,
|
|
'date series': dateSeriesSchema,
|
|
'diff': diffSchema,
|
|
'dish': dishSchema,
|
|
'favorite': favoriteSchema,
|
|
'floor': floorSchema,
|
|
'id card': idCardSchema,
|
|
'job posting': jopPostingSchema,
|
|
'message': messageSchema,
|
|
'organization': organizationSchema,
|
|
'periodical': periodicalSchema,
|
|
'person': personSchema,
|
|
'point of interest': pointOfInterestSchema,
|
|
'publication event': publicationEventSchema,
|
|
'room': roomSchema,
|
|
'semester': semesterSchema,
|
|
'setting': settingSchema,
|
|
'sport course': sportCourseSchema,
|
|
'study module': studyModuleSchema,
|
|
'ticket': ticketSchema,
|
|
'todo': todoSchema,
|
|
'tour': tourSchema,
|
|
'video': videoSchema,
|
|
};
|