import { testService } from '@sap-cloud-sdk/test-services/v2/test-service' ; import { and , or } from '@sap-cloud-sdk/odata-common/internal' ; const { testEntityApi , testEntitySingleLinkApi , testEntityMultiLinkApi } = testService ( ) ; const testEntitySchema = testEntityApi . schema ; const testEntityMultiLinkSchema = testEntitySingleLinkApi . schema ; const testEntitySingleLinkSchema = testEntityMultiLinkApi . schema ; const stringProp = testEntitySchema . STRING_PROPERTY . equals ( 'test' ) ; const booleanProp = testEntitySchema . BOOLEAN_PROPERTY . equals ( true ) ; const multiLinkInt16Prop = testEntityMultiLinkSchema . INT_16_PROPERTY . equals ( 15 ) ; const filterAnd = and ( stringProp , booleanProp ) ; const filterOr = or ( stringProp , booleanProp ) ; and ( filterAnd , filterOr ) ; and ( multiLinkInt16Prop ) ; and ( stringProp , booleanProp , multiLinkInt16Prop ) ; testEntitySchema . TO_MULTI_LINK . filter ; testEntitySchema . TO_SINGLE_LINK . filter ( testEntitySingleLinkSchema . STRING_PROPERTY . equals ( 'test' ) ) ; testEntitySchema . COMPLEX_TYPE_PROPERTY . stringProperty . equals ( 'test' ) ; testEntitySchema . COMPLEX_TYPE_PROPERTY . equals ( 'test' ) ; testEntitySchema . KEY_PROPERTY_STRING . equals ( null ) ; testEntitySchema . STRING_PROPERTY . equals ( null ) ;