Interface IAppRemoteService<T>

Interface for a generic service.

Type Parameters

  • T extends IAppCoreModel

    Generic type parameter that extends IAppCoreModel.

Hierarchy

Implemented by

Properties

db: Dexie
moduleName: string

Methods

  • Retrieves multiple entities with optional pagination and filtering.

    Parameters

    • params: any

      [UNUSED PARAMETER, KEPT FOR POSSIBLE FUTURE USE] Filtering parameters.

    • options: {
          page?: number;
          pageSize?: number;
      }

      Query options including pagination.

      • Optional page?: number
      • Optional pageSize?: number

    Returns Promise<{
        count: number;
        list: T[];
        page: number;
        pageSize: number;
    }>

    An object containing the retrieved entities and total count.

  • Retrieves a single entity by its unique identifier.

    Parameters

    • id: string

      Unique identifier of the entity to retrieve.

    Returns Promise<T>

    A Promise that resolves to the retrieved entity or undefined.

Generated using TypeDoc