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.

Copyright Ⓒ 2023 SAP SE or an SAP affiliate company. All rights reserved.

Hierarchy

  • ODataUri

Index

Methods

  • 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<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<EntityT>(filter: Filterable<EntityT, any>, entityConstructor: Constructable<EntityT, unknown>): Partial<{ filter: string }>
  • Type parameters

    Parameters

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

    Returns Partial<{ filter: string }>

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

    Parameters

    Returns Partial<{ orderby: string }>

  • 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<EntityT>(selects: Selectable<EntityT>[]): Partial<{ select: string }>
  • Type parameters

    Parameters

    Returns Partial<{ select: string }>