@cfxlabsinc/b2b-services
    Preparing search index...
    type RewardLegInput = {
        account:
            | {
                identityId: TransactionLeg["identityId"];
                organizationId: TransactionLeg["organizationId"];
            }
            | null;
        claim: | Pick<
            typeof rewardClaimTable.$inferSelect,
            "externalId"
            | "receiptType"
            | "receiptId",
        >
        | null;
        ledger: Pick<
            typeof rewardLedgerTable.$inferSelect,
            "externalId"
            | "transactionType"
            | "amount"
            | "note",
        > & {
            createdAt: Temporal.Instant;
            customerId: TransactionLeg["customerId"];
            updatedAt: Temporal.Instant;
        };
        payout: RewardPayoutInput
        | null;
    }
    Index
    account:
        | {
            identityId: TransactionLeg["identityId"];
            organizationId: TransactionLeg["organizationId"];
        }
        | null

    The reward account's owner: an identity or an organization, neither when pending.

    claim:
        | Pick<
            typeof rewardClaimTable.$inferSelect,
            "externalId"
            | "receiptType"
            | "receiptId",
        >
        | null

    The claim whose DEBIT entry this is.

    ledger: Pick<
        typeof rewardLedgerTable.$inferSelect,
        "externalId"
        | "transactionType"
        | "amount"
        | "note",
    > & {
        createdAt: Temporal.Instant;
        customerId: TransactionLeg["customerId"];
        updatedAt: Temporal.Instant;
    }

    An IDENTITY-side reward_ledger entry.

    payout: RewardPayoutInput | null

    The claim's on-chain payout; null for a credit, a plain debit or a transfer-settled claim.