import { AttachmentFilePayload } from '../../entity/file/filePayload'; import { ZeniAPIResponse } from '../../responsePayload'; export type MonthEndTemplateData = Record; /** * The AI CFO insight fields a controller can edit before the month-end email * is sent. Keys are the `agent_insights_*` merge vars the email template * renders from, so this object is merged straight into `template_data`. */ export type AgentInsightEdits = Record<`agent_insights_${string}`, string>; export interface CompanyMonthEndReportViewPayload { files: AttachmentFilePayload[]; html: string | null; recipient_email_list: string[]; subject: string | null; template_data: MonthEndTemplateData; tenant_receiver_email_list: string[]; zeni_requests_data: string[]; agent_insights_edited_at?: string | null; agent_insights_edited_by?: string | null; draft_user_id?: string; last_month_end_email_draft_saved_at?: string; zeni_requests_html?: string; } interface MonthEndHistoricReportPayload { email_history_html: string; files: AttachmentFilePayload[]; month_end_email_send_date: string; recipient_email_list: string[]; subject: string; user_id: string; email_send_user_id?: string; } export interface CompanyMonthEndHistoricReportPayload { history: MonthEndHistoricReportPayload[]; } interface ImproveUsingZeniGPTPayload { text: string; } export interface CompanyMonthEndReportHistoricDatesPayload { history_dates: string[]; } export interface CompanyMonthEndReportTemplatesPayload { missing_receipts: string | null; uncategorized_expenses: string | null; uncategorized_incomes: string | null; } export type CompanyMonthEndReportViewResponse = ZeniAPIResponse; export type SendCompanyMonthEndReportResponse = ZeniAPIResponse; export type SaveCompanyMonthEndReportResponse = ZeniAPIResponse; export type ImproveUsingZeniGPTResponse = ZeniAPIResponse; export type CompanyMonthEndReportHistoricDatesResponse = ZeniAPIResponse; export type CompanyMonthEndReportTemplatesResponse = ZeniAPIResponse; export type CompanyMonthEndHistoricReportResponse = ZeniAPIResponse; export {};