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

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InvestigationCause | 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(investigationCauses) .where(and(eq(i.

    • Generated

      Returns the result of findByInvestigation.

      Parameters

      • investigationId: string

        The investigationId value.

      • tenantId: string

        The tenantId value.

      • Optionalquery: { page?: number; pageSize?: number }

        The query value.

      Returns Promise<PagedResult<InvestigationCause>>

      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 and.

    • Generated

      Returns the result of getLinkedEvidence.

      Parameters

      • causeId: string

        The causeId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CauseEvidenceLink[]>

      The function result.

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

      Behavior: Async; accepts causeId and tenantId; returns a value; invokes this.db .select() .from(investigationCauseEvidenceLinks) .wh.

    • Generated

      Returns the result of getLinkedTimeline.

      Parameters

      • causeId: string

        The causeId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CauseTimelineLink[]>

      The function result.

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

      Behavior: Async; accepts causeId and tenantId; returns a value; invokes this.db .select() .from(investigationCauseTimelineLinks) .wh.

    • Generated

      Executes unlinkEvidence.

      Parameters

      • tenantId: string

        The tenantId value.

      • causeId: string

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

    • Generated

      Executes unlinkTimeline.

      Parameters

      • tenantId: string

        The tenantId value.

      • causeId: string

        The causeId value.

      • timelineEventId: string

        The timelineEventId value.

      Returns Promise<void>

      The function result.

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

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

    • Generated

      Executes update.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • data: UpdateCauseData

        The data value.

      Returns Promise<InvestigationCause>

      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(investigationCauses) .set(data as Record<str; may throw.

      When the function cannot complete normally.