@layerfi/components 0.1.31 → 0.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -36,13 +36,17 @@ declare module '@layerfi/components/api/layer/authenticated_http' {
36
36
  }
37
37
  declare module '@layerfi/components/api/layer/balance_sheet' {
38
38
  import { BalanceSheet } from '@layerfi/components/types';
39
- export interface GetBalanceSheetParams {
39
+ export const getBalanceSheet: (baseUrl: string, accessToken: string | undefined, options?: {
40
+ params?: GetBalanceSheetParams | undefined;
41
+ } | undefined) => () => Promise<GetBalanceSheetReturn>;
42
+ export type GetBalanceSheetReturn = {
43
+ data?: BalanceSheet;
44
+ error?: unknown;
45
+ };
46
+ export interface GetBalanceSheetParams extends Record<string, string | undefined> {
40
47
  businessId: string;
41
- date: string;
48
+ effectiveDate: string;
42
49
  }
43
- export const getBalanceSheet: (_token: string, _params: {
44
- params: GetBalanceSheetParams;
45
- }) => () => BalanceSheet;
46
50
 
47
51
  }
48
52
  declare module '@layerfi/components/api/layer/bankTransactions' {
@@ -319,6 +323,22 @@ declare module '@layerfi/components/api/layer/profit_and_loss' {
319
323
  error?: unknown;
320
324
  }>;
321
325
 
326
+ }
327
+ declare module '@layerfi/components/api/layer/statement-of-cash-flow' {
328
+ import { StatementOfCashFlow } from '@layerfi/components/types';
329
+ export const getStatementOfCashFlow: (baseUrl: string, accessToken: string | undefined, options?: {
330
+ params?: GetStatementOfCashFlowParams | undefined;
331
+ } | undefined) => () => Promise<GetStatementOfCashFlowReturn>;
332
+ export type GetStatementOfCashFlowReturn = {
333
+ data?: StatementOfCashFlow;
334
+ error?: unknown;
335
+ };
336
+ export interface GetStatementOfCashFlowParams extends Record<string, string | undefined> {
337
+ businessId: string;
338
+ startDate: string;
339
+ endDate: string;
340
+ }
341
+
322
342
  }
323
343
  declare module '@layerfi/components/api/layer/tasks' {
324
344
  import { TaskTypes } from '@layerfi/components/types/tasks';
@@ -383,9 +403,9 @@ declare module '@layerfi/components/api/layer' {
383
403
  } | undefined) => Promise<{
384
404
  data: import("@layerfi/components/types").Account;
385
405
  }>;
386
- getBalanceSheet: (_token: string, _params: {
387
- params: import("@layerfi/components/api/layer/balance_sheet").GetBalanceSheetParams;
388
- }) => () => import("@layerfi/components/types").BalanceSheet;
406
+ getBalanceSheet: (baseUrl: string, accessToken: string | undefined, options?: {
407
+ params?: import("@layerfi/components/api/layer/balance_sheet").GetBalanceSheetParams | undefined;
408
+ } | undefined) => () => Promise<import("@layerfi/components/api/layer/balance_sheet").GetBalanceSheetReturn>;
389
409
  getBankTransactions: (baseUrl: string, accessToken: string | undefined, options?: {
390
410
  params?: import("@layerfi/components/api/layer/bankTransactions").GetBankTransactionsParams | undefined;
391
411
  } | undefined) => () => Promise<import("@layerfi/components/api/layer/bankTransactions").GetBankTransactionsReturn>;
@@ -575,6 +595,9 @@ declare module '@layerfi/components/api/layer' {
575
595
  } | undefined;
576
596
  body?: Record<string, unknown> | undefined;
577
597
  } | undefined) => Promise<Record<string, unknown>>;
598
+ getStatementOfCashFlow: (baseUrl: string, accessToken: string | undefined, options?: {
599
+ params?: import("@layerfi/components/api/layer/statement-of-cash-flow").GetStatementOfCashFlowParams | undefined;
600
+ } | undefined) => () => Promise<import("@layerfi/components/api/layer/statement-of-cash-flow").GetStatementOfCashFlowReturn>;
578
601
  };
579
602
 
580
603
  }
@@ -666,8 +689,22 @@ declare module '@layerfi/components/components/BadgeLoader/index' {
666
689
 
667
690
  }
