function decryptAttendeeFields
decryptAttendeeFields<R extends RawAttendeeRow>(
row: R,
privateKey: CryptoKey,
paidListing?: boolean,
): Promise<DecryptedAttendeeRow<R>>

Decrypt attendee fields from the PII blob. Requires migration to be complete (admin is gated behind migration). When paidListing is false, payment_id and refunded are skipped.

price_paid and refunded are coerced only when the read actually selected them: a table read that skipped their (expensive) subqueries carries neither column, and String(undefined) / Boolean(undefined) would fabricate a bogus value.

Type Parameters

Parameters

row: R
privateKey: CryptoKey
optional
paidListing: boolean = true

Return Type

Usage

import { decryptAttendeeFields } from "docs/database.ts";