mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-07 22:12:53 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7462237eb | ||
|
|
b5bd09e40b | ||
|
|
8f66abbb73 | ||
|
|
a0ab72e597 | ||
|
|
b4229aac35 | ||
|
|
824e841dad | ||
|
|
bc3a0f6d11 | ||
|
|
a09aae5d5d |
13
CHANGELOG.md
13
CHANGELOG.md
@@ -1,3 +1,16 @@
|
|||||||
|
# [0.10.0](https://gitlab.com/openstapps/core/compare/v0.9.0...v0.10.0) (2019-02-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add model for requestBodyTooLargeError ([bc3a0f6](https://gitlab.com/openstapps/core/commit/bc3a0f6))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# [0.9.0](https://gitlab.com/openstapps/core/compare/v0.8.0...v0.9.0) (2019-02-14)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [0.8.0](https://gitlab.com/openstapps/core/compare/v0.7.0...v0.8.0) (2019-02-13)
|
# [0.8.0](https://gitlab.com/openstapps/core/compare/v0.7.0...v0.8.0) (2019-02-13)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@openstapps/core",
|
"name": "@openstapps/core",
|
||||||
"version": "0.9.0",
|
"version": "0.11.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -1969,7 +1969,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"minimist": {
|
"minimist": {
|
||||||
"version": "0.0.10",
|
"version": "0.0.10",
|
||||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz",
|
"resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz",
|
||||||
"integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=",
|
"integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=",
|
||||||
"dev": true
|
"dev": true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@openstapps/core",
|
"name": "@openstapps/core",
|
||||||
"version": "0.9.0",
|
"version": "0.11.0",
|
||||||
"description": "StAppsCore - Generalized model of data",
|
"description": "StAppsCore - Generalized model of data",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Model",
|
"Model",
|
||||||
|
|||||||
@@ -101,6 +101,19 @@ export class SCMethodNotAllowedErrorResponse extends SCError {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An error that is returned, when the request body is too large.
|
||||||
|
*/
|
||||||
|
export class SCRequestBodyTooLargeErrorResponse extends SCError {
|
||||||
|
/**
|
||||||
|
* Create a SCRequestBodyTooLargeErrorResponse
|
||||||
|
* @param stack Set to true if a stack trace should be created
|
||||||
|
*/
|
||||||
|
constructor(stack?: boolean) {
|
||||||
|
super('RequestBodyTooLargeError', 'The request body is too large.', 413, stack);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An error that is returned, when to many request are submitted at once
|
* An error that is returned, when to many request are submitted at once
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import {SCAbstractRoute, SCRouteHttpVerbs} from '../../../Route';
|
|||||||
import {
|
import {
|
||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
@@ -38,6 +39,7 @@ export class SCIndexRoute extends SCAbstractRoute {
|
|||||||
this.errorNames = [
|
this.errorNames = [
|
||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
|
|||||||
@@ -17,7 +17,9 @@ import {SCAbstractRoute, SCRouteHttpVerbs} from '../../../../Route';
|
|||||||
import {
|
import {
|
||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
SCNotFoundErrorResponse, SCSyntaxErrorResponse,
|
SCNotFoundErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
} from '../../../errors/ErrorResponse';
|
} from '../../../errors/ErrorResponse';
|
||||||
@@ -39,6 +41,7 @@ export class SCThingUpdateRoute extends SCAbstractRoute {
|
|||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
SCNotFoundErrorResponse,
|
SCNotFoundErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import {
|
|||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
SCNotFoundErrorResponse,
|
SCNotFoundErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
@@ -71,6 +72,7 @@ export class SCBookAvailabilityRoute extends SCAbstractRoute {
|
|||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
SCNotFoundErrorResponse,
|
SCNotFoundErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import {SCISO8601Date} from '../../../types/Time';
|
|||||||
import {
|
import {
|
||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
@@ -69,6 +70,7 @@ export class SCBulkRoute extends SCAbstractRoute {
|
|||||||
this.errorNames = [
|
this.errorNames = [
|
||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import {
|
|||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
SCNotFoundErrorResponse,
|
SCNotFoundErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
@@ -39,6 +40,7 @@ export class SCBulkAddRoute extends SCAbstractRoute {
|
|||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
SCNotFoundErrorResponse,
|
SCNotFoundErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import {
|
|||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
SCNotFoundErrorResponse,
|
SCNotFoundErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
@@ -39,6 +40,7 @@ export class SCBulkDoneRoute extends SCAbstractRoute {
|
|||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
SCNotFoundErrorResponse,
|
SCNotFoundErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import {SCMessage} from '../../../things/Message';
|
|||||||
import {
|
import {
|
||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
@@ -43,6 +44,7 @@ export class SCFeedbackRoute extends SCAbstractRoute {
|
|||||||
this.errorNames = [
|
this.errorNames = [
|
||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
|
|||||||
@@ -13,9 +13,11 @@
|
|||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import {SCAbstractRoute, SCRouteHttpVerbs} from '../../../Route';
|
import {SCAbstractRoute, SCRouteHttpVerbs} from '../../../Route';
|
||||||
|
import {SCMap} from '../../../types/Map';
|
||||||
import {
|
import {
|
||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCTooManyRequestsErrorResponse,
|
SCTooManyRequestsErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
@@ -32,9 +34,7 @@ import {SCSearchQuery} from './SearchRequest';
|
|||||||
*
|
*
|
||||||
* @validatable
|
* @validatable
|
||||||
*/
|
*/
|
||||||
export interface SCMultiSearchRequest {
|
export type SCMultiSearchRequest = SCMap<SCSearchQuery>;
|
||||||
[k: string]: SCSearchQuery;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Route for submission of multiple search requests at once
|
* Route for submission of multiple search requests at once
|
||||||
@@ -45,6 +45,7 @@ export class SCMultiSearchRoute extends SCAbstractRoute {
|
|||||||
this.errorNames = [
|
this.errorNames = [
|
||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCTooManyRequestsErrorResponse,
|
SCTooManyRequestsErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2018 StApps
|
* Copyright (C) 2018-2019 StApps
|
||||||
* This program is free software: you can redistribute it and/or modify it
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
* under the terms of the GNU General Public License as published by the Free
|
* under the terms of the GNU General Public License as published by the Free
|
||||||
* Software Foundation, version 3.
|
* Software Foundation, version 3.
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License along with
|
* You should have received a copy of the GNU General Public License along with
|
||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
import {SCMap} from '../../../types/Map';
|
||||||
import {SCSearchResult} from './SearchResponse';
|
import {SCSearchResult} from './SearchResponse';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -21,6 +22,4 @@ import {SCSearchResult} from './SearchResponse';
|
|||||||
*
|
*
|
||||||
* @validatable
|
* @validatable
|
||||||
*/
|
*/
|
||||||
export interface SCMultiSearchResponse {
|
export type SCMultiSearchResponse = SCMap<SCSearchResult>;
|
||||||
[k: string]: SCSearchResult;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import {SCSearchSort} from '../../../types/sorts/Abstract';
|
|||||||
import {
|
import {
|
||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
@@ -70,6 +71,7 @@ export class SCSearchRoute extends SCAbstractRoute {
|
|||||||
this.errorNames = [
|
this.errorNames = [
|
||||||
SCInternalServerErrorResponse,
|
SCInternalServerErrorResponse,
|
||||||
SCMethodNotAllowedErrorResponse,
|
SCMethodNotAllowedErrorResponse,
|
||||||
|
SCRequestBodyTooLargeErrorResponse,
|
||||||
SCSyntaxErrorResponse,
|
SCSyntaxErrorResponse,
|
||||||
SCUnsupportedMediaTypeErrorResponse,
|
SCUnsupportedMediaTypeErrorResponse,
|
||||||
SCValidationErrorResponse,
|
SCValidationErrorResponse,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2018 StApps
|
* Copyright (C) 2018, 2019 StApps
|
||||||
* This program is free software: you can redistribute it and/or modify it
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
* under the terms of the GNU General Public License as published by the Free
|
* under the terms of the GNU General Public License as published by the Free
|
||||||
* Software Foundation, version 3.
|
* Software Foundation, version 3.
|
||||||
@@ -29,15 +29,17 @@ import {SCMap} from '../types/Map';
|
|||||||
*/
|
*/
|
||||||
export type SCRoomCategories =
|
export type SCRoomCategories =
|
||||||
'cafe'
|
'cafe'
|
||||||
|
| 'canteen'
|
||||||
|
| 'computer'
|
||||||
| 'education'
|
| 'education'
|
||||||
|
| 'laboratory'
|
||||||
| 'learn'
|
| 'learn'
|
||||||
| 'library'
|
| 'library'
|
||||||
|
| 'lounge'
|
||||||
| 'office'
|
| 'office'
|
||||||
| 'restaurant'
|
| 'restaurant'
|
||||||
| 'canteen'
|
|
||||||
| 'student canteen'
|
|
||||||
| 'restroom'
|
| 'restroom'
|
||||||
| 'lounge'
|
| 'student canteen'
|
||||||
| 'student union';
|
| 'student union';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -108,7 +110,9 @@ export class SCRoomMeta extends SCThingMeta {
|
|||||||
categories: {
|
categories: {
|
||||||
'cafe': 'Café',
|
'cafe': 'Café',
|
||||||
'canteen': 'Kantine',
|
'canteen': 'Kantine',
|
||||||
|
'computer': 'PC-Pool',
|
||||||
'education': 'Bildung',
|
'education': 'Bildung',
|
||||||
|
'laboratory': 'Labor',
|
||||||
'learn': 'Lernen',
|
'learn': 'Lernen',
|
||||||
'library': 'Bibliothek',
|
'library': 'Bibliothek',
|
||||||
'lounge': 'Lounge',
|
'lounge': 'Lounge',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2018 StApps
|
* Copyright (C) 2018-2019 StApps
|
||||||
* This program is free software: you can redistribute it and/or modify it
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
* under the terms of the GNU General Public License as published by the Free
|
* under the terms of the GNU General Public License as published by the Free
|
||||||
* Software Foundation, version 3.
|
* Software Foundation, version 3.
|
||||||
@@ -35,6 +35,11 @@ export interface SCBackendConfiguration {
|
|||||||
*/
|
*/
|
||||||
maxMultiSearchRouteQueries: number;
|
maxMultiSearchRouteQueries: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum body size for requests
|
||||||
|
*/
|
||||||
|
maxRequestBodySize: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of university
|
* Name of university
|
||||||
*/
|
*/
|
||||||
@@ -79,19 +84,6 @@ export interface SCBackendConfigurationSortableField {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Values of a field that should be boosted by the given factors
|
|
||||||
*/
|
|
||||||
export interface SCBackendConfigurationSearchBoostingValues {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Value of the field that should be boosted by the given number
|
|
||||||
*
|
|
||||||
* For example `"SS 2019": 2`
|
|
||||||
*/
|
|
||||||
[valueOfField: string]: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A boosting configuration for one SCType
|
* A boosting configuration for one SCType
|
||||||
*/
|
*/
|
||||||
@@ -103,11 +95,15 @@ export interface SCBackendConfigurationSearchBoosting {
|
|||||||
factor: number;
|
factor: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Outer-Map:
|
||||||
* Fields of this type that should be boosted if they match a given value
|
* Fields of this type that should be boosted if they match a given value
|
||||||
*
|
|
||||||
* For nest fields you can use the `.` as a separator. For example `academicTerms.acronym`
|
* For nest fields you can use the `.` as a separator. For example `academicTerms.acronym`
|
||||||
|
*
|
||||||
|
* Inner-map:
|
||||||
|
* Value of the field that should be boosted by the given number
|
||||||
|
* For example `"SS 2019": 2`
|
||||||
*/
|
*/
|
||||||
fields?: SCMap<SCBackendConfigurationSearchBoostingValues>;
|
fields?: SCMap<SCMap<number>>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Type of things the factor should be applied to
|
* Type of things the factor should be applied to
|
||||||
@@ -163,14 +159,10 @@ export interface SCBackendInternalConfiguration {
|
|||||||
/**
|
/**
|
||||||
* Configuration of the database
|
* Configuration of the database
|
||||||
*/
|
*/
|
||||||
export interface SCBackendConfigurationDatabaseConfiguration {
|
export interface SCBackendConfigurationDatabaseConfiguration extends SCMap<any> {
|
||||||
/**
|
/**
|
||||||
* Name of the database used by the backend
|
* Name of the database used by the backend
|
||||||
*/
|
*/
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* Allow additional configuration for the database
|
|
||||||
*/
|
|
||||||
[key: string]: any;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2018 StApps
|
* Copyright (C) 2018-2019 StApps
|
||||||
* This program is free software: you can redistribute it and/or modify it
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
* under the terms of the GNU General Public License as published by the Free
|
* under the terms of the GNU General Public License as published by the Free
|
||||||
* Software Foundation, version 3.
|
* Software Foundation, version 3.
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License along with
|
* You should have received a copy of the GNU General Public License along with
|
||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
import {SCMap} from '../Map';
|
||||||
/**
|
/**
|
||||||
* All available filter types
|
* All available filter types
|
||||||
*/
|
*/
|
||||||
@@ -47,9 +48,7 @@ export interface SCSearchAbstractFilter<T extends SCSearchAbstractFilterArgument
|
|||||||
/**
|
/**
|
||||||
* Arguments for the filter instruction
|
* Arguments for the filter instruction
|
||||||
*/
|
*/
|
||||||
export interface SCSearchAbstractFilterArguments {
|
export type SCSearchAbstractFilterArguments = SCMap<any>;
|
||||||
[key: string]: any;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Available filter instructions
|
* Available filter instructions
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2018 StApps
|
* Copyright (C) 2018-2019 StApps
|
||||||
* This program is free software: you can redistribute it and/or modify it
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
* under the terms of the GNU General Public License as published by the Free
|
* under the terms of the GNU General Public License as published by the Free
|
||||||
* Software Foundation, version 3.
|
* Software Foundation, version 3.
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import {SCThingsField} from '../../Classes';
|
import {SCThingsField} from '../../Classes';
|
||||||
|
import {SCMap} from '../Map';
|
||||||
import {SCDistanceSort} from './Distance';
|
import {SCDistanceSort} from './Distance';
|
||||||
import {SCDucetSort} from './Ducet';
|
import {SCDucetSort} from './Ducet';
|
||||||
import {SCPriceSort} from './Price';
|
import {SCPriceSort} from './Price';
|
||||||
@@ -40,12 +41,7 @@ export interface SCSearchAbstractSort<T extends SCSearchAbstractSortArguments> {
|
|||||||
/**
|
/**
|
||||||
* Map of arguments for the sort instruction
|
* Map of arguments for the sort instruction
|
||||||
*/
|
*/
|
||||||
export interface SCSearchAbstractSortArguments {
|
export interface SCSearchAbstractSortArguments extends SCMap<any> {
|
||||||
/**
|
|
||||||
* Index signature for additional arguments
|
|
||||||
*/
|
|
||||||
[key: string]: any;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Field to sort by
|
* Field to sort by
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"name": "Poolraum (HoF)",
|
"name": "Poolraum (HoF)",
|
||||||
"type": "room",
|
"type": "room",
|
||||||
"categories": [
|
"categories": [
|
||||||
|
"computer",
|
||||||
"learn"
|
"learn"
|
||||||
],
|
],
|
||||||
"description": "1. OG, Raum 1.29, 18 Plätze, rollstuhlgerecht, Montag bis Freitag von 8:00 bis 20:00 Uhr",
|
"description": "1. OG, Raum 1.29, 18 Plätze, rollstuhlgerecht, Montag bis Freitag von 8:00 bis 20:00 Uhr",
|
||||||
|
|||||||
Reference in New Issue
Block a user