import { api } from './api'
import type { FinancialAuditLog } from '@/types/expense'

export const financialHistoryService = {
    // Financial History/Audit operations
    async getFinancialHistoryForGroup(
        groupId: number,
        params?: { skip?: number; limit?: number }
    ): Promise<FinancialAuditLog[]> {
        const response = await api.get(`/history/financial/group/${groupId}`, { params })
        return response.data
    },

    async getFinancialHistoryForUser(
        params?: { skip?: number; limit?: number }
    ): Promise<FinancialAuditLog[]> {
        const response = await api.get('/history/financial/user/me', { params })
        return response.data
    },
} 