elioria-sst-x
    Preparing search index...

    Class SupabaseEpiMovementRepository

    Implements

    Index
    db: PostgresJsDatabase<packages/db/src/schema> & {}

    The db value.

    SORT_WHITELIST: Record<string, any> = ...
    • Generated

      Returns the result of findByWarehouse.

      Parameters

      • warehouseId: string

        The warehouseId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiMovement[]>

      The function result.

      Objective: In module packages/db/src/repositories/epi-movement.repository.ts, retrieve data through findByWarehouse.

      Behavior: Async; accepts warehouseId and tenantId; returns a value; invokes this.db .select() .from(epiMovements) .where(and(eq(epiMovem.

    • Generated

      Returns the result of listPaged.

      Parameters

      • tenantId: string

        The tenantId value.

      • warehouseId: string

        The warehouseId value.

      • query: ListEpiMovementsQuery

        The query value.

      Returns Promise<PagedResult<EpiMovement>>

      The function result.

      Objective: In module packages/db/src/repositories/epi-movement.repository.ts, retrieve data through listPaged.

      Behavior: Async; accepts tenantId and warehouseId and query; returns a value; invokes Math.max.