website refactor
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
export * from './Payment';
|
||||
export * from './MembershipFee';
|
||||
export * from './MemberPayment';
|
||||
export * from './Prize';
|
||||
export * from './Wallet';
|
||||
@@ -1,2 +0,0 @@
|
||||
export * from './entities';
|
||||
export * from './repositories';
|
||||
@@ -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[]>;
|
||||
@@ -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[]>;
|
||||
@@ -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[]>;
|
||||
@@ -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>;
|
||||
@@ -1,4 +0,0 @@
|
||||
export * from './IPaymentRepository';
|
||||
export * from './IMembershipFeeRepository';
|
||||
export * from './IPrizeRepository';
|
||||
export * from './IWalletRepository';
|
||||
Reference in New Issue
Block a user