elioria-sst-x
    Preparing search index...

    Class SupabaseEffectivenessCheckRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findByAction.

      Parameters

      • actionId: string

        The actionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InvestigationEffectivenessCheck[]>

      The function result.

      Objective: In module packages/db/src/repositories/investigacao-v2.repository.ts, retrieve data through findByAction.

      Behavior: Async; accepts actionId and tenantId; returns a value; invokes this.db.select().from(investigationEffectivenessChecks) .whe.

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InvestigationEffectivenessCheck | null>

      The function result.

      Objective: In module packages/db/src/repositories/investigacao-v2.repository.ts, retrieve data through findById.

      Behavior: Async; accepts id and tenantId; returns a value; invokes this.db.select().from(investigationEffectivenessChecks).wher.

    • Generated

      Returns the result of getLinkedEvidence.

      Parameters

      • checkId: string

        The checkId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EffectivenessEvidenceLink[]>

      The function result.

      Objective: In module packages/db/src/repositories/investigacao-v2.repository.ts, retrieve data through getLinkedEvidence.

      Behavior: Async; accepts checkId and tenantId; returns a value; invokes this.db.select().from(investigationEffectivenessEvidenceLink.

    • Generated

      Executes unlinkEvidence.

      Parameters

      • tenantId: string

        The tenantId value.

      • checkId: string

        The checkId value.

      • evidenceId: string

        The evidenceId value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/investigacao-v2.repository.ts, run unlinkEvidence.

      Behavior: Async; accepts tenantId and checkId and evidenceId; returns a value; invokes this.db.delete(investigationEffectivenessEvidenceLinks).wher.