668
691
  declare module '@layerfi/components/components/BalanceSheet/BalanceSheet' {
669
- import React from 'react';
670
- export const BalanceSheet: () => React.JSX.Element;
692
+ import React, { PropsWithChildren } from 'react';
693
+ export type BalanceSheetViewProps = PropsWithChildren & {
694
+ withExpandAllButton?: boolean;
695
+ };
696
+ export type BalanceSheetProps = PropsWithChildren & {
697
+ effectiveDate?: Date;
698
+ };
699
+ export const BalanceSheet: (props: BalanceSheetProps) => React.JSX.Element;
700
+
701
+ }
702
+ declare module '@layerfi/components/components/BalanceSheet/constants' {
703
+ export const BALANCE_SHEET_ROWS: {
704
+ name: string;
705
+ displayName: string;
706
+ lineItem: string;
707
+ }[];
671
708
 
672
709
  }
673
710
  declare module '@layerfi/components/components/BalanceSheet/index' {
@@ -676,17 +713,25 @@ declare module '@layerfi/components/components/BalanceSheet/index' {
676
713
  }
677
714
  declare module '@layerfi/components/components/BalanceSheetDatePicker/BalanceSheetDatePicker' {
678
715
  import React from 'react';
679
- type Props = {
680
- value: Date;
681
- onChange: React.ChangeEventHandler<HTMLInputElement>;
716
+ export type BalanceSheetDatePickerProps = {
717
+ effectiveDate: Date;
718
+ setEffectiveDate: (date: Date) => void;
682
719
  };
683
- export const BalanceSheetDatePicker: ({ value, onChange }: Props) => React.JSX.Element;
684
- export {};
720
+ export const BalanceSheetDatePicker: ({ effectiveDate, setEffectiveDate, }: BalanceSheetDatePickerProps) => React.JSX.Element;
685
721
 
686
722
  }
687
723
  declare module '@layerfi/components/components/BalanceSheetDatePicker/index' {
688
724
  export { BalanceSheetDatePicker } from '@layerfi/components/components/BalanceSheetDatePicker/BalanceSheetDatePicker';
689
725
 
726
+ }
727
+ declare module '@layerfi/components/components/BalanceSheetExpandAllButton/BalanceSheetExpandAllButton' {
728
+ import React from 'react';
729
+ export const BalanceSheetExpandAllButton: () => React.JSX.Element;
730
+
731
+ }
732
+ declare module '@layerfi/components/components/BalanceSheetExpandAllButton/index' {
733
+ export { BalanceSheetExpandAllButton } from '@layerfi/components/components/BalanceSheetExpandAllButton/BalanceSheetExpandAllButton';
734
+
690
735
  }
691
736
  declare module '@layerfi/components/components/BalanceSheetRow/BalanceSheetRow' {
692
737
  import React from 'react';
@@ -697,14 +742,34 @@ declare module '@layerfi/components/components/BalanceSheetRow/BalanceSheetRow'
697
742
  lineItem?: LineItem | null;
698
743
  variant?: string;
699
744
  summarize?: boolean;
745
+ defaultExpanded?: boolean;
700
746
  };
701
- export const BalanceSheetRow: ({ lineItem, depth, maxDepth, variant, summarize, }: Props) => React.JSX.Element | null;
747
+ export const BalanceSheetRow: ({ lineItem, depth, maxDepth, variant, summarize, defaultExpanded, }: Props) => React.JSX.Element | null;
702
748
  export {};
703
749
 
704
750
  }
705
751
  declare module '@layerfi/components/components/BalanceSheetRow/index' {
706
752
  export { BalanceSheetRow } from '@layerfi/components/components/BalanceSheetRow/BalanceSheetRow';
707
753
 
754
+ }
755
+ declare module '@layerfi/components/components/BalanceSheetTable/BalanceSheetTable' {
756
+ import React from 'react';
757
+ import { BalanceSheet } from '@layerfi/components/types';
758
+ type BalanceSheetRowProps = {
759
+ name: string;
760
+ displayName: string;
761
+ lineItem: string;
762
+ };
763
+ export const BalanceSheetTable: ({ data, config, }: {
764
+ data: BalanceSheet;
765
+ config: BalanceSheetRowProps[];
766
+ }) => React.JSX.Element;
767
+ export {};
768
+
769
+ }
770
+ declare module '@layerfi/components/components/BalanceSheetTable/index' {
771
+ export { BalanceSheetTable } from '@layerfi/components/components/BalanceSheetTable/BalanceSheetTable';
772
+
708
773
  }
709
774
  declare module '@layerfi/components/components/BankTransactionList/Assignment' {
710
775
  import React from 'react';
@@ -1354,6 +1419,23 @@ declare module '@layerfi/components/components/DataState/DataState' {
1354
1419
  declare module '@layerfi/components/components/DataState/index' {
1355
1420
  export { DataState, DataStateStatus } from '@layerfi/components/components/DataState/DataState';
1356
1421
 
1422
+ }
1423
+ declare module '@layerfi/components/components/DateDayPicker/DateDayPicker' {
1424
+ import React from 'react';
1425
+ interface DateDayPickerProps {
1426
+ dateDay: Date;
1427
+ changeDateDay: (dateDay: Date) => void;
1428
+ enableFutureDates?: boolean;
1429
+ currentDateOption?: boolean;
1430
+ minDate?: Date;
1431
+ }
1432
+ export const DateDayPicker: ({ dateDay, changeDateDay, minDate, enableFutureDates, currentDateOption, }: DateDayPickerProps) => React.JSX.Element;
1433
+ export {};
1434
+
1435
+ }
1436
+ declare module '@layerfi/components/components/DateDayPicker/index' {
1437
+ export { DateDayPicker } from '@layerfi/components/components/DateDayPicker/DateDayPicker';
1438
+
1357
1439
  }
1358
1440
  declare module '@layerfi/components/components/DateMonthPicker/DateMonthPicker' {
1359
1441
  import React from 'react';
@@ -1364,8 +1446,9 @@ declare module '@layerfi/components/components/DateMonthPicker/DateMonthPicker'
1364
1446
  enableFutureDates?: boolean;
1365
1447
  minDate?: Date;
1366
1448
  currentDateOption?: boolean;
1449
+ responsive?: boolean;
1367
1450
  }
1368
- export const DateMonthPicker: ({ dateRange, changeDateRange, enableFutureDates, minDate, currentDateOption, }: DateMonthPickerProps) => React.JSX.Element;
1451
+ export const DateMonthPicker: ({ dateRange, changeDateRange, enableFutureDates, minDate, currentDateOption, responsive, }: DateMonthPickerProps) => React.JSX.Element;
1369
1452
  export {};
1370
1453
 
1371
1454
  }
@@ -1474,19 +1557,6 @@ declare module '@layerfi/components/components/GlobalWidgets/GlobalWidgets' {
1474
1557
  declare module '@layerfi/components/components/GlobalWidgets/index' {
1475
1558
  export { GlobalWidgets } from '@layerfi/components/components/GlobalWidgets/GlobalWidgets';
1476
1559
 
1477
- }
1478
- declare module '@layerfi/components/components/Hello/Hello' {
1479
- import React from 'react';
1480
- type Props = {
1481
- user?: string | undefined;
1482
- };
1483
- export const Hello: ({ user }: Props) => React.JSX.Element;
1484
- export {};
1485
-
1486
- }
1487
- declare module '@layerfi/components/components/Hello/index' {
1488
- export { Hello } from '@layerfi/components/components/Hello/Hello';
1489
-
1490
1560
  }
1491
1561
  declare module '@layerfi/components/components/HoverMenu/HoverMenu' {
1492
1562
  import React, { ReactNode } from 'react';
@@ -1518,6 +1588,19 @@ declare module '@layerfi/components/components/Input/DateInput' {
1518
1588
  showTimeSelectOnly?: boolean | undefined;
1519
1589
  }) => React.JSX.Element;
1520
1590
 
1591
+ }
1592
+ declare module '@layerfi/components/components/Input/DateRangeInput' {
1593
+ import React from 'react';
1594
+ import 'react-datepicker/dist/react-datepicker.css';
1595
+ export const DateRangeInput: ({ selected, onChange, ...props }: {
1596
+ selected?: Date[] | undefined;
1597
+ onChange?: ((dates: [Date | null, Date | null]) => void) | undefined;
1598
+ dateFormat?: string | undefined;
1599
+ timeIntervals?: number | undefined;
1600
+ timeCaption?: string | undefined;
1601
+ placeholderText?: string | undefined;
1602
+ }) => React.JSX.Element;
1603
+
1521
1604
  }
1522
1605
  declare module '@layerfi/components/components/Input/FileInput' {
1523
1606
  import React from 'react';
@@ -1588,6 +1671,7 @@ declare module '@layerfi/components/components/Input/index' {
1588
1671
  export { Select } from '@layerfi/components/components/Input/Select';
1589
1672
  export { InputWithBadge } from '@layerfi/components/components/Input/InputWithBadge';
1590
1673
  export { DateInput } from '@layerfi/components/components/Input/DateInput';
1674
+ export { DateRangeInput } from '@layerfi/components/components/Input/DateRangeInput';
1591
1675
 
1592
1676
  }
1593
1677
  declare module '@layerfi/components/components/Journal/Journal' {
@@ -1929,6 +2013,29 @@ declare module '@layerfi/components/components/Panel/Panel' {
1929
2013
  declare module '@layerfi/components/components/Panel/index' {
1930
2014
  export { Panel } from '@layerfi/components/components/Panel/Panel';
1931
2015
 
2016
+ }
2017
+ declare module '@layerfi/components/components/PanelView/PanelView' {
2018
+ import React, { ReactNode } from 'react';
2019
+ export interface PanelViewProps {
2020
+ children: ReactNode;
2021
+ title?: string;
2022
+ headerControls?: ReactNode;
2023
+ }
2024
+ export const PanelView: ({ title, children, headerControls, }: PanelViewProps) => React.JSX.Element;
2025
+
2026
+ }
2027
+ declare module '@layerfi/components/components/PanelView/index' {
2028
+ export { PanelView } from '@layerfi/components/components/PanelView/PanelView';
2029
+
2030
+ }
2031
+ declare module '@layerfi/components/components/PanelViewHeader/PanelViewHeader' {
2032
+ import React, { ReactNode } from 'react';
2033
+ export interface PanelViewHeaderProps {
2034
+ title?: string;
2035
+ controls?: ReactNode;
2036
+ }
2037
+ export const PanelViewHeader: ({ title, controls }: PanelViewHeaderProps) => React.JSX.Element;
2038
+
1932
2039
  }
1933
2040
  declare module '@layerfi/components/components/Pill/Pill' {
1934
2041
  import React, { PropsWithChildren } from 'react';
@@ -2042,8 +2149,9 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Detai
2042
2149
  sidebarScope?: SidebarScope;
2043
2150
  date: number | Date;
2044
2151
  isLoading?: boolean;
2152
+ showDatePicker?: boolean;
2045
2153
  }
2046
- export const DetailedChart: ({ filteredData, filteredTotal, hoveredItem, setHoveredItem, sidebarScope, date, isLoading, }: DetailedChartProps) => React.JSX.Element;
2154
+ export const DetailedChart: ({ filteredData, filteredTotal, hoveredItem, setHoveredItem, sidebarScope, date, isLoading, showDatePicker, }: DetailedChartProps) => React.JSX.Element;
2047
2155
  export {};
2048
2156
 
2049
2157
  }
@@ -2172,17 +2280,6 @@ declare module '@layerfi/components/components/ProfitAndLossView/ProfitAndLossVi
2172
2280
  declare module '@layerfi/components/components/ProfitAndLossView/index' {
2173
2281
  export { ProfitAndLossView } from '@layerfi/components/components/ProfitAndLossView/ProfitAndLossView';
2174
2282
 
2175
- }
2176
- declare module '@layerfi/components/components/SkeletonBalanceSheetRow/SkeletonBalanceSheetRow' {
2177
- import React, { PropsWithChildren } from 'react';
2178
- type Props = PropsWithChildren;
2179
- export const SkeletonBalanceSheetRow: ({ children }: Props) => React.JSX.Element;
2180
- export {};
2181
-
2182
- }
2183
- declare module '@layerfi/components/components/SkeletonBalanceSheetRow/index' {
2184
- export { SkeletonBalanceSheetRow } from '@layerfi/components/components/SkeletonBalanceSheetRow/SkeletonBalanceSheetRow';
2185
-
2186
2283
  }
2187
2284
  declare module '@layerfi/components/components/SkeletonLoader/SkeletonLoader' {
2188
2285
  import React from 'react';
@@ -2197,6 +2294,66 @@ declare module '@layerfi/components/components/SkeletonLoader/SkeletonLoader' {
2197
2294
  declare module '@layerfi/components/components/SkeletonLoader/index' {
2198
2295
  export { SkeletonLoader } from '@layerfi/components/components/SkeletonLoader/SkeletonLoader';
2199
2296
 
2297
+ }
2298
+ declare module '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow' {
2299
+ import React from 'react';
2300
+ export const StatementOfCashFlow: () => React.JSX.Element;
2301
+
2302
+ }
2303
+ declare module '@layerfi/components/components/StatementOfCashFlow/constants' {
2304
+ export const STATEMENT_OF_CASH_FLOW_ROWS: {
2305
+ name: string;
2306
+ displayName: string;
2307
+ lineItem: string;
2308
+ type: string;
2309
+ summarize: boolean;
2310
+ }[];
2311
+ export const ADJUSTMENTS_ROW_NAME = "Adjustments to Net Income";
2312
+
2313
+ }
2314
+ declare module '@layerfi/components/components/StatementOfCashFlow/index' {
2315
+ export { StatementOfCashFlow } from '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow';
2316
+
2317
+ }
2318
+ declare module '@layerfi/components/components/StatementOfCashFlowRow/StatementOfCashFlowRow' {
2319
+ import React from 'react';
2320
+ import { LineItem } from '@layerfi/components/types';
2321
+ type Props = {
2322
+ depth?: number;
2323
+ maxDepth?: number;
2324
+ lineItem?: LineItem | null;
2325
+ variant?: string;
2326
+ summarize?: boolean;
2327
+ defaultExpanded?: boolean;
2328
+ };
2329
+ export const StatementOfCashFlowRow: ({ lineItem, depth, maxDepth, variant, summarize, defaultExpanded, }: Props) => React.JSX.Element | null;
2330
+ export {};
2331
+
2332
+ }
2333
+ declare module '@layerfi/components/components/StatementOfCashFlowRow/index' {
2334
+ export { StatementOfCashFlowRow } from '@layerfi/components/components/StatementOfCashFlowRow/StatementOfCashFlowRow';
2335
+
2336
+ }
2337
+ declare module '@layerfi/components/components/StatementOfCashFlowTable/StatementOfCashFlowTable' {
2338
+ import React from 'react';
2339
+ import { StatementOfCashFlow } from '@layerfi/components/types';
2340
+ type StatementOfCashFlowRowProps = {
2341
+ name: string;
2342
+ displayName: string;
2343
+ lineItem: string | undefined;
2344
+ summarize: boolean;
2345
+ type: string;
2346
+ };
2347
+ export const StatementOfCashFlowTable: ({ data, config, }: {
2348
+ data: StatementOfCashFlow;
2349
+ config: StatementOfCashFlowRowProps[];
2350
+ }) => React.JSX.Element;
2351
+ export {};
2352
+
2353
+ }
2354
+ declare module '@layerfi/components/components/StatementOfCashFlowTable/index' {
2355
+ export { StatementOfCashFlowTable } from '@layerfi/components/components/StatementOfCashFlowTable/StatementOfCashFlowTable';
2356
+
2200
2357
  }
2201
2358
  declare module '@layerfi/components/components/Tabs/Tab' {
2202
2359
  import React, { ChangeEvent, ReactNode } from 'react';
@@ -2396,13 +2553,13 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
2396
2553
  floating: HTMLElement | null;
2397
2554
  } & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
2398
2555
  context: {
2556
+ update: () => void;
2399
2557
  x: number;
2400
2558
  y: number;
2401
2559
  placement: import("@floating-ui/utils").Placement;
2402
2560
  strategy: import("@floating-ui/utils").Strategy;
2403
2561
  middlewareData: import("@floating-ui/core").MiddlewareData;
2404
2562
  isPositioned: boolean;
2405
- update: () => void;
2406
2563
  floatingStyles: React.CSSProperties;
2407
2564
  open: boolean;
2408
2565
  onOpenChange: (open: boolean, event?: Event | undefined, reason?: import("@floating-ui/react").OpenChangeReason | undefined) => void;
@@ -2445,13 +2602,13 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
2445
2602
  floating: HTMLElement | null;
2446
2603
  } & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
2447
2604
  context: {
2605
+ update: () => void;
2448
2606
  x: number;
2449
2607
  y: number;
2450
2608
  placement: import("@floating-ui/utils").Placement;
2451
2609
  strategy: import("@floating-ui/utils").Strategy;
2452
2610
  middlewareData: import("@floating-ui/core").MiddlewareData;
2453
2611
  isPositioned: boolean;
2454
- update: () => void;
2455
2612
  floatingStyles: React.CSSProperties;
2456
2613
  open: boolean;
2457
2614
  onOpenChange: (open: boolean, event?: Event | undefined, reason?: import("@floating-ui/react").OpenChangeReason | undefined) => void;
@@ -2654,6 +2811,22 @@ declare module '@layerfi/components/config/theme' {
2654
2811
  };
2655
2812
  };
2656
2813
 
2814
+ }
2815
+ declare module '@layerfi/components/contexts/BalanceSheetContext/BalanceSheetContext' {
2816
+ /// <reference types="react" />
2817
+ import { useBalanceSheet } from '@layerfi/components/hooks/useBalanceSheet/index';
2818
+ export type BalanceSheetContextType = ReturnType<typeof useBalanceSheet>;
2819
+ export const BalanceSheetContext: import("react").Context<{
2820
+ data: import("@layerfi/components/types").BalanceSheet | undefined;
2821
+ isLoading: boolean;
2822
+ error: unknown;
2823
+ refetch: () => void;
2824
+ }>;
2825
+
2826
+ }
2827
+ declare module '@layerfi/components/contexts/BalanceSheetContext/index' {
2828
+ export { BalanceSheetContext } from '@layerfi/components/contexts/BalanceSheetContext/BalanceSheetContext';
2829
+
2657
2830
  }
2658
2831
  declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransactionsContext' {
2659
2832
  /// <reference types="react" />
@@ -2852,6 +3025,40 @@ declare module '@layerfi/components/contexts/LinkedAccountsContext/LinkedAccount
2852
3025
  declare module '@layerfi/components/contexts/LinkedAccountsContext/index' {
2853
3026
  export { LinkedAccountsContext } from '@layerfi/components/contexts/LinkedAccountsContext/LinkedAccountsContext';
2854
3027
 
3028
+ }
3029
+ declare module '@layerfi/components/contexts/StatementOfCashContext/StatementOfCashFlowContext' {
3030
+ /// <reference types="react" />
3031
+ import { useStatementOfCashFlow } from '@layerfi/components/hooks/useStatementOfCashFlow/index';
3032
+ export type StatementOfCashFlowContextType = ReturnType<typeof useStatementOfCashFlow>;
3033
+ export const StatementOfCashFlowContext: import("react").Context<{
3034
+ data: import("@layerfi/components/types").StatementOfCashFlow | undefined;
3035
+ isLoading: boolean;
3036
+ error: unknown;
3037
+ refetch: () => void;
3038
+ }>;
3039
+
3040
+ }
3041
+ declare module '@layerfi/components/contexts/StatementOfCashContext/index' {
3042
+ export { StatementOfCashFlowContext } from '@layerfi/components/contexts/StatementOfCashContext/StatementOfCashFlowContext';
3043
+
3044
+ }
3045
+ declare module '@layerfi/components/contexts/TableExpandContext/TableExpandContext' {
3046
+ import React, { ReactNode } from 'react';
3047
+ interface TableExpandContextType {
3048
+ tableExpandState: boolean;
3049
+ toggleTableExpandState: () => void;
3050
+ }
3051
+ export const TableExpandContext: React.Context<TableExpandContextType>;
3052
+ interface TableExpandProviderProps {
3053
+ children: ReactNode;
3054
+ }
3055
+ export const TableExpandProvider: React.FC<TableExpandProviderProps>;
3056
+ export {};
3057
+
3058
+ }
3059
+ declare module '@layerfi/components/contexts/TableExpandContext/index' {
3060
+ export { TableExpandContext, TableExpandProvider } from '@layerfi/components/contexts/TableExpandContext/TableExpandContext';
3061
+
2855
3062
  }
2856
3063
  declare module '@layerfi/components/contexts/TasksContext/TasksContext' {
2857
3064
  /// <reference types="react" />
@@ -2881,6 +3088,7 @@ declare module '@layerfi/components/hooks/useBalanceSheet/useBalanceSheet' {
2881
3088
  data: BalanceSheet | undefined;
2882
3089
  isLoading: boolean;
2883
3090
  error: unknown;
3091
+ refetch: () => void;
2884
3092
  };
2885
3093
  export const useBalanceSheet: UseBalanceSheet;
2886
3094
  export {};
@@ -3250,6 +3458,36 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossQuery
3250
3458
  export const useProfitAndLossQuery: UseProfitAndLossQueryReturn;
3251
3459
  export {};
3252
3460
 
3461
+ }
3462
+ declare module '@layerfi/components/hooks/useStatementOfCashFlow/index' {
3463
+ export { useStatementOfCashFlow } from '@layerfi/components/hooks/useStatementOfCashFlow/useStatementOfCashFlow';
3464
+
3465
+ }
3466
+ declare module '@layerfi/components/hooks/useStatementOfCashFlow/useStatementOfCashFlow' {
3467
+ import { StatementOfCashFlow } from '@layerfi/components/types';
3468
+ type UseStatementOfCashFlow = (startDate?: Date, endDate?: Date) => {
3469
+ data: StatementOfCashFlow | undefined;
3470
+ isLoading: boolean;
3471
+ error: unknown;
3472
+ refetch: () => void;
3473
+ };
3474
+ export const useStatementOfCashFlow: UseStatementOfCashFlow;
3475
+ export {};
3476
+
3477
+ }
3478
+ declare module '@layerfi/components/hooks/useTableExpandRow/index' {
3479
+ export { useTableExpandRow } from '@layerfi/components/hooks/useTableExpandRow/useTableExpandRow';
3480
+
3481
+ }
3482
+ declare module '@layerfi/components/hooks/useTableExpandRow/useTableExpandRow' {
3483
+ /// <reference types="react" />
3484
+ export const useTableExpandRow: (index: number, defaultOpen?: boolean) => {
3485
+ isOpen: boolean;
3486
+ setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
3487
+ showComponent: boolean;
3488
+ INDENTATION: number;
3489
+ };
3490
+
3253
3491
  }
3254
3492
  declare module '@layerfi/components/hooks/useTasks/index' {
3255
3493
  export { useTasks } from '@layerfi/components/hooks/useTasks/useTasks';
@@ -3313,13 +3551,6 @@ declare module '@layerfi/components/icons/Bell' {
3313
3551
  const Bell: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
3314
3552
  export default Bell;
3315
3553
 
3316
- }
3317
- declare module '@layerfi/components/icons/Calendar' {
3318
- import * as React from 'react';
3319
- import { SVGProps } from 'react';
3320
- const Calendar: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
3321
- export default Calendar;
3322
-
3323
3554
  }
3324
3555
  declare module '@layerfi/components/icons/Check' {
3325
3556
  import * as React from 'react';
@@ -3546,20 +3777,20 @@ declare module '@layerfi/components/icons/types' {
3546
3777
  }
3547
3778
  declare module '@layerfi/components/index' {
3548
3779
  export { LayerProvider } from '@layerfi/components/providers/LayerProvider/index';
3549
- export { BalanceSheet } from '@layerfi/components/components/BalanceSheet/index';
3550
- export { BankTransactions } from '@layerfi/components/components/BankTransactions/index';
3551
- export { Hello } from '@layerfi/components/components/Hello/index';
3780
+ export { Onboarding } from '@layerfi/components/components/Onboarding/index';
3552
3781
  export { LinkedAccounts } from '@layerfi/components/components/LinkedAccounts/index';
3782
+ export { BankTransactions } from '@layerfi/components/components/BankTransactions/index';
3553
3783
  export { ProfitAndLoss } from '@layerfi/components/components/ProfitAndLoss/index';
3554
- export { ProfitAndLossView } from '@layerfi/components/components/ProfitAndLossView/index';
3784
+ export { BalanceSheet } from '@layerfi/components/components/BalanceSheet/index';
3785
+ export { StatementOfCashFlow } from '@layerfi/components/components/StatementOfCashFlow/index';
3555
3786
  export { ChartOfAccounts } from '@layerfi/components/components/ChartOfAccounts/index';
3556
3787
  export { Journal } from '@layerfi/components/components/Journal/index';
3557
- export { Onboarding } from '@layerfi/components/components/Onboarding/index';
3558
3788
  export { Tasks } from '@layerfi/components/components/Tasks/index';
3559
3789
  export { AccountingOverview } from '@layerfi/components/views/AccountingOverview/index';
3560
3790
  export { BankTransactionsWithLinkedAccounts } from '@layerfi/components/views/BankTransactionsWithLinkedAccounts/index';
3561
- export { Reports } from '@layerfi/components/views/Reports/index';
3562
3791
  export { GeneralLedgerView } from '@layerfi/components/views/GeneralLedger/index';
3792
+ export { Reports } from '@layerfi/components/views/Reports/index';
3793
+ export { ProfitAndLossView } from '@layerfi/components/components/ProfitAndLossView/index';
3563
3794
  export { useLayerContext } from '@layerfi/components/contexts/LayerContext/index';
3564
3795
  export { useBankTransactionsContext } from '@layerfi/components/contexts/BankTransactionsContext/index';
3565
3796
 
@@ -3671,8 +3902,8 @@ declare module '@layerfi/components/types/balance_sheet' {
3671
3902
  type: 'Balance_Sheet';
3672
3903
  start_date: string;
3673
3904
  end_date: string;
3674
- assets: LineItem[];
3675
- liabilities_and_equity: LineItem[];
3905
+ assets: LineItem;
3906
+ liabilities_and_equity: LineItem;
3676
3907
  fully_categorized: boolean;
3677
3908
  }
3678
3909
 
@@ -4291,6 +4522,21 @@ declare module '@layerfi/components/types/profit_and_loss' {
4291
4522
  months: ProfitAndLossSummary[];
4292
4523
  }
4293
4524
 
4525
+ }
4526
+ declare module '@layerfi/components/types/statement_of_cash_flow' {
4527
+ import { LineItem } from '@layerfi/components/types/line_item';
4528
+ export interface StatementOfCashFlow {
4529
+ business_id: string;
4530
+ type: 'Cashflow_Statement';
4531
+ start_date: string;
4532
+ end_date: string;
4533
+ financing_activities: LineItem;
4534
+ investing_activities: LineItem;
4535
+ operating_activities: LineItem;
4536
+ period_net_cash_increase: number;
4537
+ cash_at_end_of_period: number;
4538
+ }
4539
+
4294
4540
  }
4295
4541
  declare module '@layerfi/components/types/tasks' {
4296
4542
  export interface TaskTypes {
@@ -4319,6 +4565,7 @@ declare module '@layerfi/components/types' {
4319
4565
  export { ProfitAndLoss } from '@layerfi/components/types/profit_and_loss';
4320
4566
  export { LineItem } from '@layerfi/components/types/line_item';
4321
4567
  export { BalanceSheet } from '@layerfi/components/types/balance_sheet';
4568
+ export { StatementOfCashFlow } from '@layerfi/components/types/statement_of_cash_flow';
4322
4569
  export { Direction, BankTransaction } from '@layerfi/components/types/bank_transactions';
4323
4570
  export { CategorizationStatus, CategorizationScope, Category, CategorizationType, AutoCategorization, SuggestedCategorization, SingleCategoryUpdate, SplitCategoryUpdate, CategoryUpdate, } from '@layerfi/components/types/categories';
4324
4571
  export { ChartOfAccounts, Account, NewAccount, EditAccount, } from '@layerfi/components/types/chart_of_accounts';
@@ -4482,10 +4729,13 @@ declare module '@layerfi/components/views/Reports/Reports' {
4482
4729
  export interface ReportsProps {
4483
4730
  title?: string;
4484
4731
  }
4732
+ type ReportType = 'profitAndLoss' | 'balanceSheet' | 'statementOfCashFlow';
4485
4733
  export interface ReportsPanelProps {
4486
4734
  containerRef: RefObject<HTMLDivElement>;
4735
+ openReport: ReportType;
4487
4736
  }
4488
4737
  export const Reports: ({ title }: ReportsProps) => React.JSX.Element;
4738
+ export {};
4489
4739
 
4490
4740
  }
4491
4741
  declare module '@layerfi/components/views/Reports/index' {