File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import { Script } from '@_types/Scripting'
36
36
import { DateMath , Duration } from '@_types/Time'
37
37
import { FieldLookup , QueryBase , QueryContainer } from './abstractions'
38
38
import { AdditionalProperty } from '@spec_utils/behaviors'
39
+ import { QueryRulesetId } from '../../query_rules/_types/QueryRuleset'
39
40
40
41
export class DistanceFeatureQueryBase < TOrigin , TDistance > extends QueryBase {
41
42
origin : TOrigin
@@ -192,6 +193,6 @@ export class ShapeFieldQuery {
192
193
export class RuleQuery extends QueryBase {
193
194
/** @variant container_property */
194
195
organic : QueryContainer
195
- ruleset_id : string
196
- match_criteria : UserDefinedValue
196
+ ruleset_id ?: QueryRulesetId
197
+ match_criteria ? : UserDefinedValue
197
198
}
Original file line number Diff line number Diff line change 20
20
import { IndexName , Name } from '@_types/common'
21
21
import { EpochTime , UnitMillis } from '@_types/Time'
22
22
import { InlineScript } from '@_types/Scripting'
23
+ import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
23
24
24
25
export class QueryRuleset {
25
26
/**
@@ -50,7 +51,7 @@ export enum QueryRuleType {
50
51
export class QueryRuleCriteria {
51
52
type : QueryRuleCriteriaType
52
53
metadata : string
53
- values : ( string | number ) [ ]
54
+ values ?: UserDefinedValue [ ]
54
55
}
55
56
56
57
export enum QueryRuleCriteriaType {
You can’t perform that action at this time.
0 commit comments