elasticsearch-dsl-types
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "elasticsearch-dsl-types", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Types for Elasticsearch Query DSL", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -209,2 +209,10 @@ import * as GeoJSON from 'geojson'; | ||
interface QueryString<F=string> { | ||
query_string: { | ||
query: string; | ||
default_field?: F; | ||
// FIXME: more params | ||
} | ||
} | ||
export type SimpleQuery<T=PropertyType> = Regexp<T> | ||
@@ -224,3 +232,4 @@ | Term<T> | ||
| GeoBoundingBox<Extract<keyof T, string>> | ||
| Match<T>; | ||
| Match<T> | ||
| QueryString<keyof T>; | ||
@@ -227,0 +236,0 @@ export interface Bool<T=PropertyType> { |
@@ -70,2 +70,10 @@ import * as DSL from './query'; | ||
it('query_string', () => { | ||
extendable<{ | ||
"query_string": { | ||
"query": 'hello', | ||
}, | ||
}, DSL.QueryString>(true); | ||
}); | ||
it('geo_distance', () => { | ||
@@ -72,0 +80,0 @@ extendable<{ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33910
767