website refactor

This commit is contained in:
2026-01-16 13:48:18 +01:00
parent 20a42c52fd
commit 7e02fc3ea5
796 changed files with 1946 additions and 2545 deletions

View File

@@ -1,5 +0,0 @@
export * from './Payment';
export * from './MembershipFee';
export * from './MemberPayment';
export * from './Prize';
export * from './Wallet';

View File

@@ -1,2 +0,0 @@
export * from './entities';
export * from './repositories';

View File

@@ -5,14 +5,14 @@
import type { MembershipFee } from '../entities/MembershipFee';
import type { MemberPayment } from '../entities/MemberPayment';
export interface IMembershipFeeRepository {
export interface MembershipFeeRepository {
findById(id: string): Promise<MembershipFee | null>;
findByLeagueId(leagueId: string): Promise<MembershipFee | null>;
create(fee: MembershipFee): Promise<MembershipFee>;
update(fee: MembershipFee): Promise<MembershipFee>;
}
export interface IMemberPaymentRepository {
export interface MemberPaymentRepository {
findById(id: string): Promise<MemberPayment | null>;
findByFeeIdAndDriverId(feeId: string, driverId: string): Promise<MemberPayment | null>;
findByLeagueIdAndDriverId(leagueId: string, driverId: string, membershipFeeRepo: IMembershipFeeRepository): Promise<MemberPayment[]>;

View File

@@ -4,7 +4,7 @@
import type { Payment, PaymentType } from '../entities/Payment';
export interface IPaymentRepository {
export interface PaymentRepository {
findById(id: string): Promise<Payment | null>;
findByLeagueId(leagueId: string): Promise<Payment[]>;
findByPayerId(payerId: string): Promise<Payment[]>;

View File

@@ -4,7 +4,7 @@
import type { Prize } from '../entities/Prize';
export interface IPrizeRepository {
export interface PrizeRepository {
findById(id: string): Promise<Prize | null>;
findByLeagueId(leagueId: string): Promise<Prize[]>;
findByLeagueIdAndSeasonId(leagueId: string, seasonId: string): Promise<Prize[]>;

View File

@@ -4,14 +4,14 @@
import type { Wallet, Transaction } from '../entities/Wallet';
export interface IWalletRepository {
export interface WalletRepository {
findById(id: string): Promise<Wallet | null>;
findByLeagueId(leagueId: string): Promise<Wallet | null>;
create(wallet: Wallet): Promise<Wallet>;
update(wallet: Wallet): Promise<Wallet>;
}
export interface ITransactionRepository {
export interface TransactionRepository {
findById(id: string): Promise<Transaction | null>;
findByWalletId(walletId: string): Promise<Transaction[]>;
create(transaction: Transaction): Promise<Transaction>;

View File

@@ -1,4 +0,0 @@
export * from './IPaymentRepository';
export * from './IMembershipFeeRepository';
export * from './IPrizeRepository';
export * from './IWalletRepository';