A filter used to define a set of extensions to return during a query.

interface QueryFilter {
    criteria?: FilterCriteria[];
    direction?: PagingDirection;
    pageNumber?: number;
    pageSize?: number;
    pagingToken?: string;
    sortBy?: number;
    sortOrder?: number;
}

Properties

criteria?: FilterCriteria[]

The filter values define the set of values in this query. They are applied based on the QueryFilterType.

direction?: PagingDirection

The PagingDirection is applied to a paging token if one exists. If not the direction is ignored, and Forward from the start of the resultset is used. Direction should be left out of the request unless a paging token is used to help prevent future issues.

pageNumber?: number

The page number requested by the user. If not provided 1 is assumed by default.

pageSize?: number

The page size defines the number of results the caller wants for this filter. The count can't exceed the overall query size limits.

pagingToken?: string

The paging token is a distinct type of filter and the other filter fields are ignored. The paging token represents the continuation of a previously executed query. The information about where in the result and what fields are being filtered are embedded in the token.

sortBy?: number

Defines the type of sorting to be applied on the results. The page slice is cut of the sorted results only.

sortOrder?: number

Defines the order of sorting, 1 for Ascending, 2 for Descending, else default ordering based on the SortBy value