import { Field , StringFilterFunction , BooleanFilterFunction , filterFunction , filterFunctions as filterFunctionsCommon , FilterFunctionsType as FilterFunctionsCommonType , Time , FilterFunctionNames as FilterFunctionNamesCommon } from '@sap-cloud-sdk/odata-common/internal' ; import BigNumber from 'bignumber.js' ; import { DeSerializers } from './de-serializers/de-serializers' ; import { defaultDeSerializers } from './de-serializers/default-de-serializers' ; import { mergeDefaultDeSerializersWith } from './de-serializers/custom-de-serializers' ; import { Entity } from './entity' ; param substr param str returns export function substringOf < EntityT extends Entity > ( substr , str ) { return filterFunction ( 'substringof' , 'boolean' , substr , str ) ; } param str param searchStr param replaceStr returns export function replace < EntityT extends Entity > ( str , searchStr , replaceStr ) { return filterFunction ( 'replace' , 'string' , str , searchStr , replaceStr ) ; } /**
 * Export length filter function for backwards compatibility.
 */ export const length = filterFunctionsCommon ( defaultDeSerializers ) . length ; /**
 * Export substring filter function for backwards compatibility.
 */ export const substring = filterFunctionsCommon ( defaultDeSerializers ) . substring ; param deSerializers returns export function filterFunctions < BinaryT = string , BooleanT = boolean , ByteT = number , DecimalT = BigNumber , DoubleT = number , FloatT = number , Int16T = number , Int32T = number , Int64T = BigNumber , GuidT = string , SByteT = number , SingleT = number , StringT = string , AnyT = any , DateTimeT = moment . Moment , DateTimeOffsetT = moment . Moment , TimeT = Time > ( deSerializers = defaultDeSerializers as any ) { return { ... filterFunctionsCommon ( mergeDefaultDeSerializersWith ( deSerializers ) ) , substringOf , replace } ; } internal export type FilterFunctionsType = FilterFunctionsCommonType & { substringOf : typeof substringOf ; replace : typeof replace ; } ; internal export type FilterFunctionNames = FilterFunctionNamesCommon | 'substringOf' | 'replace' ;