elioria-sst-x
    Preparing search index...

    Class SupabaseEpiComplianceRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findByCollaborator.

      Parameters

      • collaboratorId: string

        The collaboratorId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiCompliance[]>

      The function result.

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

      Behavior: Async; accepts collaboratorId and tenantId; returns a value; invokes this.db .select() .from(epiCompliance) .where.

    • Generated

      Returns the result of findByCompanyUnits.

      Parameters

      • tenantId: string

        The tenantId value.

      • unitIds: string[]

        The unitIds value.

      Returns Promise<EpiCompliance[]>

      The function result.

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

      Behavior: Async; accepts tenantId and unitIds; returns a value; invokes this.db .select() .from(epiCompliance) .where.

    • Generated

      Returns the result of findByGhe.

      Parameters

      • gheId: string

        The gheId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiCompliance[]>

      The function result.

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

      Behavior: Async; accepts gheId and tenantId; returns a value; invokes this.db .select() .from(epiCompliance) .where.

    • Generated

      Returns the result of findByUnit.

      Parameters

      • unitId: string

        The unitId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiCompliance[]>

      The function result.

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

      Behavior: Async; accepts unitId and tenantId; returns a value; invokes this.db .select() .from(epiCompliance) .where.

    • Generated

      Returns the result of findSummaryByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiCompliance[]>

      The function result.

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

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

    • Generated

      Executes upsert.

      Parameters

      • data: CreateEpiComplianceData

        The data value.

      Returns Promise<EpiCompliance>

      The function result.

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

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