@layerfi/components 0.1.26 → 0.1.27
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 +315 -274
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +31 -9
- package/dist/index.js +296 -255
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -848,7 +848,7 @@ declare module '@layerfi/components/components/BankTransactionRow/BankTransactio
|
|
|
848
848
|
export type LastSubmittedForm = 'simple' | 'match' | 'split' | undefined;
|
|
849
849
|
export const extractDescriptionForSplit: (category: Category) => string;
|
|
850
850
|
export const getDefaultSelectedCategory: (bankTransaction: BankTransaction) => import("@layerfi/components/components/CategorySelect/CategorySelect").CategoryOption | undefined;
|
|
851
|
-
export const BankTransactionRow: ({ index, dateFormat, bankTransaction, editable, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads }: Props) => React.JSX.Element | null;
|
|
851
|
+
export const BankTransactionRow: ({ index, dateFormat, bankTransaction, editable, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads, }: Props) => React.JSX.Element | null;
|
|
852
852
|
export {};
|
|
853
853
|
|
|
854
854
|
}
|
|
@@ -1799,8 +1799,9 @@ declare module '@layerfi/components/components/Onboarding/ConnectAccount' {
|
|
|
1799
1799
|
export interface ConnectAccountProps {
|
|
1800
1800
|
onboardingStep: OnboardingStep;
|
|
1801
1801
|
onTransactionsToReviewClick?: () => void;
|
|
1802
|
+
currentMonthOnly?: boolean;
|
|
1802
1803
|
}
|
|
1803
|
-
export const ConnectAccount: ({ onboardingStep, onTransactionsToReviewClick, }: ConnectAccountProps) => React.JSX.Element;
|
|
1804
|
+
export const ConnectAccount: ({ onboardingStep, onTransactionsToReviewClick, currentMonthOnly, }: ConnectAccountProps) => React.JSX.Element;
|
|
1804
1805
|
|
|
1805
1806
|
}
|
|
1806
1807
|
declare module '@layerfi/components/components/Onboarding/Onboarding' {
|
|
@@ -2399,8 +2400,9 @@ declare module '@layerfi/components/components/TransactionToReviewCard/Transacti
|
|
|
2399
2400
|
import React from 'react';
|
|
2400
2401
|
export interface TransactionToReviewCardProps {
|
|
2401
2402
|
onClick?: () => void;
|
|
2403
|
+
currentMonthOnly?: true;
|
|
2402
2404
|
}
|
|
2403
|
-
export const TransactionToReviewCard: ({ onClick, }: TransactionToReviewCardProps) => React.JSX.Element;
|
|
2405
|
+
export const TransactionToReviewCard: ({ onClick, currentMonthOnly, }: TransactionToReviewCardProps) => React.JSX.Element;
|
|
2404
2406
|
|
|
2405
2407
|
}
|
|
2406
2408
|
declare module '@layerfi/components/components/TransactionToReviewCard/index' {
|
|
@@ -3617,17 +3619,21 @@ declare module '@layerfi/components/types/categories' {
|
|
|
3617
3619
|
suggestions: Category[];
|
|
3618
3620
|
}
|
|
3619
3621
|
export type Categorization = AutoCategorization | SuggestedCategorization;
|
|
3622
|
+
export type CategoryPayloadObject = {
|
|
3623
|
+
type: 'StableName';
|
|
3624
|
+
stable_name: string;
|
|
3625
|
+
} | {
|
|
3626
|
+
type: 'AccountId';
|
|
3627
|
+
id: string;
|
|
3628
|
+
};
|
|
3620
3629
|
export type SingleCategoryUpdate = {
|
|
3621
3630
|
type: 'Category';
|
|
3622
|
-
category:
|
|
3623
|
-
type: 'StableName';
|
|
3624
|
-
stable_name: string;
|
|
3625
|
-
};
|
|
3631
|
+
category: CategoryPayloadObject;
|
|
3626
3632
|
};
|
|
3627
3633
|
export type SplitCategoryUpdate = {
|
|
3628
3634
|
type: 'Split';
|
|
3629
3635
|
entries: {
|
|
3630
|
-
category: string;
|
|
3636
|
+
category: string | CategoryPayloadObject;
|
|
3631
3637
|
amount: number;
|
|
3632
3638
|
}[];
|
|
3633
3639
|
};
|
|
@@ -4128,10 +4134,24 @@ declare module '@layerfi/components/types' {
|
|
|
4128
4134
|
|
|
4129
4135
|
}
|
|
4130
4136
|
declare module '@layerfi/components/utils/bankTransactions' {
|
|
4137
|
+
import { CategoryOption } from '@layerfi/components/components/CategorySelect/CategorySelect';
|
|
4131
4138
|
import { BankTransaction } from '@layerfi/components/types';
|
|
4132
4139
|
export const hasMatch: (bankTransaction?: BankTransaction) => boolean;
|
|
4133
4140
|
export const isCredit: ({ direction }: Pick<BankTransaction, 'direction'>) => boolean;
|
|
4134
4141
|
export const isAlreadyMatched: (bankTransaction?: BankTransaction) => string | undefined;
|
|
4142
|
+
export const countTransactionsToReview: ({ transactions, currentMonthOnly, }: {
|
|
4143
|
+
transactions?: BankTransaction[] | undefined;
|
|
4144
|
+
currentMonthOnly?: boolean | undefined;
|
|
4145
|
+
}) => number;
|
|
4146
|
+
export const getCategorizePayload: (category: CategoryOption) => {
|
|
4147
|
+
type: "AccountId";
|
|
4148
|
+
id: string;
|
|
4149
|
+
stable_name?: undefined;
|
|
4150
|
+
} | {
|
|
4151
|
+
type: "StableName";
|
|
4152
|
+
stable_name: string;
|
|
4153
|
+
id?: undefined;
|
|
4154
|
+
};
|
|
4135
4155
|
|
|
4136
4156
|
}
|
|
4137
4157
|
declare module '@layerfi/components/utils/business' {
|
|
@@ -4214,14 +4234,16 @@ declare module '@layerfi/components/views/AccountingOverview/index' {
|
|
|
4214
4234
|
}
|
|
4215
4235
|
declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/BankTransactionsWithLinkedAccounts' {
|
|
4216
4236
|
import React from 'react';
|
|
4237
|
+
import { MobileComponentType } from "@layerfi/components/components/BankTransactions/constants";
|
|
4217
4238
|
export interface BankTransactionsWithLinkedAccountsProps {
|
|
4218
4239
|
title?: string;
|
|
4219
4240
|
elevatedLinkedAccounts?: boolean;
|
|
4220
4241
|
showLedgerBalance?: boolean;
|
|
4221
4242
|
showDescriptions?: boolean;
|
|
4222
4243
|
showReceiptUploads?: boolean;
|
|
4244
|
+
mobileComponent?: MobileComponentType;
|
|
4223
4245
|
}
|
|
4224
|
-
export const BankTransactionsWithLinkedAccounts: ({ title, elevatedLinkedAccounts, showLedgerBalance, showDescriptions, showReceiptUploads, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
|
|
4246
|
+
export const BankTransactionsWithLinkedAccounts: ({ title, elevatedLinkedAccounts, showLedgerBalance, showDescriptions, showReceiptUploads, mobileComponent, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
|
|
4225
4247
|
|
|
4226
4248
|
}
|
|
4227
4249
|
declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/index' {
|