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<InvestigationAction[]>

      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(investigationActions) .where.

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InvestigationAction | 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(investigationActions).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<InvestigationAction>>

      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(investigationActions) .where(and(eq(in.

    • Generated

      Returns the result of getLinkedBarriers.

      Parameters

      • actionId: string

        The actionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<ActionBarrierLink[]>

      The function result.

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

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

    • Generated

      Returns the result of getLinkedCauses.

      Parameters

      • actionId: string

        The actionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<ActionCauseLink[]>

      The function result.

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

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

    • Generated

      Returns the result of getLinkedEvidence.

      Parameters

      • actionId: string

        The actionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<ActionEvidenceLink[]>

      The function result.

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

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

    • Generated

      Executes unlinkBarrier.

      Parameters

      • tenantId: string

        The tenantId value.

      • actionId: string

        The actionId value.

      • barrierId: string

        The barrierId value.

      Returns Promise<void>

      The function result.

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

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

    • Generated

      Executes unlinkCause.

      Parameters

      • tenantId: string

        The tenantId value.

      • actionId: string

        The actionId 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 actionId and causeId; returns a value; invokes this.db.delete(investigationActionCauseLinks).where.

    • Generated

      Executes unlinkEvidence.

      Parameters

      • tenantId: string

        The tenantId value.

      • actionId: string

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

    • Generated

      Executes update.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • data: UpdateActionData

        The data value.

      Returns Promise<InvestigationAction>

      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(investigationActions).set(data as any) .where.