games_app/backend/dist/repositories/ledgerAdjustmentRepository.d.ts
2026-06-29 15:01:23 +02:00

31 lines
974 B
TypeScript

export type LedgerAdjustmentRow = {
id: string;
user_id: string;
wallet_type_id: number;
adjustment_type: 'bonus' | 'admin_adjustment';
amount: string;
reason_encrypted: string;
approved_by: string;
transaction_id: string | null;
created_at: Date;
};
export declare function createAdjustment(input: {
userId: string;
walletTypeId: number;
adjustmentType: 'bonus' | 'admin_adjustment';
amount: bigint;
reason: string;
approvedBy: string;
transactionId?: string;
}): Promise<LedgerAdjustmentRow>;
export declare function listAdjustments(opts: {
userId?: string;
limit?: number;
offset?: number;
}): Promise<{
items: LedgerAdjustmentRow[];
total: number;
}>;
export declare function findById(id: string): Promise<LedgerAdjustmentRow | null>;
export declare function attachTransactionId(id: string, transactionId: string): Promise<void>;
//# sourceMappingURL=ledgerAdjustmentRepository.d.ts.map