import {SCConfigFile, SCThingType} from '@openstapps/core'; /** * This is the default configuration for app and backend * * University specific files can be created with following naming scheme: default-.ts * * To select your university specific configuration which is merged from this default file and your university specific * file, you have to supply the `NODE_APP_INSTANCE` environment variable with your license plate * * To get more information about the meaning of specific fields please have a look at `@openstapps/core` or use your * IDE to read the TSDoc documentation. */ const config: Partial = { app: { campusPolygon: { coordinates: [ [ [ 13.31916332244873, 52.50796756998264, ], [ 13.336544036865234, 52.50796756998264, ], [ 13.336544036865234, 52.51726547416385, ], [ 13.31916332244873, 52.51726547416385, ], [ 13.31916332244873, 52.50796756998264, ], ], ], type: 'Polygon', }, features: { widgets: true, }, menus: [], name: 'StApps - Technische Universität Berlin', privacyPolicyUrl: 'https://stappsbe01.innocampus.tu-berlin.de/_static/privacy.md', settings: [], }, backend: { SCVersion: '1.0.0', hiddenTypes: [ SCThingType.DateSeries, SCThingType.Diff, SCThingType.Floor, ], maxMultiSearchRouteQueries: 5, maxRequestBodySize: 512 * 1024, name: 'Technische Universität Berlin', namespace: '909a8cbc-8520-456c-b474-ef1525f14209', sortableFields: [ { fieldName: 'name', sortTypes: ['ducet'], }, { fieldName: 'type', sortTypes: ['ducet'], }, { fieldName: 'categories', onlyOnTypes: [ SCThingType.AcademicEvent, SCThingType.Building, SCThingType.Catalog, SCThingType.Dish, SCThingType.PointOfInterest, SCThingType.Room, ], sortTypes: ['ducet'], }, { fieldName: 'geo.point.coordinates', onlyOnTypes: [ SCThingType.Building, SCThingType.PointOfInterest, SCThingType.Room, ], sortTypes: ['distance'], }, { fieldName: 'geo.point.coordinates', onlyOnTypes: [ SCThingType.Building, SCThingType.PointOfInterest, SCThingType.Room, ], sortTypes: ['distance'], }, { fieldName: 'inPlace.geo.point.coordinates', onlyOnTypes: [ SCThingType.DateSeries, SCThingType.Dish, SCThingType.Floor, SCThingType.Organization, SCThingType.PointOfInterest, SCThingType.Room, SCThingType.Ticket, ], sortTypes: ['distance'], }, { fieldName: 'offers', onlyOnTypes: [ SCThingType.Dish, ], sortTypes: ['price'], }, ], }, internal: { aggregations: [ { fieldName: 'categories', onlyOnTypes: [ SCThingType.AcademicEvent, SCThingType.Article, SCThingType.Building, SCThingType.Catalog, SCThingType.Dish, SCThingType.PointOfInterest, SCThingType.Room, ], }, { fieldName: 'inPlace.name', onlyOnTypes: [ SCThingType.DateSeries, SCThingType.Dish, SCThingType.Floor, SCThingType.Organization, SCThingType.PointOfInterest, SCThingType.Room, SCThingType.Ticket, ], }, { fieldName: 'academicTerms.acronym', onlyOnTypes: [ SCThingType.AcademicEvent, SCThingType.SportCourse, ], }, { fieldName: 'academicTerm.acronym', onlyOnTypes: [ SCThingType.Catalog, ], }, { fieldName: 'majors', onlyOnTypes: [ SCThingType.AcademicEvent, ], }, { fieldName: 'keywords', onlyOnTypes: [ SCThingType.Article, SCThingType.Book, SCThingType.Message, SCThingType.Video, ], }, { fieldName: 'type', }, ], boostings: { default: [ { factor: 1, fields: { 'academicTerms.acronym': { 'SS 2018': 1.05, 'WS 2018/19': 1.1, }, 'categories': { 'course': 1.08, 'integrated course': 1.08, 'introductory class': 1.05, 'lecture': 1.1, 'seminar': 1.01, 'tutorial': 1.05, }, }, type: SCThingType.AcademicEvent, }, { factor: 1.6, type: SCThingType.Building, }, { factor: 1, fields: { 'categories': { 'cafe': 1.1, 'learn': 1.1, 'library': 1.2, 'restaurant': 1.1, }, }, type: SCThingType.PointOfInterest, }, { factor: 1, fields: { 'categories': { 'main dish': 2, }, }, type: SCThingType.Dish, }, ], place: [ { factor: 2, type: SCThingType.Building, }, { factor: 2, type: SCThingType.PointOfInterest, }, { factor: 2, type: SCThingType.Room, }, ], dining: [ { factor: 1, fields: { 'categories': { 'cafe': 2, 'restaurant': 2, 'canteen': 2, 'student canteen': 2, 'restroom': 1.2, }, }, type: SCThingType.Building, }, { factor: 2, type: SCThingType.Dish, }, ], }, }, uid: 'b-tu', }; export default config;