elioria-sst-x
    Preparing search index...

    Class SupabaseEpiRequirementImpactRepository

    Implements

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

    The db value.

    • Generated

      Updates data through deleteByRequirement.

      Parameters

      • requirementId: string

        The requirementId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/epi-requirement-impact.repository.ts, change data through deleteByRequirement.

      Behavior: Async; accepts requirementId and tenantId; returns a value; invokes this.db .delete(epiRequirementImpacts) .where.

    • Generated

      Returns the result of findByCollaborator.

      Parameters

      • collaboratorId: string

        The collaboratorId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiRequirementImpact[]>

      The function result.

      Objective: In module packages/db/src/repositories/epi-requirement-impact.repository.ts, retrieve data through findByCollaborator.

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

    • Generated

      Returns the result of findByRequirement.

      Parameters

      • requirementId: string

        The requirementId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiRequirementImpact[]>

      The function result.

      Objective: In module packages/db/src/repositories/epi-requirement-impact.repository.ts, retrieve data through findByRequirement.

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

    • Generated

      Returns the result of findPendingByCollaborator.

      Parameters

      • collaboratorId: string

        The collaboratorId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiRequirementImpact[]>

      The function result.

      Objective: In module packages/db/src/repositories/epi-requirement-impact.repository.ts, retrieve data through findPendingByCollaborator.

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

    • Generated

      Returns the result of findPendingByCompany.

      Parameters

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      Returns Promise<EpiRequirementImpact[]>

      The function result.

      Objective: In module packages/db/src/repositories/epi-requirement-impact.repository.ts, retrieve data through findPendingByCompany.

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

    • Generated

      Returns the result of findPendingByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiRequirementImpact[]>

      The function result.

      Objective: In module packages/db/src/repositories/epi-requirement-impact.repository.ts, retrieve data through findPendingByTenant.

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

    • Generated

      Updates data through updateStatus.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • status: EpiImpactStatus

        The status value.

      • OptionalresolvedBy: string

        The resolvedBy value.

      • OptionalsheetId: string

        The sheetId value.

      Returns Promise<EpiRequirementImpact | null>

      The function result.

      Objective: In module packages/db/src/repositories/epi-requirement-impact.repository.ts, change data through updateStatus.

      Behavior: Async; accepts id and tenantId and status and resolvedBy and sheetId; returns a value; invokes this.db .update(epiRequirementImpacts) .set(payload) .where(.

    • Generated

      Executes upsert.

      Parameters

      • data: CreateEpiRequirementImpactData

        The data value.

      Returns Promise<EpiRequirementImpact>

      The function result.

      Objective: In module packages/db/src/repositories/epi-requirement-impact.repository.ts, run upsert.

      Behavior: Async; accepts data; returns a value; invokes this.db .insert(epiRequirementImpacts) .values(values) .onCo.