Skip to main content
Glama
report-data-builder.ts804 B
import type { MonthData, Account } from '../../types.js'; import type { MonthlySummaryReportData } from './types.js'; export class MonthlySummaryReportDataBuilder { build( start: string, end: string, accountId: string | undefined, accounts: Account[], sortedMonths: MonthData[], averages: { avgIncome: number; avgExpenses: number; avgInvestments: number; avgTraditionalSavings: number; avgTotalSavings: number; avgTraditionalSavingsRate: number; avgTotalSavingsRate: number; } ): MonthlySummaryReportData { const accountName = accountId ? accounts.find((a) => a.id === accountId)?.name : undefined; return { start, end, accountId, accountName, sortedMonths, ...averages, }; } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/s-stefanov/actual-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server