@layerfi/components 0.1.92-alpha.3 → 0.1.93-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 +1941 -1732
- package/dist/esm/index.mjs +1744 -1535
- package/dist/index.css +1 -21
- package/dist/index.d.ts +215 -259
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -36,6 +36,11 @@ declare module '@layerfi/components/api/layer/balance_sheet' {
|
|
|
36
36
|
} | undefined) => () => Promise<{
|
|
37
37
|
data: S3PresignedUrl;
|
|
38
38
|
}>;
|
|
39
|
+
export const getBalanceSheetExcel: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
40
|
+
params?: GetBalanceSheetParams | undefined;
|
|
41
|
+
} | undefined) => () => Promise<{
|
|
42
|
+
data: S3PresignedUrl;
|
|
43
|
+
}>;
|
|
39
44
|
export {};
|
|
40
45
|
|
|
41
46
|
}
|
|
@@ -85,7 +90,7 @@ declare module '@layerfi/components/api/layer/bankTransactions' {
|
|
|
85
90
|
data: BankTransactionMatch;
|
|
86
91
|
errors: unknown;
|
|
87
92
|
}>;
|
|
88
|
-
export interface
|
|
93
|
+
export interface GetBankTransactionsExportParams extends Record<string, string | undefined> {
|
|
89
94
|
businessId: string;
|
|
90
95
|
startDate?: string;
|
|
91
96
|
endDate?: string;
|
|
@@ -100,6 +105,12 @@ declare module '@layerfi/components/api/layer/bankTransactions' {
|
|
|
100
105
|
data?: S3PresignedUrl;
|
|
101
106
|
error?: unknown;
|
|
102
107
|
}>;
|
|
108
|
+
export const getBankTransactionsExcel: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
109
|
+
params?: Record<string, string | undefined> | undefined;
|
|
110
|
+
} | undefined) => () => Promise<{
|
|
111
|
+
data?: S3PresignedUrl;
|
|
112
|
+
error?: unknown;
|
|
113
|
+
}>;
|
|
103
114
|
export const getBankTransactionMetadata: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
104
115
|
params?: Record<string, string | undefined> | undefined;
|
|
105
116
|
} | undefined) => () => Promise<{
|
|
@@ -482,6 +493,10 @@ declare module '@layerfi/components/api/layer/profit_and_loss' {
|
|
|
482
493
|
data?: S3PresignedUrl;
|
|
483
494
|
error?: unknown;
|
|
484
495
|
}>;
|
|
496
|
+
export const getProfitAndLossExcel: (apiUrl: string, accessToken: string | undefined, params: GetProfitAndLossCsvParams) => () => Promise<{
|
|
497
|
+
data?: S3PresignedUrl;
|
|
498
|
+
error?: unknown;
|
|
499
|
+
}>;
|
|
485
500
|
export const profitAndLossComparisonCsv: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
486
501
|
params?: Record<string, string | undefined> | undefined;
|
|
487
502
|
body?: Record<string, unknown> | undefined;
|
|
@@ -562,33 +577,50 @@ declare module '@layerfi/components/api/layer/statement-of-cash-flow' {
|
|
|
562
577
|
declare module '@layerfi/components/api/layer/tasks' {
|
|
563
578
|
import { FileMetadata } from '@layerfi/components/types/file_upload';
|
|
564
579
|
import { RawTask } from '@layerfi/components/types/tasks';
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
580
|
+
type SubmitUserResponseForTaskBody = {
|
|
581
|
+
type: 'FreeResponse';
|
|
582
|
+
user_response: string;
|
|
583
|
+
};
|
|
584
|
+
export const submitUserResponseForTask: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
585
|
+
params?: {
|
|
586
|
+
businessId: string;
|
|
587
|
+
taskId: string;
|
|
588
|
+
} | undefined;
|
|
589
|
+
body?: SubmitUserResponseForTaskBody | undefined;
|
|
568
590
|
} | undefined) => Promise<{
|
|
569
591
|
data: RawTask;
|
|
570
592
|
}>;
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
593
|
+
type UpdateTaskUploadsDescriptionBody = {
|
|
594
|
+
type: 'FreeResponse';
|
|
595
|
+
user_response: string;
|
|
596
|
+
};
|
|
597
|
+
export const updateTaskUploadsDescription: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
598
|
+
params?: {
|
|
599
|
+
businessId: string;
|
|
600
|
+
taskId: string;
|
|
601
|
+
} | undefined;
|
|
602
|
+
body?: UpdateTaskUploadsDescriptionBody | undefined;
|
|
574
603
|
} | undefined) => Promise<{
|
|
575
604
|
data: RawTask;
|
|
576
605
|
}>;
|
|
577
|
-
export const
|
|
578
|
-
params?:
|
|
579
|
-
|
|
606
|
+
export const deleteUploadsOnTask: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
607
|
+
params?: {
|
|
608
|
+
businessId: string;
|
|
609
|
+
taskId: string;
|
|
610
|
+
} | undefined;
|
|
611
|
+
body?: Record<string, never> | undefined;
|
|
580
612
|
} | undefined) => Promise<{
|
|
581
613
|
data: RawTask;
|
|
582
614
|
}>;
|
|
583
|
-
export
|
|
615
|
+
export function completeTaskWithUpload(baseUrl: string, accessToken: string, { businessId, taskId, files, description, }: {
|
|
584
616
|
businessId: string;
|
|
585
617
|
taskId: string;
|
|
586
|
-
files: File
|
|
618
|
+
files: ReadonlyArray<File>;
|
|
587
619
|
description?: string;
|
|
588
|
-
})
|
|
620
|
+
}): Promise<{
|
|
589
621
|
data: FileMetadata;
|
|
590
|
-
errors: unknown;
|
|
591
622
|
}>;
|
|
623
|
+
export {};
|
|
592
624
|
|
|
593
625
|
}
|
|
594
626
|
declare module '@layerfi/components/api/layer/vendors' {
|
|
@@ -644,12 +676,34 @@ declare module '@layerfi/components/api/layer' {
|
|
|
644
676
|
} | undefined) => () => Promise<{
|
|
645
677
|
data: import("@layerfi/components/types").BalanceSheet;
|
|
646
678
|
}>;
|
|
679
|
+
getBalanceSheetCSV: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
680
|
+
params?: {
|
|
681
|
+
businessId: string;
|
|
682
|
+
effectiveDate: Date;
|
|
683
|
+
} | undefined;
|
|
684
|
+
} | undefined) => () => Promise<{
|
|
685
|
+
data: import("@layerfi/components/types/general").S3PresignedUrl;
|
|
686
|
+
}>;
|
|
687
|
+
getBalanceSheetExcel: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
688
|
+
params?: {
|
|
689
|
+
businessId: string;
|
|
690
|
+
effectiveDate: Date;
|
|
691
|
+
} | undefined;
|
|
692
|
+
} | undefined) => () => Promise<{
|
|
693
|
+
data: import("@layerfi/components/types/general").S3PresignedUrl;
|
|
694
|
+
}>;
|
|
647
695
|
getBankTransactionsCsv: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
648
696
|
params?: Record<string, string | undefined> | undefined;
|
|
649
697
|
} | undefined) => () => Promise<{
|
|
650
698
|
data?: import("@layerfi/components/types/general").S3PresignedUrl;
|
|
651
699
|
error?: unknown;
|
|
652
700
|
}>;
|
|
701
|
+
getBankTransactionsExcel: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
702
|
+
params?: Record<string, string | undefined> | undefined;
|
|
703
|
+
} | undefined) => () => Promise<{
|
|
704
|
+
data?: import("@layerfi/components/types/general").S3PresignedUrl;
|
|
705
|
+
error?: unknown;
|
|
706
|
+
}>;
|
|
653
707
|
getBankTransactionMetadata: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
654
708
|
params?: Record<string, string | undefined> | undefined;
|
|
655
709
|
} | undefined) => () => Promise<{
|
|
@@ -786,6 +840,21 @@ declare module '@layerfi/components/api/layer' {
|
|
|
786
840
|
data?: import("@layerfi/components/types/general").S3PresignedUrl;
|
|
787
841
|
error?: unknown;
|
|
788
842
|
}>;
|
|
843
|
+
getProfitAndLossExcel: (apiUrl: string, accessToken: string | undefined, params: {
|
|
844
|
+
businessId: string;
|
|
845
|
+
startDate?: Date;
|
|
846
|
+
endDate?: Date;
|
|
847
|
+
month?: string;
|
|
848
|
+
year?: string;
|
|
849
|
+
tagKey?: string;
|
|
850
|
+
tagValues?: string;
|
|
851
|
+
reportingBasis?: string;
|
|
852
|
+
} & {
|
|
853
|
+
moneyFormat?: string;
|
|
854
|
+
}) => () => Promise<{
|
|
855
|
+
data?: import("@layerfi/components/types/general").S3PresignedUrl;
|
|
856
|
+
error?: unknown;
|
|
857
|
+
}>;
|
|
789
858
|
getLinkedAccounts: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
790
859
|
params?: {
|
|
791
860
|
businessId: string;
|
|
@@ -903,33 +972,6 @@ declare module '@layerfi/components/api/layer' {
|
|
|
903
972
|
is_duplicate: boolean;
|
|
904
973
|
}> & {}) | undefined;
|
|
905
974
|
} | undefined) => Promise<never>;
|
|
906
|
-
completeTaskWithUpload: (baseUrl: string, accessToken?: string) => ({ businessId, taskId, files, description, }: {
|
|
907
|
-
businessId: string;
|
|
908
|
-
taskId: string;
|
|
909
|
-
files: File[];
|
|
910
|
-
description?: string;
|
|
911
|
-
}) => Promise<{
|
|
912
|
-
data: import("@layerfi/components/types/file_upload").FileMetadata;
|
|
913
|
-
errors: unknown;
|
|
914
|
-
}>;
|
|
915
|
-
submitResponseToTask: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
916
|
-
params?: Record<string, string | undefined> | undefined;
|
|
917
|
-
body?: Record<string, unknown> | undefined;
|
|
918
|
-
} | undefined) => Promise<{
|
|
919
|
-
data: import("@layerfi/components/types/tasks").RawTask;
|
|
920
|
-
}>;
|
|
921
|
-
deleteTaskUploads: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
922
|
-
params?: Record<string, string | undefined> | undefined;
|
|
923
|
-
body?: Record<string, unknown> | undefined;
|
|
924
|
-
} | undefined) => Promise<{
|
|
925
|
-
data: import("@layerfi/components/types/tasks").RawTask;
|
|
926
|
-
}>;
|
|
927
|
-
updateUploadDocumentTaskDescription: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
928
|
-
params?: Record<string, string | undefined> | undefined;
|
|
929
|
-
body?: Record<string, unknown> | undefined;
|
|
930
|
-
} | undefined) => Promise<{
|
|
931
|
-
data: import("@layerfi/components/types/tasks").RawTask;
|
|
932
|
-
}>;
|
|
933
975
|
breakPlaidItemConnection: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
934
976
|
params?: {
|
|
935
977
|
businessId: string;
|
|
@@ -1106,18 +1148,16 @@ declare module '@layerfi/components/components/BalanceSheet/BalanceSheet' {
|
|
|
1106
1148
|
export interface BalanceSheetStringOverrides {
|
|
1107
1149
|
balanceSheetTable?: BalanceSheetTableStringOverrides;
|
|
1108
1150
|
}
|
|
1109
|
-
export type BalanceSheetViewProps = PropsWithChildren
|
|
1151
|
+
export type BalanceSheetViewProps = PropsWithChildren<{
|
|
1110
1152
|
withExpandAllButton?: boolean;
|
|
1111
1153
|
asWidget?: boolean;
|
|
1112
1154
|
stringOverrides?: BalanceSheetStringOverrides;
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
export type BalanceSheetProps = PropsWithChildren & {
|
|
1155
|
+
}>;
|
|
1156
|
+
export type BalanceSheetProps = PropsWithChildren<{
|
|
1116
1157
|
effectiveDate?: Date;
|
|
1117
1158
|
asWidget?: boolean;
|
|
1118
1159
|
stringOverrides?: BalanceSheetStringOverrides;
|
|
1119
|
-
|
|
1120
|
-
};
|
|
1160
|
+
}>;
|
|
1121
1161
|
export const BalanceSheet: (props: BalanceSheetProps) => import("react/jsx-runtime").JSX.Element;
|
|
1122
1162
|
|
|
1123
1163
|
}
|
|
@@ -1671,22 +1711,22 @@ declare module '@layerfi/components/components/BankTransactionsTable/index' {
|
|
|
1671
1711
|
declare module '@layerfi/components/components/BookkeepingStatus/BookkeepingStatus' {
|
|
1672
1712
|
import { BookkeepingPeriodStatus } from '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods';
|
|
1673
1713
|
type BookkeepingStatusProps = {
|
|
1674
|
-
|
|
1714
|
+
monthNumber?: number;
|
|
1675
1715
|
status?: BookkeepingPeriodStatus;
|
|
1676
1716
|
iconOnly?: boolean;
|
|
1677
1717
|
};
|
|
1678
|
-
export const BookkeepingStatus: ({ status,
|
|
1718
|
+
export const BookkeepingStatus: ({ status, monthNumber, iconOnly }: BookkeepingStatusProps) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
1679
1719
|
export {};
|
|
1680
1720
|
|
|
1681
1721
|
}
|
|
1682
1722
|
declare module '@layerfi/components/components/BookkeepingStatus/BookkeepingStatusDescription' {
|
|
1683
1723
|
import { BookkeepingPeriodStatus } from '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods';
|
|
1684
1724
|
type BookkeepingStatusDescriptionProps = {
|
|
1685
|
-
|
|
1725
|
+
monthNumber: number;
|
|
1686
1726
|
status: BookkeepingPeriodStatus;
|
|
1687
1727
|
incompleteTasksCount: number;
|
|
1688
1728
|
};
|
|
1689
|
-
export const BookkeepingStatusDescription: ({
|
|
1729
|
+
export const BookkeepingStatusDescription: ({ monthNumber, status, incompleteTasksCount }: BookkeepingStatusDescriptionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
1690
1730
|
export {};
|
|
1691
1731
|
|
|
1692
1732
|
}
|
|
@@ -1697,15 +1737,6 @@ declare module '@layerfi/components/components/BookkeepingStatus/BookkeepingStat
|
|
|
1697
1737
|
export const BookkeepingStatusPanelNotification: ({ onClick }: BookkeepingStatusPanelNotificationProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
1698
1738
|
export {};
|
|
1699
1739
|
|
|
1700
|
-
}
|
|
1701
|
-
declare module '@layerfi/components/components/BookkeepingStatus/BookkeepingStatusReportRow' {
|
|
1702
|
-
type BookkeepingStatusReportRowProps = {
|
|
1703
|
-
currentDate: Date;
|
|
1704
|
-
onViewBookkeepingTasks?: () => void;
|
|
1705
|
-
};
|
|
1706
|
-
export const BookkeepingStatusReportRow: ({ currentDate, onViewBookkeepingTasks }: BookkeepingStatusReportRowProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
1707
|
-
export {};
|
|
1708
|
-
|
|
1709
1740
|
}
|
|
1710
1741
|
declare module '@layerfi/components/components/BookkeepingStatus/utils' {
|
|
1711
1742
|
import { ReactNode } from 'react';
|
|
@@ -1719,10 +1750,10 @@ declare module '@layerfi/components/components/BookkeepingStatus/utils' {
|
|
|
1719
1750
|
};
|
|
1720
1751
|
type BookkeepingStatusConfigOptions = {
|
|
1721
1752
|
status: BookkeepingPeriodStatus;
|
|
1722
|
-
|
|
1753
|
+
monthNumber: number;
|
|
1723
1754
|
incompleteTasksCount?: number;
|
|
1724
1755
|
};
|
|
1725
|
-
export function getBookkeepingStatusConfig({ status,
|
|
1756
|
+
export function getBookkeepingStatusConfig({ status, monthNumber, incompleteTasksCount, }: BookkeepingStatusConfigOptions): InternalStatusConfig | undefined;
|
|
1726
1757
|
export {};
|
|
1727
1758
|
|
|
1728
1759
|
}
|
|
@@ -3474,7 +3505,7 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
|
3474
3505
|
stringOverrides?: import("@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts").ProfitAndLossDetailedChartsStringOverrides;
|
|
3475
3506
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
3476
3507
|
Header: ({ text, className, headingClassName, withDatePicker, withStatus, }: import("@layerfi/components/components/ProfitAndLossHeader/ProfitAndLossHeader").ProfitAndLossHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3477
|
-
Report: ({ stringOverrides, allowedDatePickerModes, datePickerMode, defaultDatePickerMode, customDateRanges, csvMoneyFormat, parentRef, view,
|
|
3508
|
+
Report: ({ stringOverrides, allowedDatePickerModes, datePickerMode, defaultDatePickerMode, customDateRanges, csvMoneyFormat, parentRef, view, }: import("@layerfi/components/components/ProfitAndLossReport/ProfitAndLossReport").ProfitAndLossReportProps) => import("react/jsx-runtime").JSX.Element;
|
|
3478
3509
|
DownloadButton: ({ stringOverrides, useComparisonPnl, moneyFormat, view, }: import("@layerfi/components/components/ProfitAndLossDownloadButton/ProfitAndLossDownloadButton").ProfitAndLossDownloadButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
3479
3510
|
};
|
|
3480
3511
|
export { ProfitAndLoss };
|
|
@@ -3655,9 +3686,8 @@ declare module '@layerfi/components/components/ProfitAndLossReport/ProfitAndLoss
|
|
|
3655
3686
|
stringOverrides?: ReportsStringOverrides;
|
|
3656
3687
|
parentRef?: RefObject<HTMLDivElement>;
|
|
3657
3688
|
view?: ViewBreakpoint;
|
|
3658
|
-
onViewBookkeepingTasks?: () => void;
|
|
3659
3689
|
} & TimeRangePickerConfig;
|
|
3660
|
-
export const ProfitAndLossReport: ({ stringOverrides, allowedDatePickerModes, datePickerMode, defaultDatePickerMode, customDateRanges, csvMoneyFormat, parentRef, view,
|
|
3690
|
+
export const ProfitAndLossReport: ({ stringOverrides, allowedDatePickerModes, datePickerMode, defaultDatePickerMode, customDateRanges, csvMoneyFormat, parentRef, view, }: ProfitAndLossReportProps) => import("react/jsx-runtime").JSX.Element;
|
|
3661
3691
|
export {};
|
|
3662
3692
|
|
|
3663
3693
|
}
|
|
@@ -3934,10 +3964,9 @@ declare module '@layerfi/components/components/StatementOfCashFlow/StatementOfCa
|
|
|
3934
3964
|
export interface StatementOfCashFlowStringOverrides {
|
|
3935
3965
|
statementOfCashFlowTable?: StatementOfCashFlowTableStringOverrides;
|
|
3936
3966
|
}
|
|
3937
|
-
export type StatementOfCashFlowProps = {
|
|
3967
|
+
export type StatementOfCashFlowProps = TimeRangePickerConfig & {
|
|
3938
3968
|
stringOverrides?: StatementOfCashFlowStringOverrides;
|
|
3939
|
-
|
|
3940
|
-
} & TimeRangePickerConfig;
|
|
3969
|
+
};
|
|
3941
3970
|
export const StatementOfCashFlow: (props: StatementOfCashFlowProps) => import("react/jsx-runtime").JSX.Element;
|
|
3942
3971
|
|
|
3943
3972
|
}
|
|
@@ -4170,109 +4199,19 @@ declare module '@layerfi/components/components/Tasks/TaskStatusBadge' {
|
|
|
4170
4199
|
|
|
4171
4200
|
}
|
|
4172
4201
|
declare module '@layerfi/components/components/Tasks/Tasks' {
|
|
4173
|
-
import { ReactNode } from 'react';
|
|
4174
4202
|
export interface TasksStringOverrides {
|
|
4175
4203
|
header?: string;
|
|
4176
4204
|
}
|
|
4177
|
-
|
|
4205
|
+
type TasksProps = {
|
|
4206
|
+
/**
|
|
4207
|
+
* @deprecated Use `stringOverrides.header` instead
|
|
4208
|
+
*/
|
|
4178
4209
|
tasksHeader?: string;
|
|
4179
4210
|
mobile?: boolean;
|
|
4180
4211
|
stringOverrides?: TasksStringOverrides;
|
|
4181
4212
|
};
|
|
4182
|
-
export
|
|
4183
|
-
export
|
|
4184
|
-
children: ReactNode;
|
|
4185
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
4186
|
-
export const TasksComponent: ({ mobile, tasksHeader, stringOverrides, }: {
|
|
4187
|
-
mobile?: boolean;
|
|
4188
|
-
tasksHeader?: string;
|
|
4189
|
-
stringOverrides?: TasksStringOverrides;
|
|
4190
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
4191
|
-
|
|
4192
|
-
}
|
|
4193
|
-
declare module '@layerfi/components/components/Tasks/TasksContext' {
|
|
4194
|
-
import { useTasks } from '@layerfi/components/hooks/useTasks';
|
|
4195
|
-
export type TasksContextType = ReturnType<typeof useTasks>;
|
|
4196
|
-
export const TasksContext: import("react").Context<{
|
|
4197
|
-
data: {
|
|
4198
|
-
status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
|
|
4199
|
-
tasks: (import("@layerfi/components/types/tasks").RawTask & {
|
|
4200
|
-
status: "TODO" | "USER_MARKED_COMPLETED";
|
|
4201
|
-
})[];
|
|
4202
|
-
id: string;
|
|
4203
|
-
month: number;
|
|
4204
|
-
year: number;
|
|
4205
|
-
}[] | undefined;
|
|
4206
|
-
isLoading: boolean;
|
|
4207
|
-
isValidating: boolean;
|
|
4208
|
-
error: any;
|
|
4209
|
-
currentMonthDate: Date;
|
|
4210
|
-
setCurrentMonthDate: (date: Date) => void;
|
|
4211
|
-
activationDate: Date | undefined;
|
|
4212
|
-
currentMonthData: {
|
|
4213
|
-
status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
|
|
4214
|
-
tasks: (import("@layerfi/components/types/tasks").RawTask & {
|
|
4215
|
-
status: "TODO" | "USER_MARKED_COMPLETED";
|
|
4216
|
-
})[];
|
|
4217
|
-
id: string;
|
|
4218
|
-
month: number;
|
|
4219
|
-
year: number;
|
|
4220
|
-
} | undefined;
|
|
4221
|
-
currentYearData: {
|
|
4222
|
-
status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
|
|
4223
|
-
tasks: (import("@layerfi/components/types/tasks").RawTask & {
|
|
4224
|
-
status: "TODO" | "USER_MARKED_COMPLETED";
|
|
4225
|
-
})[];
|
|
4226
|
-
id: string;
|
|
4227
|
-
month: number;
|
|
4228
|
-
year: number;
|
|
4229
|
-
}[] | undefined;
|
|
4230
|
-
refetch: () => undefined;
|
|
4231
|
-
submitResponseToTask: (taskId: string, userResponse: string) => void;
|
|
4232
|
-
uploadDocumentsForTask: (taskId: string, files: File[], description?: string) => Promise<void>;
|
|
4233
|
-
deleteUploadsForTask: (taskId: string) => void;
|
|
4234
|
-
updateDocUploadTaskDescription: (taskId: string, userResponse: string) => void;
|
|
4235
|
-
}>;
|
|
4236
|
-
export const useTasksContext: () => {
|
|
4237
|
-
data: {
|
|
4238
|
-
status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
|
|
4239
|
-
tasks: (import("@layerfi/components/types/tasks").RawTask & {
|
|
4240
|
-
status: "TODO" | "USER_MARKED_COMPLETED";
|
|
4241
|
-
})[];
|
|
4242
|
-
id: string;
|
|
4243
|
-
month: number;
|
|
4244
|
-
year: number;
|
|
4245
|
-
}[] | undefined;
|
|
4246
|
-
isLoading: boolean;
|
|
4247
|
-
isValidating: boolean;
|
|
4248
|
-
error: any;
|
|
4249
|
-
currentMonthDate: Date;
|
|
4250
|
-
setCurrentMonthDate: (date: Date) => void;
|
|
4251
|
-
activationDate: Date | undefined;
|
|
4252
|
-
currentMonthData: {
|
|
4253
|
-
status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
|
|
4254
|
-
tasks: (import("@layerfi/components/types/tasks").RawTask & {
|
|
4255
|
-
status: "TODO" | "USER_MARKED_COMPLETED";
|
|
4256
|
-
})[];
|
|
4257
|
-
id: string;
|
|
4258
|
-
month: number;
|
|
4259
|
-
year: number;
|
|
4260
|
-
} | undefined;
|
|
4261
|
-
currentYearData: {
|
|
4262
|
-
status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
|
|
4263
|
-
tasks: (import("@layerfi/components/types/tasks").RawTask & {
|
|
4264
|
-
status: "TODO" | "USER_MARKED_COMPLETED";
|
|
4265
|
-
})[];
|
|
4266
|
-
id: string;
|
|
4267
|
-
month: number;
|
|
4268
|
-
year: number;
|
|
4269
|
-
}[] | undefined;
|
|
4270
|
-
refetch: () => undefined;
|
|
4271
|
-
submitResponseToTask: (taskId: string, userResponse: string) => void;
|
|
4272
|
-
uploadDocumentsForTask: (taskId: string, files: File[], description?: string) => Promise<void>;
|
|
4273
|
-
deleteUploadsForTask: (taskId: string) => void;
|
|
4274
|
-
updateDocUploadTaskDescription: (taskId: string, userResponse: string) => void;
|
|
4275
|
-
};
|
|
4213
|
+
export function Tasks({ mobile, tasksHeader, stringOverrides, }: TasksProps): import("react/jsx-runtime").JSX.Element;
|
|
4214
|
+
export {};
|
|
4276
4215
|
|
|
4277
4216
|
}
|
|
4278
4217
|
declare module '@layerfi/components/components/Tasks/TasksHeader' {
|
|
@@ -4315,7 +4254,7 @@ declare module '@layerfi/components/components/Tasks/TasksListMobile' {
|
|
|
4315
4254
|
|
|
4316
4255
|
}
|
|
4317
4256
|
declare module '@layerfi/components/components/Tasks/TasksMonthSelector' {
|
|
4318
|
-
|
|
4257
|
+
function TasksMonthSelector(): import("react/jsx-runtime").JSX.Element;
|
|
4319
4258
|
export { TasksMonthSelector };
|
|
4320
4259
|
|
|
4321
4260
|
}
|
|
@@ -5260,20 +5199,83 @@ declare module '@layerfi/components/hooks/balanceSheet/useBalanceSheet' {
|
|
|
5260
5199
|
}): import("swr").SWRResponse<import("../../types").BalanceSheet, any, any>;
|
|
5261
5200
|
|
|
5262
5201
|
}
|
|
5263
|
-
declare module '@layerfi/components/hooks/bookkeeping/periods/
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
}
|
|
5267
|
-
|
|
5268
|
-
|
|
5202
|
+
declare module '@layerfi/components/hooks/bookkeeping/periods/tasks/useDeleteUploadsOnTask' {
|
|
5203
|
+
type UseDeleteUploadsOnTaskArg = {
|
|
5204
|
+
taskId: string;
|
|
5205
|
+
};
|
|
5206
|
+
export function useDeleteUploadsOnTask(): import("swr/mutation").SWRMutationResponse<{
|
|
5207
|
+
data: import("@layerfi/components/types/tasks").RawTask;
|
|
5208
|
+
} | undefined, any, () => {
|
|
5209
|
+
readonly accessToken: string;
|
|
5210
|
+
readonly apiUrl: string;
|
|
5211
|
+
readonly businessId: string;
|
|
5212
|
+
readonly tags: readonly ["#delete-uploads-on-task"];
|
|
5213
|
+
} | undefined, UseDeleteUploadsOnTaskArg>;
|
|
5214
|
+
export {};
|
|
5215
|
+
|
|
5216
|
+
}
|
|
5217
|
+
declare module '@layerfi/components/hooks/bookkeeping/periods/tasks/useSubmitResponseForTask' {
|
|
5218
|
+
type UseSubmitUserResponseForTaskArg = {
|
|
5219
|
+
taskId: string;
|
|
5220
|
+
userResponse: string;
|
|
5221
|
+
};
|
|
5222
|
+
export function useSubmitUserResponseForTask(): import("swr/mutation").SWRMutationResponse<{
|
|
5223
|
+
data: import("@layerfi/components/types/tasks").RawTask;
|
|
5224
|
+
} | undefined, any, () => {
|
|
5225
|
+
readonly accessToken: string;
|
|
5226
|
+
readonly apiUrl: string;
|
|
5227
|
+
readonly businessId: string;
|
|
5228
|
+
readonly tags: readonly ["#submit-user-response-for-task"];
|
|
5229
|
+
} | undefined, UseSubmitUserResponseForTaskArg>;
|
|
5230
|
+
export {};
|
|
5231
|
+
|
|
5232
|
+
}
|
|
5233
|
+
declare module '@layerfi/components/hooks/bookkeeping/periods/tasks/useUpdateTaskUploadDescription' {
|
|
5234
|
+
type UseUpdateTaskUploadDescriptionArg = {
|
|
5235
|
+
taskId: string;
|
|
5236
|
+
description: string;
|
|
5237
|
+
};
|
|
5238
|
+
export function useUpdateTaskUploadDescription(): import("swr/mutation").SWRMutationResponse<{
|
|
5239
|
+
data: import("@layerfi/components/types/tasks").RawTask;
|
|
5240
|
+
} | undefined, any, () => {
|
|
5241
|
+
readonly accessToken: string;
|
|
5242
|
+
readonly apiUrl: string;
|
|
5243
|
+
readonly businessId: string;
|
|
5244
|
+
readonly tags: readonly ["#update-task-upload-description"];
|
|
5245
|
+
} | undefined, UseUpdateTaskUploadDescriptionArg>;
|
|
5246
|
+
export {};
|
|
5247
|
+
|
|
5248
|
+
}
|
|
5249
|
+
declare module '@layerfi/components/hooks/bookkeeping/periods/tasks/useUploadDocumentsForTask' {
|
|
5250
|
+
type UseUploadDocumentsForTaskArg = {
|
|
5251
|
+
taskId: string;
|
|
5252
|
+
files: ReadonlyArray<File>;
|
|
5253
|
+
description?: string;
|
|
5254
|
+
};
|
|
5255
|
+
export function useUploadDocumentsForTask(): import("swr/mutation").SWRMutationResponse<{
|
|
5256
|
+
data: import("@layerfi/components/types/file_upload").FileMetadata;
|
|
5257
|
+
} | undefined, any, () => {
|
|
5258
|
+
readonly accessToken: string;
|
|
5259
|
+
readonly apiUrl: string;
|
|
5260
|
+
readonly businessId: string;
|
|
5261
|
+
readonly tags: readonly ["#use-upload-documents-for-task"];
|
|
5262
|
+
} | undefined, UseUploadDocumentsForTaskArg>;
|
|
5263
|
+
export {};
|
|
5264
|
+
|
|
5265
|
+
}
|
|
5266
|
+
declare module '@layerfi/components/hooks/bookkeeping/periods/useActiveBookkeepingPeriod' {
|
|
5267
|
+
export function useActiveBookkeepingPeriod(): {
|
|
5268
|
+
activePeriod: ({
|
|
5269
|
+
status: "BOOKKEEPING_NOT_ACTIVE" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
|
|
5269
5270
|
tasks: (import("@layerfi/components/types/tasks").RawTask & {
|
|
5270
5271
|
status: "TODO" | "USER_MARKED_COMPLETED";
|
|
5271
5272
|
})[];
|
|
5272
5273
|
id: string;
|
|
5273
5274
|
month: number;
|
|
5274
5275
|
year: number;
|
|
5275
|
-
}
|
|
5276
|
-
|
|
5276
|
+
} & {
|
|
5277
|
+
status: "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
|
|
5278
|
+
}) | undefined;
|
|
5277
5279
|
isLoading: boolean;
|
|
5278
5280
|
};
|
|
5279
5281
|
|
|
@@ -5281,7 +5283,7 @@ declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeri
|
|
|
5281
5283
|
declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods' {
|
|
5282
5284
|
import type { RawTask } from '@layerfi/components/types/tasks';
|
|
5283
5285
|
import type { EnumWithUnknownValues } from '@layerfi/components/types/utility/enumWithUnknownValues';
|
|
5284
|
-
const BOOKKEEPING_PERIOD_STATUSES: readonly ["
|
|
5286
|
+
const BOOKKEEPING_PERIOD_STATUSES: readonly ["BOOKKEEPING_NOT_ACTIVE", "NOT_STARTED", "IN_PROGRESS_AWAITING_BOOKKEEPER", "IN_PROGRESS_AWAITING_CUSTOMER", "CLOSING_IN_REVIEW", "CLOSED_OPEN_TASKS", "CLOSED_COMPLETE"];
|
|
5285
5287
|
export type BookkeepingPeriodStatus = typeof BOOKKEEPING_PERIOD_STATUSES[number];
|
|
5286
5288
|
type RawBookkeepingPeriodStatus = EnumWithUnknownValues<BookkeepingPeriodStatus>;
|
|
5287
5289
|
export type BookkeepingPeriod = Omit<RawBookkeepingPeriod, 'status'> & {
|
|
@@ -5294,15 +5296,18 @@ declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeri
|
|
|
5294
5296
|
status: RawBookkeepingPeriodStatus;
|
|
5295
5297
|
tasks: ReadonlyArray<RawTask>;
|
|
5296
5298
|
};
|
|
5297
|
-
export
|
|
5298
|
-
|
|
5299
|
+
export const BOOKKEEPING_PERIODS_TAG_KEY = "#bookkeeping-periods";
|
|
5300
|
+
export function useBookkeepingPeriods(): import("swr").SWRResponse<({
|
|
5301
|
+
status: "BOOKKEEPING_NOT_ACTIVE" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
|
|
5299
5302
|
tasks: (RawTask & {
|
|
5300
5303
|
status: "TODO" | "USER_MARKED_COMPLETED";
|
|
5301
5304
|
})[];
|
|
5302
5305
|
id: string;
|
|
5303
5306
|
month: number;
|
|
5304
5307
|
year: number;
|
|
5305
|
-
}
|
|
5308
|
+
} & {
|
|
5309
|
+
status: "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
|
|
5310
|
+
})[], any, any>;
|
|
5306
5311
|
export {};
|
|
5307
5312
|
|
|
5308
5313
|
}
|
|
@@ -5321,6 +5326,17 @@ declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingYear
|
|
|
5321
5326
|
unresolvedTasks: number | undefined;
|
|
5322
5327
|
completed: boolean;
|
|
5323
5328
|
} | undefined;
|
|
5329
|
+
earliestIncompletePeriod: ({
|
|
5330
|
+
status: "BOOKKEEPING_NOT_ACTIVE" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
|
|
5331
|
+
tasks: (import("@layerfi/components/types/tasks").RawTask & {
|
|
5332
|
+
status: "TODO" | "USER_MARKED_COMPLETED";
|
|
5333
|
+
})[];
|
|
5334
|
+
id: string;
|
|
5335
|
+
month: number;
|
|
5336
|
+
year: number;
|
|
5337
|
+
} & {
|
|
5338
|
+
status: "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
|
|
5339
|
+
}) | undefined;
|
|
5324
5340
|
isLoading: boolean;
|
|
5325
5341
|
};
|
|
5326
5342
|
|
|
@@ -5328,6 +5344,7 @@ declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingYear
|
|
|
5328
5344
|
declare module '@layerfi/components/hooks/bookkeeping/useBookkeepingStatus' {
|
|
5329
5345
|
const BOOKKEEPING_STATUSES: readonly ["NOT_PURCHASED", "ACTIVE", "ONBOARDING", "BOOKKEEPING_PAUSED"];
|
|
5330
5346
|
export type BookkeepingStatus = typeof BOOKKEEPING_STATUSES[number];
|
|
5347
|
+
export const BOOKKEEPING_TAG_KEY = "#bookkeeping";
|
|
5331
5348
|
export function useBookkeepingStatus(): import("swr").SWRResponse<{
|
|
5332
5349
|
status: "ACTIVE" | "NOT_PURCHASED" | "ONBOARDING" | "BOOKKEEPING_PAUSED";
|
|
5333
5350
|
}, any, any>;
|
|
@@ -5342,16 +5359,7 @@ declare module '@layerfi/components/hooks/business/useUpdateBusiness' {
|
|
|
5342
5359
|
readonly apiUrl: string;
|
|
5343
5360
|
readonly businessId: string;
|
|
5344
5361
|
readonly tags: readonly [`business:${string}`];
|
|
5345
|
-
} | undefined, Partial<import("@layerfi/components/types").Business
|
|
5346
|
-
trigger: (extraArgument: Partial<import("@layerfi/components/types").Business>, options?: (import("swr/mutation").SWRMutationConfiguration<import("../../types").Business | undefined, any, () => {
|
|
5347
|
-
readonly accessToken: string;
|
|
5348
|
-
readonly apiUrl: string;
|
|
5349
|
-
readonly businessId: string;
|
|
5350
|
-
readonly tags: readonly [`business:${string}`];
|
|
5351
|
-
} | undefined, Partial<import("@layerfi/components/types").Business>, unknown> & {
|
|
5352
|
-
throwOnError: false;
|
|
5353
|
-
}) | undefined) => Promise<import("@layerfi/components/types").Business | undefined>;
|
|
5354
|
-
};
|
|
5362
|
+
} | undefined, Partial<import("@layerfi/components/types").Business>>;
|
|
5355
5363
|
|
|
5356
5364
|
}
|
|
5357
5365
|
declare module '@layerfi/components/hooks/businessPersonnel/types' {
|
|
@@ -5444,16 +5452,7 @@ declare module '@layerfi/components/hooks/businessPersonnel/useCreateBusinessPer
|
|
|
5444
5452
|
readonly apiUrl: string;
|
|
5445
5453
|
readonly businessId: string;
|
|
5446
5454
|
readonly tags: readonly ["#business-personnel:create"];
|
|
5447
|
-
} | undefined, CreateBusinessPersonnelBody
|
|
5448
|
-
trigger: (extraArgument: CreateBusinessPersonnelBody, options?: (import("swr/mutation").SWRMutationConfiguration<BusinessPersonnel | undefined, any, () => {
|
|
5449
|
-
readonly accessToken: string;
|
|
5450
|
-
readonly apiUrl: string;
|
|
5451
|
-
readonly businessId: string;
|
|
5452
|
-
readonly tags: readonly ["#business-personnel:create"];
|
|
5453
|
-
} | undefined, CreateBusinessPersonnelBody, unknown> & {
|
|
5454
|
-
throwOnError: false;
|
|
5455
|
-
}) | undefined) => Promise<BusinessPersonnel | undefined>;
|
|
5456
|
-
};
|
|
5455
|
+
} | undefined, CreateBusinessPersonnelBody>;
|
|
5457
5456
|
export {};
|
|
5458
5457
|
|
|
5459
5458
|
}
|
|
@@ -5467,17 +5466,7 @@ declare module '@layerfi/components/hooks/businessPersonnel/useUpdateBusinessPer
|
|
|
5467
5466
|
readonly businessId: string;
|
|
5468
5467
|
readonly businessPersonnelId: string;
|
|
5469
5468
|
readonly tags: readonly [`#business-personnel:${string}`];
|
|
5470
|
-
} | undefined, UpdateBusinessPersonnelBody
|
|
5471
|
-
trigger: (extraArgument: UpdateBusinessPersonnelBody, options?: (import("swr/mutation").SWRMutationConfiguration<import("./types").BusinessPersonnel | undefined, any, () => {
|
|
5472
|
-
readonly accessToken: string;
|
|
5473
|
-
readonly apiUrl: string;
|
|
5474
|
-
readonly businessId: string;
|
|
5475
|
-
readonly businessPersonnelId: string;
|
|
5476
|
-
readonly tags: readonly [`#business-personnel:${string}`];
|
|
5477
|
-
} | undefined, UpdateBusinessPersonnelBody, unknown> & {
|
|
5478
|
-
throwOnError: false;
|
|
5479
|
-
}) | undefined) => Promise<import("@layerfi/components/hooks/businessPersonnel/types").BusinessPersonnel | undefined>;
|
|
5480
|
-
};
|
|
5469
|
+
} | undefined, UpdateBusinessPersonnelBody>;
|
|
5481
5470
|
|
|
5482
5471
|
}
|
|
5483
5472
|
declare module '@layerfi/components/hooks/categories/useAllCategories' {
|
|
@@ -6092,49 +6081,6 @@ declare module '@layerfi/components/hooks/useTableExpandRow/useTableExpandRow' {
|
|
|
6092
6081
|
toggleAllRows: () => void;
|
|
6093
6082
|
};
|
|
6094
6083
|
|
|
6095
|
-
}
|
|
6096
|
-
declare module '@layerfi/components/hooks/useTasks' {
|
|
6097
|
-
export const useTasks: () => {
|
|
6098
|
-
data: {
|
|
6099
|
-
status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
|
|
6100
|
-
tasks: (import("@layerfi/components/types/tasks").RawTask & {
|
|
6101
|
-
status: "TODO" | "USER_MARKED_COMPLETED";
|
|
6102
|
-
})[];
|
|
6103
|
-
id: string;
|
|
6104
|
-
month: number;
|
|
6105
|
-
year: number;
|
|
6106
|
-
}[] | undefined;
|
|
6107
|
-
isLoading: boolean;
|
|
6108
|
-
isValidating: boolean;
|
|
6109
|
-
error: any;
|
|
6110
|
-
currentMonthDate: Date;
|
|
6111
|
-
setCurrentMonthDate: (date: Date) => void;
|
|
6112
|
-
activationDate: Date | undefined;
|
|
6113
|
-
currentMonthData: {
|
|
6114
|
-
status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
|
|
6115
|
-
tasks: (import("@layerfi/components/types/tasks").RawTask & {
|
|
6116
|
-
status: "TODO" | "USER_MARKED_COMPLETED";
|
|
6117
|
-
})[];
|
|
6118
|
-
id: string;
|
|
6119
|
-
month: number;
|
|
6120
|
-
year: number;
|
|
6121
|
-
} | undefined;
|
|
6122
|
-
currentYearData: {
|
|
6123
|
-
status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
|
|
6124
|
-
tasks: (import("@layerfi/components/types/tasks").RawTask & {
|
|
6125
|
-
status: "TODO" | "USER_MARKED_COMPLETED";
|
|
6126
|
-
})[];
|
|
6127
|
-
id: string;
|
|
6128
|
-
month: number;
|
|
6129
|
-
year: number;
|
|
6130
|
-
}[] | undefined;
|
|
6131
|
-
refetch: () => undefined;
|
|
6132
|
-
submitResponseToTask: (taskId: string, userResponse: string) => void;
|
|
6133
|
-
uploadDocumentsForTask: (taskId: string, files: File[], description?: string) => Promise<void>;
|
|
6134
|
-
deleteUploadsForTask: (taskId: string) => void;
|
|
6135
|
-
updateDocUploadTaskDescription: (taskId: string, userResponse: string) => void;
|
|
6136
|
-
};
|
|
6137
|
-
|
|
6138
6084
|
}
|
|
6139
6085
|
declare module '@layerfi/components/hooks/useVendors' {
|
|
6140
6086
|
import { Vendor } from '@layerfi/components/types/vendors';
|
|
@@ -6745,6 +6691,12 @@ declare module '@layerfi/components/providers/GlobalDateStore/GlobalDateStorePro
|
|
|
6745
6691
|
start: Date;
|
|
6746
6692
|
}) => void;
|
|
6747
6693
|
};
|
|
6694
|
+
export function useGlobalDatePeriodAlignedActions(): {
|
|
6695
|
+
setMonthByPeriod: (options: {
|
|
6696
|
+
monthNumber: number;
|
|
6697
|
+
yearNumber: number;
|
|
6698
|
+
}) => void;
|
|
6699
|
+
};
|
|
6748
6700
|
type GlobalDateStoreProviderProps = PropsWithChildren;
|
|
6749
6701
|
export function GlobalDateStoreProvider({ children, }: GlobalDateStoreProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
6750
6702
|
export {};
|
|
@@ -7280,8 +7232,7 @@ declare module '@layerfi/components/types/general' {
|
|
|
7280
7232
|
LEDGER_ACCOUNTS = "LEDGER_ACCOUNTS",
|
|
7281
7233
|
LINKED_ACCOUNTS = "LINKED_ACCOUNTS",
|
|
7282
7234
|
PROFIT_AND_LOSS = "PROFIT_AND_LOSS",
|
|
7283
|
-
STATEMENT_OF_CASH_FLOWS = "STATEMENT_OF_CASH_FLOWS"
|
|
7284
|
-
TASKS = "TASKS"
|
|
7235
|
+
STATEMENT_OF_CASH_FLOWS = "STATEMENT_OF_CASH_FLOWS"
|
|
7285
7236
|
}
|
|
7286
7237
|
|
|
7287
7238
|
}
|
|
@@ -8201,7 +8152,7 @@ declare module '@layerfi/components/utils/bookkeeping/isCategorizationEnabled' {
|
|
|
8201
8152
|
}
|
|
8202
8153
|
declare module '@layerfi/components/utils/bookkeeping/periods/getFilteredBookkeepingPeriods' {
|
|
8203
8154
|
import type { BookkeepingPeriod, BookkeepingPeriodStatus } from '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods';
|
|
8204
|
-
type ActiveBookkeepingPeriodStatus = Exclude<BookkeepingPeriodStatus, '
|
|
8155
|
+
type ActiveBookkeepingPeriodStatus = Exclude<BookkeepingPeriodStatus, 'BOOKKEEPING_NOT_ACTIVE'>;
|
|
8205
8156
|
export function isActiveBookkeepingPeriod<T extends Pick<BookkeepingPeriod, 'status'>>(period: T): period is T & {
|
|
8206
8157
|
status: ActiveBookkeepingPeriodStatus;
|
|
8207
8158
|
};
|
|
@@ -8260,8 +8211,7 @@ declare module '@layerfi/components/utils/colors' {
|
|
|
8260
8211
|
|
|
8261
8212
|
}
|
|
8262
8213
|
declare module '@layerfi/components/utils/date' {
|
|
8263
|
-
|
|
8264
|
-
export const getMonthNameFromNumber: (month: number) => string;
|
|
8214
|
+
export const getMonthNameFromNumber: (monthNumber: number) => string;
|
|
8265
8215
|
|
|
8266
8216
|
}
|
|
8267
8217
|
declare module '@layerfi/components/utils/delay/runDelayed' {
|
|
@@ -8547,6 +8497,14 @@ declare module '@layerfi/components/views/BookkeepingOverview/internal/Bookkeepi
|
|
|
8547
8497
|
import { PropsWithChildren } from 'react';
|
|
8548
8498
|
export function BookkeepingProfitAndLossSummariesContainer({ children, }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
8549
8499
|
|
|
8500
|
+
}
|
|
8501
|
+
declare module '@layerfi/components/views/BookkeepingOverview/useKeepInMobileViewport' {
|
|
8502
|
+
export const useKeepInMobileViewport: () => {
|
|
8503
|
+
upperContentRef: import("react").RefObject<HTMLDivElement>;
|
|
8504
|
+
targetElementRef: import("react").RefObject<HTMLDivElement>;
|
|
8505
|
+
upperElementInFocus: import("react").MutableRefObject<boolean | null>;
|
|
8506
|
+
};
|
|
8507
|
+
|
|
8550
8508
|
}
|
|
8551
8509
|
declare module '@layerfi/components/views/GeneralLedger/GeneralLedger' {
|
|
8552
8510
|
import { ChartOfAccountsStringOverrides } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
|
|
@@ -8630,7 +8588,6 @@ declare module '@layerfi/components/views/Reports/Reports' {
|
|
|
8630
8588
|
comparisonConfig?: ProfitAndLossCompareConfig;
|
|
8631
8589
|
profitAndLossConfig?: TimeRangePickerConfig;
|
|
8632
8590
|
statementOfCashFlowConfig?: TimeRangePickerConfig;
|
|
8633
|
-
onViewBookkeepingTasks?: () => void;
|
|
8634
8591
|
}
|
|
8635
8592
|
type ReportType = 'profitAndLoss' | 'balanceSheet' | 'statementOfCashFlow';
|
|
8636
8593
|
export interface ReportsPanelProps {
|
|
@@ -8640,9 +8597,8 @@ declare module '@layerfi/components/views/Reports/Reports' {
|
|
|
8640
8597
|
profitAndLossConfig?: TimeRangePickerConfig;
|
|
8641
8598
|
statementOfCashFlowConfig?: TimeRangePickerConfig;
|
|
8642
8599
|
view: ViewBreakpoint;
|
|
8643
|
-
onViewBookkeepingTasks?: () => void;
|
|
8644
8600
|
}
|
|
8645
|
-
export const Reports: ({ title, showTitle, stringOverrides, enabledReports, comparisonConfig, profitAndLossConfig, statementOfCashFlowConfig,
|
|
8601
|
+
export const Reports: ({ title, showTitle, stringOverrides, enabledReports, comparisonConfig, profitAndLossConfig, statementOfCashFlowConfig, }: ReportsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8646
8602
|
export {};
|
|
8647
8603
|
|
|
8648
8604
|
}
|