import { TestEntityApi , TestEntitySingleLinkApi , testService } from '@sap-cloud-sdk/test-services/v2/test-service' ; import { filterFunctions , length , substring , substringOf } from '@sap-cloud-sdk/odata-v2' ; const testEntitySchema = testService ( ) . testEntityApi . schema ; const testEntitySingleLinkSchema = testService ( ) . testEntitySingleLinkApi . schema ; substring ( 'str' , 1 ) ; substringOf ( 'str' , 'str' ) ; length ( 'str' ) ; const filter = filterFunctions ( ) . substring ( testEntitySchema . STRING_PROPERTY , testEntitySchema . INT_16_PROPERTY ) . equals ( 'test' ) ; new TestEntityApi ( ) . requestBuilder ( ) . getAll ( ) . filter ( filter ) ; new TestEntitySingleLinkApi ( ) . requestBuilder ( ) . getAll ( ) . filter ( filter ) ; filterFunctions ( ) . substring ( testEntitySingleLinkSchema . STRING_PROPERTY , testEntitySchema . STRING_PROPERTY ) ; filterFunctions ( ) . length ( testEntitySchema . STRING_PROPERTY ) . greaterThan ( 1 ) ; filterFunctions ( ) . round ( testEntitySchema . STRING_PROPERTY ) . greaterThan ( 1 ) ; filterFunctions ( ) . day ( testEntitySchema . STRING_PROPERTY ) ;