One reward program's metadata + funded balance + leverage by its external id, or null. Delegates to search (never a bespoke query).
Reward program for a customer, labelled with the customer's name, plus the funded pool balance + leverage and the pool wallet address. Null when no such customer exists, or the customer has no (fully provisioned) reward program. The customer-keyed rich read for the Overview tile + internal dashboard (which link the on-chain wallet).
List reward programs across customers (or a customerIds / ids subset),
each with its funded pool balance + leverage. All computed set-based in a
single query — the funded balance via the DB-indexed on-chain balance
column and the committed (owed) balance via a correlated reward_ledger
sum — so the list stays one round trip regardless of page size. Returns one
page plus the exact window-count total.
OptionalcustomerIds?: string[]Optional external customer id filter.
Optionalids?: string[]Optional external reward_program id filter.
OptionalorderBy?: DbOrderByCriterion<Optionalpage?: numberDefaults to 1.
OptionalpageSize?: numberDefaults to 25.
Admin reads of reward programs across customers.
searchlists program metadata + funded balance + leverage across all customers (set-based, one query);get({ id })delegates to it for a single program;getByCustomeris the customer-keyed rich read (adds the pool wallet address) used by the customer Overview tile and the internal dashboard. Per the admin-service convention,searchscopes on an OPTIONALcustomerIdsfilter, never a requiredcustomerId.