elioria-sst-x
    Preparing search index...

    Class SupabaseCipaPeDocDeliveryRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findByDocument.

      Parameters

      • documentId: string

        The documentId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaPeDocDelivery[]>

      The function result.

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

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaPeDocDelivery | null>

      The function result.

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

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

    • Generated

      Updates data through updateStatus.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • data: { receiptConfirmedAt?: Date; receiptEvidenceUrl?: string; status: any }

        The data value.

      Returns Promise<CipaPeDocDelivery | null>

      The function result.

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

      Behavior: Async; accepts id and tenantId and data; returns a value; invokes this.db.update(cipaElectionDocDeliveries).set(payload) .wher.