@layerfi/components 0.1.91 → 0.1.92-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/index.d.ts CHANGED
@@ -40,26 +40,31 @@ declare module '@layerfi/components/api/layer/balance_sheet' {
40
40
 
41
41
  }
42
42
  declare module '@layerfi/components/api/layer/bankTransactions' {
43
- import { CategoryUpdate, BankTransaction, Metadata } from '@layerfi/components/types';
43
+ import { CategoryUpdate, BankTransaction } from '@layerfi/components/types';
44
44
  import { BankTransactionMatch, BankTransactionMatchType, BankTransactionMetadata, DocumentS3Urls } from '@layerfi/components/types/bank_transactions';
45
45
  import { FileMetadata } from '@layerfi/components/types/file_upload';
46
46
  import { S3PresignedUrl } from '@layerfi/components/types/general';
47
47
  export type GetBankTransactionsReturn = {
48
- data?: BankTransaction[];
49
- meta?: Metadata;
50
- error?: unknown;
48
+ data: ReadonlyArray<BankTransaction>;
49
+ meta: {
50
+ pagination: {
51
+ cursor?: string;
52
+ has_more: boolean;
53
+ };
54
+ };
51
55
  };
52
- export interface GetBankTransactionsParams extends Record<string, string | undefined> {
56
+ type GetBankTransactionsParams = {
53
57
  businessId: string;
54
58
  cursor?: string;
55
- categorized?: string;
59
+ categorized?: boolean;
60
+ descriptionFilter?: string;
56
61
  direction?: 'INFLOW' | 'OUTFLOW';
57
- startDate?: string;
58
- endDate?: string;
59
- tagFilterString?: string;
62
+ startDate?: Date;
63
+ endDate?: Date;
64
+ tagFilterQueryString?: string;
60
65
  sortOrder?: 'ASC' | 'DESC';
61
66
  sortBy?: string;
62
- }
67
+ };
63
68
  export const getBankTransactions: (baseUrl: string, accessToken: string | undefined, options?: {
64
69
  params?: GetBankTransactionsParams | undefined;
65
70
  } | undefined) => () => Promise<GetBankTransactionsReturn>;
@@ -138,6 +143,7 @@ declare module '@layerfi/components/api/layer/bankTransactions' {
138
143
  data: FileMetadata;
139
144
  errors: unknown;
140
145
  }>;
146
+ export {};
141
147
 
142
148
  }
