build: update dependencies

This commit is contained in:
Anselm Stordeur
2019-01-09 14:31:51 +01:00
committed by Rainer Killinger
parent 98f02b8830
commit 6ceb763b5a
12 changed files with 1130 additions and 84 deletions

View File

@@ -20,7 +20,7 @@ import {
SCSearchQuery,
SCSearchResponse,
SCThings,
SCThingTypes,
SCThingType,
SCUuid,
} from '@openstapps/core';
import * as ES from 'elasticsearch';
@@ -144,7 +144,7 @@ export class Elasticsearch implements Database {
let aliases: {
[index: string]: {
aliases: {
[K in SCThingTypes]: any
[K in SCThingType]: any
},
},
};
@@ -214,7 +214,7 @@ export class Elasticsearch implements Database {
* @param source source of data in the index
* @param bulk bulk process which created this index
*/
private getIndex(type: SCThingTypes, source: string, bulk: SCBulkResponse) {
private getIndex(type: SCThingType, source: string, bulk: SCBulkResponse) {
return `stapps_${type.toLowerCase().replace(' ', '_')}_${source}_${bulk.uid.substring(0, 8)}`;
}

View File

@@ -13,10 +13,10 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {SCBackendAggregationConfiguration, SCFacet, SCThingTypes} from '@openstapps/core';
import {SCBackendAggregationConfiguration, SCFacet, SCThingType} from '@openstapps/core';
import {AggregationSchema} from './common';
export type aggregationType = SCThingTypes | '@all';
export type aggregationType = SCThingType | '@all';
/**
* Builds the aggregation

View File

@@ -13,7 +13,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {SCThingTypes} from '@openstapps/core';
import {SCThingType} from '@openstapps/core';
import {SCThing} from '@openstapps/core';
/**
@@ -111,7 +111,7 @@ export interface ESTermsFilter {
*/
export interface ESTypeFilter {
type: {
value: SCThingTypes;
value: SCThingType;
};
}

View File

@@ -22,7 +22,7 @@ import {
SCSearchSort,
SCSportCoursePriceGroup,
SCThingsField,
SCThingTypes,
SCThingType,
} from '@openstapps/core';
import {ElasticsearchConfig, ScriptSort} from './common';
import {
@@ -221,7 +221,7 @@ export function buildQuery(
if (typeof params.sort !== 'undefined') {
params.sort.forEach((sort) => {
// types that the sort is supported on
const types: SCThingTypes[] = [];
const types: SCThingType[] = [];
defaultConfig.backend.sortableFields
.filter((sortableField) => {