mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-05 21:12:52 +00:00
build: update dependencies
This commit is contained in:
committed by
Rainer Killinger
parent
98f02b8830
commit
6ceb763b5a
@@ -1,4 +1,4 @@
|
||||
import { SCConfigFile } from '@openstapps/core';
|
||||
import {SCConfigFile, SCThingType} from '@openstapps/core';
|
||||
|
||||
/**
|
||||
* This is the default configuration for app and backend
|
||||
@@ -51,9 +51,9 @@ const config: Partial<SCConfigFile> = {
|
||||
backend: {
|
||||
SCVersion: '1.0.0',
|
||||
hiddenTypes: [
|
||||
'date series',
|
||||
'diff',
|
||||
'floor',
|
||||
SCThingType.DateSeries,
|
||||
SCThingType.Diff,
|
||||
SCThingType.Floor,
|
||||
],
|
||||
name: 'Technische Universität Berlin',
|
||||
namespace: '909a8cbc-8520-456c-b474-ef1525f14209',
|
||||
@@ -68,27 +68,52 @@ const config: Partial<SCConfigFile> = {
|
||||
},
|
||||
{
|
||||
fieldName: 'categories',
|
||||
onlyOnTypes: ['academic event', 'building', 'catalog', 'dish', 'point of interest', 'room'],
|
||||
onlyOnTypes: [
|
||||
SCThingType.AcademicEvent,
|
||||
SCThingType.Building,
|
||||
SCThingType.Catalog,
|
||||
SCThingType.Dish,
|
||||
SCThingType.PointOfInterest,
|
||||
SCThingType.Room,
|
||||
],
|
||||
sortTypes: ['ducet'],
|
||||
},
|
||||
{
|
||||
fieldName: 'geo.point.coordinates',
|
||||
onlyOnTypes: ['building', 'point of interest', 'room'],
|
||||
onlyOnTypes: [
|
||||
SCThingType.Building,
|
||||
SCThingType.PointOfInterest,
|
||||
SCThingType.Room,
|
||||
],
|
||||
sortTypes: ['distance'],
|
||||
},
|
||||
{
|
||||
fieldName: 'geo.point.coordinates',
|
||||
onlyOnTypes: ['building', 'point of interest', 'room'],
|
||||
onlyOnTypes: [
|
||||
SCThingType.Building,
|
||||
SCThingType.PointOfInterest,
|
||||
SCThingType.Room,
|
||||
],
|
||||
sortTypes: ['distance'],
|
||||
},
|
||||
{
|
||||
fieldName: 'inPlace.geo.point.coordinates',
|
||||
onlyOnTypes: ['date series', 'dish', 'floor', 'organization', 'point of interest', 'room', 'ticket'],
|
||||
onlyOnTypes: [
|
||||
SCThingType.DateSeries,
|
||||
SCThingType.Dish,
|
||||
SCThingType.Floor,
|
||||
SCThingType.Organization,
|
||||
SCThingType.PointOfInterest,
|
||||
SCThingType.Room,
|
||||
SCThingType.Ticket,
|
||||
],
|
||||
sortTypes: ['distance'],
|
||||
},
|
||||
{
|
||||
fieldName: 'offers',
|
||||
onlyOnTypes: ['dish'],
|
||||
onlyOnTypes: [
|
||||
SCThingType.Dish,
|
||||
],
|
||||
sortTypes: ['price'],
|
||||
},
|
||||
],
|
||||
@@ -97,27 +122,55 @@ const config: Partial<SCConfigFile> = {
|
||||
aggregations: [
|
||||
{
|
||||
fieldName: 'categories',
|
||||
onlyOnTypes: ['academic event', 'article', 'building', 'catalog', 'dish', 'point of interest', 'room'],
|
||||
onlyOnTypes: [
|
||||
SCThingType.AcademicEvent,
|
||||
SCThingType.Article,
|
||||
SCThingType.Building,
|
||||
SCThingType.Catalog,
|
||||
SCThingType.Dish,
|
||||
SCThingType.PointOfInterest,
|
||||
SCThingType.Room,
|
||||
],
|
||||
},
|
||||
{
|
||||
fieldName: 'inPlace.name',
|
||||
onlyOnTypes: ['date series', 'dish', 'floor', 'organization', 'point of interest', 'room', 'ticket'],
|
||||
onlyOnTypes: [
|
||||
SCThingType.DateSeries,
|
||||
SCThingType.Dish,
|
||||
SCThingType.Floor,
|
||||
SCThingType.Organization,
|
||||
SCThingType.PointOfInterest,
|
||||
SCThingType.Room,
|
||||
SCThingType.Ticket,
|
||||
],
|
||||
},
|
||||
{
|
||||
fieldName: 'academicTerms.acronym',
|
||||
onlyOnTypes: ['academic event', 'sport course'],
|
||||
onlyOnTypes: [
|
||||
SCThingType.AcademicEvent,
|
||||
SCThingType.SportCourse,
|
||||
],
|
||||
},
|
||||
{
|
||||
fieldName: 'academicTerm.acronym',
|
||||
onlyOnTypes: ['catalog'],
|
||||
onlyOnTypes: [
|
||||
SCThingType.Catalog,
|
||||
],
|
||||
},
|
||||
{
|
||||
fieldName: 'majors',
|
||||
onlyOnTypes: ['academic event'],
|
||||
onlyOnTypes: [
|
||||
SCThingType.AcademicEvent,
|
||||
],
|
||||
},
|
||||
{
|
||||
fieldName: 'keywords',
|
||||
onlyOnTypes: ['article', 'book', 'message', 'video'],
|
||||
onlyOnTypes: [
|
||||
SCThingType.Article,
|
||||
SCThingType.Book,
|
||||
SCThingType.Message,
|
||||
SCThingType.Video,
|
||||
],
|
||||
},
|
||||
{
|
||||
fieldName: 'type',
|
||||
@@ -140,11 +193,11 @@ const config: Partial<SCConfigFile> = {
|
||||
'tutorial': 1.05,
|
||||
},
|
||||
},
|
||||
type: 'academic event',
|
||||
type: SCThingType.AcademicEvent,
|
||||
},
|
||||
{
|
||||
factor: 1.6,
|
||||
type: 'building',
|
||||
type: SCThingType.Building,
|
||||
},
|
||||
{
|
||||
factor: 1,
|
||||
@@ -156,7 +209,7 @@ const config: Partial<SCConfigFile> = {
|
||||
'restaurant': 1.1,
|
||||
},
|
||||
},
|
||||
type: 'point of interest',
|
||||
type: SCThingType.PointOfInterest,
|
||||
},
|
||||
{
|
||||
factor: 1,
|
||||
@@ -165,7 +218,7 @@ const config: Partial<SCConfigFile> = {
|
||||
'main dish': 2,
|
||||
},
|
||||
},
|
||||
type: 'dish',
|
||||
type: SCThingType.Dish,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ElasticsearchConfigFile } from '../src/storage/elasticsearch/Elasticsearch';
|
||||
import {ElasticsearchConfigFile} from '../src/storage/elasticsearch/common';
|
||||
|
||||
/**
|
||||
* A partial type which is recursive
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ElasticsearchConfigFile } from '../src/storage/elasticsearch/common';
|
||||
import {ElasticsearchConfigFile} from '../src/storage/elasticsearch/common';
|
||||
|
||||
/**
|
||||
* This is the default configuration for elasticsearch (a database)
|
||||
|
||||
Reference in New Issue
Block a user