elioria-sst-x
    Preparing search index...

    Implements

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

    The db value.

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InvestigationApproval | 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(investigationApprovals) .where.

    • Generated

      Returns the result of findByInvestigation.

      Parameters

      • investigationId: string

        The investigationId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InvestigationApproval[]>

      The function result.

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

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

    • Generated

      Returns the result of findPendingByVersion.

      Parameters

      • investigationId: string

        The investigationId value.

      • version: number

        The version value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InvestigationApproval[]>

      The function result.

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

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

    • Generated

      Executes update.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • data: UpdateApprovalData

        The data value.

      Returns Promise<InvestigationApproval>

      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(investigationApprovals).set(data as any) .whe.