import { RequestQueryOptions } from "../itwin-client/Request" ; internal export class WsgQuery { protected _query : RequestQueryOptions = { } ; internal public getQueryOptions ( ) { return this . _query ; } internal public resetQueryOptions ( ) { this . _query = { } ; } internal protected addFilter ( filter , operator = "and" ) { if ( ! this . _query . $filter ) { this . _query . $filter = "" ; } else { this . _query . $filter += `+${ operator }+` ; } this . _query . $filter += filter ; } param filter returns public filter ( filter ) { this . _query . $filter = filter ; return this ; } internal protected addSelect ( select ) { if ( this . _query . $select ) { this . _query . $select += "," ; } this . _query . $select += select ; return this ; } param select returns public select ( select ) { this . _query . $select = select ; return this ; } param n returns public top ( n ) { this . _query . $top = n ; return this ; } param n returns public skip ( n ) { this . _query . $skip = n ; return this ; } param orderBy returns public orderBy ( orderBy ) { this . _query . $orderby = orderBy ; return this ; } param n returns public pageSize ( n ) { this . _query . $pageSize = n ; return this ; } }