@serenity-is/corelib / ListRequest
Interface: ListRequest
Defined in: src/base/servicetypes.ts:133
Request DTO for List handlers (grid data source).
Supports paging, sorting, filtering and column selection.
Extends
Properties
Aggregates?
optionalAggregates:AggregateBy[]
Defined in: src/base/servicetypes.ts:170
Values to calculate from all the rows the request matches, and not only from the returned page, e.g. the sum of a field. They are returned in ListResponse.Aggregates. A handler that doesn't support aggregates ignores this.
ColumnSelection?
optionalColumnSelection:ColumnSelection
Defined in: src/base/servicetypes.ts:155
Preset that controls which columns are returned. See ColumnSelection.
ContainsField?
optionalContainsField:string
Defined in: src/base/servicetypes.ts:145
When set, ContainsText is applied only to this field instead of all searchable fields.
ContainsText?
optionalContainsText:string
Defined in: src/base/servicetypes.ts:143
Quick-search text applied across searchable fields (or ContainsField when specified).
Criteria?
optionalCriteria:any[]
Defined in: src/base/servicetypes.ts:147
Advanced filter criteria tree (Serenity Criteria format: [field, op, value] or nested ["and", [...]]).
DistinctFields?
optionalDistinctFields:string[]
Defined in: src/base/servicetypes.ts:163
Fields to apply DISTINCT on (server-dependent).
EqualityFilter?
optionalEqualityFilter:any
Defined in: src/base/servicetypes.ts:149
Simple equality filter map, e.g. { Status: 1 }. Combined with Criteria via AND.
ExcludeColumns?
optionalExcludeColumns:string[]
Defined in: src/base/servicetypes.ts:159
Explicit deny-list of columns to exclude.
ExcludeEntities?
optionalExcludeEntities:boolean
Defined in: src/base/servicetypes.ts:174
When true no entities are returned, only what is calculated from them, like the total count and the aggregates.
ExcludeTotalCount?
optionalExcludeTotalCount:boolean
Defined in: src/base/servicetypes.ts:153
When true the server may skip computing TotalCount for performance.
ExportColumns?
optionalExportColumns:string[]
Defined in: src/base/servicetypes.ts:161
Columns to export when List is used for export; defaults to visible columns.
GroupBy?
optionalGroupBy:GroupBy[]
Defined in: src/base/servicetypes.ts:172
Fields to group the rows by for the aggregates, the outermost first, so they are also calculated for each group.
IncludeColumns?
optionalIncludeColumns:string[]
Defined in: src/base/servicetypes.ts:157
Explicit allow-list of columns to include (overrides ColumnSelection).
IncludeDeleted?
optionalIncludeDeleted:boolean
Defined in: src/base/servicetypes.ts:151
When true, soft-deleted rows are included in results.
IncludeMore?
optionalIncludeMore:boolean
Defined in: src/base/servicetypes.ts:139
When true, request whether more records are available beyond the returned page.
Localize?
optionalLocalize:string
Defined in: src/base/servicetypes.ts:165
Language ID for localized field selection (e.g. "en", "tr").
Skip?
optionalSkip:number
Defined in: src/base/servicetypes.ts:135
Number of records to skip (offset) for paging.
Sort?
optionalSort:string[]
Defined in: src/base/servicetypes.ts:141
Sort expressions, e.g. ["Name ASC", "Age DESC"].
Take?
optionalTake:number
Defined in: src/base/servicetypes.ts:137
Maximum number of records to take (page size). Omit or 0 for server default.
TimeZone?
optionalTimeZone:string
Defined in: src/base/servicetypes.ts:180
The time zone of the user, an IANA one like Europe/Istanbul, as Intl.DateTimeFormat().resolvedOptions().timeZone
gives. It tells where the days start for the intervals of GroupBy, so the dates and times of the fields that are UTC
are grouped by the days the user sees. It doesn't change the filters, or the dates that are returned.