elioria-sst-x
    Preparing search index...

    Class SupabaseCipaAuditTrailRepository

    Implements

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

    The db value.

    • Generated

      Executes append.

      Parameters

      • data: Omit<CipaAuditTrailRecord, "id" | "createdAt">

        The data value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/cipa.repository.ts, run append.

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

    • Generated

      Returns the result of findByElection.

      Parameters

      • electionId: string

        The electionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaAuditTrailRecord[]>

      The function result.

      Objective: In module packages/db/src/repositories/cipa.repository.ts, retrieve data through findByElection.

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

    • Generated

      Returns the result of findByResource.

      Parameters

      • resource: string

        The resource value.

      • resourceId: string

        The resourceId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaAuditTrailRecord[]>

      The function result.

      Objective: In module packages/db/src/repositories/cipa.repository.ts, retrieve data through findByResource.

      Behavior: Async; accepts resource and resourceId and tenantId; returns a value; invokes this.db.select().from(cipaAuditTrail) .where(and(eq(cipaAudi.