import { EntityIdentifiable , GetAllRequestBuilderBase , ODataGetAllRequestConfig , Filterable , Expandable , EntityApi , toFilterableList , and } from '@sap-cloud-sdk/odata-common/internal' ; import { variadicArgumentToArray } from '@sap-cloud-sdk/util' ; import { Entity } from '../entity' ; import { DeSerializers , entityDeserializer } from '../de-serializers' ; import { createODataUri } from '../uri-conversion' ; import { responseDataAccessor } from './response-data-accessor' ; export class GetAllRequestBuilder < EntityT extends Entity , DeSerializersT extends DeSerializers > extends GetAllRequestBuilderBase < EntityT , DeSerializersT > implements EntityIdentifiable < EntityT , DeSerializersT > { readonly _entity : EntityT ; param entityApi constructor ( entityApi ) { super ( entityApi , new ODataGetAllRequestConfig ( entityApi , createODataUri ( entityApi . deSerializers ) ) , entityDeserializer ( entityApi . deSerializers ) , responseDataAccessor ) ; } expand ( expands ) ; expand ( ... expands ) ; expand ( first , ... rest ) { this . requestConfig . expands = variadicArgumentToArray ( first , rest ) ; return this ; } param expressions returns filter ( ... expressions ) { this . requestConfig . filter = and ( toFilterableList ( expressions ) ) as any ; return this ; } }