@nospamproxy/core
    Preparing search index...

    This is a generic OData service connector using odata-query package.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    configManager: IConfigurationManager = ...
    httpClient: IHttpClient
    responseCache: Map<
        string,
        { originalPromise: Promise<any>; responseValue?: any },
    > = ...

    In memory cache (short-lived storage)

    Methods

    • Configures the HttpClient with base url, default header, interceptors etc. Extension point for the child classes to alter the configuration for HttpClient.

      Returns void

    • Adds a new entity object to the entity set specified by the query context

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<T>

    • Deletes the item matching the id and the query context

      Parameters

      Returns Promise<void>

    • Returns void

    • Parameters

      Returns Promise<{ blob: Blob; headers: Headers }>

    • Type Parameters

      • T = any

      Parameters

      Returns Promise<T>

    • Returns string

    • Get an entity with nested entities.

      This should be used instead of odata expansion if a large number of nested entities is possible.

      Type Parameters

      • T

      Parameters

      Returns Promise<T>

    • Patches the item matching the id and the query context

      Parameters

      Returns Promise<unknown>

    • Patches the object by computing delta(original, current). Note that it does not change either the original or current objects.

      Parameters

      Returns Promise<unknown>

    • Patch or create an entity with nested entities.

      This also removes nested entities that no longer exist in the model.

      If a collection is missing, it is assumed, that nothing in that collection has changed.

      This implementation also assumes that the backend implements cascading delete operations for nested entities.

      Type Parameters

      • T

      Parameters

      Returns Promise<void>

    post