@enonic/js-utils
Advanced tools
Comparing version 0.38.8 to 0.38.9
@@ -6,3 +6,3 @@ import type {OneOrMore} from '../../Utility.d'; | ||
export interface QueryExpressionFulltext { | ||
export type QueryExpressionFulltext = { | ||
fulltext :{ | ||
@@ -15,3 +15,12 @@ fields :Array<string> | ||
export interface QueryExpressionNgram { | ||
export type QueryExpressionIn<ValueType = unknown> = { | ||
in :{ | ||
field :string | ||
values :Array<ValueType> | ||
type ?:string // 'string'|'number'|'boolean'|'time'|'dateTime' | ||
boost ?:number | ||
} | ||
} | ||
export type QueryExpressionNgram = { | ||
ngram :{ | ||
@@ -24,3 +33,3 @@ fields :Array<string> | ||
export interface QueryExpressionStemmed { | ||
export type QueryExpressionStemmed = { | ||
stemmed :{ | ||
@@ -34,7 +43,18 @@ fields :Array<string> | ||
export type QueryExpressionTerm<ValueType = unknown> = { | ||
term :{ | ||
field :string | ||
value :ValueType | ||
type ?:string // 'string'|'number'|'boolean'|'time'|'dateTime' | ||
boost ?:number | ||
} | ||
} | ||
export type QueryExpression = Partial<QueryExpressionFulltext> | ||
& Partial<QueryExpressionIn> | ||
& Partial<QueryExpressionNgram> | ||
& Partial<QueryExpressionStemmed>; | ||
& Partial<QueryExpressionStemmed> | ||
& Partial<QueryExpressionTerm>; | ||
export interface CompoundExpression { | ||
export type CompoundExpression = { | ||
must? :OneOrMore<QueryExpression> & CompoundExpression | ||
@@ -45,3 +65,3 @@ mustNot? :OneOrMore<QueryExpression> & CompoundExpression | ||
export interface CompoundExpressionBoolean { | ||
export type CompoundExpressionBoolean = { | ||
boolean :CompoundExpression; | ||
@@ -48,0 +68,0 @@ } |
@@ -63,3 +63,3 @@ { | ||
}, | ||
"version": "0.38.8" | ||
"version": "0.38.9" | ||
} |
@@ -6,3 +6,3 @@ import type {OneOrMore} from '../../Utility.d'; | ||
export interface QueryExpressionFulltext { | ||
export type QueryExpressionFulltext = { | ||
fulltext :{ | ||
@@ -15,3 +15,12 @@ fields :Array<string> | ||
export interface QueryExpressionNgram { | ||
export type QueryExpressionIn<ValueType = unknown> = { | ||
in :{ | ||
field :string | ||
values :Array<ValueType> | ||
type ?:string // 'string'|'number'|'boolean'|'time'|'dateTime' | ||
boost ?:number | ||
} | ||
} | ||
export type QueryExpressionNgram = { | ||
ngram :{ | ||
@@ -24,3 +33,3 @@ fields :Array<string> | ||
export interface QueryExpressionStemmed { | ||
export type QueryExpressionStemmed = { | ||
stemmed :{ | ||
@@ -34,7 +43,18 @@ fields :Array<string> | ||
export type QueryExpressionTerm<ValueType = unknown> = { | ||
term :{ | ||
field :string | ||
value :ValueType | ||
type ?:string // 'string'|'number'|'boolean'|'time'|'dateTime' | ||
boost ?:number | ||
} | ||
} | ||
export type QueryExpression = Partial<QueryExpressionFulltext> | ||
& Partial<QueryExpressionIn> | ||
& Partial<QueryExpressionNgram> | ||
& Partial<QueryExpressionStemmed>; | ||
& Partial<QueryExpressionStemmed> | ||
& Partial<QueryExpressionTerm>; | ||
export interface CompoundExpression { | ||
export type CompoundExpression = { | ||
must? :OneOrMore<QueryExpression> & CompoundExpression | ||
@@ -45,3 +65,3 @@ mustNot? :OneOrMore<QueryExpression> & CompoundExpression | ||
export interface CompoundExpressionBoolean { | ||
export type CompoundExpressionBoolean = { | ||
boolean :CompoundExpression; | ||
@@ -48,0 +68,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1653803
26968