Skip to main content

Class: Query

Constructors

constructor

new Query()

Methods

and

Static and(queryExpressions): SearchPortalQuery

Parameters

NameType
queryExpressionsSearchPortalQuery[]

Returns

SearchPortalQuery


checkbox

Static checkbox(matches): SearchPortalCheckboxQueryExpression

Parameters

NameType
matchesCheckboxMatcher

Returns

SearchPortalCheckboxQueryExpression


date

Static date<Matcher>(matches): SearchPortalDateQueryExpression

Type parameters

NameType
Matcherextends IsEmpty | IsNotEmpty

Parameters

NameType
matchesMatcher

Returns

SearchPortalDateQueryExpression

Static date<Matcher>(matches, date): SearchPortalDateQueryExpression

Type parameters

NameType
Matcherextends Is | IsBefore | IsAfter | IsOnOrBefore | IsOnOrAfter

Parameters

NameTypeDescription
matchesMatcher-
dateDate | RelativeDateMatcher

Returns

SearchPortalDateQueryExpression

Static date<Matcher>(matches, date1, date2): SearchPortalDateQueryExpression

Type parameters

NameType
Matcherextends IsBetween

Parameters

NameTypeDescription
matchesMatcher-
date1Date | RelativeDateMatcher
date2Date | RelativeDateMatcher

Returns

SearchPortalDateQueryExpression


dateRelativeToToday

Static dateRelativeToToday<Modifier>(relativeDateModifier, relativeDatePeriod): SearchPortalDateQueryExpression

Type parameters

NameType
Modifierextends This

Parameters

NameTypeDescription
relativeDateModifierModifier
relativeDatePeriodRelativeDatePeriod

Returns

SearchPortalDateQueryExpression

Static dateRelativeToToday<Modifier>(relativeDateModifier, relativeDatePeriod, daysOffset): SearchPortalDateQueryExpression

Type parameters

NameType
Modifierextends Past | Next

Parameters

NameType
relativeDateModifierModifier
relativeDatePeriodRelativeDatePeriod
daysOffsetnumber

Returns

SearchPortalDateQueryExpression


documentsThatContain

Static documentsThatContain(remId): SearchPortalRefQueryExpression

Parameters

NameType
remIdstring

Returns

SearchPortalRefQueryExpression


hasAnyConnectionTo

Static hasAnyConnectionTo(remId): SearchPortalRefQueryExpression

Parameters

NameType
remIdundefined | string

Returns

SearchPortalRefQueryExpression


hasReferenceTo

Static hasReferenceTo(remId): SearchPortalRefQueryExpression

Parameters

NameTypeDescription
remIdstring

Returns

SearchPortalRefQueryExpression


hasRemType

Static hasRemType(remType): SearchPortalRemTypeQueryExpression

Parameters

NameTypeDescription
remTypeQueryRemType

Returns

SearchPortalRemTypeQueryExpression


isDescendantOf

Static isDescendantOf(remId): SearchPortalRefQueryExpression

Parameters

NameTypeDescription
remIdstring

Returns

SearchPortalRefQueryExpression


isDirectlyTaggedWith

Static isDirectlyTaggedWith(remId): SearchPortalRefQueryExpression

Parameters

NameType
remIdstring

Returns

SearchPortalRefQueryExpression


isInDocument

Static isInDocument(remId): SearchPortalRefQueryExpression

Parameters

NameTypeDescription
remIdundefined | string

Returns

SearchPortalRefQueryExpression


isTaggedWith

Static isTaggedWith(remId): SearchPortalRefQueryExpression

Parameters

NameTypeDescription
remIdstring

Returns

SearchPortalRefQueryExpression


multiSelect

Static multiSelect<Matcher>(matches): SearchPortalMultiSelectQueryExpression

Type parameters

NameType
Matcherextends IsEmpty | IsNotEmpty

Parameters

NameType
matchesMatcher

Returns

SearchPortalMultiSelectQueryExpression

Static multiSelect<Matcher>(matches, remIds): SearchPortalMultiSelectQueryExpression

Type parameters

NameType
Matcherextends MultiSelectMatcher

Parameters

NameType
matchesMatcher
remIdsstring[]

Returns

SearchPortalMultiSelectQueryExpression


not

Static not(queryExpressions): SearchPortalQuery

Parameters

NameType
queryExpressionsSearchPortalQuery

Returns

SearchPortalQuery


number

Static number<Matcher>(matches): SearchPortalNumberQueryExpression

Type parameters

NameType
Matcherextends IsEmpty | IsNotEmpty

Parameters

NameType
matchesMatcher

Returns

SearchPortalNumberQueryExpression

Static number<Matcher>(matches, n): SearchPortalNumberQueryExpression

Type parameters

NameType
Matcherextends NumberMatcher

Parameters

NameType
matchesMatcher
nnumber

Returns

SearchPortalNumberQueryExpression


or

Static or(queryExpressions): SearchPortalQuery

Parameters

NameType
queryExpressionsSearchPortalQuery[]

Returns

SearchPortalQuery


singleSelect

Static singleSelect<Matcher>(matches): SearchPortalSingleSelectQueryExpression

Type parameters

NameType
Matcherextends IsEmpty | IsNotEmpty

Parameters

NameType
matchesMatcher

Returns

SearchPortalSingleSelectQueryExpression

Static singleSelect<Matcher>(matches, remIds): SearchPortalSingleSelectQueryExpression

Type parameters

NameType
Matcherextends SingleSelectMatcher

Parameters

NameType
matchesMatcher
remIdsstring[]

Returns

SearchPortalSingleSelectQueryExpression


tableColumn

Static tableColumn(columnId, query): SearchPortalSlotQueryNode

Parameters

NameTypeDescription
columnIdstring
querySearchPortalQuery

Returns

SearchPortalSlotQueryNode


tagWithoutInheritance

Static tagWithoutInheritance(remId): SearchPortalRefQueryExpression

Parameters

NameType
remIdstring

Returns

SearchPortalRefQueryExpression


text

Static text<Matcher>(matches): SearchPortalTextQueryExpression

Type parameters

NameType
Matcherextends IsEmpty | IsNotEmpty

Parameters

NameType
matchesMatcher

Returns

SearchPortalTextQueryExpression

Static text<Matcher>(matches, text): SearchPortalTextQueryExpression

Type parameters

NameType
Matcherextends TextMatcher

Parameters

NameType
matchesMatcher
textstring

Returns

SearchPortalTextQueryExpression