elioria-sst-x
    Preparing search index...

    Class SupabaseInspectionEvidenceRepository

    Implements

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

    The db value.

    • Generated

      Executes delete.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<boolean>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-evidence.repository.ts, run delete.

      Behavior: Async; accepts id and tenantId; returns a value; invokes this.db.delete(inspectionEvidence) .where(and(eq(inspectionE.

    • Generated

      Returns the result of findByAction.

      Parameters

      • actionId: string

        The actionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionEvidence[]>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-evidence.repository.ts, retrieve data through findByAction.

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

    • Generated

      Returns the result of findByFinding.

      Parameters

      • findingId: string

        The findingId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionEvidence[]>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-evidence.repository.ts, retrieve data through findByFinding.

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionEvidence | null>

      The function result.

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

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

    • Generated

      Returns the result of findByInspection.

      Parameters

      • inspectionId: string

        The inspectionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionEvidence[]>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-evidence.repository.ts, retrieve data through findByInspection.

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

    • Generated

      Updates data through updateGovernance.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • data: {
            legalHold?: boolean;
            legalHoldAt?: Date | null;
            legalHoldBy?: string | null;
            legalHoldReason?: string | null;
            retentionUntil?: string | null;
        }

        The data value.

      Returns Promise<InspectionEvidence | null>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-evidence.repository.ts, change data through updateGovernance.

      Behavior: Async; accepts id and tenantId and data; returns a value; invokes this.db.update(inspectionEvidence).set(data) .where(and(eq(i.