elioria-sst-x
    Preparing search index...

    Implements

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

    The db value.

    • Generated

      Executes addEvidence.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • evidenceUrl: string

        The evidenceUrl value.

      Returns Promise<ActionPlan | null>

      The function result.

      Objective: In module packages/db/src/repositories/action-plan.repository.ts, run addEvidence.

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<ActionPlan | null>

      The function result.

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

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

    • Generated

      Returns the result of findByInventory.

      Parameters

      • inventoryId: string

        The inventoryId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<ActionPlan[]>

      The function result.

      Objective: In module packages/db/src/repositories/action-plan.repository.ts, retrieve data through findByInventory.

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

    • Generated

      Returns the result of findByRiskItem.

      Parameters

      • riskItemId: string

        The riskItemId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<ActionPlan[]>

      The function result.

      Objective: In module packages/db/src/repositories/action-plan.repository.ts, retrieve data through findByRiskItem.

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

    • Generated

      Updates data through removeEvidence.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • evidenceUrl: string

        The evidenceUrl value.

      Returns Promise<ActionPlan | null>

      The function result.

      Objective: In module packages/db/src/repositories/action-plan.repository.ts, change data through removeEvidence.

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

    • Generated

      Updates data through updateStatus.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • status: ActionPlanStatus

        The status value.

      • OptionalcompletedAt: Date

        The completedAt value.

      Returns Promise<ActionPlan | null>

      The function result.

      Objective: In module packages/db/src/repositories/action-plan.repository.ts, change data through updateStatus.

      Behavior: Async; accepts id and tenantId and status and completedAt; returns a value; invokes this.db .update(actionPlans) .set(update) .where(and(eq(acti.