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.

interface ODataUri<DeSerializersT> {
    convertToUriFormat(value, edmType): string;
    getEntityKeys<EntityT>(entity, entityApi): Record<string, any>;
    getExpand<EntityT>(selects, expands, entityApi): Partial<{
        expand: string;
    }>;
    getFilter<EntityT>(filter, entityApi): Partial<{
        filter: string;
    }>;
    getOrderBy<EntityT>(orderBy): Partial<{
        orderby: string;
    }>;
    getResourcePathForKeys<EntityT>(keys, _entityApi): string;
    getSelect<EntityT>(selects): Partial<{
        select: string;
    }>;
}

Type Parameters

Methods

convertToUriFormat getEntityKeys getExpand getFilter getOrderBy getResourcePathForKeys getSelect

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

Methods

  • Type Parameters

    Parameters

    Returns Record<string, any>

  • Type Parameters

    Parameters

    Returns Partial<{
        orderby: string;
    }>

  • Type Parameters

    Parameters

    Returns string

  • Type Parameters

    Parameters

    Returns Partial<{
        select: string;
    }>