@layerfi/components 0.1.15 → 0.1.17

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
@@ -128,16 +128,66 @@ declare module '@layerfi/components/api/layer/chart_of_accounts' {
128
128
  data: LedgerAccountsEntry;
129
129
  }>;
130
130
 
131
+ }
132
+ declare module '@layerfi/components/api/layer/journal' {
133
+ import { JournalEntry } from '@layerfi/components/types/journal';
134
+ export const getJournal: (baseUrl: string, accessToken: string | undefined, options?: {
135
+ params?: Record<string, string | undefined> | undefined;
136
+ } | undefined) => () => Promise<{
137
+ data: JournalEntry[];
138
+ }>;
139
+ export const createJournalEntries: (baseUrl: string, accessToken: string | undefined, options?: {
140
+ params?: Record<string, string | undefined> | undefined;
141
+ body?: Record<string, unknown> | undefined;
142
+ } | undefined) => Promise<{
143
+ data: JournalEntry[];
144
+ }>;
145
+
131
146
  }
132
147
  declare module '@layerfi/components/api/layer/linked_accounts' {
133
148
  import { LinkedAccounts, PublicToken } from '@layerfi/components/types/linked_accounts';
134
149
  export const getLinkedAccounts: (baseUrl: string, accessToken: string | undefined, options?: {
135
- params?: Record<string, string | undefined> | undefined;
150
+ params?: {
151
+ businessId: string;
152
+ } | undefined;
136
153
  } | undefined) => () => Promise<{
137
154
  data: LinkedAccounts;
138
155
  }>;
156
+ export const confirmConnection: (baseUrl: string, accessToken: string | undefined, options?: {
157
+ params?: {
158
+ businessId: string;
159
+ accountId: string;
160
+ } | undefined;
161
+ body?: Record<string, unknown> | undefined;
162
+ } | undefined) => Promise<Record<string, unknown>>;
163
+ export const denyConnection: (baseUrl: string, accessToken: string | undefined, options?: {
164
+ params?: {
165
+ businessId: string;
166
+ accountId: string;
167
+ } | undefined;
168
+ body?: Record<string, unknown> | undefined;
169
+ } | undefined) => Promise<Record<string, unknown>>;
170
+ export const unlinkConnection: (baseUrl: string, accessToken: string | undefined, options?: {
171
+ params?: {
172
+ businessId: string;
173
+ connectionId: string;
174
+ } | undefined;
175
+ body?: Record<string, unknown> | undefined;
176
+ } | undefined) => Promise<Record<string, unknown>>;
177
+ export const unlinkAccount: (baseUrl: string, accessToken: string | undefined, options?: {
178
+ params?: {
179
+ businessId: string;
180
+ accountId: string;
181
+ } | undefined;
182
+ body?: Record<string, unknown> | undefined;
183
+ } | undefined) => Promise<Record<string, unknown>>;
184
+ /**********************
185
+ * Plaid Specific API *
186
+ **********************/
139
187
  export const getPlaidLinkToken: (baseUrl: string, accessToken: string | undefined, options?: {
140
- params?: Record<string, string | undefined> | undefined;
188
+ params?: {
189
+ businessId: string;
190
+ } | undefined;
141
191
  body?: Record<string, unknown> | undefined;
142
192
  } | undefined) => Promise<{
143
193
  data: {
@@ -145,24 +195,27 @@ declare module '@layerfi/components/api/layer/linked_accounts' {
145
195
  link_token: string;
146
196
  };
147
197
  }>;
148
- export const exchangePlaidPublicToken: (baseUrl: string, accessToken: string | undefined, options?: {
149
- params?: Record<string, string | undefined> | undefined;
150
- body?: PublicToken | undefined;
151
- } | undefined) => Promise<Record<string, unknown>>;
152
- /**
153
- * This is named per plaid terminology. It means unlinking an institution
154
- */
155
- export const unlinkPlaidItem: (baseUrl: string, accessToken: string | undefined, options?: {
198
+ export const getPlaidUpdateModeLinkToken: (baseUrl: string, accessToken: string | undefined, options?: {
156
199
  params?: {
157
200
  businessId: string;
158
- plaidItemId: string;
159
201
  } | undefined;
160
202
  body?: Record<string, unknown> | undefined;
203
+ } | undefined) => Promise<{
204
+ data: {
205
+ type: 'Link_Token';
206
+ link_token: string;
207
+ };
208
+ }>;
209
+ export const exchangePlaidPublicToken: (baseUrl: string, accessToken: string | undefined, options?: {
210
+ params?: {
211
+ businessId: string;
212
+ } | undefined;
213
+ body?: PublicToken | undefined;
161
214
  } | undefined) => Promise<Record<string, unknown>>;
162
- export const unlinkPlaidAccount: (baseUrl: string, accessToken: string | undefined, options?: {
215
+ export const unlinkPlaidItem: (baseUrl: string, accessToken: string | undefined, options?: {
163
216
  params?: {
164
217
  businessId: string;
165
- accountId: string;
218
+ plaidItemId: string;
166
219
  } | undefined;
167
220
  body?: Record<string, unknown> | undefined;
168
221
  } | undefined) => Promise<Record<string, unknown>>;
@@ -256,12 +309,38 @@ declare module '@layerfi/components/api/layer' {
256
309
  error?: unknown;
257
310
  }>;
258
311
  getLinkedAccounts: (baseUrl: string, accessToken: string | undefined, options?: {
259
- params?: Record<string, string | undefined> | undefined;
312
+ params?: {
313
+ businessId: string;
314
+ } | undefined;
260
315
  } | undefined) => () => Promise<{
261
316
  data: import("@layerfi/components/types/linked_accounts").LinkedAccounts;
262
317
  }>;
263
- getPlaidLinkToken: (baseUrl: string, accessToken: string | undefined, options?: {
318
+ getJournal: (baseUrl: string, accessToken: string | undefined, options?: {
264
319
  params?: Record<string, string | undefined> | undefined;
320
+ } | undefined) => () => Promise<{
321
+ data: import("@layerfi/components/types").JournalEntry[];
322
+ }>;
323
+ createJournalEntries: (baseUrl: string, accessToken: string | undefined, options?: {
324
+ params?: Record<string, string | undefined> | undefined;
325
+ body?: Record<string, unknown> | undefined;
326
+ } | undefined) => Promise<{
327
+ data: import("@layerfi/components/types").JournalEntry[];
328
+ }>;
329
+ getPlaidLinkToken: (baseUrl: string, accessToken: string | undefined, options?: {
330
+ params?: {
331
+ businessId: string;
332
+ } | undefined;
333
+ body?: Record<string, unknown> | undefined;
334
+ } | undefined) => Promise<{
335
+ data: {
336
+ type: "Link_Token";
337
+ link_token: string;
338
+ };
339
+ }>;
340
+ getPlaidUpdateModeLinkToken: (baseUrl: string, accessToken: string | undefined, options?: {
341
+ params?: {
342
+ businessId: string;
343
+ } | undefined;
265
344
  body?: Record<string, unknown> | undefined;
266
345
  } | undefined) => Promise<{
267
346
  data: {
@@ -270,10 +349,12 @@ declare module '@layerfi/components/api/layer' {
270
349
  };
271
350
  }>;
272
351
  exchangePlaidPublicToken: (baseUrl: string, accessToken: string | undefined, options?: {
273
- params?: Record<string, string | undefined> | undefined;
352
+ params?: {
353
+ businessId: string;
354
+ } | undefined;
274
355
  body?: import("@layerfi/components/types/linked_accounts").PublicToken | undefined;
275
356
  } | undefined) => Promise<Record<string, unknown>>;
276
- unlinkPlaidAccount: (baseUrl: string, accessToken: string | undefined, options?: {
357
+ unlinkAccount: (baseUrl: string, accessToken: string | undefined, options?: {
277
358
  params?: {
278
359
  businessId: string;
279
360
  accountId: string;
@@ -287,12 +368,44 @@ declare module '@layerfi/components/api/layer' {
287
368
  } | undefined;
288
369
  body?: Record<string, unknown> | undefined;
289
370
  } | undefined) => Promise<Record<string, unknown>>;
371
+ confirmConnection: (baseUrl: string, accessToken: string | undefined, options?: {
372
+ params?: {
373
+ businessId: string;
374
+ accountId: string;
375
+ } | undefined;
376
+ body?: Record<string, unknown> | undefined;
377
+ } | undefined) => Promise<Record<string, unknown>>;
378
+ denyConnection: (baseUrl: string, accessToken: string | undefined, options?: {
379
+ params?: {
380
+ businessId: string;
381
+ accountId: string;
382
+ } | undefined;
383
+ body?: Record<string, unknown> | undefined;
384
+ } | undefined) => Promise<Record<string, unknown>>;
290
385
  };
291
386
 
292
387
  }
293
388
  declare module '@layerfi/components/api/util' {
294
389
  export const formStringFromObject: (object: Record<string, string | number | boolean>) => string;
295
390
 
391
+ }
392
+ declare module '@layerfi/components/components/ActionableRow/ActionableRow' {
393
+ import React, { ReactNode } from 'react';
394
+ interface ActionableRowProps {
395
+ icon?: ReactNode;
396
+ iconBox?: ReactNode;
397
+ title?: string | ReactNode;
398
+ description?: string | ReactNode;
399
+ button?: ReactNode;
400
+ onClick?: () => void;
401
+ }
402
+ export const ActionableRow: ({ icon, iconBox, title, description, button, onClick, }: ActionableRowProps) => React.JSX.Element;
403
+ export {};
404
+
405
+ }
406
+ declare module '@layerfi/components/components/ActionableRow/index' {
407
+ export { ActionableRow } from '@layerfi/components/components/ActionableRow/ActionableRow';
408
+
296
409
  }
297
410
  declare module '@layerfi/components/components/Badge/Badge' {
298
411
  import React, { ReactNode } from 'react';
@@ -323,6 +436,19 @@ declare module '@layerfi/components/components/Badge/index' {
323
436
  export { Badge } from '@layerfi/components/components/Badge/Badge';
324
437
  export { BadgeVariant } from '@layerfi/components/components/Badge/Badge';
325
438
 
439
+ }
440
+ declare module '@layerfi/components/components/BadgeLoader/BadgeLoader' {
441
+ import React, { ReactNode } from 'react';
442
+ export interface BadgeLoaderProps {
443
+ children?: ReactNode;
444
+ size?: number;
445
+ }
446
+ export const BadgeLoader: ({ children }: BadgeLoaderProps) => React.JSX.Element;
447
+
448
+ }
449
+ declare module '@layerfi/components/components/BadgeLoader/index' {
450
+ export { BadgeLoader } from '@layerfi/components/components/BadgeLoader/BadgeLoader';
451
+
326
452
  }
327
453
  declare module '@layerfi/components/components/BalanceSheet/BalanceSheet' {
328
454
  import React from 'react';
@@ -439,11 +565,17 @@ declare module '@layerfi/components/components/BankTransactionRow/index' {
439
565
  }
440
566
  declare module '@layerfi/components/components/BankTransactions/BankTransactions' {
441
567
  import React from 'react';
568
+ import { BankTransaction } from '@layerfi/components/types';
569
+ export enum DisplayState {
570
+ review = "review",
571
+ categorized = "categorized"
572
+ }
442
573
  export interface BankTransactionsProps {
443
574
  asWidget?: boolean;
444
575
  pageSize?: number;
445
576
  categorizedOnly?: boolean;
446
577
  }
578
+ export const filterVisibility: (display: DisplayState, bankTransaction: BankTransaction) => boolean;
447
579
  export const BankTransactions: ({ asWidget, pageSize, categorizedOnly, }: BankTransactionsProps) => React.JSX.Element;
448
580
 
449
581
  }
@@ -476,14 +608,23 @@ declare module '@layerfi/components/components/Button/Button' {
476
608
  }
477
609
  export const Button: ({ className, children, variant, leftIcon, rightIcon, iconOnly, iconAsPrimary, justify, ...props }: ButtonProps) => React.JSX.Element;
478
610
 
611
+ }
612
+ declare module '@layerfi/components/components/Button/CloseButton' {
613
+ import React, { ButtonHTMLAttributes } from 'react';
614
+ export interface CloseButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
615
+ textOnly?: boolean;
616
+ }
617
+ export const CloseButton: ({ className, children, textOnly, ...props }: CloseButtonProps) => React.JSX.Element;
618
+
479
619
  }
480
620
  declare module '@layerfi/components/components/Button/IconButton' {
481
621
  import React, { ButtonHTMLAttributes, ReactNode } from 'react';
482
622
  export interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
483
623
  icon: ReactNode;
484
624
  active?: boolean;
625
+ withBorder?: boolean;
485
626
  }
486
- export const IconButton: ({ className, children, icon, active, ...props }: IconButtonProps) => React.JSX.Element;
627
+ export const IconButton: ({ className, children, icon, active, withBorder, ...props }: IconButtonProps) => React.JSX.Element;
487
628
 
488
629
  }
489
630
  declare module '@layerfi/components/components/Button/RetryButton' {
@@ -527,6 +668,7 @@ declare module '@layerfi/components/components/Button/index' {
527
668
  export { SubmitButton } from '@layerfi/components/components/Button/SubmitButton';
528
669
  export { TextButton } from '@layerfi/components/components/Button/TextButton';
529
670
  export { BackButton } from '@layerfi/components/components/Button/BackButton';
671
+ export { CloseButton } from '@layerfi/components/components/Button/CloseButton';
530
672
 
531
673
  }
532
674
  declare module '@layerfi/components/components/Card/Card' {
@@ -588,51 +730,26 @@ declare module '@layerfi/components/components/CategorySelect/index' {
588
730
  }
589
731
  declare module '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts' {
590
732
  import React from 'react';
591
- import { useChartOfAccounts } from '@layerfi/components/hooks/useChartOfAccounts/index';
592
- import { useLedgerAccounts } from '@layerfi/components/hooks/useLedgerAccounts/index';
593
733
  export type View = 'mobile' | 'tablet' | 'desktop';
594
734
  export interface ChartOfAccountsProps {
595
735
  asWidget?: boolean;
736
+ withDateControl?: boolean;
737
+ withExpandAllButton?: boolean;
596
738
  }
597
- export type ChartOfAccountsContextType = ReturnType<typeof useChartOfAccounts>;
598
- export const ChartOfAccountsContext: React.Context<{
599
- data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances | undefined;
600
- isLoading?: boolean | undefined;
601
- isValidating?: boolean | undefined;
602
- error?: unknown;
603
- refetch: () => void;
604
- create: (newAccount: import("@layerfi/components/types").NewAccount) => void;
605
- form?: import("@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts").ChartOfAccountsForm | undefined;
606
- sendingForm?: boolean | undefined;
607
- apiError?: string | undefined;
608
- addAccount: () => void;
609
- editAccount: (id: string) => void;
610
- cancelForm: () => void;
611
- changeFormData: (name: string, value: string | import("@layerfi/components/types/general").BaseSelectOption | undefined) => void;
612
- submitForm: () => void;
613
- }>;
614
- export type LedgerAccountsContextType = ReturnType<typeof useLedgerAccounts>;
615
- export const LedgerAccountsContext: React.Context<{
616
- data?: import("@layerfi/components/types").LedgerAccounts | undefined;
617
- entryData?: import("@layerfi/components/types").LedgerAccountsEntry | undefined;
618
- isLoading?: boolean | undefined;
619
- isLoadingEntry?: boolean | undefined;
620
- isValidating?: boolean | undefined;
621
- isValidatingEntry?: boolean | undefined;
622
- error?: unknown;
623
- errorEntry?: unknown;
624
- refetch: () => void;
625
- accountId?: string | undefined;
626
- setAccountId: (id?: string | undefined) => void;
627
- selectedEntryId?: string | undefined;
628
- setSelectedEntryId: (id?: string | undefined) => void;
629
- closeSelectedEntry: () => void;
630
- }>;
631
739
  export const ChartOfAccounts: (props: ChartOfAccountsProps) => React.JSX.Element;
632
740
 
633
741
  }
634
742
  declare module '@layerfi/components/components/ChartOfAccounts/index' {
635
- export { ChartOfAccounts, ChartOfAccountsContext, LedgerAccountsContext, View, } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
743
+ export { ChartOfAccounts, View } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
744
+
745
+ }
746
+ declare module '@layerfi/components/components/ChartOfAccountsDatePicker/ChartOfAccountsDatePicker' {
747
+ import React from 'react';
748
+ export const ChartOfAccountsDatePicker: () => React.JSX.Element;
749
+
750
+ }
751
+ declare module '@layerfi/components/components/ChartOfAccountsDatePicker/index' {
752
+ export { ChartOfAccountsDatePicker } from '@layerfi/components/components/ChartOfAccountsDatePicker/ChartOfAccountsDatePicker';
636
753
 
637
754
  }
638
755
  declare module '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccountsForm' {
@@ -669,6 +786,7 @@ declare module '@layerfi/components/components/ChartOfAccountsRow/ChartOfAccount
669
786
  import React from 'react';
670
787
  import { LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
671
788
  import { View } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
789
+ import { ExpandActionState } from '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTable';
672
790
  type ChartOfAccountsRowProps = {
673
791
  account: LedgerAccountBalance;
674
792
  depth?: number;
@@ -678,8 +796,9 @@ declare module '@layerfi/components/components/ChartOfAccountsRow/ChartOfAccount
678
796
  acountsLength: number;
679
797
  defaultOpen?: boolean;
680
798
  view?: View;
799
+ expandAll?: ExpandActionState;
681
800
  };
682
- export const ChartOfAccountsRow: ({ account, depth, index, cumulativeIndex, expanded, defaultOpen, acountsLength, view, }: ChartOfAccountsRowProps) => React.JSX.Element;
801
+ export const ChartOfAccountsRow: ({ account, depth, index, cumulativeIndex, expanded, defaultOpen, acountsLength, view, expandAll, }: ChartOfAccountsRowProps) => React.JSX.Element;
683
802
  export {};
684
803
 
685
804
  }
@@ -700,10 +819,14 @@ declare module '@layerfi/components/components/ChartOfAccountsSidebar/index' {
700
819
  }
701
820
  declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTable' {
702
821
  import React, { RefObject } from 'react';
703
- import { View } from '@layerfi/components/components/ChartOfAccounts/index';
704
- export const ChartOfAccountsTable: ({ view, containerRef, }: {
822
+ import { View } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
823
+ export type ExpandActionState = undefined | 'expanded' | 'collapsed';
824
+ export const ChartOfAccountsTable: ({ view, containerRef, asWidget, withDateControl, withExpandAllButton, }: {
705
825
  view: View;
706
826
  containerRef: RefObject<HTMLDivElement>;
827
+ asWidget?: boolean | undefined;
828
+ withDateControl?: boolean | undefined;
829
+ withExpandAllButton?: boolean | undefined;
707
830
  }) => React.JSX.Element;
708
831
 
709
832
  }
@@ -712,23 +835,29 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/index' {
712
835
 
713
836
  }
714
837
  declare module '@layerfi/components/components/Container/Container' {
715
- import React, { ReactNode } from 'react';
838
+ import React, { CSSProperties, ReactNode } from 'react';
716
839
  export interface ContainerProps {
717
840
  name: string;
718
841
  className?: string;
719
842
  asWidget?: boolean;
720
843
  elevated?: boolean;
721
844
  children: ReactNode;
845
+ style?: CSSProperties;
722
846
  }
723
847
  export const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
724
848
 
725
849
  }
726
850
  declare module '@layerfi/components/components/Container/Header' {
727
851
  import React, { CSSProperties, ReactNode } from 'react';
852
+ export enum HeaderLayout {
853
+ DEFAULT = "default",
854
+ NEXT_LINE_ACTIONS = "next-line-actions"
855
+ }
728
856
  export interface HeaderProps {
729
857
  className?: string;
730
858
  style?: CSSProperties;
731
859
  children: ReactNode;
860
+ layout?: HeaderLayout;
732
861
  }
733
862
  export const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLElement>>;
734
863
 
@@ -739,25 +868,42 @@ declare module '@layerfi/components/components/Container/index' {
739
868
 
740
869
  }
741
870
  declare module '@layerfi/components/components/DataState/DataState' {
742
- import React from 'react';
871
+ import React, { ReactNode } from 'react';
743
872
  export enum DataStateStatus {
744
873
  allDone = "allDone",
874
+ success = "success",
745
875
  failed = "failed",
746
876
  info = "info"
747
877
  }
748
878
  export interface DataStateProps {
749
879
  status: DataStateStatus;
750
880
  title?: string;
881
+ icon?: ReactNode;
751
882
  description?: string;
752
883
  onRefresh?: () => void;
753
884
  isLoading?: boolean;
754
885
  }
755
- export const DataState: ({ status, title, description, onRefresh, isLoading, }: DataStateProps) => React.JSX.Element;
886
+ export const DataState: ({ status, title, description, onRefresh, isLoading, icon, }: DataStateProps) => React.JSX.Element;
756
887
 
757
888
  }
758
889
  declare module '@layerfi/components/components/DataState/index' {
759
890
  export { DataState, DataStateStatus } from '@layerfi/components/components/DataState/DataState';
760
891
 
892
+ }
893
+ declare module '@layerfi/components/components/DateMonthPicker/DateMonthPicker' {
894
+ import React from 'react';
895
+ import { DateRange } from '@layerfi/components/types';
896
+ interface DateMonthPickerProps {
897
+ dateRange: DateRange;
898
+ changeDateRange: (dateRange: Partial<DateRange>) => void;
899
+ }
900
+ export const DateMonthPicker: ({ dateRange, changeDateRange, }: DateMonthPickerProps) => React.JSX.Element;
901
+ export {};
902
+
903
+ }
904
+ declare module '@layerfi/components/components/DateMonthPicker/index' {
905
+ export { DateMonthPicker } from '@layerfi/components/components/DateMonthPicker/DateMonthPicker';
906
+
761
907
  }
762
908
  declare module '@layerfi/components/components/DateTime/DateTime' {
763
909
  import React from 'react';
@@ -836,37 +982,41 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/Expand
836
982
  declare module '@layerfi/components/components/ExpandedBankTransactionRow/index' {
837
983
  export { ExpandedBankTransactionRow } from '@layerfi/components/components/ExpandedBankTransactionRow/ExpandedBankTransactionRow';
838
984
 
839
- }
840
- declare module '@layerfi/components/components/Hello/Hello' {
841
- import React from 'react';
842
- type Props = {
843
- user?: string | undefined;
844
- };
845
- export const Hello: ({ user }: Props) => React.JSX.Element;
846
- export {};
847
-
848
- }
849
- declare module '@layerfi/components/components/Hello/index' {
850
- export { Hello } from '@layerfi/components/components/Hello/Hello';
851
-
852
985
  }
853
986
  declare module '@layerfi/components/components/HoverMenu/HoverMenu' {
854
987
  import React, { ReactNode } from 'react';
988
+ import { Source } from '@layerfi/components/types/linked_accounts';
855
989
  export interface HoverMenuProps {
856
990
  children: ReactNode;
857
991
  config: {
858
992
  name: string;
859
- action: (plaidItemId: string, accountId: string) => void;
993
+ action: (source: Source, sourceId: string, accountId: string) => void;
860
994
  }[];
861
- plaidItemId: string;
995
+ connectionId: string;
862
996
  accountId: string;
997
+ source: Source;
863
998
  }
864
- export const HoverMenu: ({ children, config, plaidItemId, accountId, }: HoverMenuProps) => React.JSX.Element;
999
+ export const HoverMenu: ({ children, config, connectionId, accountId, source, }: HoverMenuProps) => React.JSX.Element;
865
1000
 
866
1001
  }
867
1002
  declare module '@layerfi/components/components/HoverMenu/index' {
868
1003
  export { HoverMenu, HoverMenuProps } from '@layerfi/components/components/HoverMenu/HoverMenu';
869
1004
 
1005
+ }
1006
+ declare module '@layerfi/components/components/Input/DateInput' {
1007
+ import React from 'react';
1008
+ import 'react-datepicker/dist/react-datepicker.css';
1009
+ export const DateInput: ({ selected, onChange, ...props }: {
1010
+ selected?: string | undefined;
1011
+ onChange?: ((date: string) => void) | undefined;
1012
+ dateFormat?: string | undefined;
1013
+ timeIntervals?: number | undefined;
1014
+ timeCaption?: string | undefined;
1015
+ placeholderText?: string | undefined;
1016
+ showTimeSelect?: boolean | undefined;
1017
+ showTimeSelectOnly?: boolean | undefined;
1018
+ }) => React.JSX.Element;
1019
+
870
1020
  }
871
1021
  declare module '@layerfi/components/components/Input/FileInput' {
872
1022
  import React from 'react';
@@ -898,6 +1048,19 @@ declare module '@layerfi/components/components/Input/InputGroup' {
898
1048
  }
899
1049
  export const InputGroup: ({ label, name, className, inline, children, }: InputGroupProps) => React.JSX.Element;
900
1050
 
1051
+ }
1052
+ declare module '@layerfi/components/components/Input/InputWithBadge' {
1053
+ import React, { HTMLProps } from 'react';
1054
+ import { BadgeVariant } from '@layerfi/components/components/Badge/index';
1055
+ export interface InputWithBadgeProps extends HTMLProps<HTMLInputElement> {
1056
+ isInvalid?: boolean;
1057
+ errorMessage?: string;
1058
+ leftText?: string;
1059
+ variant?: BadgeVariant;
1060
+ badge: React.ReactNode;
1061
+ }
1062
+ export const InputWithBadge: ({ className, isInvalid, errorMessage, leftText, badge, variant, ...props }: InputWithBadgeProps) => React.JSX.Element;
1063
+
901
1064
  }
902
1065
  declare module '@layerfi/components/components/Input/Select' {
903
1066
  import React from 'react';
@@ -922,6 +1085,117 @@ declare module '@layerfi/components/components/Input/index' {
922
1085
  export { InputGroup } from '@layerfi/components/components/Input/InputGroup';
923
1086
  export { FileInput } from '@layerfi/components/components/Input/FileInput';
924
1087
  export { Select } from '@layerfi/components/components/Input/Select';
1088
+ export { InputWithBadge } from '@layerfi/components/components/Input/InputWithBadge';
1089
+ export { DateInput } from '@layerfi/components/components/Input/DateInput';
1090
+
1091
+ }
1092
+ declare module '@layerfi/components/components/Journal/Journal' {
1093
+ import React from 'react';
1094
+ export type View = 'mobile' | 'tablet' | 'desktop';
1095
+ export interface JournalConfig {
1096
+ form: {
1097
+ addEntryLinesLimit?: number;
1098
+ };
1099
+ }
1100
+ export interface JournalProps {
1101
+ asWidget?: boolean;
1102
+ config?: JournalConfig;
1103
+ }
1104
+ export const JOURNAL_CONFIG: JournalConfig;
1105
+ export const Journal: (props: JournalProps) => React.JSX.Element;
1106
+
1107
+ }
1108
+ declare module '@layerfi/components/components/Journal/index' {
1109
+ export { Journal, View } from '@layerfi/components/components/Journal/Journal';
1110
+
1111
+ }
1112
+ declare module '@layerfi/components/components/JournalEntryDetails/JournalEntryDetails' {
1113
+ import React from 'react';
1114
+ export const JournalEntryDetails: () => React.JSX.Element;
1115
+
1116
+ }
1117
+ declare module '@layerfi/components/components/JournalEntryDetails/index' {
1118
+ export { JournalEntryDetails } from '@layerfi/components/components/JournalEntryDetails/JournalEntryDetails';
1119
+
1120
+ }
1121
+ declare module '@layerfi/components/components/JournalForm/JournalForm' {
1122
+ import React from 'react';
1123
+ import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
1124
+ export const JournalForm: ({ config }: {
1125
+ config: JournalConfig;
1126
+ }) => React.JSX.Element;
1127
+
1128
+ }
1129
+ declare module '@layerfi/components/components/JournalForm/JournalFormEntryLines' {
1130
+ import React from 'react';
1131
+ import { Direction, JournalEntryLineItem } from '@layerfi/components/types';
1132
+ import { LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
1133
+ import { BaseSelectOption } from '@layerfi/components/types/general';
1134
+ import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
1135
+ export const JournalFormEntryLines: ({ entrylineItems, addEntryLine, removeEntryLine, changeFormData, sendingForm, config, }: {
1136
+ entrylineItems: JournalEntryLineItem[];
1137
+ addEntryLine: (direction: Direction) => void;
1138
+ removeEntryLine: (index: number) => void;
1139
+ changeFormData: (name: string, value: string | BaseSelectOption | number | undefined, lineItemIndex: number, accounts?: LedgerAccountBalance[] | undefined) => void;
1140
+ sendingForm: boolean;
1141
+ config: JournalConfig;
1142
+ }) => React.JSX.Element;
1143
+
1144
+ }
1145
+ declare module '@layerfi/components/components/JournalForm/index' {
1146
+ export { JournalForm } from '@layerfi/components/components/JournalForm/JournalForm';
1147
+
1148
+ }
1149
+ declare module '@layerfi/components/components/JournalRow/JournalRow' {
1150
+ import React from 'react';
1151
+ import { JournalEntry, JournalEntryLine } from '@layerfi/components/types';
1152
+ import { View } from '@layerfi/components/components/Journal/index';
1153
+ export interface JournalRowProps {
1154
+ row: JournalEntry | JournalEntryLine;
1155
+ index: number;
1156
+ initialLoad?: boolean;
1157
+ view: View;
1158
+ lineItemsLength?: number;
1159
+ defaultOpen?: boolean;
1160
+ expanded?: boolean;
1161
+ depth?: number;
1162
+ cumulativeIndex?: number;
1163
+ selectedEntries?: boolean;
1164
+ }
1165
+ export const JournalRow: ({ row, index, initialLoad, view, lineItemsLength, defaultOpen, expanded, depth, cumulativeIndex, selectedEntries, }: JournalRowProps) => React.JSX.Element;
1166
+
1167
+ }
1168
+ declare module '@layerfi/components/components/JournalRow/index' {
1169
+ export { JournalRow } from '@layerfi/components/components/JournalRow/JournalRow';
1170
+
1171
+ }
1172
+ declare module '@layerfi/components/components/JournalSidebar/JournalSidebar' {
1173
+ import React, { RefObject } from 'react';
1174
+ import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
1175
+ export const JournalSidebar: ({ parentRef: _parentRef, config, }: {
1176
+ parentRef?: React.RefObject<HTMLDivElement> | undefined;
1177
+ config: JournalConfig;
1178
+ }) => React.JSX.Element;
1179
+
1180
+ }
1181
+ declare module '@layerfi/components/components/JournalSidebar/index' {
1182
+ export { JournalSidebar } from '@layerfi/components/components/JournalSidebar/JournalSidebar';
1183
+
1184
+ }
1185
+ declare module '@layerfi/components/components/JournalTable/JournalTable' {
1186
+ import React, { RefObject } from 'react';
1187
+ import { View } from '@layerfi/components/components/Journal/index';
1188
+ import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
1189
+ export const JournalTable: ({ view, containerRef, pageSize, config, }: {
1190
+ view: View;
1191
+ containerRef: RefObject<HTMLDivElement>;
1192
+ pageSize?: number | undefined;
1193
+ config: JournalConfig;
1194
+ }) => React.JSX.Element;
1195
+
1196
+ }
1197
+ declare module '@layerfi/components/components/JournalTable/index' {
1198
+ export { JournalTable } from '@layerfi/components/components/JournalTable/JournalTable';
925
1199
 
926
1200
  }
927
1201
  declare module '@layerfi/components/components/LedgerAccount/LedgerAccountIndex' {
@@ -965,8 +1239,9 @@ declare module '@layerfi/components/components/LinkedAccountOptions/LinkedAccoun
965
1239
  import React from 'react';
966
1240
  import { HoverMenuProps } from '@layerfi/components/components/HoverMenu/index';
967
1241
  interface LinkedAccountOptionsProps extends HoverMenuProps {
1242
+ showLedgerBalance?: boolean;
968
1243
  }
969
- export const LinkedAccountOptions: ({ children, config, accountId, plaidItemId, }: LinkedAccountOptionsProps) => React.JSX.Element;
1244
+ export const LinkedAccountOptions: ({ children, config, accountId, connectionId, source, showLedgerBalance, }: LinkedAccountOptionsProps) => React.JSX.Element;
970
1245
  export {};
971
1246
 
972
1247
  }
@@ -980,8 +1255,9 @@ declare module '@layerfi/components/components/LinkedAccountThumb/LinkedAccountT
980
1255
  export interface LinkedAccountThumbProps {
981
1256
  account: LinkedAccount;
982
1257
  asWidget?: boolean;
1258
+ showLedgerBalance?: boolean;
983
1259
  }
984
- export const LinkedAccountThumb: ({ account, asWidget, }: LinkedAccountThumbProps) => React.JSX.Element;
1260
+ export const LinkedAccountThumb: ({ account, asWidget, showLedgerBalance, }: LinkedAccountThumbProps) => React.JSX.Element;
985
1261
 
986
1262
  }
987
1263
  declare module '@layerfi/components/components/LinkedAccountThumb/index' {
@@ -993,8 +1269,20 @@ declare module '@layerfi/components/components/LinkedAccounts/LinkedAccounts' {
993
1269
  export interface LinkedAccountsProps {
994
1270
  asWidget?: boolean;
995
1271
  elevated?: boolean;
1272
+ showLedgerBalance?: boolean;
996
1273
  }
997
- export const LinkedAccounts: ({ asWidget, elevated }: LinkedAccountsProps) => React.JSX.Element;
1274
+ export const LinkedAccounts: (props: LinkedAccountsProps) => React.JSX.Element;
1275
+ export const LinkedAccountsComponent: ({ asWidget, elevated, showLedgerBalance, }: LinkedAccountsProps) => React.JSX.Element;
1276
+
1277
+ }
1278
+ declare module '@layerfi/components/components/LinkedAccounts/LinkedAccountsContent' {
1279
+ import React from 'react';
1280
+ interface LinkedAccountsDataProps {
1281
+ asWidget?: boolean;
1282
+ showLedgerBalance?: boolean;
1283
+ }
1284
+ export const LinkedAccountsContent: ({ asWidget, showLedgerBalance, }: LinkedAccountsDataProps) => React.JSX.Element;
1285
+ export {};
998
1286
 
999
1287
  }
1000
1288
  declare module '@layerfi/components/components/LinkedAccounts/index' {
@@ -1005,8 +1293,9 @@ declare module '@layerfi/components/components/Loader/Loader' {
1005
1293
  import React, { ReactNode } from 'react';
1006
1294
  export interface LoaderProps {
1007
1295
  children?: ReactNode;
1296
+ size?: number;
1008
1297
  }
1009
- export const Loader: ({ children }: LoaderProps) => React.JSX.Element;
1298
+ export const Loader: ({ children, size }: LoaderProps) => React.JSX.Element;
1010
1299
 
1011
1300
  }
1012
1301
  declare module '@layerfi/components/components/Loader/index' {
@@ -1029,6 +1318,43 @@ declare module '@layerfi/components/components/MatchForm/MatchForm' {
1029
1318
  declare module '@layerfi/components/components/MatchForm/index' {
1030
1319
  export { MatchForm } from '@layerfi/components/components/MatchForm/MatchForm';
1031
1320
 
1321
+ }
1322
+ declare module '@layerfi/components/components/NotificationCard/NotificationCard' {
1323
+ import React, { ReactNode } from 'react';
1324
+ export interface NotificationCardProps {
1325
+ onClick: () => void;
1326
+ children: ReactNode;
1327
+ className?: string;
1328
+ }
1329
+ export const NotificationCard: ({ onClick, children, className, }: NotificationCardProps) => React.JSX.Element;
1330
+
1331
+ }
1332
+ declare module '@layerfi/components/components/NotificationCard/index' {
1333
+ export { NotificationCard } from '@layerfi/components/components/NotificationCard/NotificationCard';
1334
+
1335
+ }
1336
+ declare module '@layerfi/components/components/Onboarding/ConnectAccount' {
1337
+ import React from 'react';
1338
+ import { OnboardingStep } from '@layerfi/components/types/layer_context';
1339
+ export interface ConnectAccountProps {
1340
+ onboardingStep: OnboardingStep;
1341
+ onTransactionsToReviewClick?: () => void;
1342
+ }
1343
+ export const ConnectAccount: ({ onboardingStep, onTransactionsToReviewClick, }: ConnectAccountProps) => React.JSX.Element;
1344
+
1345
+ }
1346
+ declare module '@layerfi/components/components/Onboarding/Onboarding' {
1347
+ import React from 'react';
1348
+ export interface OnboardingProps {
1349
+ onTransactionsToReviewClick?: () => void;
1350
+ }
1351
+ export const Onboarding: (props: OnboardingProps) => React.JSX.Element;
1352
+ export const OnboardingContent: ({ onTransactionsToReviewClick, }: OnboardingProps) => React.JSX.Element | null;
1353
+
1354
+ }
1355
+ declare module '@layerfi/components/components/Onboarding/index' {
1356
+ export { Onboarding } from '@layerfi/components/components/Onboarding/Onboarding';
1357
+
1032
1358
  }
1033
1359
  declare module '@layerfi/components/components/Pagination/Pagination' {
1034
1360
  import React from 'react';
@@ -1124,8 +1450,13 @@ declare module '@layerfi/components/components/ProfitAndLossChart/Indicator' {
1124
1450
  type Props = BaseProps & {
1125
1451
  animateFrom: number;
1126
1452
  setAnimateFrom: (x: number) => void;
1453
+ customCursorSize: {
1454
+ width: number;
1455
+ height: number;
1456
+ };
1457
+ setCustomCursorSize: (width: number, height: number, x: number) => void;
1127
1458
  };
1128
- export const Indicator: ({ viewBox, className, animateFrom, setAnimateFrom, }: Props) => React.JSX.Element | null;
1459
+ export const Indicator: ({ className, animateFrom, setAnimateFrom, customCursorSize, setCustomCursorSize, viewBox, }: Props) => React.JSX.Element | null;
1129
1460
  export {};
1130
1461
 
1131
1462
  }
@@ -1317,7 +1648,11 @@ declare module '@layerfi/components/components/SkeletonLoader/index' {
1317
1648
  }
1318
1649
  declare module '@layerfi/components/components/Textarea/Textarea' {
1319
1650
  import React, { HTMLProps } from 'react';
1320
- export const Textarea: ({ className, ...props }: HTMLProps<HTMLTextAreaElement>) => React.JSX.Element;
1651
+ export interface TextareaProps extends HTMLProps<HTMLTextAreaElement> {
1652
+ isInvalid?: boolean;
1653
+ errorMessage?: string;
1654
+ }
1655
+ export const Textarea: ({ className, isInvalid, errorMessage, ...props }: TextareaProps) => React.JSX.Element;
1321
1656
 
1322
1657
  }
1323
1658
  declare module '@layerfi/components/components/Textarea/index' {
@@ -1483,6 +1818,18 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
1483
1818
  disabled: boolean | undefined;
1484
1819
  };
1485
1820
 
1821
+ }
1822
+ declare module '@layerfi/components/components/TransactionToReviewCard/TransactionToReviewCard' {
1823
+ import React from 'react';
1824
+ export interface TransactionToReviewCardProps {
1825
+ onClick?: () => void;
1826
+ }
1827
+ export const TransactionToReviewCard: ({ onClick, }: TransactionToReviewCardProps) => React.JSX.Element;
1828
+
1829
+ }
1830
+ declare module '@layerfi/components/components/TransactionToReviewCard/index' {
1831
+ export { TransactionToReviewCard } from '@layerfi/components/components/TransactionToReviewCard/TransactionToReviewCard';
1832
+
1486
1833
  }
1487
1834
  declare module '@layerfi/components/components/Typography/ErrorText' {
1488
1835
  import React from 'react';
@@ -1644,6 +1991,73 @@ declare module '@layerfi/components/config/theme' {
1644
1991
  };
1645
1992
  };
1646
1993
 
1994
+ }
1995
+ declare module '@layerfi/components/contexts/ChartOfAccountsContext/ChartOfAccountsContext' {
1996
+ /// <reference types="react" />
1997
+ import { useChartOfAccounts } from '@layerfi/components/hooks/useChartOfAccounts/index';
1998
+ export type ChartOfAccountsContextType = ReturnType<typeof useChartOfAccounts>;
1999
+ export const ChartOfAccountsContext: import("react").Context<{
2000
+ data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances | undefined;
2001
+ isLoading: boolean;
2002
+ isValidating: boolean;
2003
+ error: any;
2004
+ refetch: () => Promise<{
2005
+ data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances;
2006
+ } | undefined>;
2007
+ create: (newAccount: import("@layerfi/components/types").NewAccount) => Promise<void>;
2008
+ form: import("@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts").ChartOfAccountsForm | undefined;
2009
+ sendingForm: boolean;
2010
+ apiError: string | undefined;
2011
+ addAccount: () => void;
2012
+ editAccount: (id: string) => void;
2013
+ cancelForm: () => void;
2014
+ changeFormData: (fieldName: string, value: string | import("@layerfi/components/types/general").BaseSelectOption | undefined) => void;
2015
+ submitForm: () => void;
2016
+ dateRange: {
2017
+ startDate: Date;
2018
+ endDate: Date;
2019
+ };
2020
+ changeDateRange: ({ startDate: newStartDate, endDate: newEndDate, }: Partial<import("@layerfi/components/types").DateRange>) => void;
2021
+ }>;
2022
+
2023
+ }
2024
+ declare module '@layerfi/components/contexts/ChartOfAccountsContext/index' {
2025
+ export { ChartOfAccountsContext } from '@layerfi/components/contexts/ChartOfAccountsContext/ChartOfAccountsContext';
2026
+
2027
+ }
2028
+ declare module '@layerfi/components/contexts/JournalContext/JournalContext' {
2029
+ /// <reference types="react" />
2030
+ import { useJournal } from '@layerfi/components/hooks/useJournal/index';
2031
+ export type JournalContextType = ReturnType<typeof useJournal>;
2032
+ export const JournalContext: import("react").Context<{
2033
+ data?: import("@layerfi/components/types").JournalEntry[] | undefined;
2034
+ isLoading?: boolean | undefined;
2035
+ isLoadingEntry?: boolean | undefined;
2036
+ isValidating?: boolean | undefined;
2037
+ isValidatingEntry?: boolean | undefined;
2038
+ error?: unknown;
2039
+ errorEntry?: unknown;
2040
+ refetch: () => void;
2041
+ selectedEntryId?: string | undefined;
2042
+ setSelectedEntryId: (id?: string | undefined) => void;
2043
+ closeSelectedEntry: () => void;
2044
+ create: (newJournalEntry: import("@layerfi/components/types/journal").NewJournalEntry) => void;
2045
+ changeFormData: (name: string, value: string | number | import("@layerfi/components/types/general").BaseSelectOption | undefined, lineItemIndex?: number | undefined, accounts?: import("../../types/chart_of_accounts").LedgerAccountBalance[] | undefined) => void;
2046
+ submitForm: () => void;
2047
+ cancelForm: () => void;
2048
+ addEntry: () => void;
2049
+ sendingForm: boolean;
2050
+ form?: import("@layerfi/components/hooks/useJournal/useJournal").JournalFormTypes | undefined;
2051
+ apiError?: string | undefined;
2052
+ setForm: (form?: import("@layerfi/components/hooks/useJournal/useJournal").JournalFormTypes | undefined) => void;
2053
+ addEntryLine: (direction: import("@layerfi/components/types").Direction) => void;
2054
+ removeEntryLine: (index: number) => void;
2055
+ }>;
2056
+
2057
+ }
2058
+ declare module '@layerfi/components/contexts/JournalContext/index' {
2059
+ export { JournalContext } from '@layerfi/components/contexts/JournalContext/JournalContext';
2060
+
1647
2061
  }
1648
2062
  declare module '@layerfi/components/contexts/LayerContext/LayerContext' {
1649
2063
  /// <reference types="react" />
@@ -1657,6 +2071,54 @@ declare module '@layerfi/components/contexts/LayerContext/LayerContext' {
1657
2071
  declare module '@layerfi/components/contexts/LayerContext/index' {
1658
2072
  export { LayerContext } from '@layerfi/components/contexts/LayerContext/LayerContext';
1659
2073
 
2074
+ }
2075
+ declare module '@layerfi/components/contexts/LedgerAccountsContext/LedgerAccountsContext' {
2076
+ /// <reference types="react" />
2077
+ import { useLedgerAccounts } from '@layerfi/components/hooks/useLedgerAccounts/index';
2078
+ export type LedgerAccountsContextType = ReturnType<typeof useLedgerAccounts>;
2079
+ export const LedgerAccountsContext: import("react").Context<{
2080
+ data?: import("@layerfi/components/types").LedgerAccounts | undefined;
2081
+ entryData?: import("@layerfi/components/types").LedgerAccountsEntry | undefined;
2082
+ isLoading?: boolean | undefined;
2083
+ isLoadingEntry?: boolean | undefined;
2084
+ isValidating?: boolean | undefined;
2085
+ isValidatingEntry?: boolean | undefined;
2086
+ error?: unknown;
2087
+ errorEntry?: unknown;
2088
+ refetch: () => void;
2089
+ accountId?: string | undefined;
2090
+ setAccountId: (id?: string | undefined) => void;
2091
+ selectedEntryId?: string | undefined;
2092
+ setSelectedEntryId: (id?: string | undefined) => void;
2093
+ closeSelectedEntry: () => void;
2094
+ }>;
2095
+
2096
+ }
2097
+ declare module '@layerfi/components/contexts/LedgerAccountsContext/index' {
2098
+ export { LedgerAccountsContext } from '@layerfi/components/contexts/LedgerAccountsContext/LedgerAccountsContext';
2099
+
2100
+ }
2101
+ declare module '@layerfi/components/contexts/LinkedAccountsContext/LinkedAccountsContext' {
2102
+ /// <reference types="react" />
2103
+ import { useLinkedAccounts } from '@layerfi/components/hooks/useLinkedAccounts/index';
2104
+ export type LinkedAccountsContextType = ReturnType<typeof useLinkedAccounts>;
2105
+ export const LinkedAccountsContext: import("react").Context<{
2106
+ data?: import("@layerfi/components/types/linked_accounts").LinkedAccount[] | undefined;
2107
+ isLoading: boolean;
2108
+ loadingStatus: import("@layerfi/components/types/general").LoadedStatus;
2109
+ isValidating: boolean;
2110
+ error: unknown;
2111
+ addConnection: (source: import("@layerfi/components/types/linked_accounts").Source) => void;
2112
+ removeConnection: (source: import("@layerfi/components/types/linked_accounts").Source, sourceId: string) => void;
2113
+ repairConnection: (source: import("@layerfi/components/types/linked_accounts").Source, sourceId: string) => void;
2114
+ refetchAccounts: () => void;
2115
+ unlinkAccount: (source: import("@layerfi/components/types/linked_accounts").Source, accountId: string) => void;
2116
+ }>;
2117
+
2118
+ }
2119
+ declare module '@layerfi/components/contexts/LinkedAccountsContext/index' {
2120
+ export { LinkedAccountsContext } from '@layerfi/components/contexts/LinkedAccountsContext/LinkedAccountsContext';
2121
+
1660
2122
  }
1661
2123
  declare module '@layerfi/components/hooks/useBalanceSheet/index' {
1662
2124
  export { useBalanceSheet } from '@layerfi/components/hooks/useBalanceSheet/useBalanceSheet';
@@ -1699,13 +2161,9 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/index' {
1699
2161
 
1700
2162
  }
1701
2163
  declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts' {
1702
- import { NewAccount } from '@layerfi/components/types';
2164
+ import { FormError, DateRange, NewAccount } from '@layerfi/components/types';
1703
2165
  import { ChartWithBalances, LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
1704
2166
  import { BaseSelectOption } from '@layerfi/components/types/general';
1705
- interface FormError {
1706
- field: string;
1707
- message: string;
1708
- }
1709
2167
  export interface ChartOfAccountsForm {
1710
2168
  action: 'new' | 'edit';
1711
2169
  accountId?: string;
@@ -1719,24 +2177,35 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts'
1719
2177
  };
1720
2178
  errors?: FormError[];
1721
2179
  }
1722
- type UseChartOfAccounts = () => {
2180
+ type Props = {
2181
+ startDate?: Date;
2182
+ endDate?: Date;
2183
+ withDates?: boolean;
2184
+ };
2185
+ export const flattenAccounts: (accounts: LedgerAccountBalance[]) => LedgerAccountBalance[];
2186
+ export const useChartOfAccounts: ({ withDates, startDate: initialStartDate, endDate: initialEndDate }?: Props) => {
1723
2187
  data: ChartWithBalances | undefined;
1724
- isLoading?: boolean;
1725
- isValidating?: boolean;
1726
- error?: unknown;
1727
- refetch: () => void;
1728
- create: (newAccount: NewAccount) => void;
1729
- form?: ChartOfAccountsForm;
1730
- sendingForm?: boolean;
1731
- apiError?: string;
2188
+ isLoading: boolean;
2189
+ isValidating: boolean;
2190
+ error: any;
2191
+ refetch: () => Promise<{
2192
+ data: ChartWithBalances;
2193
+ } | undefined>;
2194
+ create: (newAccount: NewAccount) => Promise<void>;
2195
+ form: ChartOfAccountsForm | undefined;
2196
+ sendingForm: boolean;
2197
+ apiError: string | undefined;
1732
2198
  addAccount: () => void;
1733
2199
  editAccount: (id: string) => void;
1734
2200
  cancelForm: () => void;
1735
- changeFormData: (name: string, value: string | BaseSelectOption | undefined) => void;
2201
+ changeFormData: (fieldName: string, value: string | BaseSelectOption | undefined) => void;
1736
2202
  submitForm: () => void;
2203
+ dateRange: {
2204
+ startDate: Date;
2205
+ endDate: Date;
2206
+ };
2207
+ changeDateRange: ({ startDate: newStartDate, endDate: newEndDate, }: Partial<DateRange>) => void;
1737
2208
  };
1738
- export const flattenAccounts: (accounts: LedgerAccountBalance[]) => LedgerAccountBalance[];
1739
- export const useChartOfAccounts: UseChartOfAccounts;
1740
2209
  export {};
1741
2210
 
1742
2211
  }
@@ -1753,6 +2222,52 @@ declare module '@layerfi/components/hooks/useElementSize/useElementSize' {
1753
2222
  clientHeight: number;
1754
2223
  }) => void) => import("react").RefObject<T>;
1755
2224
 
2225
+ }
2226
+ declare module '@layerfi/components/hooks/useJournal/index' {
2227
+ export { useJournal } from '@layerfi/components/hooks/useJournal/useJournal';
2228
+
2229
+ }
2230
+ declare module '@layerfi/components/hooks/useJournal/useJournal' {
2231
+ import { Direction, FormError, FormErrorWithId } from '@layerfi/components/types';
2232
+ import { LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
2233
+ import { BaseSelectOption } from '@layerfi/components/types/general';
2234
+ import { JournalEntry, NewJournalEntry } from '@layerfi/components/types/journal';
2235
+ type UseJournal = () => {
2236
+ data?: JournalEntry[];
2237
+ isLoading?: boolean;
2238
+ isLoadingEntry?: boolean;
2239
+ isValidating?: boolean;
2240
+ isValidatingEntry?: boolean;
2241
+ error?: unknown;
2242
+ errorEntry?: unknown;
2243
+ refetch: () => void;
2244
+ selectedEntryId?: string;
2245
+ setSelectedEntryId: (id?: string) => void;
2246
+ closeSelectedEntry: () => void;
2247
+ create: (newJournalEntry: NewJournalEntry) => void;
2248
+ changeFormData: (name: string, value: string | BaseSelectOption | undefined | number, lineItemIndex?: number, accounts?: LedgerAccountBalance[] | undefined) => void;
2249
+ submitForm: () => void;
2250
+ cancelForm: () => void;
2251
+ addEntry: () => void;
2252
+ sendingForm: boolean;
2253
+ form?: JournalFormTypes;
2254
+ apiError?: string;
2255
+ setForm: (form?: JournalFormTypes) => void;
2256
+ addEntryLine: (direction: Direction) => void;
2257
+ removeEntryLine: (index: number) => void;
2258
+ };
2259
+ export interface JournalFormTypes {
2260
+ action: string;
2261
+ data: NewJournalEntry;
2262
+ errors?: {
2263
+ entry: FormError[];
2264
+ lineItems: FormErrorWithId[];
2265
+ } | undefined;
2266
+ }
2267
+ export const useJournal: UseJournal;
2268
+ export const flattenEntries: (entries: JournalEntry[]) => JournalEntry[];
2269
+ export {};
2270
+
1756
2271
  }
1757
2272
  declare module '@layerfi/components/hooks/useLayerContext/index' {
1758
2273
  export { useLayerContext } from '@layerfi/components/hooks/useLayerContext/useLayerContext';
@@ -1800,18 +2315,19 @@ declare module '@layerfi/components/hooks/useLinkedAccounts/mockData' {
1800
2315
 
1801
2316
  }
1802
2317
  declare module '@layerfi/components/hooks/useLinkedAccounts/useLinkedAccounts' {
1803
- import { LinkedAccount } from '@layerfi/components/types/linked_accounts';
1804
- type Source = 'PLAID' | 'STRIPE';
2318
+ import { LoadedStatus } from '@layerfi/components/types/general';
2319
+ import { LinkedAccount, Source } from '@layerfi/components/types/linked_accounts';
1805
2320
  type UseLinkedAccounts = () => {
1806
2321
  data?: LinkedAccount[];
1807
2322
  isLoading: boolean;
2323
+ loadingStatus: LoadedStatus;
1808
2324
  isValidating: boolean;
1809
2325
  error: unknown;
1810
2326
  addConnection: (source: Source) => void;
1811
2327
  removeConnection: (source: Source, sourceId: string) => void;
2328
+ repairConnection: (source: Source, sourceId: string) => void;
1812
2329
  refetchAccounts: () => void;
1813
- unlinkAccount: (plaidAccountId: string) => void;
1814
- renewLinkAccount: () => void;
2330
+ unlinkAccount: (source: Source, accountId: string) => void;
1815
2331
  };
1816
2332
  export const useLinkedAccounts: UseLinkedAccounts;
1817
2333
  export {};
@@ -1878,6 +2394,61 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
1878
2394
  export const useProfitAndLoss: UseProfitAndLoss;
1879
2395
  export {};
1880
2396
 
2397
+ }
2398
+ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossLTM' {
2399
+ import { ProfitAndLoss, ReportingBasis } from '@layerfi/components/types';
2400
+ import { LoadedStatus } from '@layerfi/components/types/general';
2401
+ type UseProfitAndLossLTMProps = {
2402
+ currentDate: Date;
2403
+ tagFilter?: {
2404
+ key: string;
2405
+ values: string[];
2406
+ };
2407
+ reportingBasis?: ReportingBasis;
2408
+ };
2409
+ type UseProfitAndLossLTMReturn = (props?: UseProfitAndLossLTMProps) => {
2410
+ data: {
2411
+ data: ProfitAndLoss | undefined;
2412
+ isLoading: boolean;
2413
+ error: any;
2414
+ startDate: Date;
2415
+ endDate: Date;
2416
+ }[];
2417
+ isLoading?: boolean;
2418
+ loaded?: LoadedStatus;
2419
+ error?: any;
2420
+ };
2421
+ /**
2422
+ * Hooks fetch Last Twelve Months sending 12 requests (one for each month).
2423
+ * Implementation is not perfect, but we cannot use loops and arrays with hooks.
2424
+ */
2425
+ export const useProfitAndLossLTM: UseProfitAndLossLTMReturn;
2426
+ export {};
2427
+
2428
+ }
2429
+ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossQuery' {
2430
+ import { ProfitAndLoss, ReportingBasis } from '@layerfi/components/types';
2431
+ type UseProfitAndLossQueryProps = {
2432
+ startDate: Date;
2433
+ endDate: Date;
2434
+ tagFilter?: {
2435
+ key: string;
2436
+ values: string[];
2437
+ };
2438
+ reportingBasis?: ReportingBasis;
2439
+ };
2440
+ type UseProfitAndLossQueryReturn = (props?: UseProfitAndLossQueryProps) => {
2441
+ data?: ProfitAndLoss;
2442
+ isLoading: boolean;
2443
+ isValidating: boolean;
2444
+ error: any;
2445
+ refetch: () => void;
2446
+ startDate: Date;
2447
+ endDate: Date;
2448
+ };
2449
+ export const useProfitAndLossQuery: UseProfitAndLossQueryReturn;
2450
+ export {};
2451
+
1881
2452
  }
1882
2453
  declare module '@layerfi/components/icons/AlertCircle' {
1883
2454
  import * as React from 'react';
@@ -1899,6 +2470,13 @@ declare module '@layerfi/components/icons/BackArrow' {
1899
2470
  const BackArrow: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
1900
2471
  export default BackArrow;
1901
2472
 
2473
+ }
2474
+ declare module '@layerfi/components/icons/Bell' {
2475
+ import * as React from 'react';
2476
+ import { IconSvgProps } from '@layerfi/components/icons/types';
2477
+ const Bell: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
2478
+ export default Bell;
2479
+
1902
2480
  }
1903
2481
  declare module '@layerfi/components/icons/Calendar' {
1904
2482
  import * as React from 'react';
@@ -1948,6 +2526,20 @@ declare module '@layerfi/components/icons/ChevronRight' {
1948
2526
  const ChavronRight: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
1949
2527
  export default ChavronRight;
1950
2528
 
2529
+ }
2530
+ declare module '@layerfi/components/icons/CloseIcon' {
2531
+ import * as React from 'react';
2532
+ import { IconSvgProps } from '@layerfi/components/icons/types';
2533
+ const CloseIcon: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
2534
+ export default CloseIcon;
2535
+
2536
+ }
2537
+ declare module '@layerfi/components/icons/CreditCard' {
2538
+ import * as React from 'react';
2539
+ import { IconSvgProps } from '@layerfi/components/icons/types';
2540
+ const CreditCard: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
2541
+ export default CreditCard;
2542
+
1951
2543
  }
1952
2544
  declare module '@layerfi/components/icons/DownloadCloud' {
1953
2545
  import * as React from 'react';
@@ -1962,6 +2554,13 @@ declare module '@layerfi/components/icons/Edit2' {
1962
2554
  const Edit2: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
1963
2555
  export default Edit2;
1964
2556
 
2557
+ }
2558
+ declare module '@layerfi/components/icons/Folder' {
2559
+ import * as React from 'react';
2560
+ import { IconSvgProps } from '@layerfi/components/icons/types';
2561
+ const Folder: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
2562
+ export default Folder;
2563
+
1965
2564
  }
1966
2565
  declare module '@layerfi/components/icons/InstitutionIcon' {
1967
2566
  import * as React from 'react';
@@ -1969,6 +2568,13 @@ declare module '@layerfi/components/icons/InstitutionIcon' {
1969
2568
  const InstitutionIcon: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
1970
2569
  export default InstitutionIcon;
1971
2570
 
2571
+ }
2572
+ declare module '@layerfi/components/icons/Link' {
2573
+ import * as React from 'react';
2574
+ import { IconSvgProps } from '@layerfi/components/icons/types';
2575
+ const Link: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
2576
+ export default Link;
2577
+
1972
2578
  }
1973
2579
  declare module '@layerfi/components/icons/Loader' {
1974
2580
  import * as React from 'react';
@@ -1997,6 +2603,12 @@ declare module '@layerfi/components/icons/PieChart' {
1997
2603
  const PieChart: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
1998
2604
  export default PieChart;
1999
2605
 
2606
+ }
2607
+ declare module '@layerfi/components/icons/PlaidIcon' {
2608
+ import React from 'react';
2609
+ const PlaidIcon: () => React.JSX.Element;
2610
+ export default PlaidIcon;
2611
+
2000
2612
  }
2001
2613
  declare module '@layerfi/components/icons/PlusIcon' {
2002
2614
  import * as React from 'react';
@@ -2039,6 +2651,13 @@ declare module '@layerfi/components/icons/SortArrows' {
2039
2651
  const SortArrows: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
2040
2652
  export default SortArrows;
2041
2653
 
2654
+ }
2655
+ declare module '@layerfi/components/icons/Sunrise' {
2656
+ import * as React from 'react';
2657
+ import { IconSvgProps } from '@layerfi/components/icons/types';
2658
+ const Sunrise: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
2659
+ export default Sunrise;
2660
+
2042
2661
  }
2043
2662
  declare module '@layerfi/components/icons/Trash' {
2044
2663
  import * as React from 'react';
@@ -2071,16 +2690,18 @@ declare module '@layerfi/components/icons/types' {
2071
2690
  declare module '@layerfi/components/index' {
2072
2691
  export { BalanceSheet } from '@layerfi/components/components/BalanceSheet/index';
2073
2692
  export { BankTransactions } from '@layerfi/components/components/BankTransactions/index';
2074
- export { Hello } from '@layerfi/components/components/Hello/index';
2075
2693
  export { LinkedAccounts } from '@layerfi/components/components/LinkedAccounts/index';
2076
2694
  export { ProfitAndLoss } from '@layerfi/components/components/ProfitAndLoss/index';
2077
2695
  export { ProfitAndLossView } from '@layerfi/components/components/ProfitAndLossView/index';
2078
2696
  export { ChartOfAccounts } from '@layerfi/components/components/ChartOfAccounts/index';
2079
2697
  export { LayerProvider } from '@layerfi/components/providers/LayerProvider/index';
2080
2698
  export { useLayerContext } from '@layerfi/components/hooks/useLayerContext/index';
2699
+ export { Journal } from '@layerfi/components/components/Journal/index';
2700
+ export { Onboarding } from '@layerfi/components/components/Onboarding/index';
2081
2701
  export { AccountingOverview } from '@layerfi/components/views/AccountingOverview/index';
2082
2702
  export { BankTransactionsWithLinkedAccounts } from '@layerfi/components/views/BankTransactionsWithLinkedAccounts/index';
2083
2703
  export { Reports } from '@layerfi/components/views/Reports/index';
2704
+ export { GeneralLedgerView } from '@layerfi/components/views/GeneralLedger/index';
2084
2705
 
2085
2706
  }
2086
2707
  declare module '@layerfi/components/models/APIError' {
@@ -2132,6 +2753,19 @@ declare module '@layerfi/components/providers/LayerProvider/LayerProvider' {
2132
2753
  declare module '@layerfi/components/providers/LayerProvider/index' {
2133
2754
  export { LayerProvider } from '@layerfi/components/providers/LayerProvider/LayerProvider';
2134
2755
 
2756
+ }
2757
+ declare module '@layerfi/components/providers/LinkedAccountsProvider/LinkedAccountsProvider' {
2758
+ import React, { ReactNode } from 'react';
2759
+ interface LinkedAccountsProviderProps {
2760
+ children: ReactNode;
2761
+ }
2762
+ export const LinkedAccountsProvider: ({ children, }: LinkedAccountsProviderProps) => React.JSX.Element;
2763
+ export {};
2764
+
2765
+ }
2766
+ declare module '@layerfi/components/providers/LinkedAccountsProvider/index' {
2767
+ export { LinkedAccountsProvider } from '@layerfi/components/providers/LinkedAccountsProvider/LinkedAccountsProvider';
2768
+
2135
2769
  }
2136
2770
  declare module '@layerfi/components/types/api' {
2137
2771
  export interface PaginationMetadata {
@@ -2364,6 +2998,53 @@ declare module '@layerfi/components/types/general' {
2364
2998
  label: string;
2365
2999
  value: string | number;
2366
3000
  }
3001
+ export type LoadedStatus = 'initial' | 'loading' | 'complete';
3002
+
3003
+ }
3004
+ declare module '@layerfi/components/types/journal' {
3005
+ import { Account } from '@layerfi/components/types';
3006
+ import { Direction } from '@layerfi/components/types/bank_transactions';
3007
+ export interface JournalEntry {
3008
+ id: string;
3009
+ business_id: string;
3010
+ ledger_id: string;
3011
+ agent: string;
3012
+ entry_type: string;
3013
+ date: string;
3014
+ entry_at: string;
3015
+ reversal_of_id: string | null;
3016
+ reversal_id: string | null;
3017
+ line_items: any[];
3018
+ }
3019
+ export interface JournalEntryLine {
3020
+ id: string;
3021
+ entry_id: string;
3022
+ account: Account;
3023
+ amount: number;
3024
+ direction: Direction;
3025
+ entry_at: string;
3026
+ createdAt: string;
3027
+ }
3028
+ export type NewJournalEntry = {
3029
+ entry_at: string;
3030
+ created_by: string;
3031
+ memo: string;
3032
+ line_items: JournalEntryLineItem[];
3033
+ };
3034
+ export type JournalEntryLineItem = {
3035
+ account_identifier: {
3036
+ type: string;
3037
+ stable_name: string;
3038
+ id: string;
3039
+ name: string;
3040
+ subType: {
3041
+ value: string;
3042
+ label: string;
3043
+ } | undefined;
3044
+ };
3045
+ amount: number;
3046
+ direction: Direction;
3047
+ };
2367
3048
 
2368
3049
  }
2369
3050
  declare module '@layerfi/components/types/layer_context' {
@@ -2376,12 +3057,14 @@ declare module '@layerfi/components/types/layer_context' {
2376
3057
  apiUrl: string;
2377
3058
  theme?: LayerThemeConfig;
2378
3059
  colors: ColorsPalette;
3060
+ onboardingStep?: OnboardingStep;
2379
3061
  };
2380
3062
  export type LayerContextHelpers = {
2381
3063
  getColor: (shade: number) => ColorsPaletteOption | undefined;
2382
3064
  setLightColor: (color?: ColorConfig) => void;
2383
3065
  setDarkColor: (color?: ColorConfig) => void;
2384
3066
  setColors: (colors?: LayerThemeConfigColors) => void;
3067
+ setOnboardingStep: (value: OnboardingStep) => void;
2385
3068
  };
2386
3069
  export interface ColorHSLConfig {
2387
3070
  h: string;
@@ -2420,10 +3103,12 @@ declare module '@layerfi/components/types/layer_context' {
2420
3103
  export interface LayerThemeConfig {
2421
3104
  colors?: LayerThemeConfigColors;
2422
3105
  }
3106
+ export type OnboardingStep = undefined | 'connectAccount' | 'complete';
2423
3107
  export enum LayerContextActionName {
2424
3108
  setAuth = "LayerContext.setAuth",
2425
3109
  setCategories = "LayerContext.setCategories",
2426
- setTheme = "LayerContext.setTheme"
3110
+ setTheme = "LayerContext.setTheme",
3111
+ setOnboardingStep = "LayerContext.setOnboardingStep"
2427
3112
  }
2428
3113
  export type LayerContextAction = {
2429
3114
  type: LayerContextActionName.setAuth;
@@ -2440,6 +3125,11 @@ declare module '@layerfi/components/types/layer_context' {
2440
3125
  payload: {
2441
3126
  theme: LayerContextValues['theme'];
2442
3127
  };
3128
+ } | {
3129
+ type: LayerContextActionName.setOnboardingStep;
3130
+ payload: {
3131
+ onboardingStep: LayerContextValues['onboardingStep'];
3132
+ };
2443
3133
  };
2444
3134
 
2445
3135
  }
@@ -2559,11 +3249,11 @@ declare module '@layerfi/components/types/linked_accounts' {
2559
3249
  export interface LinkedAccount {
2560
3250
  id: string;
2561
3251
  external_account_external_id: string;
2562
- external_account_source: string;
3252
+ external_account_source: Source;
2563
3253
  external_account_name: string;
2564
3254
  latest_balance_timestamp: {
2565
3255
  external_account_external_id: string;
2566
- external_account_source: string;
3256
+ external_account_source: Source;
2567
3257
  balance: number;
2568
3258
  at: string;
2569
3259
  created_at: string;
@@ -2571,15 +3261,18 @@ declare module '@layerfi/components/types/linked_accounts' {
2571
3261
  current_ledger_balance: number;
2572
3262
  institution: {
2573
3263
  name: string;
2574
- logo: string;
3264
+ logo: string | null;
2575
3265
  };
2576
3266
  mask?: string;
2577
- logo_base64?: string;
3267
+ connection_id: string;
3268
+ connection_needs_repair_as_of: string | null;
3269
+ requires_user_confirmation_as_of: string | null;
2578
3270
  }
2579
3271
  export type PublicToken = {
2580
3272
  public_token: string;
2581
3273
  institution: PlaidInstitution | null;
2582
3274
  };
3275
+ export type Source = 'PLAID' | 'STRIPE';
2583
3276
 
2584
3277
  }
2585
3278
  declare module '@layerfi/components/types/profit_and_loss' {
@@ -2614,6 +3307,14 @@ declare module '@layerfi/components/types' {
2614
3307
  export { ChartOfAccounts, Account, NewAccount, EditAccount, } from '@layerfi/components/types/chart_of_accounts';
2615
3308
  export { LedgerAccountLineItems as LedgerAccounts, LedgerAccountLineItem, LedgerAccountsAccount, LedgerAccountsEntry, } from '@layerfi/components/types/ledger_accounts';
2616
3309
  export { SortDirection } from '@layerfi/components/types/general';
3310
+ export interface FormError {
3311
+ field: string;
3312
+ message: string;
3313
+ }
3314
+ export interface FormErrorWithId extends FormError {
3315
+ id: number;
3316
+ }
3317
+ export { JournalEntry, JournalEntryLine, JournalEntryLineItem, } from '@layerfi/components/types/journal';
2617
3318
  export type DateRange<T = Date> = {
2618
3319
  startDate: T;
2619
3320
  endDate: T;
@@ -2653,6 +3354,9 @@ declare module '@layerfi/components/utils/format' {
2653
3354
  * Convert Enum-like (upper snakecase) text into human friendly format.
2654
3355
  */
2655
3356
  export const humanizeEnum: (text: string) => string;
3357
+ export const convertNumberToCurrency: (amount: number | undefined) => string;
3358
+ export const convertCurrencyToNumber: (amount: string) => number;
3359
+ export const CURRENCY_INPUT_PATTERN = "[0-9]+(.[0-9]+)?";
2656
3360
 
2657
3361
  }
2658
3362
  declare module '@layerfi/components/utils/helpers' {
@@ -2679,8 +3383,10 @@ declare module '@layerfi/components/views/AccountingOverview/AccountingOverview'
2679
3383
  import React from 'react';
2680
3384
  export interface AccountingOverviewProps {
2681
3385
  title?: string;
3386
+ enableOnboarding?: boolean;
3387
+ onTransactionsToReviewClick?: () => void;
2682
3388
  }
2683
- export const AccountingOverview: ({ title, }: AccountingOverviewProps) => React.JSX.Element;
3389
+ export const AccountingOverview: ({ title, enableOnboarding, onTransactionsToReviewClick, }: AccountingOverviewProps) => React.JSX.Element;
2684
3390
 
2685
3391
  }
2686
3392
  declare module '@layerfi/components/views/AccountingOverview/index' {
@@ -2691,13 +3397,27 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/Ban
2691
3397
  import React from 'react';
2692
3398
  export interface BankTransactionsWithLinkedAccountsProps {
2693
3399
  title?: string;
3400
+ elevatedLinkedAccounts?: boolean;
3401
+ showLedgerBalance?: boolean;
2694
3402
  }
2695
- export const BankTransactionsWithLinkedAccounts: ({ title, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
3403
+ export const BankTransactionsWithLinkedAccounts: ({ title, elevatedLinkedAccounts, showLedgerBalance, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
2696
3404
 
2697
3405
  }
2698
3406
  declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/index' {
2699
3407
  export { BankTransactionsWithLinkedAccounts } from '@layerfi/components/views/BankTransactionsWithLinkedAccounts/BankTransactionsWithLinkedAccounts';
2700
3408
 
3409
+ }
3410
+ declare module '@layerfi/components/views/GeneralLedger/GeneralLedger' {
3411
+ import React from 'react';
3412
+ export interface GeneralLedgerProps {
3413
+ title?: string;
3414
+ }
3415
+ export const GeneralLedgerView: ({ title, }: GeneralLedgerProps) => React.JSX.Element;
3416
+
3417
+ }
3418
+ declare module '@layerfi/components/views/GeneralLedger/index' {
3419
+ export { GeneralLedgerView } from '@layerfi/components/views/GeneralLedger/GeneralLedger';
3420
+
2701
3421
  }
2702
3422
  declare module '@layerfi/components/views/Reports/Reports' {
2703
3423
  import React, { RefObject } from 'react';