elioria-sst-x
    Preparing search index...

    Implements

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

    The db value.

    • Generated

      Returns the result of findAllByInvestigationIds.

      Parameters

      • investigationIds: string[]

        The investigationIds value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InvestigationBarrier[]>

      The function result.

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

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InvestigationBarrier | 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(investigationBarriers) .where.

    • Generated

      Returns the result of findByInvestigation.

      Parameters

      • investigationId: string

        The investigationId value.

      • tenantId: string

        The tenantId value.

      • Optionalquery: any

        The query value.

      Returns Promise<PagedResult<InvestigationBarrier>>

      The function result.

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

      Behavior: Async; accepts investigationId and tenantId and query; returns a value; invokes this.db .select() .from(investigationBarriers) .where(and(eq.

    • Generated

      Returns the result of getLinkedCauses.

      Parameters

      • barrierId: string

        The barrierId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<BarrierCauseLink[]>

      The function result.

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

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

    • Generated

      Returns the result of getLinkedEvidence.

      Parameters

      • barrierId: string

        The barrierId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<BarrierEvidenceLink[]>

      The function result.

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

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

    • Generated

      Executes unlinkCause.

      Parameters

      • tenantId: string

        The tenantId value.

      • barrierId: string

        The barrierId value.

      • causeId: string

        The causeId value.

      Returns Promise<void>

      The function result.

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

      Behavior: Async; accepts tenantId and barrierId and causeId; returns a value; invokes this.db.delete(investigationBarrierCauseLinks).where.

    • Generated

      Executes unlinkEvidence.

      Parameters

      • tenantId: string

        The tenantId value.

      • barrierId: string

        The barrierId 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 barrierId and evidenceId; returns a value; invokes this.db.delete(investigationBarrierEvidenceLinks).where.

    • Generated

      Executes update.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • data: UpdateBarrierData

        The data value.

      Returns Promise<InvestigationBarrier>

      The function result.

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

      Behavior: Async; accepts id and tenantId and data; returns a value; invokes this.db .update(investigationBarriers) .set(data as any) .wh.