@layerfi/components 0.1.22 → 0.1.24
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/esm/index.js +3026 -1657
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +438 -27
- package/dist/index.js +3153 -1787
- package/dist/index.js.map +4 -4
- package/dist/styles/index.css +519 -1
- package/dist/styles/index.css.map +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ declare module '@layerfi/components/api/layer/balance_sheet' {
|
|
|
47
47
|
declare module '@layerfi/components/api/layer/bankTransactions' {
|
|
48
48
|
import { CategoryUpdate, BankTransaction, Metadata } from '@layerfi/components/types';
|
|
49
49
|
import { BankTransactionMatch, BankTransactionMatchType } from '@layerfi/components/types/bank_transactions';
|
|
50
|
+
import { S3PresignedUrl } from '@layerfi/components/types/general';
|
|
50
51
|
export type GetBankTransactionsReturn = {
|
|
51
52
|
data?: BankTransaction[];
|
|
52
53
|
meta?: Metadata;
|
|
@@ -77,6 +78,21 @@ declare module '@layerfi/components/api/layer/bankTransactions' {
|
|
|
77
78
|
data: BankTransactionMatch;
|
|
78
79
|
errors: unknown;
|
|
79
80
|
}>;
|
|
81
|
+
export interface GetBankTransactionsCsvParams extends Record<string, string | undefined> {
|
|
82
|
+
businessId: string;
|
|
83
|
+
startDate?: string;
|
|
84
|
+
endDate?: string;
|
|
85
|
+
categorized?: 'true' | 'false';
|
|
86
|
+
category?: string;
|
|
87
|
+
month?: string;
|
|
88
|
+
year?: string;
|
|
89
|
+
}
|
|
90
|
+
export const getBankTransactionsCsv: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
91
|
+
params?: Record<string, string | undefined> | undefined;
|
|
92
|
+
} | undefined) => () => Promise<{
|
|
93
|
+
data?: S3PresignedUrl | undefined;
|
|
94
|
+
error?: unknown;
|
|
95
|
+
}>;
|
|
80
96
|
|
|
81
97
|
}
|
|
82
98
|
declare module '@layerfi/components/api/layer/business' {
|
|
@@ -161,6 +177,12 @@ declare module '@layerfi/components/api/layer/linked_accounts' {
|
|
|
161
177
|
} | undefined;
|
|
162
178
|
body?: Record<string, unknown> | undefined;
|
|
163
179
|
} | undefined) => Promise<Record<string, unknown>>;
|
|
180
|
+
export const updateConnectionStatus: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
181
|
+
params?: {
|
|
182
|
+
businessId: string;
|
|
183
|
+
} | undefined;
|
|
184
|
+
body?: Record<string, unknown> | undefined;
|
|
185
|
+
} | undefined) => Promise<Record<string, unknown>>;
|
|
164
186
|
export const getLinkedAccounts: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
165
187
|
params?: {
|
|
166
188
|
businessId: string;
|
|
@@ -245,6 +267,7 @@ declare module '@layerfi/components/api/layer/linked_accounts' {
|
|
|
245
267
|
}
|
|
246
268
|
declare module '@layerfi/components/api/layer/profit_and_loss' {
|
|
247
269
|
import { ProfitAndLoss } from '@layerfi/components/types';
|
|
270
|
+
import { S3PresignedUrl } from '@layerfi/components/types/general';
|
|
248
271
|
import { ProfitAndLossSummaries } from '@layerfi/components/types/profit_and_loss';
|
|
249
272
|
export const getProfitAndLoss: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
250
273
|
params?: Record<string, string | undefined> | undefined;
|
|
@@ -258,6 +281,12 @@ declare module '@layerfi/components/api/layer/profit_and_loss' {
|
|
|
258
281
|
data?: ProfitAndLossSummaries | undefined;
|
|
259
282
|
error?: unknown;
|
|
260
283
|
}>;
|
|
284
|
+
export const getProfitAndLossCsv: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
285
|
+
params?: Record<string, string | undefined> | undefined;
|
|
286
|
+
} | undefined) => () => Promise<{
|
|
287
|
+
data?: S3PresignedUrl | undefined;
|
|
288
|
+
error?: unknown;
|
|
289
|
+
}>;
|
|
261
290
|
|
|
262
291
|
}
|
|
263
292
|
declare module '@layerfi/components/api/layer/tasks' {
|
|
@@ -329,6 +358,12 @@ declare module '@layerfi/components/api/layer' {
|
|
|
329
358
|
getBankTransactions: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
330
359
|
params?: import("@layerfi/components/api/layer/bankTransactions").GetBankTransactionsParams | undefined;
|
|
331
360
|
} | undefined) => () => Promise<import("@layerfi/components/api/layer/bankTransactions").GetBankTransactionsReturn>;
|
|
361
|
+
getBankTransactionsCsv: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
362
|
+
params?: Record<string, string | undefined> | undefined;
|
|
363
|
+
} | undefined) => () => Promise<{
|
|
364
|
+
data?: import("@layerfi/components/types/general").S3PresignedUrl | undefined;
|
|
365
|
+
error?: unknown;
|
|
366
|
+
}>;
|
|
332
367
|
getCategories: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
333
368
|
params?: Record<string, string | undefined> | undefined;
|
|
334
369
|
} | undefined) => () => Promise<{
|
|
@@ -369,6 +404,12 @@ declare module '@layerfi/components/api/layer' {
|
|
|
369
404
|
data?: import("@layerfi/components/types/profit_and_loss").ProfitAndLossSummaries | undefined;
|
|
370
405
|
error?: unknown;
|
|
371
406
|
}>;
|
|
407
|
+
getProfitAndLossCsv: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
408
|
+
params?: Record<string, string | undefined> | undefined;
|
|
409
|
+
} | undefined) => () => Promise<{
|
|
410
|
+
data?: import("@layerfi/components/types/general").S3PresignedUrl | undefined;
|
|
411
|
+
error?: unknown;
|
|
412
|
+
}>;
|
|
372
413
|
getLinkedAccounts: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
373
414
|
params?: {
|
|
374
415
|
businessId: string;
|
|
@@ -467,12 +508,40 @@ declare module '@layerfi/components/api/layer' {
|
|
|
467
508
|
} | undefined;
|
|
468
509
|
body?: Record<string, unknown> | undefined;
|
|
469
510
|
} | undefined) => Promise<Record<string, unknown>>;
|
|
511
|
+
updateConnectionStatus: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
512
|
+
params?: {
|
|
513
|
+
businessId: string;
|
|
514
|
+
} | undefined;
|
|
515
|
+
body?: Record<string, unknown> | undefined;
|
|
516
|
+
} | undefined) => Promise<Record<string, unknown>>;
|
|
470
517
|
};
|
|
471
518
|
|
|
472
519
|
}
|
|
473
520
|
declare module '@layerfi/components/api/util' {
|
|
474
521
|
export const formStringFromObject: (object: Record<string, string | number | boolean>) => string;
|
|
475
522
|
|
|
523
|
+
}
|
|
524
|
+
declare module '@layerfi/components/components/ActionableList/ActionableList' {
|
|
525
|
+
import React from 'react';
|
|
526
|
+
export interface ActionableListOption<T> {
|
|
527
|
+
label: string;
|
|
528
|
+
id: string;
|
|
529
|
+
value: T;
|
|
530
|
+
asLink?: boolean;
|
|
531
|
+
secondary?: boolean;
|
|
532
|
+
}
|
|
533
|
+
interface ActionableListProps<T> {
|
|
534
|
+
options: ActionableListOption<T>[];
|
|
535
|
+
onClick: (item: ActionableListOption<T>) => void;
|
|
536
|
+
selected?: ActionableListOption<T>;
|
|
537
|
+
}
|
|
538
|
+
export const ActionableList: <T>({ options, onClick, selected, }: ActionableListProps<T>) => React.JSX.Element;
|
|
539
|
+
export {};
|
|
540
|
+
|
|
541
|
+
}
|
|
542
|
+
declare module '@layerfi/components/components/ActionableList/index' {
|
|
543
|
+
export { ActionableList, ActionableListOption } from '@layerfi/components/components/ActionableList/ActionableList';
|
|
544
|
+
|
|
476
545
|
}
|
|
477
546
|
declare module '@layerfi/components/components/ActionableRow/ActionableRow' {
|
|
478
547
|
import React, { ReactNode } from 'react';
|
|
@@ -576,7 +645,7 @@ declare module '@layerfi/components/components/BalanceSheetRow/index' {
|
|
|
576
645
|
export { BalanceSheetRow } from '@layerfi/components/components/BalanceSheetRow/BalanceSheetRow';
|
|
577
646
|
|
|
578
647
|
}
|
|
579
|
-
declare module '@layerfi/components/components/
|
|
648
|
+
declare module '@layerfi/components/components/BankTransactionList/Assignment' {
|
|
580
649
|
import React from 'react';
|
|
581
650
|
import { BankTransaction } from '@layerfi/components/types';
|
|
582
651
|
export interface AssignmentProps {
|
|
@@ -585,7 +654,22 @@ declare module '@layerfi/components/components/BankTransactionListItem/Assignmen
|
|
|
585
654
|
export const Assignment: ({ bankTransaction }: AssignmentProps) => React.JSX.Element;
|
|
586
655
|
|
|
587
656
|
}
|
|
588
|
-
declare module '@layerfi/components/components/
|
|
657
|
+
declare module '@layerfi/components/components/BankTransactionList/BankTransactionList' {
|
|
658
|
+
import React from 'react';
|
|
659
|
+
import { BankTransaction } from '@layerfi/components/types';
|
|
660
|
+
interface BankTransactionListProps {
|
|
661
|
+
bankTransactions?: BankTransaction[];
|
|
662
|
+
editable: boolean;
|
|
663
|
+
containerWidth: number;
|
|
664
|
+
removeTransaction: (id: string) => void;
|
|
665
|
+
showDescriptions?: boolean;
|
|
666
|
+
showReceiptUploads?: boolean;
|
|
667
|
+
}
|
|
668
|
+
export const BankTransactionList: ({ bankTransactions, editable, removeTransaction, containerWidth, showDescriptions, showReceiptUploads, }: BankTransactionListProps) => React.JSX.Element;
|
|
669
|
+
export {};
|
|
670
|
+
|
|
671
|
+
}
|
|
672
|
+
declare module '@layerfi/components/components/BankTransactionList/BankTransactionListItem' {
|
|
589
673
|
import React from 'react';
|
|
590
674
|
import { BankTransaction } from '@layerfi/components/types';
|
|
591
675
|
type Props = {
|
|
@@ -593,15 +677,132 @@ declare module '@layerfi/components/components/BankTransactionListItem/BankTrans
|
|
|
593
677
|
dateFormat: string;
|
|
594
678
|
bankTransaction: BankTransaction;
|
|
595
679
|
editable: boolean;
|
|
680
|
+
showDescriptions: boolean;
|
|
681
|
+
showReceiptUploads: boolean;
|
|
596
682
|
removeTransaction: (id: string) => void;
|
|
597
683
|
containerWidth?: number;
|
|
598
684
|
};
|
|
599
|
-
export const BankTransactionListItem: ({ index, dateFormat, bankTransaction, editable, containerWidth, }: Props) => React.JSX.Element | null;
|
|
685
|
+
export const BankTransactionListItem: ({ index, dateFormat, bankTransaction, editable, showDescriptions, showReceiptUploads, containerWidth, }: Props) => React.JSX.Element | null;
|
|
686
|
+
export {};
|
|
687
|
+
|
|
688
|
+
}
|
|
689
|
+
declare module '@layerfi/components/components/BankTransactionList/index' {
|
|
690
|
+
export { BankTransactionList } from '@layerfi/components/components/BankTransactionList/BankTransactionList';
|
|
691
|
+
|
|
692
|
+
}
|
|
693
|
+
declare module '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileForms' {
|
|
694
|
+
import React from 'react';
|
|
695
|
+
import { BankTransaction } from '@layerfi/components/types';
|
|
696
|
+
import { Purpose } from '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileListItem';
|
|
697
|
+
interface BankTransactionMobileFormsProps {
|
|
698
|
+
purpose: Purpose;
|
|
699
|
+
bankTransaction: BankTransaction;
|
|
700
|
+
}
|
|
701
|
+
export const BankTransactionMobileForms: ({ purpose, bankTransaction, }: BankTransactionMobileFormsProps) => React.JSX.Element;
|
|
702
|
+
export {};
|
|
703
|
+
|
|
704
|
+
}
|
|
705
|
+
declare module '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileList' {
|
|
706
|
+
import React from 'react';
|
|
707
|
+
import { BankTransaction } from '@layerfi/components/types';
|
|
708
|
+
export interface BankTransactionMobileListProps {
|
|
709
|
+
bankTransactions?: BankTransaction[];
|
|
710
|
+
editable: boolean;
|
|
711
|
+
removeTransaction: (id: string) => void;
|
|
712
|
+
initialLoad?: boolean;
|
|
713
|
+
}
|
|
714
|
+
export const BankTransactionMobileList: ({ bankTransactions, removeTransaction, editable, initialLoad, }: BankTransactionMobileListProps) => React.JSX.Element;
|
|
715
|
+
|
|
716
|
+
}
|
|
717
|
+
declare module '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileListItem' {
|
|
718
|
+
import React from 'react';
|
|
719
|
+
import { BankTransaction } from '@layerfi/components/types';
|
|
720
|
+
export interface BankTransactionMobileListItemProps {
|
|
721
|
+
index: number;
|
|
722
|
+
bankTransaction: BankTransaction;
|
|
723
|
+
editable: boolean;
|
|
724
|
+
removeTransaction: (id: string) => void;
|
|
725
|
+
initialLoad?: boolean;
|
|
726
|
+
}
|
|
727
|
+
export enum Purpose {
|
|
728
|
+
business = "business",
|
|
729
|
+
personal = "personal",
|
|
730
|
+
more = "more"
|
|
731
|
+
}
|
|
732
|
+
export const BankTransactionMobileListItem: ({ index, bankTransaction, editable, initialLoad, }: BankTransactionMobileListItemProps) => React.JSX.Element;
|
|
733
|
+
|
|
734
|
+
}
|
|
735
|
+
declare module '@layerfi/components/components/BankTransactionMobileList/BusinessForm' {
|
|
736
|
+
import React from 'react';
|
|
737
|
+
import { BankTransaction } from '@layerfi/components/types';
|
|
738
|
+
interface BusinessFormProps {
|
|
739
|
+
bankTransaction: BankTransaction;
|
|
740
|
+
}
|
|
741
|
+
export const BusinessForm: ({ bankTransaction }: BusinessFormProps) => React.JSX.Element;
|
|
600
742
|
export {};
|
|
601
743
|
|
|
602
744
|
}
|
|
603
|
-
declare module '@layerfi/components/components/
|
|
604
|
-
|
|
745
|
+
declare module '@layerfi/components/components/BankTransactionMobileList/MatchForm' {
|
|
746
|
+
import React from 'react';
|
|
747
|
+
import { BankTransaction } from '@layerfi/components/types';
|
|
748
|
+
export const MatchForm: ({ bankTransaction, }: {
|
|
749
|
+
bankTransaction: BankTransaction;
|
|
750
|
+
}) => React.JSX.Element;
|
|
751
|
+
|
|
752
|
+
}
|
|
753
|
+
declare module '@layerfi/components/components/BankTransactionMobileList/PersonalForm' {
|
|
754
|
+
import React from 'react';
|
|
755
|
+
import { BankTransaction } from '@layerfi/components/types';
|
|
756
|
+
interface PersonalFormProps {
|
|
757
|
+
bankTransaction: BankTransaction;
|
|
758
|
+
}
|
|
759
|
+
export const PersonalForm: ({ bankTransaction }: PersonalFormProps) => React.JSX.Element;
|
|
760
|
+
export {};
|
|
761
|
+
|
|
762
|
+
}
|
|
763
|
+
declare module '@layerfi/components/components/BankTransactionMobileList/SplitAndMatchForm' {
|
|
764
|
+
import React from 'react';
|
|
765
|
+
import { BankTransaction } from '@layerfi/components/types';
|
|
766
|
+
interface SplitAndMatchFormProps {
|
|
767
|
+
bankTransaction: BankTransaction;
|
|
768
|
+
}
|
|
769
|
+
export const SplitAndMatchForm: ({ bankTransaction, }: SplitAndMatchFormProps) => React.JSX.Element;
|
|
770
|
+
export {};
|
|
771
|
+
|
|
772
|
+
}
|
|
773
|
+
declare module '@layerfi/components/components/BankTransactionMobileList/SplitForm' {
|
|
774
|
+
import React from 'react';
|
|
775
|
+
import { BankTransaction } from '@layerfi/components/types';
|
|
776
|
+
export const SplitForm: ({ bankTransaction, }: {
|
|
777
|
+
bankTransaction: BankTransaction;
|
|
778
|
+
}) => React.JSX.Element;
|
|
779
|
+
|
|
780
|
+
}
|
|
781
|
+
declare module '@layerfi/components/components/BankTransactionMobileList/constants' {
|
|
782
|
+
export const PersonalCategories: string[];
|
|
783
|
+
|
|
784
|
+
}
|
|
785
|
+
declare module '@layerfi/components/components/BankTransactionMobileList/index' {
|
|
786
|
+
export { BankTransactionMobileList } from '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileList';
|
|
787
|
+
|
|
788
|
+
}
|
|
789
|
+
declare module '@layerfi/components/components/BankTransactionMobileList/utils' {
|
|
790
|
+
import { BankTransaction, Category } from '@layerfi/components/types';
|
|
791
|
+
import { CategoryOptionPayload } from '@layerfi/components/components/CategorySelect/CategorySelect';
|
|
792
|
+
export interface Option {
|
|
793
|
+
label: string;
|
|
794
|
+
id: string;
|
|
795
|
+
value: {
|
|
796
|
+
type: 'CATEGORY' | 'SELECT_CATEGORY' | 'GROUP';
|
|
797
|
+
payload?: CategoryOptionPayload;
|
|
798
|
+
items?: Option[];
|
|
799
|
+
};
|
|
800
|
+
asLink?: boolean;
|
|
801
|
+
secondary?: boolean;
|
|
802
|
+
}
|
|
803
|
+
export const mapCategoryToOption: (category: Category) => Option;
|
|
804
|
+
export const flattenCategories: (categories: Category[]) => Option[];
|
|
805
|
+
export const getAssignedValue: (bankTransaction: BankTransaction) => Option | undefined;
|
|
605
806
|
|
|
606
807
|
}
|
|
607
808
|
declare module '@layerfi/components/components/BankTransactionRow/BankTransactionRow' {
|
|
@@ -615,11 +816,13 @@ declare module '@layerfi/components/components/BankTransactionRow/BankTransactio
|
|
|
615
816
|
removeTransaction: (id: string) => void;
|
|
616
817
|
containerWidth?: number;
|
|
617
818
|
initialLoad?: boolean;
|
|
819
|
+
showDescriptions: boolean;
|
|
820
|
+
showReceiptUploads: boolean;
|
|
618
821
|
};
|
|
619
822
|
export type LastSubmittedForm = 'simple' | 'match' | 'split' | undefined;
|
|
620
823
|
export const extractDescriptionForSplit: (category: Category) => string;
|
|
621
824
|
export const getDefaultSelectedCategory: (bankTransaction: BankTransaction) => import("@layerfi/components/components/CategorySelect/CategorySelect").CategoryOption | undefined;
|
|
622
|
-
export const BankTransactionRow: ({ index, dateFormat, bankTransaction, editable, removeTransaction, containerWidth, initialLoad, }: Props) => React.JSX.Element | null;
|
|
825
|
+
export const BankTransactionRow: ({ index, dateFormat, bankTransaction, editable, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads }: Props) => React.JSX.Element | null;
|
|
623
826
|
export {};
|
|
624
827
|
|
|
625
828
|
}
|
|
@@ -650,23 +853,94 @@ declare module '@layerfi/components/components/BankTransactionRow/index' {
|
|
|
650
853
|
}
|
|
651
854
|
declare module '@layerfi/components/components/BankTransactions/BankTransactions' {
|
|
652
855
|
import React from 'react';
|
|
653
|
-
import {
|
|
654
|
-
export enum DisplayState {
|
|
655
|
-
review = "review",
|
|
656
|
-
categorized = "categorized"
|
|
657
|
-
}
|
|
856
|
+
import { MobileComponentType } from '@layerfi/components/components/BankTransactions/constants';
|
|
658
857
|
export interface BankTransactionsProps {
|
|
659
858
|
asWidget?: boolean;
|
|
660
859
|
pageSize?: number;
|
|
661
860
|
categorizedOnly?: boolean;
|
|
861
|
+
showDescriptions?: boolean;
|
|
862
|
+
showReceiptUploads?: boolean;
|
|
863
|
+
monthlyView?: boolean;
|
|
864
|
+
mobileComponent?: MobileComponentType;
|
|
662
865
|
}
|
|
663
|
-
export const
|
|
664
|
-
|
|
866
|
+
export const BankTransactions: ({ asWidget, pageSize, categorizedOnly, showDescriptions, showReceiptUploads, monthlyView, mobileComponent, }: BankTransactionsProps) => React.JSX.Element;
|
|
867
|
+
|
|
868
|
+
}
|
|
869
|
+
declare module '@layerfi/components/components/BankTransactions/BankTransactionsHeader' {
|
|
870
|
+
import React, { ChangeEvent } from 'react';
|
|
871
|
+
import { DateRange } from '@layerfi/components/types';
|
|
872
|
+
import { DisplayState, MobileComponentType } from '@layerfi/components/components/BankTransactions/constants';
|
|
873
|
+
export interface BankTransactionsHeaderProps {
|
|
874
|
+
shiftStickyHeader: number;
|
|
875
|
+
asWidget?: boolean;
|
|
876
|
+
categorizedOnly?: boolean;
|
|
877
|
+
display: DisplayState;
|
|
878
|
+
onCategorizationDisplayChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
879
|
+
mobileComponent?: MobileComponentType;
|
|
880
|
+
withDatePicker?: boolean;
|
|
881
|
+
listView?: boolean;
|
|
882
|
+
dateRange?: DateRange;
|
|
883
|
+
setDateRange?: (value: DateRange) => void;
|
|
884
|
+
}
|
|
885
|
+
export const BankTransactionsHeader: ({ shiftStickyHeader, asWidget, categorizedOnly, display, onCategorizationDisplayChange, mobileComponent, withDatePicker, listView, dateRange, setDateRange, }: BankTransactionsHeaderProps) => React.JSX.Element;
|
|
886
|
+
|
|
887
|
+
}
|
|
888
|
+
declare module '@layerfi/components/components/BankTransactions/DataStates' {
|
|
889
|
+
import React from 'react';
|
|
890
|
+
import { BankTransaction } from '@layerfi/components/types';
|
|
891
|
+
interface DataStatesProps {
|
|
892
|
+
bankTransactions?: BankTransaction[];
|
|
893
|
+
isLoading?: boolean;
|
|
894
|
+
isValidating?: boolean;
|
|
895
|
+
error?: unknown;
|
|
896
|
+
refetch: () => void;
|
|
897
|
+
editable: boolean;
|
|
898
|
+
}
|
|
899
|
+
export const DataStates: ({ bankTransactions, isLoading, isValidating, error, refetch, editable, }: DataStatesProps) => React.JSX.Element;
|
|
900
|
+
export {};
|
|
901
|
+
|
|
902
|
+
}
|
|
903
|
+
declare module '@layerfi/components/components/BankTransactions/constants' {
|
|
904
|
+
import { CategorizationStatus } from '@layerfi/components/types';
|
|
905
|
+
export type MobileComponentType = 'regularList' | 'mobileList';
|
|
906
|
+
export enum DisplayState {
|
|
907
|
+
review = "review",
|
|
908
|
+
categorized = "categorized"
|
|
909
|
+
}
|
|
910
|
+
export const CategorizedCategories: CategorizationStatus[];
|
|
911
|
+
export const ReviewCategories: CategorizationStatus[];
|
|
665
912
|
|
|
666
913
|
}
|
|
667
914
|
declare module '@layerfi/components/components/BankTransactions/index' {
|
|
668
915
|
export { BankTransactions } from '@layerfi/components/components/BankTransactions/BankTransactions';
|
|
669
916
|
|
|
917
|
+
}
|
|
918
|
+
declare module '@layerfi/components/components/BankTransactions/utils' {
|
|
919
|
+
import { BankTransaction } from '@layerfi/components/types';
|
|
920
|
+
import { DisplayState } from '@layerfi/components/components/BankTransactions/constants';
|
|
921
|
+
export const filterVisibility: (display: DisplayState, bankTransaction: BankTransaction) => boolean;
|
|
922
|
+
|
|
923
|
+
}
|
|
924
|
+
declare module '@layerfi/components/components/BankTransactionsTable/BankTransactionsTable' {
|
|
925
|
+
import React from 'react';
|
|
926
|
+
import { BankTransaction } from '@layerfi/components/types';
|
|
927
|
+
interface BankTransactionsTableProps {
|
|
928
|
+
bankTransactions?: BankTransaction[];
|
|
929
|
+
editable: boolean;
|
|
930
|
+
isLoading?: boolean;
|
|
931
|
+
initialLoad?: boolean;
|
|
932
|
+
containerWidth: number;
|
|
933
|
+
removeTransaction: (id: string) => void;
|
|
934
|
+
showDescriptions?: boolean;
|
|
935
|
+
showReceiptUploads?: boolean;
|
|
936
|
+
}
|
|
937
|
+
export const BankTransactionsTable: ({ editable, isLoading, bankTransactions, initialLoad, containerWidth, removeTransaction, showDescriptions, showReceiptUploads, }: BankTransactionsTableProps) => React.JSX.Element;
|
|
938
|
+
export {};
|
|
939
|
+
|
|
940
|
+
}
|
|
941
|
+
declare module '@layerfi/components/components/BankTransactionsTable/index' {
|
|
942
|
+
export { BankTransactionsTable } from '@layerfi/components/components/BankTransactionsTable/BankTransactionsTable';
|
|
943
|
+
|
|
670
944
|
}
|
|
671
945
|
declare module '@layerfi/components/components/Button/BackButton' {
|
|
672
946
|
import React, { ButtonHTMLAttributes } from 'react';
|
|
@@ -690,8 +964,9 @@ declare module '@layerfi/components/components/Button/Button' {
|
|
|
690
964
|
iconOnly?: ReactNode;
|
|
691
965
|
iconAsPrimary?: boolean;
|
|
692
966
|
justify?: ButtonJustify;
|
|
967
|
+
fullWidth?: boolean;
|
|
693
968
|
}
|
|
694
|
-
export const Button: ({ className, children, variant, leftIcon, rightIcon, iconOnly, iconAsPrimary, justify, ...props }: ButtonProps) => React.JSX.Element;
|
|
969
|
+
export const Button: ({ className, children, variant, leftIcon, rightIcon, iconOnly, iconAsPrimary, justify, fullWidth, ...props }: ButtonProps) => React.JSX.Element;
|
|
695
970
|
|
|
696
971
|
}
|
|
697
972
|
declare module '@layerfi/components/components/Button/CloseButton' {
|
|
@@ -718,6 +993,7 @@ declare module '@layerfi/components/components/Button/RetryButton' {
|
|
|
718
993
|
processing?: boolean;
|
|
719
994
|
disabled?: boolean;
|
|
720
995
|
error: string;
|
|
996
|
+
fullWidth?: boolean;
|
|
721
997
|
}
|
|
722
998
|
export const RetryButton: ({ className, processing, disabled, error, children, ...props }: RetryButtonProps) => React.JSX.Element;
|
|
723
999
|
|
|
@@ -781,6 +1057,7 @@ declare module '@layerfi/components/components/CategorySelect/CategorySelect' {
|
|
|
781
1057
|
onChange: (newValue: CategoryOption) => void;
|
|
782
1058
|
disabled?: boolean;
|
|
783
1059
|
className?: string;
|
|
1060
|
+
excludeMatches?: boolean;
|
|
784
1061
|
};
|
|
785
1062
|
export enum OptionActionType {
|
|
786
1063
|
CATEGORY = "category",
|
|
@@ -805,7 +1082,7 @@ declare module '@layerfi/components/components/CategorySelect/CategorySelect' {
|
|
|
805
1082
|
}
|
|
806
1083
|
export const mapCategoryToOption: (category: Category) => CategoryOption;
|
|
807
1084
|
export const mapSuggestedMatchToOption: (record: SuggestedMatch) => CategoryOption;
|
|
808
|
-
export const CategorySelect: ({ bankTransaction, name, value, onChange, disabled, className, }: Props) => React.JSX.Element;
|
|
1085
|
+
export const CategorySelect: ({ bankTransaction, name, value, onChange, disabled, className, excludeMatches, }: Props) => React.JSX.Element;
|
|
809
1086
|
export {};
|
|
810
1087
|
|
|
811
1088
|
}
|
|
@@ -926,6 +1203,7 @@ declare module '@layerfi/components/components/Container/Container' {
|
|
|
926
1203
|
className?: string;
|
|
927
1204
|
asWidget?: boolean;
|
|
928
1205
|
elevated?: boolean;
|
|
1206
|
+
transparentBg?: boolean;
|
|
929
1207
|
children: ReactNode;
|
|
930
1208
|
style?: CSSProperties;
|
|
931
1209
|
}
|
|
@@ -980,11 +1258,12 @@ declare module '@layerfi/components/components/DateMonthPicker/DateMonthPicker'
|
|
|
980
1258
|
import { DateRange } from '@layerfi/components/types';
|
|
981
1259
|
interface DateMonthPickerProps {
|
|
982
1260
|
dateRange: DateRange;
|
|
983
|
-
changeDateRange: (dateRange:
|
|
1261
|
+
changeDateRange: (dateRange: DateRange) => void;
|
|
984
1262
|
enableFutureDates?: boolean;
|
|
985
1263
|
minDate?: Date;
|
|
1264
|
+
currentDateOption?: boolean;
|
|
986
1265
|
}
|
|
987
|
-
export const DateMonthPicker: ({ dateRange, changeDateRange, enableFutureDates, minDate, }: DateMonthPickerProps) => React.JSX.Element;
|
|
1266
|
+
export const DateMonthPicker: ({ dateRange, changeDateRange, enableFutureDates, minDate, currentDateOption, }: DateMonthPickerProps) => React.JSX.Element;
|
|
988
1267
|
export {};
|
|
989
1268
|
|
|
990
1269
|
}
|
|
@@ -1058,6 +1337,8 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/Expand
|
|
|
1058
1337
|
submitBtnText?: string;
|
|
1059
1338
|
containerWidth?: number;
|
|
1060
1339
|
editable?: boolean;
|
|
1340
|
+
showDescriptions: boolean;
|
|
1341
|
+
showReceiptUploads: boolean;
|
|
1061
1342
|
};
|
|
1062
1343
|
export type SaveHandle = {
|
|
1063
1344
|
save: () => void;
|
|
@@ -1244,10 +1525,10 @@ declare module '@layerfi/components/components/JournalForm/index' {
|
|
|
1244
1525
|
}
|
|
1245
1526
|
declare module '@layerfi/components/components/JournalRow/JournalRow' {
|
|
1246
1527
|
import React from 'react';
|
|
1247
|
-
import { JournalEntry, JournalEntryLine } from '@layerfi/components/types';
|
|
1528
|
+
import { JournalEntry, JournalEntryLine, JournalEntryLineItem } from '@layerfi/components/types';
|
|
1248
1529
|
import { View } from '@layerfi/components/components/Journal/index';
|
|
1249
1530
|
export interface JournalRowProps {
|
|
1250
|
-
row: JournalEntry | JournalEntryLine;
|
|
1531
|
+
row: JournalEntry | JournalEntryLine | JournalEntryLineItem;
|
|
1251
1532
|
index: number;
|
|
1252
1533
|
initialLoad?: boolean;
|
|
1253
1534
|
view: View;
|
|
@@ -1324,6 +1605,10 @@ declare module '@layerfi/components/components/LedgerAccount/index' {
|
|
|
1324
1605
|
}
|
|
1325
1606
|
declare module '@layerfi/components/components/LedgerAccountEntryDetails/LedgerAccountEntryDetails' {
|
|
1326
1607
|
import React from 'react';
|
|
1608
|
+
import { LedgerEntrySource } from '@layerfi/components/types/ledger_accounts';
|
|
1609
|
+
export const SourceDetailView: ({ source }: {
|
|
1610
|
+
source: LedgerEntrySource;
|
|
1611
|
+
}) => React.JSX.Element | null;
|
|
1327
1612
|
export const LedgerAccountEntryDetails: () => React.JSX.Element;
|
|
1328
1613
|
|
|
1329
1614
|
}
|
|
@@ -1434,9 +1719,16 @@ declare module '@layerfi/components/components/MatchForm/MatchForm' {
|
|
|
1434
1719
|
}
|
|
1435
1720
|
export const MatchForm: ({ classNamePrefix, bankTransaction, selectedMatchId, setSelectedMatchId, matchFormError, }: MatchFormProps) => React.JSX.Element;
|
|
1436
1721
|
|
|
1722
|
+
}
|
|
1723
|
+
declare module '@layerfi/components/components/MatchForm/MatchFormMobile' {
|
|
1724
|
+
import React from 'react';
|
|
1725
|
+
import { MatchFormProps } from '@layerfi/components/components/MatchForm/MatchForm';
|
|
1726
|
+
export const MatchFormMobile: ({ classNamePrefix, bankTransaction, selectedMatchId, setSelectedMatchId, matchFormError, }: MatchFormProps) => React.JSX.Element;
|
|
1727
|
+
|
|
1437
1728
|
}
|
|
1438
1729
|
declare module '@layerfi/components/components/MatchForm/index' {
|
|
1439
1730
|
export { MatchForm } from '@layerfi/components/components/MatchForm/MatchForm';
|
|
1731
|
+
export { MatchFormMobile } from '@layerfi/components/components/MatchForm/MatchFormMobile';
|
|
1440
1732
|
|
|
1441
1733
|
}
|
|
1442
1734
|
declare module '@layerfi/components/components/NotificationCard/NotificationCard' {
|
|
@@ -1776,6 +2068,46 @@ declare module '@layerfi/components/components/SkeletonLoader/SkeletonLoader' {
|
|
|
1776
2068
|
declare module '@layerfi/components/components/SkeletonLoader/index' {
|
|
1777
2069
|
export { SkeletonLoader } from '@layerfi/components/components/SkeletonLoader/SkeletonLoader';
|
|
1778
2070
|
|
|
2071
|
+
}
|
|
2072
|
+
declare module '@layerfi/components/components/Tabs/Tab' {
|
|
2073
|
+
import React, { ChangeEvent, ReactNode } from 'react';
|
|
2074
|
+
interface TabProps {
|
|
2075
|
+
checked: boolean;
|
|
2076
|
+
label: string;
|
|
2077
|
+
name: string;
|
|
2078
|
+
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
2079
|
+
value: string;
|
|
2080
|
+
disabled?: boolean;
|
|
2081
|
+
disabledMessage?: string;
|
|
2082
|
+
leftIcon?: ReactNode;
|
|
2083
|
+
index: number;
|
|
2084
|
+
}
|
|
2085
|
+
export const Tab: ({ checked, label, name, onChange, value, leftIcon, disabled, disabledMessage, index, }: TabProps) => React.JSX.Element;
|
|
2086
|
+
export {};
|
|
2087
|
+
|
|
2088
|
+
}
|
|
2089
|
+
declare module '@layerfi/components/components/Tabs/Tabs' {
|
|
2090
|
+
import React, { ChangeEvent, ReactNode } from 'react';
|
|
2091
|
+
interface Option {
|
|
2092
|
+
label: string;
|
|
2093
|
+
value: string;
|
|
2094
|
+
disabled?: boolean;
|
|
2095
|
+
disabledMessage?: string;
|
|
2096
|
+
leftIcon?: ReactNode;
|
|
2097
|
+
}
|
|
2098
|
+
interface TabsProps {
|
|
2099
|
+
name: string;
|
|
2100
|
+
options: Option[];
|
|
2101
|
+
selected?: Option['value'];
|
|
2102
|
+
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
2103
|
+
}
|
|
2104
|
+
export const Tabs: ({ name, options, selected, onChange }: TabsProps) => React.JSX.Element;
|
|
2105
|
+
export {};
|
|
2106
|
+
|
|
2107
|
+
}
|
|
2108
|
+
declare module '@layerfi/components/components/Tabs/index' {
|
|
2109
|
+
export { Tabs } from '@layerfi/components/components/Tabs/Tabs';
|
|
2110
|
+
|
|
1779
2111
|
}
|
|
1780
2112
|
declare module '@layerfi/components/components/Tasks/Tasks' {
|
|
1781
2113
|
import React from 'react';
|
|
@@ -1841,19 +2173,32 @@ declare module '@layerfi/components/components/Textarea/Textarea' {
|
|
|
1841
2173
|
declare module '@layerfi/components/components/Textarea/index' {
|
|
1842
2174
|
export { Textarea } from '@layerfi/components/components/Textarea/Textarea';
|
|
1843
2175
|
|
|
2176
|
+
}
|
|
2177
|
+
declare module '@layerfi/components/components/Toast/Toast' {
|
|
2178
|
+
import React from 'react';
|
|
2179
|
+
export interface ToastProps {
|
|
2180
|
+
id?: string;
|
|
2181
|
+
content: string;
|
|
2182
|
+
duration?: number;
|
|
2183
|
+
isExiting?: boolean;
|
|
2184
|
+
}
|
|
2185
|
+
export const ToastsContainer: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
|
|
2186
|
+
|
|
1844
2187
|
}
|
|
1845
2188
|
declare module '@layerfi/components/components/Toggle/Toggle' {
|
|
1846
|
-
import React, { ChangeEvent, ReactNode } from 'react';
|
|
2189
|
+
import React, { CSSProperties, ChangeEvent, ReactNode } from 'react';
|
|
1847
2190
|
export interface Option {
|
|
1848
2191
|
label: string;
|
|
1849
2192
|
value: string;
|
|
1850
2193
|
disabled?: boolean;
|
|
1851
2194
|
disabledMessage?: string;
|
|
1852
2195
|
leftIcon?: ReactNode;
|
|
2196
|
+
style?: CSSProperties;
|
|
1853
2197
|
}
|
|
1854
2198
|
export enum ToggleSize {
|
|
1855
2199
|
medium = "medium",
|
|
1856
|
-
small = "small"
|
|
2200
|
+
small = "small",
|
|
2201
|
+
xsmall = "xsmall"
|
|
1857
2202
|
}
|
|
1858
2203
|
export interface ToggleProps {
|
|
1859
2204
|
name: string;
|
|
@@ -2119,6 +2464,7 @@ declare module '@layerfi/components/config/charts' {
|
|
|
2119
2464
|
}
|
|
2120
2465
|
declare module '@layerfi/components/config/general' {
|
|
2121
2466
|
export const DATE_FORMAT = "LLL d, yyyy";
|
|
2467
|
+
export const MONTH_DAY_FORMAT = "LLL d";
|
|
2122
2468
|
export const TIME_FORMAT = "p";
|
|
2123
2469
|
export const BREAKPOINTS: {
|
|
2124
2470
|
TABLET: number;
|
|
@@ -2298,6 +2644,7 @@ declare module '@layerfi/components/contexts/LinkedAccountsContext/LinkedAccount
|
|
|
2298
2644
|
addConnection: (source: import("@layerfi/components/types/linked_accounts").Source) => void;
|
|
2299
2645
|
removeConnection: (source: import("@layerfi/components/types/linked_accounts").Source, sourceId: string) => void;
|
|
2300
2646
|
repairConnection: (source: import("@layerfi/components/types/linked_accounts").Source, sourceId: string) => void;
|
|
2647
|
+
updateConnectionStatus: () => void;
|
|
2301
2648
|
refetchAccounts: () => void;
|
|
2302
2649
|
syncAccounts: () => void;
|
|
2303
2650
|
unlinkAccount: (source: import("@layerfi/components/types/linked_accounts").Source, accountId: string) => void;
|
|
@@ -2474,7 +2821,6 @@ declare module '@layerfi/components/hooks/useJournal/useJournal' {
|
|
|
2474
2821
|
} | undefined;
|
|
2475
2822
|
}
|
|
2476
2823
|
export const useJournal: UseJournal;
|
|
2477
|
-
export const flattenEntries: (entries: JournalEntry[]) => JournalEntry[];
|
|
2478
2824
|
export {};
|
|
2479
2825
|
|
|
2480
2826
|
}
|
|
@@ -2535,6 +2881,7 @@ declare module '@layerfi/components/hooks/useLinkedAccounts/useLinkedAccounts' {
|
|
|
2535
2881
|
addConnection: (source: Source) => void;
|
|
2536
2882
|
removeConnection: (source: Source, sourceId: string) => void;
|
|
2537
2883
|
repairConnection: (source: Source, sourceId: string) => void;
|
|
2884
|
+
updateConnectionStatus: () => void;
|
|
2538
2885
|
refetchAccounts: () => void;
|
|
2539
2886
|
syncAccounts: () => void;
|
|
2540
2887
|
unlinkAccount: (source: Source, accountId: string) => void;
|
|
@@ -2679,6 +3026,23 @@ declare module '@layerfi/components/hooks/useTasks/useTasks' {
|
|
|
2679
3026
|
export const useTasks: UseTasks;
|
|
2680
3027
|
export {};
|
|
2681
3028
|
|
|
3029
|
+
}
|
|
3030
|
+
declare module '@layerfi/components/hooks/useWindowSize/index' {
|
|
3031
|
+
export { useWindowSize, useSizeClass } from '@layerfi/components/hooks/useWindowSize/useWindowSize';
|
|
3032
|
+
|
|
3033
|
+
}
|
|
3034
|
+
declare module '@layerfi/components/hooks/useWindowSize/useWindowSize' {
|
|
3035
|
+
export const useWindowSize: () => number[];
|
|
3036
|
+
export type SizeClass = 'mobile' | 'tablet' | 'desktop';
|
|
3037
|
+
interface UseSizeClass {
|
|
3038
|
+
value: SizeClass;
|
|
3039
|
+
isMobile: boolean;
|
|
3040
|
+
isTablet: boolean;
|
|
3041
|
+
isDesktop: boolean;
|
|
3042
|
+
}
|
|
3043
|
+
export function useSizeClass(): UseSizeClass;
|
|
3044
|
+
export {};
|
|
3045
|
+
|
|
2682
3046
|
}
|
|
2683
3047
|
declare module '@layerfi/components/icons/AlertCircle' {
|
|
2684
3048
|
import * as React from 'react';
|
|
@@ -2753,8 +3117,8 @@ declare module '@layerfi/components/icons/ChevronLeft' {
|
|
|
2753
3117
|
declare module '@layerfi/components/icons/ChevronRight' {
|
|
2754
3118
|
import * as React from 'react';
|
|
2755
3119
|
import { IconSvgProps } from '@layerfi/components/icons/types';
|
|
2756
|
-
const
|
|
2757
|
-
export default
|
|
3120
|
+
const ChevronRight: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
|
|
3121
|
+
export default ChevronRight;
|
|
2758
3122
|
|
|
2759
3123
|
}
|
|
2760
3124
|
declare module '@layerfi/components/icons/CloseIcon' {
|
|
@@ -2791,6 +3155,13 @@ declare module '@layerfi/components/icons/Folder' {
|
|
|
2791
3155
|
const Folder: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
|
|
2792
3156
|
export default Folder;
|
|
2793
3157
|
|
|
3158
|
+
}
|
|
3159
|
+
declare module '@layerfi/components/icons/Inbox' {
|
|
3160
|
+
import * as React from 'react';
|
|
3161
|
+
import { IconSvgProps } from '@layerfi/components/icons/types';
|
|
3162
|
+
const Inbox: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
|
|
3163
|
+
export default Inbox;
|
|
3164
|
+
|
|
2794
3165
|
}
|
|
2795
3166
|
declare module '@layerfi/components/icons/InstitutionIcon' {
|
|
2796
3167
|
import * as React from 'react';
|
|
@@ -3265,12 +3636,18 @@ declare module '@layerfi/components/types/general' {
|
|
|
3265
3636
|
label: string;
|
|
3266
3637
|
value: string | number;
|
|
3267
3638
|
}
|
|
3639
|
+
export interface S3PresignedUrl {
|
|
3640
|
+
type: 'S3_Presigned_Url';
|
|
3641
|
+
presignedUrl: string;
|
|
3642
|
+
fileType: string;
|
|
3643
|
+
}
|
|
3268
3644
|
export type LoadedStatus = 'initial' | 'loading' | 'complete';
|
|
3269
3645
|
|
|
3270
3646
|
}
|
|
3271
3647
|
declare module '@layerfi/components/types/journal' {
|
|
3272
3648
|
import { Account } from '@layerfi/components/types';
|
|
3273
3649
|
import { Direction } from '@layerfi/components/types/bank_transactions';
|
|
3650
|
+
import { LedgerEntrySource } from '@layerfi/components/types/ledger_accounts';
|
|
3274
3651
|
export interface JournalEntry {
|
|
3275
3652
|
id: string;
|
|
3276
3653
|
business_id: string;
|
|
@@ -3281,7 +3658,8 @@ declare module '@layerfi/components/types/journal' {
|
|
|
3281
3658
|
entry_at: string;
|
|
3282
3659
|
reversal_of_id: string | null;
|
|
3283
3660
|
reversal_id: string | null;
|
|
3284
|
-
line_items:
|
|
3661
|
+
line_items: JournalEntryLineItem[];
|
|
3662
|
+
source?: LedgerEntrySource;
|
|
3285
3663
|
}
|
|
3286
3664
|
export interface JournalEntryLine {
|
|
3287
3665
|
id: string;
|
|
@@ -3315,6 +3693,7 @@ declare module '@layerfi/components/types/journal' {
|
|
|
3315
3693
|
|
|
3316
3694
|
}
|
|
3317
3695
|
declare module '@layerfi/components/types/layer_context' {
|
|
3696
|
+
import { ToastProps } from '@layerfi/components/components/Toast/Toast';
|
|
3318
3697
|
import { Business, Category } from '@layerfi/components/types';
|
|
3319
3698
|
import { ExpiringOAuthResponse } from '@layerfi/components/types/authentication';
|
|
3320
3699
|
export type LayerContextValues = {
|
|
@@ -3328,6 +3707,9 @@ declare module '@layerfi/components/types/layer_context' {
|
|
|
3328
3707
|
usePlaidSandbox?: boolean;
|
|
3329
3708
|
onboardingStep?: OnboardingStep;
|
|
3330
3709
|
environment: string;
|
|
3710
|
+
toasts: (ToastProps & {
|
|
3711
|
+
isExiting: boolean;
|
|
3712
|
+
})[];
|
|
3331
3713
|
};
|
|
3332
3714
|
export type LayerContextHelpers = {
|
|
3333
3715
|
getColor: (shade: number) => ColorsPaletteOption | undefined;
|
|
@@ -3335,6 +3717,8 @@ declare module '@layerfi/components/types/layer_context' {
|
|
|
3335
3717
|
setDarkColor: (color?: ColorConfig) => void;
|
|
3336
3718
|
setColors: (colors?: LayerThemeConfigColors) => void;
|
|
3337
3719
|
setOnboardingStep: (value: OnboardingStep) => void;
|
|
3720
|
+
addToast: (toast: ToastProps) => void;
|
|
3721
|
+
removeToast: (toast: ToastProps) => void;
|
|
3338
3722
|
};
|
|
3339
3723
|
export interface ColorHSLConfig {
|
|
3340
3724
|
h: string;
|
|
@@ -3380,7 +3764,10 @@ declare module '@layerfi/components/types/layer_context' {
|
|
|
3380
3764
|
setCategories = "LayerContext.setCategories",
|
|
3381
3765
|
setTheme = "LayerContext.setTheme",
|
|
3382
3766
|
setOnboardingStep = "LayerContext.setOnboardingStep",
|
|
3383
|
-
setColors = "LayerContext.setColors"
|
|
3767
|
+
setColors = "LayerContext.setColors",
|
|
3768
|
+
setToast = "LayerContext.setToast",
|
|
3769
|
+
removeToast = "LayerContext.removeToast",
|
|
3770
|
+
setToastExit = "LayerContext.setToastExit"
|
|
3384
3771
|
}
|
|
3385
3772
|
export type LayerContextAction = {
|
|
3386
3773
|
type: LayerContextActionName.setAuth;
|
|
@@ -3412,6 +3799,21 @@ declare module '@layerfi/components/types/layer_context' {
|
|
|
3412
3799
|
payload: {
|
|
3413
3800
|
colors: LayerContextValues['colors'];
|
|
3414
3801
|
};
|
|
3802
|
+
} | {
|
|
3803
|
+
type: LayerContextActionName.setToast;
|
|
3804
|
+
payload: {
|
|
3805
|
+
toast: ToastProps;
|
|
3806
|
+
};
|
|
3807
|
+
} | {
|
|
3808
|
+
type: LayerContextActionName.removeToast;
|
|
3809
|
+
payload: {
|
|
3810
|
+
toast: ToastProps;
|
|
3811
|
+
};
|
|
3812
|
+
} | {
|
|
3813
|
+
type: LayerContextActionName.setToastExit;
|
|
3814
|
+
payload: {
|
|
3815
|
+
toast: ToastProps;
|
|
3816
|
+
};
|
|
3415
3817
|
};
|
|
3416
3818
|
|
|
3417
3819
|
}
|
|
@@ -3644,6 +4046,13 @@ declare module '@layerfi/components/types' {
|
|
|
3644
4046
|
};
|
|
3645
4047
|
export type ReportingBasis = 'CASH' | 'ACCRUAL';
|
|
3646
4048
|
|
|
4049
|
+
}
|
|
4050
|
+
declare module '@layerfi/components/utils/bankTransactions' {
|
|
4051
|
+
import { BankTransaction } from '@layerfi/components/types';
|
|
4052
|
+
export const hasMatch: (bankTransaction?: BankTransaction) => boolean;
|
|
4053
|
+
export const isCredit: ({ direction }: Pick<BankTransaction, 'direction'>) => boolean;
|
|
4054
|
+
export const isAlreadyMatched: (bankTransaction?: BankTransaction) => string | undefined;
|
|
4055
|
+
|
|
3647
4056
|
}
|
|
3648
4057
|
declare module '@layerfi/components/utils/business' {
|
|
3649
4058
|
import { Business } from '@layerfi/components/types';
|
|
@@ -3729,8 +4138,10 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/Ban
|
|
|
3729
4138
|
title?: string;
|
|
3730
4139
|
elevatedLinkedAccounts?: boolean;
|
|
3731
4140
|
showLedgerBalance?: boolean;
|
|
4141
|
+
showDescriptions?: boolean;
|
|
4142
|
+
showReceiptUploads?: boolean;
|
|
3732
4143
|
}
|
|
3733
|
-
export const BankTransactionsWithLinkedAccounts: ({ title, elevatedLinkedAccounts, showLedgerBalance, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
|
|
4144
|
+
export const BankTransactionsWithLinkedAccounts: ({ title, elevatedLinkedAccounts, showLedgerBalance, showDescriptions, showReceiptUploads, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
|
|
3734
4145
|
|
|
3735
4146
|
}
|
|
3736
4147
|
declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/index' {
|