import { ODataVersion } from '@sap-cloud-sdk/util' ; internal export type EdmTypeCommon = EdmTypeSameConverters | EdmTypeDifferentConverters ; internal export type EdmTypeSameConverters = 'Edm.String' | 'Edm.Boolean' | 'Edm.Decimal' | 'Edm.Double' | 'Edm.Single' | 'Edm.Float' | 'Edm.Int16' | 'Edm.Int32' | 'Edm.Int64' | 'Edm.SByte' | 'Edm.Binary' | 'Edm.Guid' | 'Edm.Byte' | 'Edm.Any' ; internal export type EdmTypeDifferentConverters = 'Edm.DateTimeOffset' ; internal export type ExclusiveEdmTypeV2 = 'Edm.DateTime' | 'Edm.Time' ; internal export type ExclusiveEdmTypeV4 = 'Edm.Date' | 'Edm.Duration' | 'Edm.TimeOfDay' | 'Edm.Enum' ; internal export type EdmTypeShared < VersionT extends ODataVersion | 'any' > = VersionT extends any ? EdmTypeCommon | ExclusiveEdmTypeV2 | ExclusiveEdmTypeV4 : EdmTypeCommon | ExclusiveEdmTypeV2 | ExclusiveEdmTypeV4 ; internal export type EdmTypeSameConvertersUri = Exclude < EdmTypeSameConverters , 'Edm.Guid' | 'Edm.Decimal' > ; param val returns internal export function isEdmType ( val ) { return typeof val === 'string' && val . startsWith ( 'Edm.' ) ; } internal export type OrderableEdmType = 'Edm.Decimal' | 'Edm.Double' | 'Edm.Single' | 'Edm.Float' | 'Edm.Int16' | 'Edm.Int32' | 'Edm.Int64' | 'Edm.SByte' | 'Edm.Byte' | 'Edm.DateTime' | 'Edm.DateTimeOffset' | 'Edm.Time' | 'Edm.Date' | 'Edm.Duration' | 'Edm.TimeOfDay' ; param edmType returns internal export function isOrderableEdmType ( edmType ) { return [ 'Edm.Decimal' , 'Edm.Double' , 'Edm.Single' , 'Edm.Float' , 'Edm.Int16' , 'Edm.Int32' , 'Edm.Int64' , 'Edm.SByte' , 'Edm.Byte' , 'Edm.DateTime' , 'Edm.DateTimeOffset' , 'Edm.Time' , 'Edm.Date' , 'Edm.Duration' , 'Edm.TimeOfDay' ] . includes ( edmType ) ; }