@layerfi/components 0.1.66 → 0.1.68

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
@@ -51,7 +51,8 @@ declare module '@layerfi/components/api/layer/balance_sheet' {
51
51
  }
52
52
  declare module '@layerfi/components/api/layer/bankTransactions' {
53
53
  import { CategoryUpdate, BankTransaction, Metadata } from '@layerfi/components/types';
54
- import { BankTransactionMatch, BankTransactionMatchType, BankTransactionMetadata, DocumentS3Urls, FileMetadata } from '@layerfi/components/types/bank_transactions';
54
+ import { BankTransactionMatch, BankTransactionMatchType, BankTransactionMetadata, DocumentS3Urls } from '@layerfi/components/types/bank_transactions';
55
+ import { FileMetadata } from '@layerfi/components/types/file_upload';
55
56
  import { S3PresignedUrl } from '@layerfi/components/types/general';
56
57
  export type GetBankTransactionsReturn = {
57
58
  data?: BankTransaction[];
@@ -124,6 +125,19 @@ declare module '@layerfi/components/api/layer/bankTransactions' {
124
125
  data: DocumentS3Urls;
125
126
  errors: unknown;
126
127
  }>;
128
+ export const getBankTransactionDocument: (baseUrl: string, accessToken: string | undefined, options?: {
129
+ params?: Record<string, string | undefined> | undefined;
130
+ } | undefined) => () => Promise<{
131
+ data: S3PresignedUrl;
132
+ errors: unknown;
133
+ }>;
134
+ export const archiveBankTransactionDocument: (baseUrl: string, accessToken: string | undefined, options?: {
135
+ params?: Record<string, string | undefined> | undefined;
136
+ body?: Record<string, unknown> | undefined;
137
+ } | undefined) => Promise<{
138
+ data: {};
139
+ errors: unknown;
140
+ }>;
127
141
  export const uploadBankTransactionDocument: (baseUrl: string, accessToken: string) => ({ businessId, bankTransactionId, file, documentType, }: {
128
142
  businessId: string;
129
143
  bankTransactionId: string;
@@ -334,6 +348,13 @@ declare module '@layerfi/components/api/layer/profit_and_loss' {
334
348
  data?: S3PresignedUrl | undefined;
335
349
  error?: unknown;
336
350
  }>;
351
+ export const profitAndLossComparisonCsv: (baseUrl: string, accessToken: string | undefined, options?: {
352
+ params?: Record<string, string | undefined> | undefined;
353
+ body?: Record<string, unknown> | undefined;
354
+ } | undefined) => Promise<{
355
+ data?: S3PresignedUrl | undefined;
356
+ error?: unknown;
357
+ }>;
337
358
 
338
359
  }
339
360
  declare module '@layerfi/components/api/layer/quickbooks' {
@@ -399,6 +420,7 @@ declare module '@layerfi/components/api/layer/statement-of-cash-flow' {
399
420
 
400
421
  }
401
422
  declare module '@layerfi/components/api/layer/tasks' {
423
+ import { FileMetadata } from '@layerfi/components/types/file_upload';
402
424
  import { TaskTypes } from '@layerfi/components/types/tasks';
403
425
  export const getTasks: (baseUrl: string, accessToken: string | undefined, options?: {
404
426
  params?: Record<string, string | undefined> | undefined;
@@ -417,6 +439,14 @@ declare module '@layerfi/components/api/layer/tasks' {
417
439
  } | undefined) => Promise<{
418
440
  data: TaskTypes;
419
441
  }>;
442
+ export const completeTaskWithUpload: (baseUrl: string, accessToken: string) => ({ businessId, taskId, file, }: {
443
+ businessId: string;
444
+ taskId: string;
445
+ file: File;
446
+ }) => Promise<{
447
+ data: FileMetadata;
448
+ errors: unknown;
449
+ }>;
420
450
 
421
451
  }
422
452
  declare module '@layerfi/components/api/layer' {
@@ -485,6 +515,19 @@ declare module '@layerfi/components/api/layer' {
485
515
  data: import("@layerfi/components/types/bank_transactions").DocumentS3Urls;
486
516
  errors: unknown;
487
517
  }>;
518
+ getBankTransactionDocument: (baseUrl: string, accessToken: string | undefined, options?: {
519
+ params?: Record<string, string | undefined> | undefined;
520
+ } | undefined) => () => Promise<{
521
+ data: import("@layerfi/components/types/general").S3PresignedUrl;
522
+ errors: unknown;
523
+ }>;
524
+ archiveBankTransactionDocument: (baseUrl: string, accessToken: string | undefined, options?: {
525
+ params?: Record<string, string | undefined> | undefined;
526
+ body?: Record<string, unknown> | undefined;
527
+ } | undefined) => Promise<{
528
+ data: {};
529
+ errors: unknown;
530
+ }>;
488
531
  updateBankTransactionMetadata: (baseUrl: string, accessToken: string | undefined, options?: {
489
532
  params?: Record<string, string | undefined> | undefined;
490
533
  body?: {
@@ -500,7 +543,7 @@ declare module '@layerfi/components/api/layer' {
500
543
  file: File;
501
544
  documentType: string;
502
545
  }) => Promise<{
503
- data: import("@layerfi/components/types/bank_transactions").FileMetadata;
546
+ data: import("@layerfi/components/types/file_upload").FileMetadata;
504
547
  errors: unknown;
505
548
  }>;
506
549
  getCategories: (baseUrl: string, accessToken: string | undefined, options?: {
@@ -568,6 +611,13 @@ declare module '@layerfi/components/api/layer' {
568
611
  data?: import("@layerfi/components/types/profit_and_loss").ProfitAndLossComparison | undefined;
569
612
  error?: unknown;
570
613
  }>;
614
+ profitAndLossComparisonCsv: (baseUrl: string, accessToken: string | undefined, options?: {
615
+ params?: Record<string, string | undefined> | undefined;
616
+ body?: Record<string, unknown> | undefined;
617
+ } | undefined) => Promise<{
618
+ data?: import("@layerfi/components/types/general").S3PresignedUrl | undefined;
619
+ error?: unknown;
620
+ }>;
571
621
  createJournalEntries: (baseUrl: string, accessToken: string | undefined, options?: {
572
622
  params?: Record<string, string | undefined> | undefined;
573
623
  body?: Record<string, unknown> | undefined;
@@ -635,6 +685,14 @@ declare module '@layerfi/components/api/layer' {
635
685
  } | undefined) => () => Promise<{
636
686
  data: import("@layerfi/components/types/tasks").TaskTypes[];
637
687
  }>;
688
+ completeTaskWithUpload: (baseUrl: string, accessToken: string) => ({ businessId, taskId, file, }: {
689
+ businessId: string;
690
+ taskId: string;
691
+ file: File;
692
+ }) => Promise<{
693
+ data: import("@layerfi/components/types/file_upload").FileMetadata;
694
+ errors: unknown;
695
+ }>;
638
696
  submitResponseToTask: (baseUrl: string, accessToken: string | undefined, options?: {
639
697
  params?: Record<string, string | undefined> | undefined;
640
698
  body?: Record<string, unknown> | undefined;
@@ -1235,7 +1293,7 @@ declare module '@layerfi/components/components/BankTransactions/utils' {
1235
1293
  }
1236
1294
  declare module '@layerfi/components/components/BankTransactionsLoader/BankTransactionsLoader' {
1237
1295
  import React from 'react';
1238
- export const BankTransactionsLoader: ({ isLoading, showTooltips }: {
1296
+ export const BankTransactionsLoader: ({ isLoading, showTooltips, }: {
1239
1297
  isLoading: boolean;
1240
1298
  showTooltips: boolean;
1241
1299
  }) => React.JSX.Element;
@@ -1308,8 +1366,9 @@ declare module '@layerfi/components/components/Button/Button' {
1308
1366
  justify?: ButtonJustify;
1309
1367
  fullWidth?: boolean;
1310
1368
  isProcessing?: boolean;
1369
+ tooltip?: ReactNode | string;
1311
1370
  }
1312
- export const Button: ({ className, children, variant, leftIcon, rightIcon, iconOnly, iconAsPrimary, justify, fullWidth, isProcessing, ...props }: ButtonProps) => React.JSX.Element;
1371
+ export const Button: ({ className, children, variant, leftIcon, rightIcon, iconOnly, iconAsPrimary, justify, fullWidth, isProcessing, tooltip, ...props }: ButtonProps) => React.JSX.Element;
1313
1372
 
1314
1373
  }
1315
1374
  declare module '@layerfi/components/components/Button/CloseButton' {
@@ -1322,6 +1381,7 @@ declare module '@layerfi/components/components/Button/CloseButton' {
1322
1381
  }
1323
1382
  declare module '@layerfi/components/components/Button/DownloadButton' {
1324
1383
  import React from 'react';
1384
+ import { ButtonProps } from '@layerfi/components/components/Button/Button';
1325
1385
  interface DownloadButtonProps {
1326
1386
  onClick?: () => void | Promise<void>;
1327
1387
  iconOnly?: boolean;
@@ -1330,8 +1390,9 @@ declare module '@layerfi/components/components/Button/DownloadButton' {
1330
1390
  text?: string;
1331
1391
  retryText?: string;
1332
1392
  errorText?: string;
1393
+ tooltip?: ButtonProps['tooltip'];
1333
1394
  }
1334
- export const DownloadButton: ({ iconOnly, onClick, isDownloading, requestFailed, text, retryText, errorText, }: DownloadButtonProps) => React.JSX.Element;
1395
+ export const DownloadButton: ({ iconOnly, onClick, isDownloading, requestFailed, tooltip, text, retryText, errorText, }: DownloadButtonProps) => React.JSX.Element;
1335
1396
  export {};
1336
1397
 
1337
1398
  }
@@ -1362,8 +1423,13 @@ declare module '@layerfi/components/components/Button/IconButton' {
1362
1423
  icon: ReactNode;
1363
1424
  active?: boolean;
1364
1425
  withBorder?: boolean;
1426
+ href?: HTMLAnchorElement['href'];
1427
+ target?: HTMLAnchorElement['target'];
1428
+ rel?: HTMLAnchorElement['rel'];
1429
+ download?: HTMLAnchorElement['download'];
1430
+ onClick?: (e: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement, MouseEvent>) => void;
1365
1431
  }
1366
- export const IconButton: ({ className, children, icon, active, withBorder, ...props }: IconButtonProps) => React.JSX.Element;
1432
+ export const IconButton: ({ className, children, icon, active, withBorder, href, target, rel, download, ...props }: IconButtonProps) => React.JSX.Element;
1367
1433
 
1368
1434
  }
1369
1435
  declare module '@layerfi/components/components/Button/Link' {
@@ -1396,6 +1462,7 @@ declare module '@layerfi/components/components/Button/RetryButton' {
1396
1462
  }
1397
1463
  declare module '@layerfi/components/components/Button/SubmitButton' {
1398
1464
  import React, { ButtonHTMLAttributes } from 'react';
1465
+ import { ButtonProps } from '@layerfi/components/components/Button/Button';
1399
1466
  export interface SubmitButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1400
1467
  processing?: boolean;
1401
1468
  disabled?: boolean;
@@ -1404,6 +1471,7 @@ declare module '@layerfi/components/components/Button/SubmitButton' {
1404
1471
  iconOnly?: boolean;
1405
1472
  action?: SubmitAction;
1406
1473
  noIcon?: boolean;
1474
+ tooltip?: ButtonProps['tooltip'];
1407
1475
  }
1408
1476
  export enum SubmitAction {
1409
1477
  SAVE = "save",
@@ -1882,6 +1950,15 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/Expand
1882
1950
  export type SaveHandle = {
1883
1951
  save: () => void;
1884
1952
  };
1953
+ export interface DocumentWithStatus {
1954
+ id?: string;
1955
+ url?: string;
1956
+ status: 'pending' | 'uploaded' | 'failed' | 'deleting';
1957
+ type?: string;
1958
+ name?: string;
1959
+ date?: string;
1960
+ error?: string;
1961
+ }
1885
1962
  export const ExpandedBankTransactionRow: React.ForwardRefExoticComponent<Props & React.RefAttributes<SaveHandle>>;
1886
1963
  export {};
1887
1964
 
@@ -1889,6 +1966,28 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/Expand
1889
1966
  declare module '@layerfi/components/components/ExpandedBankTransactionRow/index' {
1890
1967
  export { ExpandedBankTransactionRow } from '@layerfi/components/components/ExpandedBankTransactionRow/ExpandedBankTransactionRow';
1891
1968
 
1969
+ }
1970
+ declare module '@layerfi/components/components/FileThumb/FileThumb' {
1971
+ import React from 'react';
1972
+ export interface FileThumbProps {
1973
+ url?: string;
1974
+ type?: string;
1975
+ uploadPending?: boolean;
1976
+ deletePending?: boolean;
1977
+ name?: string;
1978
+ date?: string;
1979
+ onDelete?: () => void;
1980
+ enableOpen?: boolean;
1981
+ onOpen?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
1982
+ enableDownload?: boolean;
1983
+ error?: string;
1984
+ }
1985
+ export const FileThumb: ({ url, type, uploadPending, deletePending, name, date, onDelete, enableOpen, onOpen, enableDownload, error, }: FileThumbProps) => React.JSX.Element;
1986
+
1987
+ }
1988
+ declare module '@layerfi/components/components/FileThumb/index' {
1989
+ export { FileThumb } from '@layerfi/components/components/FileThumb/FileThumb';
1990
+
1892
1991
  }
1893
1992
  declare module '@layerfi/components/components/GlobalWidgets/GlobalWidgets' {
1894
1993
  import React from 'react';
@@ -1974,8 +2073,10 @@ declare module '@layerfi/components/components/Input/FileInput' {
1974
2073
  export interface FileInputProps {
1975
2074
  text?: string;
1976
2075
  onUpload?: (file: File) => void;
2076
+ disabled?: boolean;
2077
+ secondary?: boolean;
1977
2078
  }
1978
- export const FileInput: ({ text, onUpload }: FileInputProps) => React.JSX.Element;
2079
+ export const FileInput: ({ text, onUpload, disabled, secondary, }: FileInputProps) => React.JSX.Element;
1979
2080
 
1980
2081
  }
1981
2082
  declare module '@layerfi/components/components/Input/Input' {
@@ -2545,6 +2646,10 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
2545
2646
  compareOptions: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[];
2546
2647
  setCompareOptions: (options: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[]) => void;
2547
2648
  refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean | undefined) => void;
2649
+ getProfitAndLossComparisonCsv: (dateRange: import("@layerfi/components/types").DateRange, moneyFormat?: import("../../types").MoneyFormat | undefined) => Promise<{
2650
+ data?: import("@layerfi/components/types/general").S3PresignedUrl | undefined;
2651
+ error?: unknown;
2652
+ }>;
2548
2653
  }>;
2549
2654
  DatePicker: ({ datePickerMode, }: import("@layerfi/components/components/ProfitAndLossDatePicker/ProfitAndLossDatePicker").ProfitAndLossDatePickerProps) => React.JSX.Element;
2550
2655
  CompareOptions: ({ tagComparisonOptions, defaultTagFilter: defaultOption, }: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").ProfitAndLossCompareOptionsProps) => React.JSX.Element;
@@ -2564,7 +2669,7 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
2564
2669
  }) => React.JSX.Element;
2565
2670
  Header: ({ text, className, headingClassName, withDatePicker, }: import("@layerfi/components/components/ProfitAndLossHeader/ProfitAndLossHeader").ProfitAndLossHeaderProps) => React.JSX.Element;
2566
2671
  Report: ({ stringOverrides, comparisonConfig, datePickerMode, csvMoneyFormat, parentRef, view, }: import("@layerfi/components/components/ProfitAndLossReport/ProfitAndLossReport").ProfitAndLossReportProps) => React.JSX.Element;
2567
- DownloadButton: ({ stringOverrides, moneyFormat, view, }: import("@layerfi/components/components/ProfitAndLossDownloadButton/ProfitAndLossDownloadButton").ProfitAndLossDownloadButtonProps) => React.JSX.Element;
2672
+ DownloadButton: ({ stringOverrides, useComparisonPnl, moneyFormat, view, }: import("@layerfi/components/components/ProfitAndLossDownloadButton/ProfitAndLossDownloadButton").ProfitAndLossDownloadButtonProps) => React.JSX.Element;
2568
2673
  };
2569
2674
  export { ProfitAndLoss };
2570
2675
 
@@ -2734,10 +2839,11 @@ declare module '@layerfi/components/components/ProfitAndLossDownloadButton/Profi
2734
2839
  }
2735
2840
  export interface ProfitAndLossDownloadButtonProps {
2736
2841
  stringOverrides?: PnLDownloadButtonStringOverrides;
2842
+ useComparisonPnl?: boolean;
2737
2843
  moneyFormat?: MoneyFormat;
2738
2844
  view: ViewBreakpoint;
2739
2845
  }
2740
- export const ProfitAndLossDownloadButton: ({ stringOverrides, moneyFormat, view, }: ProfitAndLossDownloadButtonProps) => React.JSX.Element;
2846
+ export const ProfitAndLossDownloadButton: ({ stringOverrides, useComparisonPnl, moneyFormat, view, }: ProfitAndLossDownloadButtonProps) => React.JSX.Element;
2741
2847
  export {};
2742
2848
 
2743
2849
  }
@@ -3096,6 +3202,7 @@ declare module '@layerfi/components/components/Tasks/Tasks' {
3096
3202
  error?: unknown;
3097
3203
  refetch: () => void;
3098
3204
  submitResponseToTask: (taskId: string, userResponse: string) => void;
3205
+ uploadDocumentForTask: (taskId: string, file: File) => void;
3099
3206
  }>;
3100
3207
  export const useTasksContext: () => {
3101
3208
  data?: import("@layerfi/components/types/tasks").TaskTypes[] | undefined;
@@ -3105,6 +3212,7 @@ declare module '@layerfi/components/components/Tasks/Tasks' {
3105
3212
  error?: unknown;
3106
3213
  refetch: () => void;
3107
3214
  submitResponseToTask: (taskId: string, userResponse: string) => void;
3215
+ uploadDocumentForTask: (taskId: string, file: File) => void;
3108
3216
  };
3109
3217
  export interface TasksStringOverrides {
3110
3218
  header?: string;
@@ -3794,6 +3902,7 @@ declare module '@layerfi/components/contexts/LinkedAccountsContext/index' {
3794
3902
  }
3795
3903
  declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/ProfitAndLossComparisonContext' {
3796
3904
  /// <reference types="react" />
3905
+ import { S3PresignedUrl } from '@layerfi/components/types/general';
3797
3906
  export const PNLComparisonContext: import("react").Context<{
3798
3907
  data: import("@layerfi/components/types/profit_and_loss").ProfitAndLossComparisonItem[] | undefined;
3799
3908
  isLoading: boolean;
@@ -3806,6 +3915,10 @@ declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/Prof
3806
3915
  compareOptions: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[];
3807
3916
  setCompareOptions: (options: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[]) => void;
3808
3917
  refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean | undefined) => void;
3918
+ getProfitAndLossComparisonCsv: (dateRange: import("@layerfi/components/types").DateRange, moneyFormat?: import("../../types").MoneyFormat | undefined) => Promise<{
3919
+ data?: S3PresignedUrl | undefined;
3920
+ error?: unknown;
3921
+ }>;
3809
3922
  }>;
3810
3923
 
3811
3924
  }
@@ -3856,6 +3969,7 @@ declare module '@layerfi/components/contexts/TasksContext/TasksContext' {
3856
3969
  error?: unknown;
3857
3970
  refetch: () => void;
3858
3971
  submitResponseToTask: (taskId: string, userResponse: string) => void;
3972
+ uploadDocumentForTask: (taskId: string, file: File) => void;
3859
3973
  }>;
3860
3974
 
3861
3975
  }
@@ -4283,7 +4397,8 @@ declare module '@layerfi/components/hooks/useProfitAndLossComparison/index' {
4283
4397
  }
4284
4398
  declare module '@layerfi/components/hooks/useProfitAndLossComparison/useProfitAndLossComparison' {
4285
4399
  import { TagComparisonOption } from '@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions';
4286
- import { DateRange, ReportingBasis } from '@layerfi/components/types';
4400
+ import { DateRange, MoneyFormat, ReportingBasis } from '@layerfi/components/types';
4401
+ import { S3PresignedUrl } from '@layerfi/components/types/general';
4287
4402
  import { ProfitAndLossComparisonItem } from '@layerfi/components/types/profit_and_loss';
4288
4403
  export type Scope = 'expenses' | 'revenue';
4289
4404
  export type SidebarScope = Scope | undefined;
@@ -4302,6 +4417,10 @@ declare module '@layerfi/components/hooks/useProfitAndLossComparison/useProfitAn
4302
4417
  compareOptions: TagComparisonOption[];
4303
4418
  setCompareOptions: (options: TagComparisonOption[]) => void;
4304
4419
  refetch: (dateRange: DateRange, actAsInitial?: boolean) => void;
4420
+ getProfitAndLossComparisonCsv: (dateRange: DateRange, moneyFormat?: MoneyFormat) => Promise<{
4421
+ data?: S3PresignedUrl;
4422
+ error?: unknown;
4423
+ }>;
4305
4424
  };
4306
4425
  export const useProfitAndLossComparison: UseProfitAndLossComparison;
4307
4426
  export {};
@@ -4355,6 +4474,11 @@ declare module '@layerfi/components/hooks/useTableExpandRow/useTableExpandRow' {
4355
4474
  declare module '@layerfi/components/hooks/useTasks/index' {
4356
4475
  export { useTasks } from '@layerfi/components/hooks/useTasks/useTasks';
4357
4476
 
4477
+ }
4478
+ declare module '@layerfi/components/hooks/useTasks/mockData' {
4479
+ import { TaskTypes } from '@layerfi/components/types/tasks';
4480
+ export const mockData: TaskTypes[];
4481
+
4358
4482
  }
4359
4483
  declare module '@layerfi/components/hooks/useTasks/useTasks' {
4360
4484
  import { LoadedStatus } from '@layerfi/components/types/general';
@@ -4367,6 +4491,7 @@ declare module '@layerfi/components/hooks/useTasks/useTasks' {
4367
4491
  error?: unknown;
4368
4492
  refetch: () => void;
4369
4493
  submitResponseToTask: (taskId: string, userResponse: string) => void;
4494
+ uploadDocumentForTask: (taskId: string, file: File) => void;
4370
4495
  };
4371
4496
  export const useTasks: UseTasks;
4372
4497
  export {};
@@ -4514,6 +4639,20 @@ declare module '@layerfi/components/icons/Expand' {
4514
4639
  const Expand: ({ ...props }: IconSvgProps) => React.JSX.Element;
4515
4640
  export default Expand;
4516
4641
 
4642
+ }
4643
+ declare module '@layerfi/components/icons/Eye' {
4644
+ import * as React from 'react';
4645
+ import { IconSvgProps } from '@layerfi/components/icons/types';
4646
+ const Eye: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
4647
+ export default Eye;
4648
+
4649
+ }
4650
+ declare module '@layerfi/components/icons/File' {
4651
+ import * as React from 'react';
4652
+ import { IconSvgProps } from '@layerfi/components/icons/types';
4653
+ const File: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
4654
+ export default File;
4655
+
4517
4656
  }
4518
4657
  declare module '@layerfi/components/icons/Folder' {
4519
4658
  import * as React from 'react';
@@ -4893,6 +5032,8 @@ declare module '@layerfi/components/types/bank_transactions' {
4893
5032
  processing?: boolean;
4894
5033
  suggested_matches?: SuggestedMatch[];
4895
5034
  match?: BankTransactionMatch;
5035
+ document_ids: String[];
5036
+ metadata: BankTransactionMetadata;
4896
5037
  }
4897
5038
  export interface SuggestedMatch {
4898
5039
  id: string;
@@ -4924,13 +5065,6 @@ declare module '@layerfi/components/types/bank_transactions' {
4924
5065
  type: 'Document_S3_Urls';
4925
5066
  documentUrls: S3PresignedUrl[];
4926
5067
  }
4927
- export interface FileMetadata {
4928
- type: 'File_Metadata';
4929
- id: string | null;
4930
- fileType: string;
4931
- fileName: string;
4932
- documentType: string;
4933
- }
4934
5068
 
4935
5069
  }
4936
5070
  declare module '@layerfi/components/types/business' {
@@ -5095,6 +5229,17 @@ declare module '@layerfi/components/types/chart_of_accounts' {
5095
5229
  account_subtype?: string;
5096
5230
  };
5097
5231
 
5232
+ }
5233
+ declare module '@layerfi/components/types/file_upload' {
5234
+ export interface FileMetadata {
5235
+ type: 'File_Metadata';
5236
+ id: string | null;
5237
+ fileType: string;
5238
+ fileName: string;
5239
+ documentType: DocumentType;
5240
+ }
5241
+ export type DocumentType = 'RECEIPT' | 'BANK_STATEMENT' | 'LOAN_STATEMENT' | 'PAYROLL_STATEMENT' | 'PAYOUT_STATEMENT' | 'OTHER';
5242
+
5098
5243
  }
5099
5244
  declare module '@layerfi/components/types/general' {
5100
5245
  export type SortDirection = 'asc' | 'desc';
@@ -5107,6 +5252,8 @@ declare module '@layerfi/components/types/general' {
5107
5252
  type: 'S3_Presigned_Url';
5108
5253
  presignedUrl: string;
5109
5254
  fileType: string;
5255
+ fileName: string;
5256
+ createdAt: string;
5110
5257
  }
5111
5258
  export type LoadedStatus = 'initial' | 'loading' | 'complete';
5112
5259
  export enum DataModel {
@@ -5139,7 +5286,7 @@ declare module '@layerfi/components/types/journal' {
5139
5286
  entry_at: string;
5140
5287
  reversal_of_id: string | null;
5141
5288
  reversal_id: string | null;
5142
- line_items: JournalEntryLineItem[];
5289
+ line_items: JournalEntryLine[];
5143
5290
  source?: LedgerEntrySource;
5144
5291
  }
5145
5292
  export interface JournalEntryLine {
@@ -5400,9 +5547,16 @@ declare module '@layerfi/components/types/ledger_accounts' {
5400
5547
  invoice_number: string;
5401
5548
  amount: number;
5402
5549
  }
5550
+ export interface RefundLedgerEntrySource extends LedgerEntrySource {
5551
+ external_id: string;
5552
+ refund_id: string;
5553
+ refunded_to_customer_amount: number;
5554
+ recipient_name: string;
5555
+ }
5403
5556
  export interface RefundPaymentLedgerEntrySource extends LedgerEntrySource {
5404
5557
  external_id: string;
5405
5558
  refund_id: string;
5559
+ refund_payment_id: string;
5406
5560
  refunded_to_customer_amount: number;
5407
5561
  recipient_name: string;
5408
5562
  }
@@ -5625,6 +5779,7 @@ declare module '@layerfi/components/types/table' {
5625
5779
 
5626
5780
  }
5627
5781
  declare module '@layerfi/components/types/tasks' {
5782
+ import { DocumentType } from '@layerfi/components/types/file_upload';
5628
5783
  export interface TaskTypes {
5629
5784
  id: string;
5630
5785
  question: string;
@@ -5632,16 +5787,17 @@ declare module '@layerfi/components/types/tasks' {
5632
5787
  title: string;
5633
5788
  transaction_id: string | null;
5634
5789
  type: string;
5635
- user_marked_completed_at: string;
5636
- user_response: string;
5790
+ user_marked_completed_at: string | null;
5791
+ user_response: string | null;
5637
5792
  user_response_type: TasksResponseType;
5638
5793
  archived_at: string | null;
5639
- completed_at: string;
5794
+ completed_at: string | null;
5640
5795
  created_at: string;
5641
5796
  updated_at: string;
5797
+ document_type: DocumentType;
5642
5798
  }
5643
5799
  export type TasksStatusType = 'COMPLETED' | 'TODO' | 'USER_MARKED_COMPLETED';
5644
- export type TasksResponseType = 'FREE_RESPONSE';
5800
+ export type TasksResponseType = 'FREE_RESPONSE' | 'UPLOAD_DOCUMENT';
5645
5801
  export function isComplete(taskType: TasksStatusType): boolean;
5646
5802
 
5647
5803
  }