mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2025-12-16 11:16:20 +00:00
test: add filterable test for indirect types
This commit is contained in:
@@ -17,6 +17,8 @@ import {ThingType} from './types';
|
||||
import {MapAggTestOptions} from '../../MapAggTestOptions';
|
||||
import {ElasticsearchDataType} from '../../../../src/mappings/definitions/typemap';
|
||||
|
||||
export type FilterableEnumType = 'a' | 'b' | 'c';
|
||||
|
||||
/**
|
||||
* @indexable
|
||||
*/
|
||||
@@ -38,6 +40,11 @@ export interface FilterableTag {
|
||||
*/
|
||||
baz: 'some literal'
|
||||
|
||||
/**
|
||||
* @filterable
|
||||
*/
|
||||
buz: FilterableEnumType
|
||||
|
||||
type: ThingType.FilterableTag
|
||||
}
|
||||
|
||||
@@ -68,6 +75,14 @@ export const filterableTagTest: MapAggTestOptions = {
|
||||
type: ElasticsearchDataType.keyword
|
||||
}
|
||||
}
|
||||
},
|
||||
buz: {
|
||||
type: ElasticsearchDataType.keyword,
|
||||
fields: {
|
||||
raw: {
|
||||
type: ElasticsearchDataType.keyword
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user