@layerfi/components 0.1.88 → 0.1.89-alpha
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/cjs/index.cjs +2853 -2587
- package/dist/esm/index.mjs +2402 -2129
- package/dist/index.css +346 -49
- package/dist/index.d.ts +386 -142
- package/package.json +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare module '@layerfi/components/api/layer/authenticated_http' {
|
|
2
|
+
import type { ParameterValues } from '@layerfi/components/utils/request/toDefinedSearchParameters';
|
|
2
3
|
export type HTTPVerb = 'get' | 'put' | 'post' | 'patch' | 'options' | 'delete';
|
|
3
|
-
export const get: <Return extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string,
|
|
4
|
+
export const get: <Return extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, ParameterValues | null | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
|
|
4
5
|
params?: Params;
|
|
5
6
|
}) => () => Promise<Return>;
|
|
6
7
|
export const request: (verb: Exclude<HTTPVerb, "get">) => <Return extends Record<string, unknown> = Record<string, unknown>, Body extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
|
|
@@ -23,15 +24,13 @@ declare module '@layerfi/components/api/layer/balance_sheet' {
|
|
|
23
24
|
import type { S3PresignedUrl } from '@layerfi/components/types/general';
|
|
24
25
|
type GetBalanceSheetParams = {
|
|
25
26
|
businessId: string;
|
|
26
|
-
effectiveDate:
|
|
27
|
-
};
|
|
28
|
-
type GetBalanceSheetReturn = {
|
|
29
|
-
data?: BalanceSheet;
|
|
30
|
-
error?: unknown;
|
|
27
|
+
effectiveDate: Date;
|
|
31
28
|
};
|
|
32
29
|
export const getBalanceSheet: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
33
30
|
params?: GetBalanceSheetParams | undefined;
|
|
34
|
-
} | undefined) => () => Promise<
|
|
31
|
+
} | undefined) => () => Promise<{
|
|
32
|
+
data: BalanceSheet;
|
|
33
|
+
}>;
|
|
35
34
|
export const getBalanceSheetCSV: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
36
35
|
params?: GetBalanceSheetParams | undefined;
|
|
37
36
|
} | undefined) => () => Promise<{
|
|
@@ -190,6 +189,32 @@ declare module '@layerfi/components/api/layer/business' {
|
|
|
190
189
|
data: Business;
|
|
191
190
|
}>;
|
|
192
191
|
|
|
192
|
+
}
|
|
193
|
+
declare module '@layerfi/components/api/layer/businessPersonnel/updateBusinessPersonnel' {
|
|
194
|
+
import type { BusinessPersonnel, PersonnelRole, RawBusinessPersonnel } from '@layerfi/components/hooks/businessPersonnel/types';
|
|
195
|
+
export type UpdateBusinessPersonnelBody = {
|
|
196
|
+
id: string;
|
|
197
|
+
} & Partial<Pick<RawBusinessPersonnel, 'full_name' | 'preferred_name' | 'external_id'> & {
|
|
198
|
+
email_addresses: ReadonlyArray<{
|
|
199
|
+
email_address: string;
|
|
200
|
+
}>;
|
|
201
|
+
phone_numbers: ReadonlyArray<{
|
|
202
|
+
phone_number: string;
|
|
203
|
+
}>;
|
|
204
|
+
roles: ReadonlyArray<{
|
|
205
|
+
role: PersonnelRole;
|
|
206
|
+
}>;
|
|
207
|
+
}>;
|
|
208
|
+
export const updateBusinessPersonnel: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
209
|
+
params?: {
|
|
210
|
+
businessId: string;
|
|
211
|
+
businessPersonnelId: string;
|
|
212
|
+
} | undefined;
|
|
213
|
+
body?: UpdateBusinessPersonnelBody | undefined;
|
|
214
|
+
} | undefined) => Promise<{
|
|
215
|
+
data: BusinessPersonnel;
|
|
216
|
+
}>;
|
|
217
|
+
|
|
193
218
|
}
|
|
194
219
|
declare module '@layerfi/components/api/layer/categories' {
|
|
195
220
|
import { Category } from '@layerfi/components/types';
|
|
@@ -407,9 +432,21 @@ declare module '@layerfi/components/api/layer/profit_and_loss' {
|
|
|
407
432
|
import { ProfitAndLoss } from '@layerfi/components/types';
|
|
408
433
|
import { S3PresignedUrl } from '@layerfi/components/types/general';
|
|
409
434
|
import type { ProfitAndLossComparison, ProfitAndLossComparisonRequestBody, ProfitAndLossSummaries } from '@layerfi/components/types/profit_and_loss';
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
435
|
+
type BaseProfitAndLossParams = {
|
|
436
|
+
businessId: string;
|
|
437
|
+
startDate?: Date;
|
|
438
|
+
endDate?: Date;
|
|
439
|
+
month?: string;
|
|
440
|
+
year?: string;
|
|
441
|
+
tagKey?: string;
|
|
442
|
+
tagValues?: string;
|
|
443
|
+
reportingBasis?: string;
|
|
444
|
+
};
|
|
445
|
+
type GetProfitAndLossParams = BaseProfitAndLossParams;
|
|
446
|
+
type GetProfitAndLossCsvParams = BaseProfitAndLossParams & {
|
|
447
|
+
moneyFormat?: string;
|
|
448
|
+
};
|
|
449
|
+
export const getProfitAndLoss: (apiUrl: string, accessToken: string | undefined, params: GetProfitAndLossParams) => () => Promise<{
|
|
413
450
|
data?: ProfitAndLoss;
|
|
414
451
|
error?: unknown;
|
|
415
452
|
}>;
|
|
@@ -426,9 +463,7 @@ declare module '@layerfi/components/api/layer/profit_and_loss' {
|
|
|
426
463
|
data?: ProfitAndLossSummaries;
|
|
427
464
|
error?: unknown;
|
|
428
465
|
}>;
|
|
429
|
-
export const getProfitAndLossCsv: (
|
|
430
|
-
params?: Record<string, string | undefined> | undefined;
|
|
431
|
-
} | undefined) => () => Promise<{
|
|
466
|
+
export const getProfitAndLossCsv: (apiUrl: string, accessToken: string | undefined, params: GetProfitAndLossCsvParams) => () => Promise<{
|
|
432
467
|
data?: S3PresignedUrl;
|
|
433
468
|
error?: unknown;
|
|
434
469
|
}>;
|
|
@@ -439,6 +474,7 @@ declare module '@layerfi/components/api/layer/profit_and_loss' {
|
|
|
439
474
|
data?: S3PresignedUrl;
|
|
440
475
|
error?: unknown;
|
|
441
476
|
}>;
|
|
477
|
+
export {};
|
|
442
478
|
|
|
443
479
|
}
|
|
444
480
|
declare module '@layerfi/components/api/layer/quickbooks' {
|
|
@@ -492,16 +528,14 @@ declare module '@layerfi/components/api/layer/statement-of-cash-flow' {
|
|
|
492
528
|
import type { S3PresignedUrl } from '@layerfi/components/types/general';
|
|
493
529
|
type GetStatementOfCashFlowParams = {
|
|
494
530
|
businessId: string;
|
|
495
|
-
startDate:
|
|
496
|
-
endDate:
|
|
497
|
-
};
|
|
498
|
-
type GetStatementOfCashFlowReturn = {
|
|
499
|
-
data?: StatementOfCashFlow;
|
|
500
|
-
error?: unknown;
|
|
531
|
+
startDate: Date;
|
|
532
|
+
endDate: Date;
|
|
501
533
|
};
|
|
502
534
|
export const getStatementOfCashFlow: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
503
535
|
params?: GetStatementOfCashFlowParams | undefined;
|
|
504
|
-
} | undefined) => () => Promise<
|
|
536
|
+
} | undefined) => () => Promise<{
|
|
537
|
+
data: StatementOfCashFlow;
|
|
538
|
+
}>;
|
|
505
539
|
export const getCashflowStatementCSV: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
506
540
|
params?: GetStatementOfCashFlowParams | undefined;
|
|
507
541
|
} | undefined) => () => Promise<{
|
|
@@ -601,11 +635,10 @@ declare module '@layerfi/components/api/layer' {
|
|
|
601
635
|
getBalanceSheet: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
602
636
|
params?: {
|
|
603
637
|
businessId: string;
|
|
604
|
-
effectiveDate:
|
|
638
|
+
effectiveDate: Date;
|
|
605
639
|
} | undefined;
|
|
606
640
|
} | undefined) => () => Promise<{
|
|
607
|
-
data
|
|
608
|
-
error?: unknown;
|
|
641
|
+
data: import("@layerfi/components/types").BalanceSheet;
|
|
609
642
|
}>;
|
|
610
643
|
getBankTransactions: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
611
644
|
params?: import("@layerfi/components/api/layer/bankTransactions").GetBankTransactionsParams | undefined;
|
|
@@ -718,9 +751,16 @@ declare module '@layerfi/components/api/layer' {
|
|
|
718
751
|
} | undefined) => () => Promise<{
|
|
719
752
|
data: import("@layerfi/components/types").LedgerAccountsEntry;
|
|
720
753
|
}>;
|
|
721
|
-
getProfitAndLoss: (
|
|
722
|
-
|
|
723
|
-
|
|
754
|
+
getProfitAndLoss: (apiUrl: string, accessToken: string | undefined, params: {
|
|
755
|
+
businessId: string;
|
|
756
|
+
startDate?: Date;
|
|
757
|
+
endDate?: Date;
|
|
758
|
+
month?: string;
|
|
759
|
+
year?: string;
|
|
760
|
+
tagKey?: string;
|
|
761
|
+
tagValues?: string;
|
|
762
|
+
reportingBasis?: string;
|
|
763
|
+
}) => () => Promise<{
|
|
724
764
|
data?: import("@layerfi/components/types").ProfitAndLoss;
|
|
725
765
|
error?: unknown;
|
|
726
766
|
}>;
|
|
@@ -730,9 +770,18 @@ declare module '@layerfi/components/api/layer' {
|
|
|
730
770
|
data?: import("@layerfi/components/types/profit_and_loss").ProfitAndLossSummaries;
|
|
731
771
|
error?: unknown;
|
|
732
772
|
}>;
|
|
733
|
-
getProfitAndLossCsv: (
|
|
734
|
-
|
|
735
|
-
|
|
773
|
+
getProfitAndLossCsv: (apiUrl: string, accessToken: string | undefined, params: {
|
|
774
|
+
businessId: string;
|
|
775
|
+
startDate?: Date;
|
|
776
|
+
endDate?: Date;
|
|
777
|
+
month?: string;
|
|
778
|
+
year?: string;
|
|
779
|
+
tagKey?: string;
|
|
780
|
+
tagValues?: string;
|
|
781
|
+
reportingBasis?: string;
|
|
782
|
+
} & {
|
|
783
|
+
moneyFormat?: string;
|
|
784
|
+
}) => () => Promise<{
|
|
736
785
|
data?: import("@layerfi/components/types/general").S3PresignedUrl;
|
|
737
786
|
error?: unknown;
|
|
738
787
|
}>;
|
|
@@ -917,12 +966,11 @@ declare module '@layerfi/components/api/layer' {
|
|
|
917
966
|
getStatementOfCashFlow: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
918
967
|
params?: {
|
|
919
968
|
businessId: string;
|
|
920
|
-
startDate:
|
|
921
|
-
endDate:
|
|
969
|
+
startDate: Date;
|
|
970
|
+
endDate: Date;
|
|
922
971
|
} | undefined;
|
|
923
972
|
} | undefined) => () => Promise<{
|
|
924
|
-
data
|
|
925
|
-
error?: unknown;
|
|
973
|
+
data: import("@layerfi/components/types").StatementOfCashFlow;
|
|
926
974
|
}>;
|
|
927
975
|
syncFromQuickbooks: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
928
976
|
params?: {
|
|
@@ -2839,6 +2887,20 @@ declare module '@layerfi/components/components/LinkedAccounts/AccountFormBox/Acc
|
|
|
2839
2887
|
export const AccountFormBox: ({ account, value, isSaved, disableConfirmExclude, onChange, errors, }: AccountFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
2840
2888
|
export {};
|
|
2841
2889
|
|
|
2890
|
+
}
|
|
2891
|
+
declare module '@layerfi/components/components/LinkedAccounts/BasicLinkedAccount/BasicLinkedAccount' {
|
|
2892
|
+
import type { LinkedAccount } from '@layerfi/components/types/linked_accounts';
|
|
2893
|
+
import type { PropsWithChildren } from 'react';
|
|
2894
|
+
type BasicLinkedAccountContainer = PropsWithChildren<{
|
|
2895
|
+
isSelected?: boolean;
|
|
2896
|
+
}>;
|
|
2897
|
+
export function BasicLinkedAccountContainer({ children, isSelected }: BasicLinkedAccountContainer): import("react/jsx-runtime").JSX.Element;
|
|
2898
|
+
type BasicLinkedAccountContainerProps = {
|
|
2899
|
+
account: Pick<LinkedAccount, 'external_account_name' | 'mask' | 'institution'>;
|
|
2900
|
+
};
|
|
2901
|
+
export function BasicLinkedAccountContent({ account }: BasicLinkedAccountContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
2902
|
+
export {};
|
|
2903
|
+
|
|
2842
2904
|
}
|
|
2843
2905
|
declare module '@layerfi/components/components/LinkedAccounts/ConfirmationModal/LinkedAccountToConfirm' {
|
|
2844
2906
|
import type { LinkedAccount } from '@layerfi/components/types/linked_accounts';
|
|
@@ -2858,15 +2920,14 @@ declare module '@layerfi/components/components/LinkedAccounts/ConfirmationModal/
|
|
|
2858
2920
|
declare module '@layerfi/components/components/LinkedAccounts/ConfirmationModal/useConfirmAndExcludeMultiple' {
|
|
2859
2921
|
import type { Awaitable } from '@layerfi/components/types/utility/promises';
|
|
2860
2922
|
export type AccountConfirmExcludeFormState = Record<string, boolean>;
|
|
2861
|
-
export function useConfirmAndExcludeMultiple(
|
|
2862
|
-
onSuccess
|
|
2923
|
+
export function useConfirmAndExcludeMultiple({ onSuccess }: {
|
|
2924
|
+
onSuccess?: () => Awaitable<unknown>;
|
|
2863
2925
|
}): import("swr/mutation").SWRMutationResponse<true | undefined, any, () => {
|
|
2864
2926
|
accessToken: string;
|
|
2865
2927
|
apiUrl: string;
|
|
2866
2928
|
businessId: string;
|
|
2867
|
-
data: AccountConfirmExcludeFormState;
|
|
2868
2929
|
tags: string[];
|
|
2869
|
-
} | undefined,
|
|
2930
|
+
} | undefined, AccountConfirmExcludeFormState>;
|
|
2870
2931
|
|
|
2871
2932
|
}
|
|
2872
2933
|
declare module '@layerfi/components/components/LinkedAccounts/LinkedAccountItemThumb' {
|
|
@@ -2974,12 +3035,12 @@ declare module '@layerfi/components/components/LinkedAccounts/index' {
|
|
|
2974
3035
|
|
|
2975
3036
|
}
|
|
2976
3037
|
declare module '@layerfi/components/components/Loader/Loader' {
|
|
2977
|
-
import {
|
|
2978
|
-
|
|
2979
|
-
children?: ReactNode;
|
|
3038
|
+
import type { PropsWithChildren } from 'react';
|
|
3039
|
+
type LoaderProps = PropsWithChildren<{
|
|
2980
3040
|
size?: number;
|
|
2981
|
-
}
|
|
3041
|
+
}>;
|
|
2982
3042
|
export const Loader: ({ children, size }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3043
|
+
export {};
|
|
2983
3044
|
|
|
2984
3045
|
}
|
|
2985
3046
|
declare module '@layerfi/components/components/Loader/SmallLoader' {
|
|
@@ -3116,30 +3177,27 @@ declare module '@layerfi/components/components/Pill/Pill' {
|
|
|
3116
3177
|
declare module '@layerfi/components/components/Pill/index' {
|
|
3117
3178
|
export { Pill } from '@layerfi/components/components/Pill/Pill';
|
|
3118
3179
|
|
|
3180
|
+
}
|
|
3181
|
+
declare module '@layerfi/components/components/PlatformOnboarding/Container/LinkAccountsListContainer' {
|
|
3182
|
+
import type { PropsWithChildren } from 'react';
|
|
3183
|
+
export function LinkAccountsListContainer({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
3184
|
+
|
|
3119
3185
|
}
|
|
3120
3186
|
declare module '@layerfi/components/components/PlatformOnboarding/LinkAccounts' {
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
}
|
|
3125
|
-
export
|
|
3126
|
-
|
|
3127
|
-
asWidget?: boolean;
|
|
3128
|
-
showLedgerBalance?: boolean;
|
|
3129
|
-
showUnlinkItem?: boolean;
|
|
3130
|
-
showBreakConnection?: boolean;
|
|
3131
|
-
hideLoading?: boolean;
|
|
3132
|
-
inBox?: boolean;
|
|
3133
|
-
stringOverrides?: LinkAccountsStringOverrides;
|
|
3134
|
-
onBack?: () => void;
|
|
3135
|
-
onNext?: () => void;
|
|
3136
|
-
}
|
|
3137
|
-
export const LinkAccounts: ({ inBox, ...props }: LinkAccountsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3138
|
-
export const LinkAccountsContent: ({ title, asWidget, showLedgerBalance, showUnlinkItem, showBreakConnection, hideLoading, stringOverrides, onBack, onNext, }: LinkAccountsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3187
|
+
import type { Awaitable } from '@layerfi/components/types/utility/promises';
|
|
3188
|
+
type LinkAccountsProps = {
|
|
3189
|
+
onComplete?: () => Awaitable<void>;
|
|
3190
|
+
};
|
|
3191
|
+
export function LinkAccounts(props: LinkAccountsProps): import("react/jsx-runtime").JSX.Element;
|
|
3192
|
+
export {};
|
|
3139
3193
|
|
|
3140
3194
|
}
|
|
3141
|
-
declare module '@layerfi/components/components/PlatformOnboarding/
|
|
3142
|
-
export
|
|
3195
|
+
declare module '@layerfi/components/components/PlatformOnboarding/Steps/LinkAccountsConfirmationStep' {
|
|
3196
|
+
export function LinkAccountsConfirmationStep(): import("react/jsx-runtime").JSX.Element;
|
|
3197
|
+
|
|
3198
|
+
}
|
|
3199
|
+
declare module '@layerfi/components/components/PlatformOnboarding/Steps/LinkAccountsLinkStep' {
|
|
3200
|
+
export function LinkAccountsLinkStep(): import("react/jsx-runtime").JSX.Element;
|
|
3143
3201
|
|
|
3144
3202
|
}
|
|
3145
3203
|
declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
@@ -3564,6 +3622,14 @@ declare module '@layerfi/components/components/ProfitAndLossView/ProfitAndLossVi
|
|
|
3564
3622
|
declare module '@layerfi/components/components/ProfitAndLossView/index' {
|
|
3565
3623
|
export { ProfitAndLossView } from '@layerfi/components/components/ProfitAndLossView/ProfitAndLossView';
|
|
3566
3624
|
|
|
3625
|
+
}
|
|
3626
|
+
declare module '@layerfi/components/components/ProgressSteps/ProgressSteps' {
|
|
3627
|
+
export type ProgressStepsProps = {
|
|
3628
|
+
steps: string[];
|
|
3629
|
+
currentStep: number;
|
|
3630
|
+
};
|
|
3631
|
+
export const ProgressSteps: ({ steps, currentStep }: ProgressStepsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3632
|
+
|
|
3567
3633
|
}
|
|
3568
3634
|
declare module '@layerfi/components/components/ProjectProfitability/ProjectSelector' {
|
|
3569
3635
|
export function ProjectSelector(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3890,6 +3956,7 @@ declare module '@layerfi/components/components/Tasks/Tasks' {
|
|
|
3890
3956
|
export const UseTasksContext: import("react").Context<{
|
|
3891
3957
|
data?: import("@layerfi/components/types/tasks").Task[];
|
|
3892
3958
|
monthlyData?: import("@layerfi/components/types/tasks").TasksMonthly[];
|
|
3959
|
+
yearlyData?: import("@layerfi/components/types/tasks").TasksYearly[];
|
|
3893
3960
|
isLoading?: boolean;
|
|
3894
3961
|
loadedStatus?: import("@layerfi/components/types/general").LoadedStatus;
|
|
3895
3962
|
isValidating?: boolean;
|
|
@@ -3904,15 +3971,19 @@ declare module '@layerfi/components/components/Tasks/Tasks' {
|
|
|
3904
3971
|
startDate: Date;
|
|
3905
3972
|
endDate: Date;
|
|
3906
3973
|
}) => void;
|
|
3907
|
-
refetch: () =>
|
|
3974
|
+
refetch: () => Promise<{
|
|
3975
|
+
data: import("@layerfi/components/types/tasks").Task[];
|
|
3976
|
+
} | undefined>;
|
|
3908
3977
|
submitResponseToTask: (taskId: string, userResponse: string) => void;
|
|
3909
3978
|
uploadDocumentsForTask: (taskId: string, files: File[], description?: string) => Promise<void>;
|
|
3910
3979
|
deleteUploadsForTask: (taskId: string) => void;
|
|
3911
3980
|
updateDocUploadTaskDescription: (taskId: string, userResponse: string) => void;
|
|
3981
|
+
unresolvedTasks?: number;
|
|
3912
3982
|
}>;
|
|
3913
3983
|
export const useTasksContext: () => {
|
|
3914
3984
|
data?: import("@layerfi/components/types/tasks").Task[];
|
|
3915
3985
|
monthlyData?: import("@layerfi/components/types/tasks").TasksMonthly[];
|
|
3986
|
+
yearlyData?: import("@layerfi/components/types/tasks").TasksYearly[];
|
|
3916
3987
|
isLoading?: boolean;
|
|
3917
3988
|
loadedStatus?: import("@layerfi/components/types/general").LoadedStatus;
|
|
3918
3989
|
isValidating?: boolean;
|
|
@@ -3927,11 +3998,14 @@ declare module '@layerfi/components/components/Tasks/Tasks' {
|
|
|
3927
3998
|
startDate: Date;
|
|
3928
3999
|
endDate: Date;
|
|
3929
4000
|
}) => void;
|
|
3930
|
-
refetch: () =>
|
|
4001
|
+
refetch: () => Promise<{
|
|
4002
|
+
data: import("@layerfi/components/types/tasks").Task[];
|
|
4003
|
+
} | undefined>;
|
|
3931
4004
|
submitResponseToTask: (taskId: string, userResponse: string) => void;
|
|
3932
4005
|
uploadDocumentsForTask: (taskId: string, files: File[], description?: string) => Promise<void>;
|
|
3933
4006
|
deleteUploadsForTask: (taskId: string) => void;
|
|
3934
4007
|
updateDocUploadTaskDescription: (taskId: string, userResponse: string) => void;
|
|
4008
|
+
unresolvedTasks?: number;
|
|
3935
4009
|
};
|
|
3936
4010
|
export interface TasksStringOverrides {
|
|
3937
4011
|
header?: string;
|
|
@@ -4348,6 +4422,22 @@ declare module '@layerfi/components/components/ViewHeader/ViewHeader' {
|
|
|
4348
4422
|
declare module '@layerfi/components/components/ViewHeader/index' {
|
|
4349
4423
|
export { ViewHeader } from '@layerfi/components/components/ViewHeader/ViewHeader';
|
|
4350
4424
|
|
|
4425
|
+
}
|
|
4426
|
+
declare module '@layerfi/components/components/Wizard/Wizard' {
|
|
4427
|
+
import { type PropsWithChildren, type ReactNode } from 'react';
|
|
4428
|
+
import type { Awaitable } from '@layerfi/components/types/utility/promises';
|
|
4429
|
+
export function useWizard(): {
|
|
4430
|
+
next: () => Promise<void>;
|
|
4431
|
+
previous: () => void;
|
|
4432
|
+
};
|
|
4433
|
+
type WizardProps = PropsWithChildren<{
|
|
4434
|
+
Header: ReactNode;
|
|
4435
|
+
Footer: ReactNode;
|
|
4436
|
+
onComplete?: () => Awaitable<void>;
|
|
4437
|
+
}>;
|
|
4438
|
+
export function Wizard({ Header, Footer, onComplete, children, }: WizardProps): import("react/jsx-runtime").JSX.Element;
|
|
4439
|
+
export {};
|
|
4440
|
+
|
|
4351
4441
|
}
|
|
4352
4442
|
declare module '@layerfi/components/components/ui/Button/Button' {
|
|
4353
4443
|
import { type ButtonProps } from 'react-aria-components';
|
|
@@ -4363,8 +4453,18 @@ declare module '@layerfi/components/components/ui/Button/Button' {
|
|
|
4363
4453
|
}
|
|
4364
4454
|
declare module '@layerfi/components/components/ui/Checkbox/Checkbox' {
|
|
4365
4455
|
import { type CheckboxProps as AriaCheckboxProps } from 'react-aria-components';
|
|
4366
|
-
type
|
|
4367
|
-
|
|
4456
|
+
type CheckboxVariant = 'default' | 'success';
|
|
4457
|
+
type CheckboxSize = 'md' | 'lg';
|
|
4458
|
+
type CheckboxProps = Omit<AriaCheckboxProps, 'className'> & {
|
|
4459
|
+
className?: string;
|
|
4460
|
+
variant?: CheckboxVariant;
|
|
4461
|
+
size?: CheckboxSize;
|
|
4462
|
+
};
|
|
4463
|
+
type CheckboxWithTooltipProps = CheckboxProps & {
|
|
4464
|
+
tooltip?: string;
|
|
4465
|
+
};
|
|
4466
|
+
export function Checkbox({ children, className, variant, size, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
4467
|
+
export function CheckboxWithTooltip({ tooltip, ...props }: CheckboxWithTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
4368
4468
|
export {};
|
|
4369
4469
|
|
|
4370
4470
|
}
|
|
@@ -4380,15 +4480,16 @@ declare module '@layerfi/components/components/ui/Modal/Modal' {
|
|
|
4380
4480
|
const ModalOverlay: import("react").ForwardRefExoticComponent<Omit<ModalOverlayProps, "className"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4381
4481
|
const InternalModal: import("react").ForwardRefExoticComponent<{
|
|
4382
4482
|
size?: ModalSize;
|
|
4483
|
+
flexBlock?: boolean;
|
|
4383
4484
|
} & {
|
|
4384
4485
|
children?: import("react").ReactNode | undefined;
|
|
4385
4486
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
4386
4487
|
const Dialog: import("react").ForwardRefExoticComponent<Omit<DialogProps, "className"> & import("react").RefAttributes<HTMLElement>>;
|
|
4387
4488
|
type AllowedModalOverlayProps = Pick<ComponentProps<typeof ModalOverlay>, 'isOpen' | 'onOpenChange'>;
|
|
4388
|
-
type AllowedInternalModalProps = Pick<ComponentProps<typeof InternalModal>, 'size'>;
|
|
4489
|
+
type AllowedInternalModalProps = Pick<ComponentProps<typeof InternalModal>, 'flexBlock' | 'size'>;
|
|
4389
4490
|
type AllowedDialogProps = Pick<ComponentProps<typeof Dialog>, 'children'>;
|
|
4390
4491
|
type ModalProps = AllowedModalOverlayProps & AllowedInternalModalProps & AllowedDialogProps;
|
|
4391
|
-
export function Modal({ isOpen, size, onOpenChange, children, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
4492
|
+
export function Modal({ isOpen, size, flexBlock, onOpenChange, children, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
4392
4493
|
export {};
|
|
4393
4494
|
|
|
4394
4495
|
}
|
|
@@ -4399,13 +4500,16 @@ declare module '@layerfi/components/components/ui/Modal/ModalSlots' {
|
|
|
4399
4500
|
};
|
|
4400
4501
|
function ModalContextBar({ onClose }: ModalContextBarProps): import("react/jsx-runtime").JSX.Element;
|
|
4401
4502
|
const ModalHeading: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("react-aria-components").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>, "className"> & {
|
|
4503
|
+
align?: "center";
|
|
4504
|
+
pbe?: import("@layerfi/components/components/ui/sharedUITypes").Spacing;
|
|
4402
4505
|
size?: "sm" | "lg";
|
|
4403
|
-
pbe?: "2xs" | "xs" | "sm" | "md" | "lg";
|
|
4404
4506
|
}, "ref"> & import("react").RefAttributes<HTMLHeadingElement>, "slot" | "level">, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
4405
4507
|
const ModalDescription: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
4406
4508
|
size?: "xs" | "sm" | "md" | "lg";
|
|
4407
|
-
pbe?: "
|
|
4509
|
+
pbe?: import("@layerfi/components/components/ui/sharedUITypes").Spacing;
|
|
4510
|
+
pbs?: import("@layerfi/components/components/ui/sharedUITypes").Spacing;
|
|
4408
4511
|
align?: "center";
|
|
4512
|
+
variant?: "subtle";
|
|
4409
4513
|
} & Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "slot"> & {
|
|
4410
4514
|
children?: import("react").ReactNode | undefined;
|
|
4411
4515
|
} & import("react").RefAttributes<HTMLParagraphElement>, "slot">, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
@@ -4416,10 +4520,13 @@ declare module '@layerfi/components/components/ui/Modal/ModalSlots' {
|
|
|
4416
4520
|
}
|
|
4417
4521
|
declare module '@layerfi/components/components/ui/Stack/Stack' {
|
|
4418
4522
|
import { type PropsWithChildren } from 'react';
|
|
4523
|
+
import type { Spacing } from '@layerfi/components/components/ui/sharedUITypes';
|
|
4419
4524
|
export type StackProps = PropsWithChildren<{
|
|
4420
|
-
gap?: '3xs' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '5xl';
|
|
4421
4525
|
align?: 'start' | 'center';
|
|
4422
|
-
|
|
4526
|
+
gap?: Spacing;
|
|
4527
|
+
justify?: 'start' | 'center' | 'end';
|
|
4528
|
+
pbs?: Spacing;
|
|
4529
|
+
pbe?: Spacing;
|
|
4423
4530
|
slot?: string;
|
|
4424
4531
|
}>;
|
|
4425
4532
|
export function VStack(props: StackProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4427,9 +4534,11 @@ declare module '@layerfi/components/components/ui/Stack/Stack' {
|
|
|
4427
4534
|
|
|
4428
4535
|
}
|
|
4429
4536
|
declare module '@layerfi/components/components/ui/Typography/Heading' {
|
|
4537
|
+
import type { Spacing } from '@layerfi/components/components/ui/sharedUITypes';
|
|
4430
4538
|
type HeadingDataProps = {
|
|
4539
|
+
align?: 'center';
|
|
4540
|
+
pbe?: Spacing;
|
|
4431
4541
|
size?: 'sm' | 'lg';
|
|
4432
|
-
pbe?: '2xs' | 'xs' | 'sm' | 'md' | 'lg';
|
|
4433
4542
|
};
|
|
4434
4543
|
const Heading: import("react").ForwardRefExoticComponent<Omit<Omit<import("react-aria-components").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>, "className"> & HeadingDataProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
4435
4544
|
export { Heading };
|
|
@@ -4445,15 +4554,22 @@ declare module '@layerfi/components/components/ui/Typography/MoneyText' {
|
|
|
4445
4554
|
|
|
4446
4555
|
}
|
|
4447
4556
|
declare module '@layerfi/components/components/ui/Typography/Text' {
|
|
4557
|
+
import type { Spacing } from '@layerfi/components/components/ui/sharedUITypes';
|
|
4448
4558
|
const P: import("react").ForwardRefExoticComponent<{
|
|
4449
4559
|
size?: "xs" | "sm" | "md" | "lg";
|
|
4450
|
-
pbe?:
|
|
4560
|
+
pbe?: Spacing;
|
|
4561
|
+
pbs?: Spacing;
|
|
4451
4562
|
align?: "center";
|
|
4563
|
+
variant?: "subtle";
|
|
4452
4564
|
} & Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "slot"> & {
|
|
4453
4565
|
children?: import("react").ReactNode | undefined;
|
|
4454
4566
|
} & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
4455
4567
|
export { P };
|
|
4456
4568
|
|
|
4569
|
+
}
|
|
4570
|
+
declare module '@layerfi/components/components/ui/sharedUITypes' {
|
|
4571
|
+
export type Spacing = '3xs' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '5xl';
|
|
4572
|
+
|
|
4457
4573
|
}
|
|
4458
4574
|
declare module '@layerfi/components/components/utility/ConditionalList' {
|
|
4459
4575
|
import type { PropsWithChildren } from 'react';
|
|
@@ -4462,6 +4578,7 @@ declare module '@layerfi/components/components/utility/ConditionalList' {
|
|
|
4462
4578
|
Empty: React.ReactNode;
|
|
4463
4579
|
children: React.FC<{
|
|
4464
4580
|
item: T;
|
|
4581
|
+
index: number;
|
|
4465
4582
|
}>;
|
|
4466
4583
|
Container?: React.FC<PropsWithChildren>;
|
|
4467
4584
|
} & ({
|
|
@@ -4470,8 +4587,14 @@ declare module '@layerfi/components/components/utility/ConditionalList' {
|
|
|
4470
4587
|
} | {
|
|
4471
4588
|
isLoading?: never;
|
|
4472
4589
|
Loading?: never;
|
|
4590
|
+
}) & ({
|
|
4591
|
+
isError: boolean;
|
|
4592
|
+
Error: React.ReactNode;
|
|
4593
|
+
} | {
|
|
4594
|
+
isError?: never;
|
|
4595
|
+
Error?: never;
|
|
4473
4596
|
});
|
|
4474
|
-
export function ConditionalList<T>({ list,
|
|
4597
|
+
export function ConditionalList<T>({ list, Empty, Container, isLoading, Loading, isError, Error, children, }: ConditionalListProps<T>): string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
4475
4598
|
export {};
|
|
4476
4599
|
|
|
4477
4600
|
}
|
|
@@ -4572,21 +4695,6 @@ declare module '@layerfi/components/config/theme' {
|
|
|
4572
4695
|
};
|
|
4573
4696
|
};
|
|
4574
4697
|
|
|
4575
|
-
}
|
|
4576
|
-
declare module '@layerfi/components/contexts/BalanceSheetContext/BalanceSheetContext' {
|
|
4577
|
-
import { useBalanceSheet } from '@layerfi/components/hooks/useBalanceSheet/index';
|
|
4578
|
-
export type BalanceSheetContextType = ReturnType<typeof useBalanceSheet>;
|
|
4579
|
-
export const BalanceSheetContext: import("react").Context<{
|
|
4580
|
-
data: import("@layerfi/components/types").BalanceSheet | undefined;
|
|
4581
|
-
isLoading: boolean;
|
|
4582
|
-
error: unknown;
|
|
4583
|
-
refetch: () => void;
|
|
4584
|
-
}>;
|
|
4585
|
-
|
|
4586
|
-
}
|
|
4587
|
-
declare module '@layerfi/components/contexts/BalanceSheetContext/index' {
|
|
4588
|
-
export { BalanceSheetContext } from '@layerfi/components/contexts/BalanceSheetContext/BalanceSheetContext';
|
|
4589
|
-
|
|
4590
4698
|
}
|
|
4591
4699
|
declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransactionsContext' {
|
|
4592
4700
|
import { useBankTransactions } from '@layerfi/components/hooks/useBankTransactions/index';
|
|
@@ -4839,21 +4947,6 @@ declare module '@layerfi/components/contexts/ReceiptsContext/ReceiptsContext' {
|
|
|
4839
4947
|
declare module '@layerfi/components/contexts/ReceiptsContext/index' {
|
|
4840
4948
|
export { ReceiptsContext } from '@layerfi/components/contexts/ReceiptsContext/ReceiptsContext';
|
|
4841
4949
|
|
|
4842
|
-
}
|
|
4843
|
-
declare module '@layerfi/components/contexts/StatementOfCashContext/StatementOfCashFlowContext' {
|
|
4844
|
-
import { useStatementOfCashFlow } from '@layerfi/components/hooks/useStatementOfCashFlow/index';
|
|
4845
|
-
export type StatementOfCashFlowContextType = ReturnType<typeof useStatementOfCashFlow>;
|
|
4846
|
-
export const StatementOfCashFlowContext: import("react").Context<{
|
|
4847
|
-
data: import("@layerfi/components/types").StatementOfCashFlow | undefined;
|
|
4848
|
-
isLoading: boolean;
|
|
4849
|
-
error: unknown;
|
|
4850
|
-
refetch: () => void;
|
|
4851
|
-
}>;
|
|
4852
|
-
|
|
4853
|
-
}
|
|
4854
|
-
declare module '@layerfi/components/contexts/StatementOfCashContext/index' {
|
|
4855
|
-
export { StatementOfCashFlowContext } from '@layerfi/components/contexts/StatementOfCashContext/StatementOfCashFlowContext';
|
|
4856
|
-
|
|
4857
4950
|
}
|
|
4858
4951
|
declare module '@layerfi/components/contexts/TableContext/TableContext' {
|
|
4859
4952
|
import { ReactNode } from 'react';
|
|
@@ -4876,6 +4969,7 @@ declare module '@layerfi/components/contexts/TasksContext/TasksContext' {
|
|
|
4876
4969
|
export const TasksContext: import("react").Context<{
|
|
4877
4970
|
data?: import("@layerfi/components/types/tasks").Task[];
|
|
4878
4971
|
monthlyData?: import("@layerfi/components/types/tasks").TasksMonthly[];
|
|
4972
|
+
yearlyData?: import("@layerfi/components/types/tasks").TasksYearly[];
|
|
4879
4973
|
isLoading?: boolean;
|
|
4880
4974
|
loadedStatus?: import("@layerfi/components/types/general").LoadedStatus;
|
|
4881
4975
|
isValidating?: boolean;
|
|
@@ -4890,11 +4984,14 @@ declare module '@layerfi/components/contexts/TasksContext/TasksContext' {
|
|
|
4890
4984
|
startDate: Date;
|
|
4891
4985
|
endDate: Date;
|
|
4892
4986
|
}) => void;
|
|
4893
|
-
refetch: () =>
|
|
4987
|
+
refetch: () => Promise<{
|
|
4988
|
+
data: import("@layerfi/components/types/tasks").Task[];
|
|
4989
|
+
} | undefined>;
|
|
4894
4990
|
submitResponseToTask: (taskId: string, userResponse: string) => void;
|
|
4895
4991
|
uploadDocumentsForTask: (taskId: string, files: File[], description?: string) => Promise<void>;
|
|
4896
4992
|
deleteUploadsForTask: (taskId: string) => void;
|
|
4897
4993
|
updateDocUploadTaskDescription: (taskId: string, userResponse: string) => void;
|
|
4994
|
+
unresolvedTasks?: number;
|
|
4898
4995
|
}>;
|
|
4899
4996
|
|
|
4900
4997
|
}
|
|
@@ -4918,6 +5015,12 @@ declare module '@layerfi/components/contexts/VendorsContext' {
|
|
|
4918
5015
|
export const VendorsProvider: React.FC<VendorsProviderProps>;
|
|
4919
5016
|
export {};
|
|
4920
5017
|
|
|
5018
|
+
}
|
|
5019
|
+
declare module '@layerfi/components/hooks/balanceSheet/useBalanceSheet' {
|
|
5020
|
+
export function useBalanceSheet({ effectiveDate, }: {
|
|
5021
|
+
effectiveDate?: Date;
|
|
5022
|
+
}): import("swr").SWRResponse<import("../../types").BalanceSheet, any, any>;
|
|
5023
|
+
|
|
4921
5024
|
}
|
|
4922
5025
|
declare module '@layerfi/components/hooks/bookkeeping/useBookkeepingStatus' {
|
|
4923
5026
|
const BOOKKEEPING_STATUSES: readonly ["NOT_PURCHASED", "BOOKKEEPING_PAUSED", "ACTIVE"];
|
|
@@ -4928,6 +5031,132 @@ declare module '@layerfi/components/hooks/bookkeeping/useBookkeepingStatus' {
|
|
|
4928
5031
|
export function useEffectiveBookkeepingStatus(): "ACTIVE" | "NOT_PURCHASED" | "BOOKKEEPING_PAUSED";
|
|
4929
5032
|
export {};
|
|
4930
5033
|
|
|
5034
|
+
}
|
|
5035
|
+
declare module '@layerfi/components/hooks/businessPersonnel/types' {
|
|
5036
|
+
import type { EmailAddress, PhoneNumber } from '@layerfi/components/types/utility/branded';
|
|
5037
|
+
import type { EnumWithUnknownValues } from '@layerfi/components/types/utility/enumWithUnknownValues';
|
|
5038
|
+
type RawEmailAddressEntity = {
|
|
5039
|
+
id: string;
|
|
5040
|
+
email_address: EmailAddress;
|
|
5041
|
+
};
|
|
5042
|
+
type EmailAddressEntity = Pick<RawEmailAddressEntity, 'id'> & {
|
|
5043
|
+
emailAddress: EmailAddress;
|
|
5044
|
+
};
|
|
5045
|
+
type RawPhoneNumberEntity = {
|
|
5046
|
+
id: string;
|
|
5047
|
+
phone_number: PhoneNumber;
|
|
5048
|
+
};
|
|
5049
|
+
type PhoneNumberEntity = Pick<RawPhoneNumberEntity, 'id'> & {
|
|
5050
|
+
phoneNumber: PhoneNumber;
|
|
5051
|
+
};
|
|
5052
|
+
const PERSONNEL_ROLES: readonly ["ACCOUNTANT", "ADMINISTRATOR", "OWNER"];
|
|
5053
|
+
export type PersonnelRole = typeof PERSONNEL_ROLES[number];
|
|
5054
|
+
export function isPersonnelRole(role: string): role is PersonnelRole;
|
|
5055
|
+
type RawPersonnelRoleEntity = {
|
|
5056
|
+
id: string;
|
|
5057
|
+
role: EnumWithUnknownValues<PersonnelRole>;
|
|
5058
|
+
};
|
|
5059
|
+
type PersonnelRoleEntity = Pick<RawPersonnelRoleEntity, 'id'> & {
|
|
5060
|
+
role: PersonnelRole;
|
|
5061
|
+
};
|
|
5062
|
+
export type RawBusinessPersonnel = {
|
|
5063
|
+
id: string;
|
|
5064
|
+
full_name: string;
|
|
5065
|
+
preferred_name: string | null;
|
|
5066
|
+
external_id: string | null;
|
|
5067
|
+
email_addresses: ReadonlyArray<RawEmailAddressEntity>;
|
|
5068
|
+
phone_numbers: ReadonlyArray<RawPhoneNumberEntity>;
|
|
5069
|
+
roles: ReadonlyArray<RawPersonnelRoleEntity>;
|
|
5070
|
+
};
|
|
5071
|
+
export type BusinessPersonnel = Pick<RawBusinessPersonnel, 'id'> & {
|
|
5072
|
+
fullName: RawBusinessPersonnel['full_name'];
|
|
5073
|
+
preferredName: RawBusinessPersonnel['preferred_name'];
|
|
5074
|
+
externalId: RawBusinessPersonnel['external_id'];
|
|
5075
|
+
emailAddresses: ReadonlyArray<EmailAddressEntity>;
|
|
5076
|
+
phoneNumbers: ReadonlyArray<PhoneNumberEntity>;
|
|
5077
|
+
roles: ReadonlyArray<PersonnelRoleEntity>;
|
|
5078
|
+
};
|
|
5079
|
+
export {};
|
|
5080
|
+
|
|
5081
|
+
}
|
|
5082
|
+
declare module '@layerfi/components/hooks/businessPersonnel/useBusinessPersonnel' {
|
|
5083
|
+
import { type PersonnelRole } from '@layerfi/components/hooks/businessPersonnel/types';
|
|
5084
|
+
export const BUSINESS_PERSONNEL_TAG_KEY = "#business-personnel";
|
|
5085
|
+
export function useBusinessPersonnel(): import("swr").SWRResponse<{
|
|
5086
|
+
id: string;
|
|
5087
|
+
fullName: string;
|
|
5088
|
+
preferredName: string | null;
|
|
5089
|
+
externalId: string | null;
|
|
5090
|
+
emailAddresses: readonly {
|
|
5091
|
+
id: string;
|
|
5092
|
+
emailAddress: import("@layerfi/components/types/utility/branded").EmailAddress;
|
|
5093
|
+
}[];
|
|
5094
|
+
phoneNumbers: readonly {
|
|
5095
|
+
id: string;
|
|
5096
|
+
phoneNumber: import("@layerfi/components/types/utility/branded").PhoneNumber;
|
|
5097
|
+
}[];
|
|
5098
|
+
roles: readonly ({
|
|
5099
|
+
id: string;
|
|
5100
|
+
role: import("@layerfi/components/types/utility/enumWithUnknownValues").EnumWithUnknownValues<PersonnelRole>;
|
|
5101
|
+
} & {
|
|
5102
|
+
role: PersonnelRole;
|
|
5103
|
+
})[];
|
|
5104
|
+
}[], any, any>;
|
|
5105
|
+
|
|
5106
|
+
}
|
|
5107
|
+
declare module '@layerfi/components/hooks/businessPersonnel/useCreateBusinessPersonnel' {
|
|
5108
|
+
import type { BusinessPersonnel, PersonnelRole, RawBusinessPersonnel } from '@layerfi/components/hooks/businessPersonnel/types';
|
|
5109
|
+
type CreateBusinessPersonnelBody = Pick<RawBusinessPersonnel, 'full_name' | 'preferred_name' | 'external_id'> & {
|
|
5110
|
+
email_addresses: ReadonlyArray<{
|
|
5111
|
+
email_address: string;
|
|
5112
|
+
}>;
|
|
5113
|
+
phone_numbers: ReadonlyArray<{
|
|
5114
|
+
phone_number: string;
|
|
5115
|
+
}>;
|
|
5116
|
+
roles: ReadonlyArray<{
|
|
5117
|
+
role: PersonnelRole;
|
|
5118
|
+
}>;
|
|
5119
|
+
};
|
|
5120
|
+
export function useCreateBusinessPersonnel(): import("swr/mutation").SWRMutationResponse<BusinessPersonnel | undefined, any, () => {
|
|
5121
|
+
readonly accessToken: string;
|
|
5122
|
+
readonly apiUrl: string;
|
|
5123
|
+
readonly businessId: string;
|
|
5124
|
+
readonly tags: readonly ["#business-personnel:create"];
|
|
5125
|
+
} | undefined, CreateBusinessPersonnelBody> & {
|
|
5126
|
+
trigger: (extraArgument: CreateBusinessPersonnelBody, options?: (import("swr/mutation").SWRMutationConfiguration<BusinessPersonnel | undefined, any, () => {
|
|
5127
|
+
readonly accessToken: string;
|
|
5128
|
+
readonly apiUrl: string;
|
|
5129
|
+
readonly businessId: string;
|
|
5130
|
+
readonly tags: readonly ["#business-personnel:create"];
|
|
5131
|
+
} | undefined, CreateBusinessPersonnelBody, unknown> & {
|
|
5132
|
+
throwOnError: false;
|
|
5133
|
+
}) | undefined) => Promise<BusinessPersonnel | undefined>;
|
|
5134
|
+
};
|
|
5135
|
+
export {};
|
|
5136
|
+
|
|
5137
|
+
}
|
|
5138
|
+
declare module '@layerfi/components/hooks/businessPersonnel/useUpdateBusinessPersonnel' {
|
|
5139
|
+
import { type UpdateBusinessPersonnelBody } from '@layerfi/components/api/layer/businessPersonnel/updateBusinessPersonnel';
|
|
5140
|
+
export function useUpdateBusinessPersonnel({ businessPersonnelId }: {
|
|
5141
|
+
businessPersonnelId?: string;
|
|
5142
|
+
}): import("swr/mutation").SWRMutationResponse<import("./types").BusinessPersonnel | undefined, any, () => {
|
|
5143
|
+
readonly accessToken: string;
|
|
5144
|
+
readonly apiUrl: string;
|
|
5145
|
+
readonly businessId: string;
|
|
5146
|
+
readonly businessPersonnelId: string;
|
|
5147
|
+
readonly tags: readonly [`#business-personnel:${string}`];
|
|
5148
|
+
} | undefined, UpdateBusinessPersonnelBody> & {
|
|
5149
|
+
trigger: (extraArgument: UpdateBusinessPersonnelBody, options?: (import("swr/mutation").SWRMutationConfiguration<import("./types").BusinessPersonnel | undefined, any, () => {
|
|
5150
|
+
readonly accessToken: string;
|
|
5151
|
+
readonly apiUrl: string;
|
|
5152
|
+
readonly businessId: string;
|
|
5153
|
+
readonly businessPersonnelId: string;
|
|
5154
|
+
readonly tags: readonly [`#business-personnel:${string}`];
|
|
5155
|
+
} | undefined, UpdateBusinessPersonnelBody, unknown> & {
|
|
5156
|
+
throwOnError: false;
|
|
5157
|
+
}) | undefined) => Promise<import("@layerfi/components/hooks/businessPersonnel/types").BusinessPersonnel | undefined>;
|
|
5158
|
+
};
|
|
5159
|
+
|
|
4931
5160
|
}
|
|
4932
5161
|
declare module '@layerfi/components/hooks/categories/useAllCategories' {
|
|
4933
5162
|
export function useAllCategories(): import("swr").SWRResponse<import("../../types").Category[], any, any>;
|
|
@@ -4941,7 +5170,8 @@ declare module '@layerfi/components/hooks/useAuth' {
|
|
|
4941
5170
|
apiUrl: "https://api.layerfi.com" | "https://sandbox.layerfi.com" | "https://staging.layerfi.com";
|
|
4942
5171
|
}, any, {
|
|
4943
5172
|
keepPreviousData: true;
|
|
4944
|
-
|
|
5173
|
+
revalidateIfStale: false;
|
|
5174
|
+
revalidateOnFocus: false;
|
|
4945
5175
|
revalidateOnReconnect: true;
|
|
4946
5176
|
refreshInterval: (latestData: {
|
|
4947
5177
|
access_token: string;
|
|
@@ -4951,22 +5181,6 @@ declare module '@layerfi/components/hooks/useAuth' {
|
|
|
4951
5181
|
} | undefined) => number;
|
|
4952
5182
|
}>;
|
|
4953
5183
|
|
|
4954
|
-
}
|
|
4955
|
-
declare module '@layerfi/components/hooks/useBalanceSheet/index' {
|
|
4956
|
-
export { useBalanceSheet } from '@layerfi/components/hooks/useBalanceSheet/useBalanceSheet';
|
|
4957
|
-
|
|
4958
|
-
}
|
|
4959
|
-
declare module '@layerfi/components/hooks/useBalanceSheet/useBalanceSheet' {
|
|
4960
|
-
import { BalanceSheet } from '@layerfi/components/types';
|
|
4961
|
-
type UseBalanceSheet = (date?: Date) => {
|
|
4962
|
-
data: BalanceSheet | undefined;
|
|
4963
|
-
isLoading: boolean;
|
|
4964
|
-
error: unknown;
|
|
4965
|
-
refetch: () => void;
|
|
4966
|
-
};
|
|
4967
|
-
export const useBalanceSheet: UseBalanceSheet;
|
|
4968
|
-
export {};
|
|
4969
|
-
|
|
4970
5184
|
}
|
|
4971
5185
|
declare module '@layerfi/components/hooks/useBankTransactions/index' {
|
|
4972
5186
|
export { useBankTransactions } from '@layerfi/components/hooks/useBankTransactions/useBankTransactions';
|
|
@@ -5530,21 +5744,12 @@ declare module '@layerfi/components/hooks/useReceipts/useReceipts' {
|
|
|
5530
5744
|
export const useReceipts: UseReceipts;
|
|
5531
5745
|
export {};
|
|
5532
5746
|
|
|
5533
|
-
}
|
|
5534
|
-
declare module '@layerfi/components/hooks/useStatementOfCashFlow/index' {
|
|
5535
|
-
export { useStatementOfCashFlow } from '@layerfi/components/hooks/useStatementOfCashFlow/useStatementOfCashFlow';
|
|
5536
|
-
|
|
5537
5747
|
}
|
|
5538
5748
|
declare module '@layerfi/components/hooks/useStatementOfCashFlow/useStatementOfCashFlow' {
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
error: unknown;
|
|
5544
|
-
refetch: () => void;
|
|
5545
|
-
};
|
|
5546
|
-
export const useStatementOfCashFlow: UseStatementOfCashFlow;
|
|
5547
|
-
export {};
|
|
5749
|
+
export function useStatementOfCashFlow({ startDate, endDate, }: {
|
|
5750
|
+
startDate?: Date;
|
|
5751
|
+
endDate?: Date;
|
|
5752
|
+
}): import("swr").SWRResponse<import("../../types").StatementOfCashFlow, any, any>;
|
|
5548
5753
|
|
|
5549
5754
|
}
|
|
5550
5755
|
declare module '@layerfi/components/hooks/useTableExpandRow/index' {
|
|
@@ -5571,10 +5776,11 @@ declare module '@layerfi/components/hooks/useTasks/mockData' {
|
|
|
5571
5776
|
}
|
|
5572
5777
|
declare module '@layerfi/components/hooks/useTasks/useTasks' {
|
|
5573
5778
|
import { LoadedStatus } from '@layerfi/components/types/general';
|
|
5574
|
-
import { Task, TasksMonthly } from '@layerfi/components/types/tasks';
|
|
5779
|
+
import { Task, TasksMonthly, TasksYearly } from '@layerfi/components/types/tasks';
|
|
5575
5780
|
type UseTasks = (props?: UseTasksProps) => {
|
|
5576
5781
|
data?: Task[];
|
|
5577
5782
|
monthlyData?: TasksMonthly[];
|
|
5783
|
+
yearlyData?: TasksYearly[];
|
|
5578
5784
|
isLoading?: boolean;
|
|
5579
5785
|
loadedStatus?: LoadedStatus;
|
|
5580
5786
|
isValidating?: boolean;
|
|
@@ -5589,11 +5795,14 @@ declare module '@layerfi/components/hooks/useTasks/useTasks' {
|
|
|
5589
5795
|
startDate: Date;
|
|
5590
5796
|
endDate: Date;
|
|
5591
5797
|
}) => void;
|
|
5592
|
-
refetch: () =>
|
|
5798
|
+
refetch: () => Promise<{
|
|
5799
|
+
data: Task[];
|
|
5800
|
+
} | undefined>;
|
|
5593
5801
|
submitResponseToTask: (taskId: string, userResponse: string) => void;
|
|
5594
5802
|
uploadDocumentsForTask: (taskId: string, files: File[], description?: string) => Promise<void>;
|
|
5595
5803
|
deleteUploadsForTask: (taskId: string) => void;
|
|
5596
5804
|
updateDocUploadTaskDescription: (taskId: string, userResponse: string) => void;
|
|
5805
|
+
unresolvedTasks?: number;
|
|
5597
5806
|
};
|
|
5598
5807
|
type UseTasksProps = {
|
|
5599
5808
|
startDate?: Date;
|
|
@@ -5982,7 +6191,7 @@ declare module '@layerfi/components/index' {
|
|
|
5982
6191
|
export { ChartOfAccounts } from '@layerfi/components/components/ChartOfAccounts/index';
|
|
5983
6192
|
export { Journal } from '@layerfi/components/components/Journal/index';
|
|
5984
6193
|
export { Tasks } from '@layerfi/components/components/Tasks/index';
|
|
5985
|
-
export { LinkAccounts } from '@layerfi/components/components/PlatformOnboarding/
|
|
6194
|
+
export { LinkAccounts } from '@layerfi/components/components/PlatformOnboarding/LinkAccounts';
|
|
5986
6195
|
export { BookkeepingUpsellBar } from '@layerfi/components/components/UpsellBanner/index';
|
|
5987
6196
|
export { BookkeepingOverview } from '@layerfi/components/views/BookkeepingOverview/index';
|
|
5988
6197
|
export { AccountingOverview } from '@layerfi/components/views/AccountingOverview/index';
|
|
@@ -6259,7 +6468,7 @@ declare module '@layerfi/components/providers/LegacyModeProvider/LegacyModeProvi
|
|
|
6259
6468
|
}
|
|
6260
6469
|
declare module '@layerfi/components/providers/LinkedAccountsProvider/LinkedAccountsProvider' {
|
|
6261
6470
|
import { type PropsWithChildren } from 'react';
|
|
6262
|
-
export
|
|
6471
|
+
export function LinkedAccountsProvider({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
6263
6472
|
|
|
6264
6473
|
}
|
|
6265
6474
|
declare module '@layerfi/components/providers/LinkedAccountsProvider/index' {
|
|
@@ -7058,7 +7267,7 @@ declare module '@layerfi/components/types/linked_accounts' {
|
|
|
7058
7267
|
institution: {
|
|
7059
7268
|
name: string;
|
|
7060
7269
|
logo: string | null;
|
|
7061
|
-
};
|
|
7270
|
+
} | null;
|
|
7062
7271
|
notifications?: ReadonlyArray<AccountNotification>;
|
|
7063
7272
|
mask?: string;
|
|
7064
7273
|
connection_id?: string;
|
|
@@ -7322,6 +7531,25 @@ declare module '@layerfi/components/types/tasks' {
|
|
|
7322
7531
|
completed: number;
|
|
7323
7532
|
tasks: Task[];
|
|
7324
7533
|
};
|
|
7534
|
+
export type TasksYearly = {
|
|
7535
|
+
year: number;
|
|
7536
|
+
total: number;
|
|
7537
|
+
completed: number;
|
|
7538
|
+
months: TasksMonthly[];
|
|
7539
|
+
};
|
|
7540
|
+
export {};
|
|
7541
|
+
|
|
7542
|
+
}
|
|
7543
|
+
declare module '@layerfi/components/types/utility/branded' {
|
|
7544
|
+
const LayerBrandTypeId: unique symbol;
|
|
7545
|
+
type LayerBrand<in out ID extends string | symbol> = {
|
|
7546
|
+
readonly [LayerBrandTypeId]: {
|
|
7547
|
+
readonly [id in ID]: ID;
|
|
7548
|
+
};
|
|
7549
|
+
};
|
|
7550
|
+
type LayerBranded<T, ID extends string | symbol> = T & LayerBrand<ID>;
|
|
7551
|
+
export type EmailAddress = LayerBranded<string, 'EmailAddress'>;
|
|
7552
|
+
export type PhoneNumber = LayerBranded<string, 'PhoneNumber'>;
|
|
7325
7553
|
export {};
|
|
7326
7554
|
|
|
7327
7555
|
}
|
|
@@ -7397,10 +7625,19 @@ declare module '@layerfi/components/utils/array/getArrayWithAtLeastOneOrFallback
|
|
|
7397
7625
|
export function isArrayWithAtLeastOne<T>(list: ReadonlyArray<T>): list is ReadonlyArrayWithAtLeastOne<T>;
|
|
7398
7626
|
export function getArrayWithAtLeastOneOrFallback<T>(list: ReadonlyArray<T>, fallback: ReadonlyArrayWithAtLeastOne<T>): ReadonlyArrayWithAtLeastOne<T>;
|
|
7399
7627
|
|
|
7628
|
+
}
|
|
7629
|
+
declare module '@layerfi/components/utils/array/isStringArray' {
|
|
7630
|
+
export function isStringArray(input: unknown): input is ReadonlyArray<string>;
|
|
7631
|
+
|
|
7400
7632
|
}
|
|
7401
7633
|
declare module '@layerfi/components/utils/array/range' {
|
|
7402
7634
|
export function range(start: number, end: number): ReadonlyArray<number>;
|
|
7403
7635
|
|
|
7636
|
+
}
|
|
7637
|
+
declare module '@layerfi/components/utils/array/readonlyTransformations' {
|
|
7638
|
+
export function mapReadonly<S, T>(array: ReadonlyArray<S>, callbackFn: (value: S, index: number, array: ReadonlyArray<S>) => T): ReadonlyArray<T>;
|
|
7639
|
+
export function filterReadonly<T, S extends T>(array: ReadonlyArray<T>, predicate: (value: T, index: number, array: ReadonlyArray<T>) => value is S): ReadonlyArray<S>;
|
|
7640
|
+
|
|
7404
7641
|
}
|
|
7405
7642
|
declare module '@layerfi/components/utils/bankTransactions' {
|
|
7406
7643
|
import { CategoryOption } from '@layerfi/components/components/CategorySelect/CategorySelect';
|
|
@@ -7550,9 +7787,8 @@ declare module '@layerfi/components/utils/profitAndLossUtils' {
|
|
|
7550
7787
|
|
|
7551
7788
|
}
|
|
7552
7789
|
declare module '@layerfi/components/utils/request/toDefinedSearchParameters' {
|
|
7553
|
-
type ParameterValues = Date | string | ReadonlyArray<string> | number | boolean;
|
|
7790
|
+
export type ParameterValues = Date | string | ReadonlyArray<string> | number | boolean;
|
|
7554
7791
|
export function toDefinedSearchParameters(input: Record<string, ParameterValues | null | undefined>): URLSearchParams;
|
|
7555
|
-
export {};
|
|
7556
7792
|
|
|
7557
7793
|
}
|
|
7558
7794
|
declare module '@layerfi/components/utils/styleUtils/sizeVariants' {
|
|
@@ -7586,6 +7822,14 @@ declare module '@layerfi/components/utils/swr/defaultSWRConfig' {
|
|
|
7586
7822
|
readonly revalidateIfStale: false;
|
|
7587
7823
|
};
|
|
7588
7824
|
|
|
7825
|
+
}
|
|
7826
|
+
declare module '@layerfi/components/utils/swr/withSWRKeyTags' {
|
|
7827
|
+
export function withSWRKeyTags(key: unknown, predicate: (tags: ReadonlyArray<string>) => boolean): boolean;
|
|
7828
|
+
|
|
7829
|
+
}
|
|
7830
|
+
declare module '@layerfi/components/utils/time/timeUtils' {
|
|
7831
|
+
export const toLocalDateString: (date: Date) => string;
|
|
7832
|
+
|
|
7589
7833
|
}
|
|
7590
7834
|
declare module '@layerfi/components/utils/vendors' {
|
|
7591
7835
|
import { Vendor } from '@layerfi/components/types/vendors';
|