expandGroupFilter

Function

Prior to serialization into the query syntax for the backing APIs, we first expand Filters

Filter's can express their intent in a very terse form, but to ensure consistent structures we expand them into their more verbose form.

i.e. title: "Water" expands into title: { any: ["Water"]}

  • Fields defined as string | string[] | MatchOptions will be converted to a MatchOptions
  • RelativeDate fields are converted to DateRange

Parameters

Parameter Type Default Notes
filter Required Filter<"group">

Returns

Property Type Notes
access Optional string | string[] | IMatchOptions
created Optional IDateRange<number> | IRelativeDate
id Optional string | string[] | IMatchOptions
isInvitationOnly Optional boolean
isopendata Optional boolean
modified Optional IDateRange<number> | IRelativeDate
orgid Optional string | string[] | IMatchOptions
owner Optional string | string[] | IMatchOptions
searchUserAccess Optional "groupMember"
searchUserName Optional string
tags Optional string | string[] | IMatchOptions
term Optional string
title Optional string | string[] | IMatchOptions
typekeywords Optional string | string[] | IMatchOptions

Function defined in common/src/search/group-utils.ts:92