elioria-sst-x
    Preparing search index...

    Class SupabaseEpiDisposalRepository

    Implements

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

    The db value.

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

      Executes create.

      Parameters

      • data: CreateEpiDisposalData

        The data value.

      Returns Promise<EpiDisposal>

      The function result.

      Objective: In module packages/db/src/repositories/epi-disposal.repository.ts, run create.

      Behavior: Async; accepts data; returns a value; invokes this.db .insert(epiDisposals) .values({ tenantId: data.tenan.

    • Generated

      Returns the result of findByCompany.

      Parameters

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      Returns Promise<EpiDisposal[]>

      The function result.

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

      Behavior: Async; accepts tenantId and companyId; returns a value; invokes this.db .select() .from(epiDisposals) .where(and(eq(epiDispo.

    • Generated

      Returns the result of findByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiDisposal[]>

      The function result.

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

      Behavior: Async; accepts tenantId; returns a value; invokes this.db .select() .from(epiDisposals) .where(eq(epiDisposals.

    • Generated

      Returns the result of listPaged.

      Parameters

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      • query: ListEpiDisposalsQuery

        The query value.

      Returns Promise<PagedResult<EpiDisposal>>

      The function result.

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

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