expandUserFilter
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. firstname: "John"
expands into firstname: { any: ["John"]}
- Fields defined as
string | string[] | MatchOptions
will be converted to aMatchOptions
- RelativeDate fields are converted to DateRange
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
filter Required | Filter<"user"> |
Returns
Property | Type | Notes |
---|---|---|
Optional | IDateRange<number> | IRelativeDate | |
Optional | boolean | |
Optional | string | string[] | IMatchOptions | |
Optional | string | string[] | IMatchOptions | |
Optional | string | string[] | IMatchOptions | |
Optional | string | string[] | IMatchOptions | |
Optional | string | string[] | IMatchOptions | |
Optional | IDateRange<number> | IRelativeDate | |
Optional | string | string[] | IMatchOptions | |
Optional | IDateRange<number> | IRelativeDate | |
Optional | string | string[] | IMatchOptions | |
Optional | string | string[] | IMatchOptions | |
Optional | string | |
Optional | string | string[] | IMatchOptions | |
Optional | string | string[] | IMatchOptions |
Function defined in common/src/search/user-utils.ts:93