import { variadicArgumentToArray } from '@sap-cloud-sdk/util' ; import { EntityIdentifiable , Expandable , GetByKeyRequestBuilderBase , EntityApi } from '@sap-cloud-sdk/odata-common/internal' ; import { DeSerializers , entityDeserializer } from '../de-serializers' ; import { Entity } from '../entity' ; import { createODataUri } from '../uri-conversion' ; import { responseDataAccessor } from './response-data-accessor' ; typeparam export class GetByKeyRequestBuilder < EntityT extends Entity , DeSerializersT extends DeSerializers > extends GetByKeyRequestBuilderBase < EntityT , DeSerializersT > implements EntityIdentifiable < EntityT , DeSerializersT > { readonly _entity : EntityT ; param entityApi param keys constructor ( entityApi , keys ) { super ( entityApi , keys , createODataUri ( entityApi . deSerializers ) , entityDeserializer ( entityApi . deSerializers ) , responseDataAccessor ) ; } expand ( expands ) ; expand ( ... expands ) ; expand ( first , ... rest ) { this . requestConfig . expands = variadicArgumentToArray ( first , rest ) ; return this ; } }