143
149
  declare module '@layerfi/components/api/layer/bills' {
@@ -556,11 +562,6 @@ declare module '@layerfi/components/api/layer/statement-of-cash-flow' {
556
562
  declare module '@layerfi/components/api/layer/tasks' {
557
563
  import { FileMetadata } from '@layerfi/components/types/file_upload';
558
564
  import { Task } from '@layerfi/components/types/tasks';
559
- export const getTasks: (baseUrl: string, accessToken: string | undefined, options?: {
560
- params?: Record<string, string | undefined> | undefined;
561
- } | undefined) => () => Promise<{
562
- data: Task[];
563
- }>;
564
565
  export const submitResponseToTask: (baseUrl: string, accessToken: string | undefined, options?: {
565
566
  params?: Record<string, string | undefined> | undefined;
566
567
  body?: Record<string, unknown> | undefined;
@@ -649,9 +650,6 @@ declare module '@layerfi/components/api/layer' {
649
650
  } | undefined) => () => Promise<{
650
651
  data: import("@layerfi/components/types").BalanceSheet;
651
652
  }>;
652
- getBankTransactions: (baseUrl: string, accessToken: string | undefined, options?: {
653
- params?: import("@layerfi/components/api/layer/bankTransactions").GetBankTransactionsParams | undefined;
654
- } | undefined) => () => Promise<import("@layerfi/components/api/layer/bankTransactions").GetBankTransactionsReturn>;
655
653
  getBankTransactionsCsv: (baseUrl: string, accessToken: string | undefined, options?: {
656
654
  params?: Record<string, string | undefined> | undefined;
657
655
  } | undefined) => () => Promise<{
@@ -911,11 +909,6 @@ declare module '@layerfi/components/api/layer' {
911
909
  is_duplicate: boolean;
912
910
  }> & {}) | undefined;
913
911
  } | undefined) => Promise<never>;
914
- getTasks: (baseUrl: string, accessToken: string | undefined, options?: {
915
- params?: Record<string, string | undefined> | undefined;
916
- } | undefined) => () => Promise<{
917
- data: import("@layerfi/components/types/tasks").Task[];
918
- }>;
919
912
  completeTaskWithUpload: (baseUrl: string, accessToken?: string) => ({ businessId, taskId, files, description, }: {
920
913
  businessId: string;
921
914
  taskId: string;
@@ -1678,6 +1671,41 @@ declare module '@layerfi/components/components/BankTransactionsTable/BankTransac
1678
1671
  declare module '@layerfi/components/components/BankTransactionsTable/index' {
1679
1672
  export { BankTransactionsTable } from '@layerfi/components/components/BankTransactionsTable/BankTransactionsTable';
1680
1673
 
1674
+ }
1675
+ declare module '@layerfi/components/components/BookkeepingStatus/BookkeepingStatus' {
1676
+ import { BookkeepingPeriodStatus } from '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods';
1677
+ type BookkeepingStatusProps = {
1678
+ month?: number;
1679
+ status?: BookkeepingPeriodStatus;
1680
+ emphasizeWarning?: boolean;
1681
+ };
1682
+ export const BookkeepingStatus: ({ status, month, emphasizeWarning }: BookkeepingStatusProps) => import("react/jsx-runtime").JSX.Element | undefined;
1683
+ export {};
1684
+
1685
+ }
1686
+ declare module '@layerfi/components/components/BookkeepingStatus/BookkeepingStatusDescription' {
1687
+ import { BookkeepingPeriodStatus } from '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods';
1688
+ type BookkeepingStatusDescriptionProps = {
1689
+ month?: number;
1690
+ status?: BookkeepingPeriodStatus;
1691
+ };
1692
+ export const BookkeepingStatusDescription: ({ month, status }: BookkeepingStatusDescriptionProps) => import("react/jsx-runtime").JSX.Element | undefined;
1693
+ export {};
1694
+
1695
+ }
1696
+ declare module '@layerfi/components/components/BookkeepingStatus/utils' {
1697
+ import { ReactNode } from 'react';
1698
+ import { BookkeepingPeriodStatus } from '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods';
1699
+ import { TextStatus } from '@layerfi/components/components/Typography/Text';
1700
+ type InternalStatusConfig = {
1701
+ label: string;
1702
+ description: string;
1703
+ color: TextStatus;
1704
+ icon: ReactNode;
1705
+ } | undefined;
1706
+ export const buildStatus: (status: BookkeepingPeriodStatus, month: number) => InternalStatusConfig;
1707
+ export {};
1708
+
1681
1709
  }
1682
1710
  declare module '@layerfi/components/components/BusinessForm/BusinessForm' {
1683
1711
  export type BusinessFormStringOverrides = {
@@ -3420,7 +3448,7 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
3420
3448
  chartColorsList?: string[];
3421
3449
  stringOverrides?: import("@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts").ProfitAndLossDetailedChartsStringOverrides;
3422
3450
  }) => import("react/jsx-runtime").JSX.Element;
3423
- Header: ({ text, className, headingClassName, withDatePicker, }: import("@layerfi/components/components/ProfitAndLossHeader/ProfitAndLossHeader").ProfitAndLossHeaderProps) => import("react/jsx-runtime").JSX.Element;
3451
+ Header: ({ text, className, headingClassName, withDatePicker, withStatus, }: import("@layerfi/components/components/ProfitAndLossHeader/ProfitAndLossHeader").ProfitAndLossHeaderProps) => import("react/jsx-runtime").JSX.Element;
3424
3452
  Report: ({ stringOverrides, allowedDatePickerModes, datePickerMode, defaultDatePickerMode, customDateRanges, csvMoneyFormat, parentRef, view, }: import("@layerfi/components/components/ProfitAndLossReport/ProfitAndLossReport").ProfitAndLossReportProps) => import("react/jsx-runtime").JSX.Element;
3425
3453
  DownloadButton: ({ stringOverrides, useComparisonPnl, moneyFormat, view, }: import("@layerfi/components/components/ProfitAndLossDownloadButton/ProfitAndLossDownloadButton").ProfitAndLossDownloadButtonProps) => import("react/jsx-runtime").JSX.Element;
3426
3454
  };
@@ -3583,8 +3611,9 @@ declare module '@layerfi/components/components/ProfitAndLossHeader/ProfitAndLoss
3583
3611
  className?: string;
3584
3612
  headingClassName?: string;
3585
3613
  withDatePicker?: boolean;
3614
+ withStatus?: boolean;
3586
3615
  }
3587
- export const ProfitAndLossHeader: ({ text, className, headingClassName, withDatePicker, }: ProfitAndLossHeaderProps) => import("react/jsx-runtime").JSX.Element;
3616
+ export const ProfitAndLossHeader: ({ text, className, headingClassName, withDatePicker, withStatus, }: ProfitAndLossHeaderProps) => import("react/jsx-runtime").JSX.Element;
3588
3617
 
3589
3618
  }
3590
3619
  declare module '@layerfi/components/components/ProfitAndLossHeader/index' {
@@ -4075,8 +4104,9 @@ declare module '@layerfi/components/components/Tabs/Tab' {
4075
4104
  disabledMessage?: string;
4076
4105
  leftIcon?: ReactNode;
4077
4106
  index: number;
4107
+ badge?: ReactNode;
4078
4108
  }
4079
- export const Tab: ({ checked, label, name, onChange, value, leftIcon, disabled, disabledMessage, index, }: TabProps) => import("react/jsx-runtime").JSX.Element;
4109
+ export const Tab: ({ checked, label, name, onChange, value, leftIcon, disabled, disabledMessage, index, badge, }: TabProps) => import("react/jsx-runtime").JSX.Element;
4080
4110
  export {};
4081
4111
 
4082
4112
  }
@@ -4099,78 +4129,40 @@ declare module '@layerfi/components/components/Tabs/Tabs' {
4099
4129
  export {};
4100
4130
 
4101
4131
  }
4102
- declare module '@layerfi/components/components/Tabs/index' {
4103
- export { Tabs } from '@layerfi/components/components/Tabs/Tabs';
4132
+ declare module '@layerfi/components/components/Tasks/TaskMonthTile' {
4133
+ import { MonthData } from '@layerfi/components/components/Tasks/types';
4134
+ export type TaskMonthTileProps = {
4135
+ data: MonthData;
4136
+ active?: boolean;
4137
+ disabled?: boolean;
4138
+ onClick: (date: Date) => void;
4139
+ };
4140
+ export const TaskMonthTile: ({ data, onClick, active, disabled }: TaskMonthTileProps) => import("react/jsx-runtime").JSX.Element;
4141
+
4142
+ }
4143
+ declare module '@layerfi/components/components/Tasks/TaskStatusBadge' {
4144
+ import { BookkeepingPeriod } from '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods';
4145
+ type TaskStatusBadgeProps = {
4146
+ status: BookkeepingPeriod['status'];
4147
+ tasksCount?: number;
4148
+ };
4149
+ export const TaskStatusBadge: ({ status, tasksCount }: TaskStatusBadgeProps) => import("react/jsx-runtime").JSX.Element | undefined;
4150
+ export {};
4104
4151
 
4105
4152
  }
4106
4153
  declare module '@layerfi/components/components/Tasks/Tasks' {
4107
4154
  import { ReactNode } from 'react';
4108
- import { useTasks } from '@layerfi/components/hooks/useTasks/index';
4109
- export type UseTasksContextType = ReturnType<typeof useTasks>;
4110
- export const UseTasksContext: import("react").Context<{
4111
- data?: import("@layerfi/components/types/tasks").Task[];
4112
- monthlyData?: import("@layerfi/components/types/tasks").TasksMonthly[];
4113
- yearlyData?: import("@layerfi/components/types/tasks").TasksYearly[];
4114
- isLoading?: boolean;
4115
- loadedStatus?: import("@layerfi/components/types/general").LoadedStatus;
4116
- isValidating?: boolean;
4117
- error?: unknown;
4118
- currentDate: Date;
4119
- setCurrentDate: (date: Date) => void;
4120
- dateRange: {
4121
- startDate: Date;
4122
- endDate: Date;
4123
- };
4124
- setDateRange: (props: {
4125
- startDate: Date;
4126
- endDate: Date;
4127
- }) => void;
4128
- refetch: () => Promise<{
4129
- data: import("@layerfi/components/types/tasks").Task[];
4130
- } | undefined>;
4131
- submitResponseToTask: (taskId: string, userResponse: string) => void;
4132
- uploadDocumentsForTask: (taskId: string, files: File[], description?: string) => Promise<void>;
4133
- deleteUploadsForTask: (taskId: string) => void;
4134
- updateDocUploadTaskDescription: (taskId: string, userResponse: string) => void;
4135
- unresolvedTasks?: number;
4136
- }>;
4137
- export const useTasksContext: () => {
4138
- data?: import("@layerfi/components/types/tasks").Task[];
4139
- monthlyData?: import("@layerfi/components/types/tasks").TasksMonthly[];
4140
- yearlyData?: import("@layerfi/components/types/tasks").TasksYearly[];
4141
- isLoading?: boolean;
4142
- loadedStatus?: import("@layerfi/components/types/general").LoadedStatus;
4143
- isValidating?: boolean;
4144
- error?: unknown;
4145
- currentDate: Date;
4146
- setCurrentDate: (date: Date) => void;
4147
- dateRange: {
4148
- startDate: Date;
4149
- endDate: Date;
4150
- };
4151
- setDateRange: (props: {
4152
- startDate: Date;
4153
- endDate: Date;
4154
- }) => void;
4155
- refetch: () => Promise<{
4156
- data: import("@layerfi/components/types/tasks").Task[];
4157
- } | undefined>;
4158
- submitResponseToTask: (taskId: string, userResponse: string) => void;
4159
- uploadDocumentsForTask: (taskId: string, files: File[], description?: string) => Promise<void>;
4160
- deleteUploadsForTask: (taskId: string) => void;
4161
- updateDocUploadTaskDescription: (taskId: string, userResponse: string) => void;
4162
- unresolvedTasks?: number;
4163
- };
4164
4155
  export interface TasksStringOverrides {
4165
4156
  header?: string;
4166
4157
  }
4167
- export const Tasks: ({ collapsable, defaultCollapsed, collapsedWhenComplete, tasksHeader, stringOverrides, }: {
4158
+ export type TasksProps = {
4168
4159
  tasksHeader?: string;
4169
4160
  collapsable?: boolean;
4170
4161
  defaultCollapsed?: boolean;
4171
4162
  collapsedWhenComplete?: boolean;
4172
4163
  stringOverrides?: TasksStringOverrides;
4173
- }) => import("react/jsx-runtime").JSX.Element;
4164
+ };
4165
+ export const Tasks: (props: TasksProps) => import("react/jsx-runtime").JSX.Element;
4174
4166
  export const TasksProvider: ({ children }: {
4175
4167
  children: ReactNode;
4176
4168
  }) => import("react/jsx-runtime").JSX.Element;
@@ -4183,35 +4175,94 @@ declare module '@layerfi/components/components/Tasks/Tasks' {
4183
4175
  }) => import("react/jsx-runtime").JSX.Element;
4184
4176
 
4185
4177
  }
4186
- declare module '@layerfi/components/components/Tasks/index' {
4187
- export { Tasks, TasksProvider, TasksComponent } from '@layerfi/components/components/Tasks/Tasks';
4178
+ declare module '@layerfi/components/components/Tasks/TasksContext' {
4179
+ import { useTasks } from '@layerfi/components/hooks/useTasks';
4180
+ export type TasksContextType = ReturnType<typeof useTasks>;
4181
+ export const TasksContext: import("react").Context<{
4182
+ data: {
4183
+ status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
4184
+ id: string;
4185
+ month: number;
4186
+ year: number;
4187
+ tasks: ReadonlyArray<import("@layerfi/components/types/tasks").Task>;
4188
+ }[] | undefined;
4189
+ isLoading: boolean;
4190
+ isValidating: boolean;
4191
+ error: any;
4192
+ currentMonthDate: Date;
4193
+ setCurrentMonthDate: (date: Date) => void;
4194
+ activationDate: Date | undefined;
4195
+ currentMonthData: {
4196
+ status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
4197
+ id: string;
4198
+ month: number;
4199
+ year: number;
4200
+ tasks: ReadonlyArray<import("@layerfi/components/types/tasks").Task>;
4201
+ } | undefined;
4202
+ currentYearData: {
4203
+ status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
4204
+ id: string;
4205
+ month: number;
4206
+ year: number;
4207
+ tasks: ReadonlyArray<import("@layerfi/components/types/tasks").Task>;
4208
+ }[] | undefined;
4209
+ refetch: () => undefined;
4210
+ submitResponseToTask: (taskId: string, userResponse: string) => void;
4211
+ uploadDocumentsForTask: (taskId: string, files: File[], description?: string) => Promise<void>;
4212
+ deleteUploadsForTask: (taskId: string) => void;
4213
+ updateDocUploadTaskDescription: (taskId: string, userResponse: string) => void;
4214
+ }>;
4215
+ export const useTasksContext: () => {
4216
+ data: {
4217
+ status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
4218
+ id: string;
4219
+ month: number;
4220
+ year: number;
4221
+ tasks: ReadonlyArray<import("@layerfi/components/types/tasks").Task>;
4222
+ }[] | undefined;
4223
+ isLoading: boolean;
4224
+ isValidating: boolean;
4225
+ error: any;
4226
+ currentMonthDate: Date;
4227
+ setCurrentMonthDate: (date: Date) => void;
4228
+ activationDate: Date | undefined;
4229
+ currentMonthData: {
4230
+ status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
4231
+ id: string;
4232
+ month: number;
4233
+ year: number;
4234
+ tasks: ReadonlyArray<import("@layerfi/components/types/tasks").Task>;
4235
+ } | undefined;
4236
+ currentYearData: {
4237
+ status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
4238
+ id: string;
4239
+ month: number;
4240
+ year: number;
4241
+ tasks: ReadonlyArray<import("@layerfi/components/types/tasks").Task>;
4242
+ }[] | undefined;
4243
+ refetch: () => undefined;
4244
+ submitResponseToTask: (taskId: string, userResponse: string) => void;
4245
+ uploadDocumentsForTask: (taskId: string, files: File[], description?: string) => Promise<void>;
4246
+ deleteUploadsForTask: (taskId: string) => void;
4247
+ updateDocUploadTaskDescription: (taskId: string, userResponse: string) => void;
4248
+ };
4188
4249
 
4189
4250
  }
4190
- declare module '@layerfi/components/components/TasksHeader/TasksHeader' {
4191
- export const TasksHeader: ({ tasksHeader, collapsable, open, toggleContent, highlightYears, }: {
4251
+ declare module '@layerfi/components/components/Tasks/TasksHeader' {
4252
+ export const TasksHeader: ({ tasksHeader, }: {
4192
4253
  tasksHeader?: string;
4193
- collapsable?: boolean;
4194
- open?: boolean;
4195
- toggleContent: () => void;
4196
- highlightYears?: number[];
4197
4254
  }) => import("react/jsx-runtime").JSX.Element;
4198
4255
 
4199
4256
  }
4200
- declare module '@layerfi/components/components/TasksHeader/index' {
4201
- export { TasksHeader } from '@layerfi/components/components/TasksHeader/TasksHeader';
4202
-
4203
- }
4204
- declare module '@layerfi/components/components/TasksList/TasksList' {
4257
+ declare module '@layerfi/components/components/Tasks/TasksList' {
4258
+ import { BookkeepingPeriod } from '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods';
4205
4259
  export const TasksList: ({ pageSize }: {
4260
+ data?: BookkeepingPeriod[];
4206
4261
  pageSize?: number;
4207
4262
  }) => import("react/jsx-runtime").JSX.Element;
4208
4263
 
4209
4264
  }
4210
- declare module '@layerfi/components/components/TasksList/index' {
4211
- export { TasksList } from '@layerfi/components/components/TasksList/TasksList';
4212
-
4213
- }
4214
- declare module '@layerfi/components/components/TasksListItem/TasksListItem' {
4265
+ declare module '@layerfi/components/components/Tasks/TasksListItem' {
4215
4266
  import { Task } from '@layerfi/components/types/tasks';
4216
4267
  export const TasksListItem: ({ task, goToNextPageIfAllComplete, defaultOpen, }: {
4217
4268
  task: Task;
@@ -4220,55 +4271,37 @@ declare module '@layerfi/components/components/TasksListItem/TasksListItem' {
4220
4271
  }) => import("react/jsx-runtime").JSX.Element;
4221
4272
 
4222
4273
  }
4223
- declare module '@layerfi/components/components/TasksListItem/index' {
4224
- export { TasksListItem } from '@layerfi/components/components/TasksListItem/TasksListItem';
4274
+ declare module '@layerfi/components/components/Tasks/TasksMonthSelector' {
4275
+ const TasksMonthSelector: () => import("react/jsx-runtime").JSX.Element;
4276
+ export { TasksMonthSelector };
4225
4277
 
4226
4278
  }
4227
- declare module '@layerfi/components/components/TasksMonthSelector/TaskMonthTile' {
4228
- import { TaskMonthTileProps } from '@layerfi/components/components/TasksMonthSelector/types';
4229
- const TaskMonthTile: ({ monthData, onClick, active, disabled }: TaskMonthTileProps) => import("react/jsx-runtime").JSX.Element;
4230
- export { TaskMonthTile };
4279
+ declare module '@layerfi/components/components/Tasks/TasksPanelNotification' {
4280
+ export const TasksPanelNotification: () => import("react/jsx-runtime").JSX.Element | null;
4231
4281
 
4232
4282
  }
4233
- declare module '@layerfi/components/components/TasksMonthSelector/TasksMonthSelector' {
4234
- import { TasksMonthSelectorProps } from '@layerfi/components/components/TasksMonthSelector/types';
4235
- const TasksMonthSelector: ({ tasks, year, currentDate, onClick }: TasksMonthSelectorProps) => import("react/jsx-runtime").JSX.Element;
4236
- export { TasksMonthSelector };
4283
+ declare module '@layerfi/components/components/Tasks/TasksPending' {
4284
+ export const TasksPending: () => import("react/jsx-runtime").JSX.Element;
4237
4285
 
4238
4286
  }
4239
- declare module '@layerfi/components/components/TasksMonthSelector/types' {
4240
- import { Task, TasksMonthly } from '@layerfi/components/types/tasks';
4241
- export type TasksMonthSelectorProps = {
4242
- tasks?: TasksMonthly[];
4243
- currentDate: Date;
4244
- year: number;
4245
- onClick: (date: Date) => void;
4246
- };
4287
+ declare module '@layerfi/components/components/Tasks/TasksYearsTabs' {
4288
+ export const TasksYearsTabs: () => import("react/jsx-runtime").JSX.Element;
4289
+
4290
+ }
4291
+ declare module '@layerfi/components/components/Tasks/types' {
4292
+ import { BookkeepingPeriodStatus } from '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods';
4293
+ import { Task } from '@layerfi/components/types/tasks';
4247
4294
  export type MonthData = {
4295
+ monthStr: string;
4296
+ date: Date;
4248
4297
  year: number;
4249
4298
  month: number;
4250
4299
  total: number;
4251
4300
  completed: number;
4252
- tasks: Task[];
4253
- monthStr: string;
4254
- startDate: Date;
4255
- endDate: Date;
4301
+ status?: BookkeepingPeriodStatus;
4256
4302
  disabled?: boolean;
4303
+ tasks: Task[];
4257
4304
  };
4258
- export type TaskMonthTileProps = {
4259
- monthData: MonthData;
4260
- active?: boolean;
4261
- disabled?: boolean;
4262
- onClick: TasksMonthSelectorProps['onClick'];
4263
- };
4264
-
4265
- }
4266
- declare module '@layerfi/components/components/TasksPending/TasksPending' {
4267
- export const TasksPending: () => import("react/jsx-runtime").JSX.Element;
4268
-
4269
- }
4270
- declare module '@layerfi/components/components/TasksPending/index' {
4271
- export { TasksPending } from '@layerfi/components/components/TasksPending/TasksPending';
4272
4305
 
4273
4306
  }
4274
4307
  declare module '@layerfi/components/components/Textarea/Textarea' {
@@ -4501,7 +4534,7 @@ declare module '@layerfi/components/components/Typography/Text' {
4501
4534
  whenTruncated = "whenTruncated",
4502
4535
  always = "always"
4503
4536
  }
4504
- export type TextStatus = 'success' | 'error' | 'warning' | 'disabled';
4537
+ export type TextStatus = 'success' | 'error' | 'warning' | 'disabled' | 'info';
4505
4538
  export interface TextTooltipOptions {
4506
4539
  contentClassName?: string;
4507
4540
  offset?: number;
@@ -4521,8 +4554,9 @@ declare module '@layerfi/components/components/Typography/Text' {
4521
4554
  tooltipOptions?: TextTooltipOptions;
4522
4555
  ellipsis?: boolean;
4523
4556
  pb?: '4xs' | '3xs' | '2xs' | 'xs' | 'sm' | 'md' | 'lg';
4557
+ invertColor?: boolean;
4524
4558
  }
4525
- export const Text: ({ as: Component, className, children, size, weight, withTooltip, ellipsis, status, pb, ...props }: TextProps) => import("react/jsx-runtime").JSX.Element;
4559
+ export const Text: ({ as: Component, className, children, size, weight, withTooltip, ellipsis, status, pb, invertColor, ...props }: TextProps) => import("react/jsx-runtime").JSX.Element;
4526
4560
  export const TextWithTooltip: ({ as: Component, className, children, size: _size, weight: _weight, withTooltip: _withTooltip, tooltipOptions, ...props }: TextProps) => import("react/jsx-runtime").JSX.Element;
4527
4561
 
4528
4562
  }
@@ -4659,7 +4693,7 @@ declare module '@layerfi/components/components/ui/Modal/ModalSlots' {
4659
4693
  const ModalHeading: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("react-aria-components").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>, "className"> & {
4660
4694
  align?: "center";
4661
4695
  pbe?: import("@layerfi/components/components/ui/sharedUITypes").Spacing;
4662
- size?: "xs" | "sm" | "lg";
4696
+ size?: "2xs" | "xs" | "sm" | "lg";
4663
4697
  }, "ref"> & import("react").RefAttributes<HTMLHeadingElement>, "slot" | "level">, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
4664
4698
  const ModalDescription: import("react").ForwardRefExoticComponent<Omit<Omit<{
4665
4699
  size?: "xs" | "sm" | "md" | "lg";
@@ -4696,7 +4730,7 @@ declare module '@layerfi/components/components/ui/Typography/Heading' {
4696
4730
  type HeadingDataProps = {
4697
4731
  align?: 'center';
4698
4732
  pbe?: Spacing;
4699
- size?: 'xs' | 'sm' | 'lg';
4733
+ size?: '2xs' | 'xs' | 'sm' | 'lg';
4700
4734
  };
4701
4735
  const Heading: import("react").ForwardRefExoticComponent<Omit<Omit<import("react-aria-components").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>, "className"> & HeadingDataProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
4702
4736
  export { Heading };
@@ -4855,50 +4889,58 @@ declare module '@layerfi/components/config/theme' {
4855
4889
 
4856
4890
  }
4857
4891
  declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransactionsContext' {
4858
- import { useBankTransactions } from '@layerfi/components/hooks/useBankTransactions/index';
4892
+ import { useAugmentedBankTransactions } from '@layerfi/components/hooks/useBankTransactions/useAugmentedBankTransactions';
4859
4893
  import { DisplayState } from '@layerfi/components/types';
4860
- export type BankTransactionsContextType = ReturnType<typeof useBankTransactions>;
4894
+ export type BankTransactionsContextType = ReturnType<typeof useAugmentedBankTransactions>;
4861
4895
  export const BankTransactionsContext: import("react").Context<{
4862
- data?: import("@layerfi/components/types").BankTransaction[];
4863
- metadata?: import("@layerfi/components/types").Metadata;
4896
+ data: import("@layerfi/components/types").BankTransaction[] | undefined;
4897
+ metadata: {
4898
+ pagination: {
4899
+ cursor?: string;
4900
+ has_more: boolean;
4901
+ };
4902
+ } | undefined;
4864
4903
  loadingStatus: import("@layerfi/components/types/general").LoadedStatus;
4865
4904
  isLoading: boolean;
4866
4905
  isValidating: boolean;
4867
- error: unknown;
4868
- hasMore?: boolean;
4869
- filters?: import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters;
4870
- accountsList?: import("@layerfi/components/hooks/useBankTransactions/types").AccountItem[];
4871
- display: DisplayState;
4906
+ refetch: () => void;
4907
+ error: any;
4872
4908
  categorize: (id: import("@layerfi/components/types").BankTransaction["id"], newCategory: import("../../types").CategoryUpdate, notify?: boolean) => Promise<void>;
4873
4909
  match: (id: import("@layerfi/components/types").BankTransaction["id"], matchId: import("../../types").BankTransaction["id"], notify?: boolean) => Promise<void>;
4874
- updateOneLocal: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
4875
- shouldHideAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => boolean;
4910
+ updateOneLocal: (newBankTransaction: import("@layerfi/components/types").BankTransaction) => void;
4911
+ shouldHideAfterCategorize: () => boolean;
4876
4912
  removeAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
4877
- refetch: () => void;
4878
- setFilters: (filters?: Partial<import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters>) => void;
4879
- activate: () => void;
4913
+ filters: import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters | undefined;
4914
+ setFilters: (value?: Partial<import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters>) => void;
4915
+ accountsList: import("@layerfi/components/hooks/useBankTransactions/types").AccountItem[];
4916
+ display: DisplayState;
4880
4917
  fetchMore: () => void;
4918
+ hasMore: boolean;
4881
4919
  }>;
4882
4920
  export const useBankTransactionsContext: () => {
4883
- data?: import("@layerfi/components/types").BankTransaction[];
4884
- metadata?: import("@layerfi/components/types").Metadata;
4921
+ data: import("@layerfi/components/types").BankTransaction[] | undefined;
4922
+ metadata: {
4923
+ pagination: {
4924
+ cursor?: string;
4925
+ has_more: boolean;
4926
+ };
4927
+ } | undefined;
4885
4928
  loadingStatus: import("@layerfi/components/types/general").LoadedStatus;
4886
4929
  isLoading: boolean;
4887
4930
  isValidating: boolean;
4888
- error: unknown;
4889
- hasMore?: boolean;
4890
- filters?: import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters;
4891
- accountsList?: import("@layerfi/components/hooks/useBankTransactions/types").AccountItem[];
4892
- display: DisplayState;
4931
+ refetch: () => void;
4932
+ error: any;
4893
4933
  categorize: (id: import("@layerfi/components/types").BankTransaction["id"], newCategory: import("../../types").CategoryUpdate, notify?: boolean) => Promise<void>;
4894
4934
  match: (id: import("@layerfi/components/types").BankTransaction["id"], matchId: import("../../types").BankTransaction["id"], notify?: boolean) => Promise<void>;
4895
- updateOneLocal: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
4896
- shouldHideAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => boolean;
4935
+ updateOneLocal: (newBankTransaction: import("@layerfi/components/types").BankTransaction) => void;
4936
+ shouldHideAfterCategorize: () => boolean;
4897
4937
  removeAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
4898
- refetch: () => void;
4899
- setFilters: (filters?: Partial<import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters>) => void;
4900
- activate: () => void;
4938
+ filters: import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters | undefined;
4939
+ setFilters: (value?: Partial<import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters>) => void;
4940
+ accountsList: import("@layerfi/components/hooks/useBankTransactions/types").AccountItem[];
4941
+ display: DisplayState;
4901
4942
  fetchMore: () => void;
4943
+ hasMore: boolean;
4902
4944
  };
4903
4945
 
4904
4946
  }
@@ -5120,42 +5162,6 @@ declare module '@layerfi/components/contexts/TableContext/TableContext' {
5120
5162
  declare module '@layerfi/components/contexts/TableContext/index' {
5121
5163
  export { TableContext, TableProvider } from '@layerfi/components/contexts/TableContext/TableContext';
5122
5164
 
5123
- }
5124
- declare module '@layerfi/components/contexts/TasksContext/TasksContext' {
5125
- import { useTasks } from '@layerfi/components/hooks/useTasks/index';
5126
- export type TasksContextType = ReturnType<typeof useTasks>;
5127
- export const TasksContext: import("react").Context<{
5128
- data?: import("@layerfi/components/types/tasks").Task[];
5129
- monthlyData?: import("@layerfi/components/types/tasks").TasksMonthly[];
5130
- yearlyData?: import("@layerfi/components/types/tasks").TasksYearly[];
5131
- isLoading?: boolean;
5132
- loadedStatus?: import("@layerfi/components/types/general").LoadedStatus;
5133
- isValidating?: boolean;
5134
- error?: unknown;
5135
- currentDate: Date;
5136
- setCurrentDate: (date: Date) => void;
5137
- dateRange: {
5138
- startDate: Date;
5139
- endDate: Date;
5140
- };
5141
- setDateRange: (props: {
5142
- startDate: Date;
5143
- endDate: Date;
5144
- }) => void;
5145
- refetch: () => Promise<{
5146
- data: import("@layerfi/components/types/tasks").Task[];
5147
- } | undefined>;
5148
- submitResponseToTask: (taskId: string, userResponse: string) => void;
5149
- uploadDocumentsForTask: (taskId: string, files: File[], description?: string) => Promise<void>;
5150
- deleteUploadsForTask: (taskId: string) => void;
5151
- updateDocUploadTaskDescription: (taskId: string, userResponse: string) => void;
5152
- unresolvedTasks?: number;
5153
- }>;
5154
-
5155
- }
5156
- declare module '@layerfi/components/contexts/TasksContext/index' {
5157
- export { TasksContext } from '@layerfi/components/contexts/TasksContext/TasksContext';
5158
-
5159
5165
  }
5160
5166
  declare module '@layerfi/components/contexts/VendorsContext' {
5161
5167
  import React, { ReactNode } from 'react';
@@ -5179,13 +5185,34 @@ declare module '@layerfi/components/hooks/balanceSheet/useBalanceSheet' {
5179
5185
  effectiveDate?: Date;
5180
5186
  }): import("swr").SWRResponse<import("../../types").BalanceSheet, any, any>;
5181
5187
 
5188
+ }
5189
+ declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriodStatus' {
5190
+ export const useBookkeepingPeriodStatus: ({ currentMonthDate }: {
5191
+ currentMonthDate: Date;
5192
+ }) => {
5193
+ status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE" | undefined;
5194
+ isLoading: boolean;
5195
+ };
5196
+
5182
5197
  }
5183
5198
  declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods' {
5184
5199
  import type { Task } from '@layerfi/components/types/tasks';
5185
- const BOOKKEEPING_PERIOD_STATUSES: readonly ["BOOKKEEPING_NOT_PURCHASED", "NOT_STARTED", "IN_PROGRESS_NO_TASKS", "IN_PROGRESS_OPEN_TASKS", "CLOSED_IN_REVIEW", "CLOSED_OPEN_TASKS", "CLOSED_COMPLETE"];
5200
+ import type { EnumWithUnknownValues } from '@layerfi/components/types/utility/enumWithUnknownValues';
5201
+ const BOOKKEEPING_PERIOD_STATUSES: readonly ["BOOKKEEPING_NOT_PURCHASED", "NOT_STARTED", "IN_PROGRESS_AWAITING_BOOKKEEPER", "IN_PROGRESS_AWAITING_CUSTOMER", "CLOSING_IN_REVIEW", "CLOSED_OPEN_TASKS", "CLOSED_COMPLETE"];
5186
5202
  export type BookkeepingPeriodStatus = typeof BOOKKEEPING_PERIOD_STATUSES[number];
5203
+ type RawBookkeepingPeriodStatus = EnumWithUnknownValues<BookkeepingPeriodStatus>;
5204
+ export type BookkeepingPeriod = Omit<RawBookkeepingPeriod, 'status'> & {
5205
+ status: BookkeepingPeriodStatus;
5206
+ };
5207
+ type RawBookkeepingPeriod = {
5208
+ id: string;
5209
+ month: number;
5210
+ year: number;
5211
+ status: RawBookkeepingPeriodStatus;
5212
+ tasks: ReadonlyArray<Task>;
5213
+ };
5187
5214
  export function useBookkeepingPeriods(): import("swr").SWRResponse<{
5188
- status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_NO_TASKS" | "IN_PROGRESS_OPEN_TASKS" | "CLOSED_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
5215
+ status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
5189
5216
  id: string;
5190
5217
  month: number;
5191
5218
  year: number;
@@ -5193,6 +5220,25 @@ declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeri
5193
5220
  }[], any, any>;
5194
5221
  export {};
5195
5222
 
5223
+ }
5224
+ declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingYearsStatus' {
5225
+ import { Task } from '@layerfi/components/types/tasks';
5226
+ export const useBookkeepingYearsStatus: () => {
5227
+ yearStatuses: {
5228
+ tasks: Task[] | undefined;
5229
+ unresolvedTasks: number | undefined;
5230
+ completed: boolean;
5231
+ year: number;
5232
+ }[];
5233
+ anyPreviousYearIncomplete: {
5234
+ tasks: Task[] | undefined;
5235
+ unresolvedTasks: number | undefined;
5236
+ completed: boolean;
5237
+ year: number;
5238
+ } | undefined;
5239
+ isLoading: boolean;
5240
+ };
5241
+
5196
5242
  }
5197
5243
  declare module '@layerfi/components/hooks/bookkeeping/useBookkeepingStatus' {
5198
5244
  const BOOKKEEPING_STATUSES: readonly ["NOT_PURCHASED", "ACTIVE", "ONBOARDING", "BOOKKEEPING_PAUSED"];
@@ -5373,14 +5419,9 @@ declare module '@layerfi/components/hooks/useAuth' {
5373
5419
  } | undefined) => number;
5374
5420
  }>;
5375
5421
 
5376
- }
5377
- declare module '@layerfi/components/hooks/useBankTransactions/index' {
5378
- export { useBankTransactions } from '@layerfi/components/hooks/useBankTransactions/useBankTransactions';
5379
-
5380
5422
  }
5381
5423
  declare module '@layerfi/components/hooks/useBankTransactions/types' {
5382
- import { BankTransaction, CategoryUpdate, DateRange, Direction, DisplayState, Metadata } from '@layerfi/components/types';
5383
- import { LoadedStatus } from '@layerfi/components/types/general';
5424
+ import { DateRange, Direction, DisplayState } from '@layerfi/components/types';
5384
5425
  import { TagFilterInput } from '@layerfi/components/types/tags';
5385
5426
  export interface NumericRangeFilter {
5386
5427
  min?: number;
@@ -5402,32 +5443,52 @@ declare module '@layerfi/components/hooks/useBankTransactions/types' {
5402
5443
  scope?: DisplayState;
5403
5444
  monthlyView?: boolean;
5404
5445
  };
5405
- export type UseBankTransactions = (params?: UseBankTransactionsParams) => {
5406
- data?: BankTransaction[];
5407
- metadata?: Metadata;
5446
+
5447
+ }
5448
+ declare module '@layerfi/components/hooks/useBankTransactions/useAugmentedBankTransactions' {
5449
+ import { BankTransaction, CategoryUpdate } from '@layerfi/components/types';
5450
+ import { DisplayState } from '@layerfi/components/types/bank_transactions';
5451
+ import { LoadedStatus } from '@layerfi/components/types/general';
5452
+ import { BankTransactionFilters, UseBankTransactionsParams } from '@layerfi/components/hooks/useBankTransactions/types';
5453
+ export const useAugmentedBankTransactions: (params?: UseBankTransactionsParams) => {
5454
+ data: BankTransaction[] | undefined;
5455
+ metadata: {
5456
+ pagination: {
5457
+ cursor?: string;
5458
+ has_more: boolean;
5459
+ };
5460
+ } | undefined;
5408
5461
  loadingStatus: LoadedStatus;
5409
5462
  isLoading: boolean;
5410
5463
  isValidating: boolean;
5411
- error: unknown;
5412
- hasMore?: boolean;
5413
- filters?: BankTransactionFilters;
5414
- accountsList?: AccountItem[];
5415
- display: DisplayState;
5416
- categorize: (id: BankTransaction['id'], newCategory: CategoryUpdate, notify?: boolean) => Promise<void>;
5417
- match: (id: BankTransaction['id'], matchId: BankTransaction['id'], notify?: boolean) => Promise<void>;
5418
- updateOneLocal: (bankTransaction: BankTransaction) => void;
5419
- shouldHideAfterCategorize: (bankTransaction: BankTransaction) => boolean;
5420
- removeAfterCategorize: (bankTransaction: BankTransaction) => void;
5421
5464
  refetch: () => void;
5422
- setFilters: (filters?: Partial<BankTransactionFilters>) => void;
5423
- activate: () => void;
5465
+ error: any;
5466
+ categorize: (id: BankTransaction["id"], newCategory: CategoryUpdate, notify?: boolean) => Promise<void>;
5467
+ match: (id: BankTransaction["id"], matchId: BankTransaction["id"], notify?: boolean) => Promise<void>;
5468
+ updateOneLocal: (newBankTransaction: BankTransaction) => void;
5469
+ shouldHideAfterCategorize: () => boolean;
5470
+ removeAfterCategorize: (bankTransaction: BankTransaction) => void;
5471
+ filters: BankTransactionFilters | undefined;
5472
+ setFilters: (value?: Partial<BankTransactionFilters>) => void;
5473
+ accountsList: import("@layerfi/components/hooks/useBankTransactions/types").AccountItem[];
5474
+ display: DisplayState;
5424
5475
  fetchMore: () => void;
5476
+ hasMore: boolean;
5425
5477
  };
5426
5478
 
5427
5479
  }
5428
5480
  declare module '@layerfi/components/hooks/useBankTransactions/useBankTransactions' {
5429
- import { UseBankTransactions } from "@layerfi/components/hooks/useBankTransactions/types";
5430
- export const useBankTransactions: UseBankTransactions;
5481
+ import { type GetBankTransactionsReturn } from '@layerfi/components/api/layer/bankTransactions';
5482
+ type UseBankTransactionsOptions = {
5483
+ categorized?: boolean;
5484
+ direction?: 'INFLOW' | 'OUTFLOW';
5485
+ descriptionFilter?: string;
5486
+ startDate?: Date;
5487
+ endDate?: Date;
5488
+ tagFilterQueryString?: string;
5489
+ };
5490
+ export function useBankTransactions({ categorized, descriptionFilter, direction, startDate, endDate, tagFilterQueryString, }: UseBankTransactionsOptions): import("swr/infinite").SWRInfiniteResponse<GetBankTransactionsReturn, any>;
5491
+ export {};
5431
5492
 
5432
5493
  }
5433
5494
  declare module '@layerfi/components/hooks/useBankTransactions/utils' {
@@ -5948,51 +6009,41 @@ declare module '@layerfi/components/hooks/useTableExpandRow/useTableExpandRow' {
5948
6009
  };
5949
6010
 
5950
6011
  }
5951
- declare module '@layerfi/components/hooks/useTasks/index' {
5952
- export { useTasks } from '@layerfi/components/hooks/useTasks/useTasks';
5953
-
5954
- }
5955
- declare module '@layerfi/components/hooks/useTasks/mockData' {
5956
- import { Task } from '@layerfi/components/types/tasks';
5957
- export const mockData: Task[];
5958
-
5959
- }
5960
- declare module '@layerfi/components/hooks/useTasks/useTasks' {
5961
- import { LoadedStatus } from '@layerfi/components/types/general';
5962
- import { Task, TasksMonthly, TasksYearly } from '@layerfi/components/types/tasks';
5963
- type UseTasks = (props?: UseTasksProps) => {
5964
- data?: Task[];
5965
- monthlyData?: TasksMonthly[];
5966
- yearlyData?: TasksYearly[];
5967
- isLoading?: boolean;
5968
- loadedStatus?: LoadedStatus;
5969
- isValidating?: boolean;
5970
- error?: unknown;
5971
- currentDate: Date;
5972
- setCurrentDate: (date: Date) => void;
5973
- dateRange: {
5974
- startDate: Date;
5975
- endDate: Date;
5976
- };
5977
- setDateRange: (props: {
5978
- startDate: Date;
5979
- endDate: Date;
5980
- }) => void;
5981
- refetch: () => Promise<{
5982
- data: Task[];
5983
- } | undefined>;
6012
+ declare module '@layerfi/components/hooks/useTasks' {
6013
+ export const useTasks: () => {
6014
+ data: {
6015
+ status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
6016
+ id: string;
6017
+ month: number;
6018
+ year: number;
6019
+ tasks: ReadonlyArray<import("@layerfi/components/types/tasks").Task>;
6020
+ }[] | undefined;
6021
+ isLoading: boolean;
6022
+ isValidating: boolean;
6023
+ error: any;
6024
+ currentMonthDate: Date;
6025
+ setCurrentMonthDate: (date: Date) => void;
6026
+ activationDate: Date | undefined;
6027
+ currentMonthData: {
6028
+ status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
6029
+ id: string;
6030
+ month: number;
6031
+ year: number;
6032
+ tasks: ReadonlyArray<import("@layerfi/components/types/tasks").Task>;
6033
+ } | undefined;
6034
+ currentYearData: {
6035
+ status: "BOOKKEEPING_NOT_PURCHASED" | "NOT_STARTED" | "IN_PROGRESS_AWAITING_BOOKKEEPER" | "IN_PROGRESS_AWAITING_CUSTOMER" | "CLOSING_IN_REVIEW" | "CLOSED_OPEN_TASKS" | "CLOSED_COMPLETE";
6036
+ id: string;
6037
+ month: number;
6038
+ year: number;
6039
+ tasks: ReadonlyArray<import("@layerfi/components/types/tasks").Task>;
6040
+ }[] | undefined;
6041
+ refetch: () => undefined;
5984
6042
  submitResponseToTask: (taskId: string, userResponse: string) => void;
5985
6043
  uploadDocumentsForTask: (taskId: string, files: File[], description?: string) => Promise<void>;
5986
6044
  deleteUploadsForTask: (taskId: string) => void;
5987
6045
  updateDocUploadTaskDescription: (taskId: string, userResponse: string) => void;
5988
- unresolvedTasks?: number;
5989
- };
5990
- type UseTasksProps = {
5991
- startDate?: Date;
5992
- endDate?: Date;
5993
6046
  };
5994
- export const useTasks: UseTasks;
5995
- export {};
5996
6047
 
5997
6048
  }
5998
6049
  declare module '@layerfi/components/hooks/useVendors' {
@@ -6115,6 +6166,12 @@ declare module '@layerfi/components/icons/ChevronUp' {
6115
6166
  const ChevronUp: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
6116
6167
  export default ChevronUp;
6117
6168
 
6169
+ }
6170
+ declare module '@layerfi/components/icons/Clock' {
6171
+ import { IconSvgProps } from '@layerfi/components/icons/types';
6172
+ const Clock: ({ size, ...props }: IconSvgProps) => import("react/jsx-runtime").JSX.Element;
6173
+ export default Clock;
6174
+
6118
6175
  }
6119
6176
  declare module '@layerfi/components/icons/CloseIcon' {
6120
6177
  import { IconSvgProps } from '@layerfi/components/icons/types';
@@ -6385,7 +6442,7 @@ declare module '@layerfi/components/index' {
6385
6442
  export { StatementOfCashFlow } from '@layerfi/components/components/StatementOfCashFlow/index';
6386
6443
  export { ChartOfAccounts } from '@layerfi/components/components/ChartOfAccounts/index';
6387
6444
  export { Journal } from '@layerfi/components/components/Journal/index';
6388
- export { Tasks } from '@layerfi/components/components/Tasks/index';
6445
+ export { Tasks } from '@layerfi/components/components/Tasks/Tasks';
6389
6446
  export { LinkAccounts } from '@layerfi/components/components/PlatformOnboarding/LinkAccounts';
6390
6447
  export { PlatformOnboarding } from '@layerfi/components/components/PlatformOnboarding/PlatformOnboarding';
6391
6448
  export { BookkeepingUpsellBar } from '@layerfi/components/components/UpsellBanner/index';
@@ -7901,19 +7958,6 @@ declare module '@layerfi/components/types/tasks' {
7901
7958
  export type TasksStatusType = 'COMPLETED' | 'TODO' | 'USER_MARKED_COMPLETED';
7902
7959
  export type TasksResponseType = 'FREE_RESPONSE' | 'UPLOAD_DOCUMENT';
7903
7960
  export function isComplete(taskType: TasksStatusType): boolean;
7904
- export type TasksMonthly = {
7905
- year: number;
7906
- month: number;
7907
- total: number;
7908
- completed: number;
7909
- tasks: Task[];
7910
- };
7911
- export type TasksYearly = {
7912
- year: number;
7913
- total: number;
7914
- completed: number;
7915
- months: TasksMonthly[];
7916
- };
7917
7961
  export {};
7918
7962
 
7919
7963
  }
@@ -8076,6 +8120,11 @@ declare module '@layerfi/components/utils/colors' {
8076
8120
  */
8077
8121
  export const buildColorsPalette: (theme?: LayerThemeConfig) => ColorsPalette;
8078
8122
 
8123
+ }
8124
+ declare module '@layerfi/components/utils/date' {
8125
+ /** Get month name from number. Index starts from 0 (January = 0, December = 11) */
8126
+ export const getMonthNameFromNumber: (month: number) => string;
8127
+
8079
8128
  }
8080
8129
  declare module '@layerfi/components/utils/delay/runDelayed' {
8081
8130
  export function runDelayedSync<T>(block: () => T, delayMs?: number): Promise<T>;