Options
All
  • Public
  • Public/Protected
  • All
Menu

Union of necessary methods for the OData URI conversion. In v2/uri-conversion/odata-uri.ts and v4/uri-conversion/odata-uri.ts the instance for v2 and v4 are created.

Hierarchy

  • ODataUri

Index

Methods

convertToUriFormat

  • convertToUriFormat(value: any, edmType: EdmTypeShared<VersionT>): string
  • Parameters

    Returns string

getEntityKeys

  • getEntityKeys<EntityT>(entity: EntityT, entityConstructor: Constructable<EntityT, unknown>): Record<string, any>
  • Type parameters

    Parameters

    • entity: EntityT
    • entityConstructor: Constructable<EntityT, unknown>

    Returns Record<string, any>

getExpand

  • getExpand<EntityT>(selects: Selectable<EntityT>[], expands: Expandable<EntityT>[], entityConstructor: Constructable<EntityT, unknown>): Partial<{ expand: string }>
  • Type parameters

    Parameters

    • selects: Selectable<EntityT>[]
    • expands: Expandable<EntityT>[]
    • entityConstructor: Constructable<EntityT, unknown>

    Returns Partial<{ expand: string }>

getFilter

  • getFilter<EntityT>(filter: Filterable<EntityT>, entityConstructor: Constructable<EntityT, unknown>): Partial<{ filter: string }>
  • Type parameters

    Parameters

    • filter: Filterable<EntityT>
    • entityConstructor: Constructable<EntityT, unknown>

    Returns Partial<{ filter: string }>

getOrderBy

  • getOrderBy<EntityT>(orderBy: Orderable<EntityT>[]): Partial<{ orderby: string }>
  • Type parameters

    Parameters

    Returns Partial<{ orderby: string }>

getResourcePathForKeys

  • getResourcePathForKeys<EntityT>(keys: Record<string, FieldType>, entityConstructor: Constructable<EntityT, unknown>): string
  • Type parameters

    Parameters

    • keys: Record<string, FieldType>
    • entityConstructor: Constructable<EntityT, unknown>

    Returns string

getSelect

  • getSelect<EntityT>(selects: Selectable<EntityT>[]): Partial<{ select: string }>
  • Type parameters

    Parameters

    Returns Partial<{ select: string }>