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
/**
@@ -208,6 +209,6 @@ export class ShapeFieldQuery {
208
209
export class RuleQuery extends QueryBase {
209
210
/** @variant container_property */
210
211
organic : QueryContainer
211
- ruleset_id : string
212
- match_criteria : UserDefinedValue
212
+ ruleset_id ?: QueryRulesetId
213
+ match_criteria ? : UserDefinedValue
213
214
}
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