elioria-sst-x
    Preparing search index...

    Class SupabaseRiskMethodologyRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findActive.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<RiskMethodology[]>

      The function result.

      Objective: In module packages/db/src/repositories/risk-methodology.repository.ts, retrieve data through findActive.

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<RiskMethodology | null>

      The function result.

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

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

    • Generated

      Returns the result of findByNameAndTenant.

      Parameters

      • name: string

        The name value.

      • tenantId: string

        The tenantId value.

      Returns Promise<RiskMethodology | null>

      The function result.

      Objective: In module packages/db/src/repositories/risk-methodology.repository.ts, retrieve data through findByNameAndTenant.

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

    • Generated

      Returns the result of findByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<RiskMethodology[]>

      The function result.

      Objective: In module packages/db/src/repositories/risk-methodology.repository.ts, retrieve data through findByTenant.

      Behavior: Async; accepts tenantId; returns a value; invokes this.db.select().from(riskMethodologies) .where(eq(riskMetho.

    • Generated

      Updates data through updateStatus.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • status: RiskMethodologyStatus

        The status value.

      Returns Promise<RiskMethodology | null>

      The function result.

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

      Behavior: Async; accepts id and tenantId and status; returns a value; invokes this.db.update(riskMethodologies) .set({ status }) .where(an.