import { AgingBalancePayload } from '../../../commonPayloadTypes/agingReportPayloadTypes'; import { CurrencyPayload } from '../../../commonPayloadTypes/v2/viewAndReportPayloadv2'; import { AccountBasePayload } from '../../../entity/account/accountPayload'; import { ClassBasePayload } from '../../../entity/class/classPayload'; import { UserPayload } from '../../../entity/user/userPayload'; import { VendorPayload } from '../../../entity/vendor/vendorPayload'; import { ZeniAPIResponse } from '../../../responsePayload'; declare const toFluxAnalysisQuerySortKey: (v: string) => "vendor_name" | "is_reviewed" | "variance_amount"; export type FluxAnalysisQuerySortKey = ReturnType; export type FluxAnalysisActionQueryType = 'mark_as_reviewed' | 'mark_as_un_reviewed'; export interface PageMetadataPayload { is_more_data_to_load: boolean; next_page_token: string; } export interface FluxAnalysisQueryPayload { month_and_year: string; page_token: string | null; reimbursement_flag: boolean; sort_by: string; sort_order: string; } export interface FluxAnalysisReviewPayload { action: string; flux_analysis_entity_ids: string[]; } export interface MonthBalancePayload extends AgingBalancePayload { end_date: string; id: string; label: string; start_date: string; } export interface MonthBalanceAndVariancePayload { month_1: MonthBalancePayload; month_2: MonthBalancePayload; variance_amount: number; variance_percentage: number; } export interface FluxAnalysisEntitiesPayload { operating_expenses: FluxAnalysisOperatingExpensePayload[]; } export interface FluxAccountAndClassPayload extends MonthBalanceAndVariancePayload { account_id: string; accounting_class_id: string; } export interface FluxAnalysisOperatingExpensePayload extends MonthBalanceAndVariancePayload { anomaly_reason: string; category_and_class_json: FluxAccountAndClassPayload[]; flux_analysis_entity_id: string; is_reviewed: boolean | null; reviewed_at: string | null; reviewed_by_user_id: string | null; status: string; updated_at: string | null; vendor_id: string; } export interface FluxAnalysisTotalPayload { general_expenses: MonthBalanceAndVariancePayload; reimbursement: MonthBalanceAndVariancePayload; total: MonthBalanceAndVariancePayload; } export interface FluxAnalysisReportStatusPayload { code?: number; description?: string; last_refresh_attempt_time?: string | null; last_refresh_success_time?: string | null; message?: string; } export interface FluxAnalysisReportPayload { accounting_class: ClassBasePayload[]; accounts: AccountBasePayload[]; currency: CurrencyPayload; total_operating_expenses: FluxAnalysisTotalPayload; users: UserPayload[]; vendors: VendorPayload[]; flux_analysis_entities?: FluxAnalysisEntitiesPayload; page_metadata?: PageMetadataPayload; status?: FluxAnalysisReportStatusPayload; } export interface FluxAnalysisResponsePayload extends FluxAnalysisReportPayload { query: { month_and_year: string; page_token: string; reimbursement_flag: boolean; sort_by: string; sort_order: string; }; } export interface ReviewFluxAnalysisResponsePayload extends FluxAnalysisReportPayload { query: { action: string; flux_analysis_entity_ids: string[]; month_and_year: string; }; } export type FluxAnalysisViewResponse = ZeniAPIResponse; export type ReviewFluxAnalysisViewResponse = ZeniAPIResponse; export {};