@layerfi/components 0.1.112-alpha.1 → 0.1.112-alpha.2

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
@@ -28,8 +28,8 @@ declare module '@layerfi/components/api/layer/authenticated_http' {
28
28
 
29
29
  }
30
30
  declare module '@layerfi/components/api/layer/balance_sheet' {
31
- import { BalanceSheet } from '@layerfi/components/types';
32
31
  import type { S3PresignedUrl } from '@layerfi/components/types/general';
32
+ import type { BalanceSheet } from '@layerfi/components/types/balance_sheet';
33
33
  type GetBalanceSheetParams = {
34
34
  businessId: string;
35
35
  effectiveDate: Date;
@@ -53,8 +53,8 @@ declare module '@layerfi/components/api/layer/balance_sheet' {
53
53
 
54
54
  }
55
55
  declare module '@layerfi/components/api/layer/bankTransactions' {
56
- import { CategoryUpdate, BankTransaction } from '@layerfi/components/types';
57
- import { BankTransactionMatch, BankTransactionMetadata, DocumentS3Urls } from '@layerfi/components/types/bank_transactions';
56
+ import { BankTransactionMatch, BankTransactionMetadata, DocumentS3Urls, type BankTransaction } from '@layerfi/components/types/bank_transactions';
57
+ import type { CategoryUpdate } from '@layerfi/components/types/categories';
58
58
  import { FileMetadata } from '@layerfi/components/types/file_upload';
59
59
  import { S3PresignedUrl } from '@layerfi/components/types/general';
60
60
  export type GetBankTransactionsReturn = {
@@ -158,7 +158,7 @@ declare module '@layerfi/components/api/layer/bankTransactions' {
158
158
 
159
159
  }
160
160
  declare module '@layerfi/components/api/layer/bills' {
161
- import { Metadata } from '@layerfi/components/types';
161
+ import type { Metadata } from '@layerfi/components/types/api';
162
162
  import { Bill, BillLineItem, BillPayment, SalesTax } from '@layerfi/components/types/bills';
163
163
  export type GetBillsReturn = {
164
164
  data?: Bill[];
@@ -215,7 +215,7 @@ declare module '@layerfi/components/api/layer/bills' {
215
215
 
216
216
  }
217
217
  declare module '@layerfi/components/api/layer/business' {
218
- import { Business } from '@layerfi/components/types';
218
+ import type { Business } from '@layerfi/components/types/business';
219
219
  export type UpdateBusinessBody = Partial<Business>;
220
220
  export const getBusiness: (baseUrl: string, accessToken: string | undefined, options?: {
221
221
  params?: Record<string, string | undefined> | undefined;
@@ -259,10 +259,10 @@ declare module '@layerfi/components/api/layer/businessPersonnel/updateBusinessPe
259
259
 
260
260
  }
261
261
  declare module '@layerfi/components/api/layer/chart_of_accounts' {
262
- import { SingleChartAccountEncodedType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
263
- import { NewAccount, EditAccount, NewChildAccount, LedgerAccountsEntry } from '@layerfi/components/types';
264
- import { S3PresignedUrl } from '@layerfi/components/types/general';
265
- import { LedgerAccountLineItems } from '@layerfi/components/types/ledger_accounts';
262
+ import type { SingleChartAccountEncodedType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
263
+ import type { NewAccount, EditAccount, NewChildAccount } from '@layerfi/components/types/chart_of_accounts';
264
+ import type { S3PresignedUrl } from '@layerfi/components/types/general';
265
+ import type { LedgerAccountLineItems, LedgerAccountsEntry } from '@layerfi/components/types/ledger_accounts';
266
266
  export const createAccount: (baseUrl: string, accessToken: string | undefined, options?: {
267
267
  params?: Record<string, string | undefined> | undefined;
268
268
  body?: NewAccount | undefined;
@@ -521,8 +521,8 @@ declare module '@layerfi/components/api/layer/quickbooks' {
521
521
 
522
522
  }
523
523
  declare module '@layerfi/components/api/layer/statement-of-cash-flow' {
524
- import { StatementOfCashFlow } from '@layerfi/components/types';
525
524
  import type { S3PresignedUrl } from '@layerfi/components/types/general';
525
+ import type { StatementOfCashFlow } from '@layerfi/components/types/statement_of_cash_flow';
526
526
  type GetStatementOfCashFlowParams = {
527
527
  businessId: string;
528
528
  startDate: Date;
@@ -604,23 +604,23 @@ declare module '@layerfi/components/api/layer' {
604
604
  getBusiness: (baseUrl: string, accessToken: string | undefined, options?: {
605
605
  params?: Record<string, string | undefined> | undefined;
606
606
  } | undefined) => () => Promise<{
607
- data: import("@layerfi/components/types").Business;
607
+ data: import("@layerfi/components/types/business").Business;
608
608
  }>;
609
609
  createAccount: (baseUrl: string, accessToken: string | undefined, options?: {
610
610
  params?: Record<string, string | undefined> | undefined;
611
- body?: import("@layerfi/components/types").NewAccount | undefined;
611
+ body?: import("@layerfi/components/types/chart_of_accounts").NewAccount | undefined;
612
612
  } | undefined) => Promise<{
613
613
  data: import("@layerfi/components/schemas/generalLedger/ledgerAccount").SingleChartAccountEncodedType;
614
614
  }>;
615
615
  updateAccount: (baseUrl: string, accessToken: string | undefined, options?: {
616
616
  params?: Record<string, string | undefined> | undefined;
617
- body?: import("@layerfi/components/types").EditAccount | undefined;
617
+ body?: import("@layerfi/components/types/chart_of_accounts").EditAccount | undefined;
618
618
  } | undefined) => Promise<{
619
619
  data: import("@layerfi/components/schemas/generalLedger/ledgerAccount").SingleChartAccountEncodedType;
620
620
  }>;
621
621
  createChildAccount: (baseUrl: string, accessToken: string | undefined, options?: {
622
622
  params?: Record<string, string | undefined> | undefined;
623
- body?: import("@layerfi/components/types").NewChildAccount | undefined;
623
+ body?: import("@layerfi/components/types/chart_of_accounts").NewChildAccount | undefined;
624
624
  } | undefined) => Promise<{
625
625
  data: import("@layerfi/components/schemas/generalLedger/ledgerAccount").SingleChartAccountEncodedType;
626
626
  }>;
@@ -630,7 +630,7 @@ declare module '@layerfi/components/api/layer' {
630
630
  effectiveDate: Date;
631
631
  } | undefined;
632
632
  } | undefined) => () => Promise<{
633
- data: import("@layerfi/components/types").BalanceSheet;
633
+ data: import("@layerfi/components/types/balance_sheet").BalanceSheet;
634
634
  }>;
635
635
  getBalanceSheetCSV: (baseUrl: string, accessToken: string | undefined, options?: {
636
636
  params?: {
@@ -700,19 +700,19 @@ declare module '@layerfi/components/api/layer' {
700
700
  billId: string;
701
701
  } | undefined;
702
702
  } | undefined) => () => Promise<{
703
- data: import("@layerfi/components/types").Bill;
703
+ data: import("@layerfi/components/types/bills").Bill;
704
704
  }>;
705
705
  createBill: (baseUrl: string, accessToken: string | undefined, options?: {
706
706
  params?: Record<string, string | undefined> | undefined;
707
707
  body?: import("@layerfi/components/api/layer/bills").SaveBillPayload | undefined;
708
708
  } | undefined) => Promise<{
709
- data: import("@layerfi/components/types").Bill;
709
+ data: import("@layerfi/components/types/bills").Bill;
710
710
  }>;
711
711
  updateBill: (baseUrl: string, accessToken: string | undefined, options?: {
712
712
  params?: Record<string, string | undefined> | undefined;
713
713
  body?: import("@layerfi/components/api/layer/bills").SaveBillPayload | undefined;
714
714
  } | undefined) => Promise<{
715
- data: import("@layerfi/components/types").Bill;
715
+ data: import("@layerfi/components/types/bills").Bill;
716
716
  }>;
717
717
  createBillPayment: (baseUrl: string, accessToken: string | undefined, options?: {
718
718
  params?: Record<string, string | undefined> | undefined;
@@ -728,12 +728,12 @@ declare module '@layerfi/components/api/layer' {
728
728
  getLedgerAccountsLines: (baseUrl: string, accessToken: string | undefined, options?: {
729
729
  params?: Record<string, string | undefined> | undefined;
730
730
  } | undefined) => () => Promise<{
731
- data: import("@layerfi/components/types").LedgerAccounts;
731
+ data: import("@layerfi/components/types/ledger_accounts").LedgerAccountLineItems;
732
732
  }>;
733
733
  getLedgerAccountsEntry: (baseUrl: string, accessToken: string | undefined, options?: {
734
734
  params?: Record<string, string | undefined> | undefined;
735
735
  } | undefined) => () => Promise<{
736
- data: import("@layerfi/components/types").LedgerAccountsEntry;
736
+ data: import("@layerfi/components/types/ledger_accounts").LedgerAccountsEntry;
737
737
  }>;
738
738
  getProfitAndLossCsv: (apiUrl: string, accessToken: string | undefined, params: {
739
739
  businessId: string;
@@ -792,7 +792,7 @@ declare module '@layerfi/components/api/layer' {
792
792
  params?: Record<string, string | undefined> | undefined;
793
793
  body?: Record<string, unknown> | undefined;
794
794
  } | undefined) => Promise<{
795
- data: import("@layerfi/components/types").JournalEntry[];
795
+ data: import("@layerfi/components/types/journal").JournalEntry[];
796
796
  }>;
797
797
  getPlaidLinkToken: (baseUrl: string, accessToken: string | undefined, options?: {
798
798
  params?: {
@@ -902,7 +902,7 @@ declare module '@layerfi/components/api/layer' {
902
902
  endDate: Date;
903
903
  } | undefined;
904
904
  } | undefined) => () => Promise<{
905
- data: import("@layerfi/components/types").StatementOfCashFlow;
905
+ data: import("@layerfi/components/types/statement_of_cash_flow").StatementOfCashFlow;
906
906
  }>;
907
907
  syncFromQuickbooks: (baseUrl: string, accessToken: string | undefined, options?: {
908
908
  params?: {
@@ -976,7 +976,7 @@ declare module '@layerfi/components/components/ActionableList/ActionableList' {
976
976
 
977
977
  }
978
978
  declare module '@layerfi/components/components/ActionableList/index' {
979
- export { ActionableList, ActionableListOption } from '@layerfi/components/components/ActionableList/ActionableList';
979
+ export { ActionableList } from '@layerfi/components/components/ActionableList/ActionableList';
980
980
 
981
981
  }
982
982
  declare module '@layerfi/components/components/ActionableRow/ActionableRow' {
@@ -1120,7 +1120,7 @@ declare module '@layerfi/components/components/BalanceSheetExpandAllButton/index
1120
1120
 
1121
1121
  }
1122
1122
  declare module '@layerfi/components/components/BalanceSheetTable/BalanceSheetTable' {
1123
- import { BalanceSheet } from '@layerfi/components/types';
1123
+ import type { BalanceSheet } from '@layerfi/components/types/balance_sheet';
1124
1124
  export interface BalanceSheetTableStringOverrides {
1125
1125
  typeColumnHeader?: string;
1126
1126
  totalColumnHeader?: string;
@@ -1143,7 +1143,7 @@ declare module '@layerfi/components/components/BalanceSheetTable/index' {
1143
1143
 
1144
1144
  }
1145
1145
  declare module '@layerfi/components/components/BankTransactionList/Assignment' {
1146
- import { BankTransaction } from '@layerfi/components/types';
1146
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1147
1147
  export interface AssignmentProps {
1148
1148
  bankTransaction: BankTransaction;
1149
1149
  }
@@ -1151,7 +1151,7 @@ declare module '@layerfi/components/components/BankTransactionList/Assignment' {
1151
1151
 
1152
1152
  }
1153
1153
  declare module '@layerfi/components/components/BankTransactionList/BankTransactionList' {
1154
- import { BankTransaction } from '@layerfi/components/types';
1154
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1155
1155
  import { BankTransactionCTAStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
1156
1156
  interface BankTransactionListProps {
1157
1157
  bankTransactions?: BankTransaction[];
@@ -1168,7 +1168,7 @@ declare module '@layerfi/components/components/BankTransactionList/BankTransacti
1168
1168
 
1169
1169
  }
1170
1170
  declare module '@layerfi/components/components/BankTransactionList/BankTransactionListItem' {
1171
- import { BankTransaction } from '@layerfi/components/types';
1171
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1172
1172
  import { BankTransactionCTAStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
1173
1173
  type Props = {
1174
1174
  index: number;
@@ -1195,7 +1195,7 @@ declare module '@layerfi/components/components/BankTransactionList/index' {
1195
1195
 
1196
1196
  }
1197
1197
  declare module '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileForms' {
1198
- import { BankTransaction } from '@layerfi/components/types';
1198
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1199
1199
  import { Purpose } from '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileListItem';
1200
1200
  interface BankTransactionMobileFormsProps {
1201
1201
  isOpen?: boolean;
@@ -1211,7 +1211,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
1211
1211
 
1212
1212
  }
1213
1213
  declare module '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileList' {
1214
- import { BankTransaction } from '@layerfi/components/types';
1214
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1215
1215
  export interface BankTransactionMobileListProps {
1216
1216
  bankTransactions?: BankTransaction[];
1217
1217
  editable: boolean;
@@ -1225,7 +1225,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
1225
1225
 
1226
1226
  }
1227
1227
  declare module '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileListItem' {
1228
- import { BankTransaction } from '@layerfi/components/types';
1228
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1229
1229
  export interface BankTransactionMobileListItemProps {
1230
1230
  index: number;
1231
1231
  bankTransaction: BankTransaction;
@@ -1256,7 +1256,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Busines
1256
1256
 
1257
1257
  }
1258
1258
  declare module '@layerfi/components/components/BankTransactionMobileList/BusinessForm' {
1259
- import { BankTransaction } from '@layerfi/components/types';
1259
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1260
1260
  interface BusinessFormProps {
1261
1261
  bankTransaction: BankTransaction;
1262
1262
  showCategorization?: boolean;
@@ -1269,7 +1269,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Busines
1269
1269
 
1270
1270
  }
1271
1271
  declare module '@layerfi/components/components/BankTransactionMobileList/MatchForm' {
1272
- import { BankTransaction } from '@layerfi/components/types';
1272
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1273
1273
  export const MatchForm: ({ bankTransaction, showReceiptUploads, showDescriptions, showCategorization, }: {
1274
1274
  bankTransaction: BankTransaction;
1275
1275
  showReceiptUploads?: boolean;
@@ -1279,7 +1279,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/MatchFo
1279
1279
 
1280
1280
  }
1281
1281
  declare module '@layerfi/components/components/BankTransactionMobileList/PersonalForm' {
1282
- import { BankTransaction } from '@layerfi/components/types';
1282
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1283
1283
  interface PersonalFormProps {
1284
1284
  bankTransaction: BankTransaction;
1285
1285
  showReceiptUploads?: boolean;
@@ -1291,7 +1291,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Persona
1291
1291
 
1292
1292
  }
1293
1293
  declare module '@layerfi/components/components/BankTransactionMobileList/SplitAndMatchForm' {
1294
- import { BankTransaction } from '@layerfi/components/types';
1294
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1295
1295
  interface SplitAndMatchFormProps {
1296
1296
  bankTransaction: BankTransaction;
1297
1297
  showTooltips: boolean;
@@ -1304,7 +1304,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/SplitAn
1304
1304
 
1305
1305
  }
1306
1306
  declare module '@layerfi/components/components/BankTransactionMobileList/SplitForm' {
1307
- import { BankTransaction } from '@layerfi/components/types';
1307
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1308
1308
  export const SplitForm: ({ bankTransaction, showTooltips, showCategorization, showReceiptUploads, showDescriptions, }: {
1309
1309
  bankTransaction: BankTransaction;
1310
1310
  showTooltips: boolean;
@@ -1338,7 +1338,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/constan
1338
1338
 
1339
1339
  }
1340
1340
  declare module '@layerfi/components/components/BankTransactionMobileList/utils' {
1341
- import { BankTransaction } from '@layerfi/components/types';
1341
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1342
1342
  import type { CategoryWithEntries } from '@layerfi/components/types/bank_transactions';
1343
1343
  import { CategoryOptionPayload } from '@layerfi/components/components/CategorySelect/CategorySelect';
1344
1344
  export interface Option {
@@ -1360,7 +1360,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/utils'
1360
1360
 
1361
1361
  }
1362
1362
  declare module '@layerfi/components/components/BankTransactionReceipts/BankTransactionReceipts' {
1363
- import { BankTransaction } from '@layerfi/components/types';
1363
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1364
1364
  export interface DocumentWithStatus {
1365
1365
  id?: string;
1366
1366
  url?: string;
@@ -1394,7 +1394,7 @@ declare module '@layerfi/components/components/BankTransactionReceipts/index' {
1394
1394
 
1395
1395
  }
1396
1396
  declare module '@layerfi/components/components/BankTransactionRow/BankTransactionRow' {
1397
- import { BankTransaction } from '@layerfi/components/types';
1397
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1398
1398
  import { BankTransactionCTAStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
1399
1399
  import type { CategoryWithEntries } from '@layerfi/components/types/bank_transactions';
1400
1400
  type Props = {
@@ -1420,7 +1420,7 @@ declare module '@layerfi/components/components/BankTransactionRow/BankTransactio
1420
1420
 
1421
1421
  }
1422
1422
  declare module '@layerfi/components/components/BankTransactionRow/MatchBadge' {
1423
- import { BankTransaction } from '@layerfi/components/types';
1423
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1424
1424
  export interface MatchBadgeProps {
1425
1425
  bankTransaction: BankTransaction;
1426
1426
  classNamePrefix: string;
@@ -1446,7 +1446,7 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactionM
1446
1446
 
1447
1447
  }
1448
1448
  declare module '@layerfi/components/components/BankTransactions/BankTransactionMemo/useBankTransactionMemo' {
1449
- import { BankTransaction } from '@layerfi/components/types';
1449
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1450
1450
  interface BankTransactionMemoProps {
1451
1451
  bankTransactionId: BankTransaction['id'];
1452
1452
  }
@@ -1600,7 +1600,7 @@ declare module '@layerfi/components/components/BankTransactions/constants' {
1600
1600
 
1601
1601
  }
1602
1602
  declare module '@layerfi/components/components/BankTransactions/utils' {
1603
- import { BankTransaction, DisplayState } from '@layerfi/components/types';
1603
+ import { BankTransaction, DisplayState } from '@layerfi/components/types/bank_transactions';
1604
1604
  export const filterVisibility: (scope: DisplayState, bankTransaction: BankTransaction) => boolean;
1605
1605
  export const isCategorized: (bankTransaction: BankTransaction) => boolean;
1606
1606
 
@@ -1617,7 +1617,7 @@ declare module '@layerfi/components/components/BankTransactionsLoader/index' {
1617
1617
 
1618
1618
  }
1619
1619
  declare module '@layerfi/components/components/BankTransactionsTable/BankTransactionsTable' {
1620
- import { BankTransaction } from '@layerfi/components/types';
1620
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1621
1621
  import { BankTransactionsStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
1622
1622
  export interface BankTransactionsTableStringOverrides {
1623
1623
  dateColumnHeaderText?: string;
@@ -1682,7 +1682,7 @@ declare module '@layerfi/components/components/BaseDetailView/BaseDetailView' {
1682
1682
 
1683
1683
  }
1684
1684
  declare module '@layerfi/components/components/Bills/BillSummary' {
1685
- import type { Bill } from '@layerfi/components/types';
1685
+ import type { Bill } from '@layerfi/components/types/bills';
1686
1686
  type BillSummaryProps = {
1687
1687
  bill: Bill;
1688
1688
  };
@@ -1691,7 +1691,7 @@ declare module '@layerfi/components/components/Bills/BillSummary' {
1691
1691
 
1692
1692
  }
1693
1693
  declare module '@layerfi/components/components/Bills/BillSummaryPaid' {
1694
- import { Bill } from '@layerfi/components/types';
1694
+ import type { Bill } from '@layerfi/components/types/bills';
1695
1695
  type BillSummaryPaidProps = {
1696
1696
  bill: Bill;
1697
1697
  };
@@ -1700,7 +1700,7 @@ declare module '@layerfi/components/components/Bills/BillSummaryPaid' {
1700
1700
 
1701
1701
  }
1702
1702
  declare module '@layerfi/components/components/Bills/BillSummaryUnpaid' {
1703
- import { Bill } from '@layerfi/components/types';
1703
+ import type { Bill } from '@layerfi/components/types/bills';
1704
1704
  type BillSummaryUnpaidProps = {
1705
1705
  bill: Bill;
1706
1706
  };
@@ -1729,7 +1729,7 @@ declare module '@layerfi/components/components/Bills/BillsDatePicker' {
1729
1729
  }
1730
1730
  declare module '@layerfi/components/components/Bills/BillsDetails' {
1731
1731
  import { RefObject } from 'react';
1732
- import type { Bill } from '@layerfi/components/types';
1732
+ import { Bill } from '@layerfi/components/types/bills';
1733
1733
  export const BillsDetails: ({ bill, containerRef, }: {
1734
1734
  bill?: Bill;
1735
1735
  containerRef: RefObject<HTMLDivElement>;
@@ -1859,7 +1859,7 @@ declare module '@layerfi/components/components/Bills/useBillsRecordPayment' {
1859
1859
  declare module '@layerfi/components/components/Bills/useUnpaidBillsByVendor' {
1860
1860
  export const useUnpaidBillsByVendor: ({ vendorId }: {
1861
1861
  vendorId?: string;
1862
- }) => import("swr").SWRResponse<import("../../types").Bill[] | undefined, any, any>;
1862
+ }) => import("swr").SWRResponse<import("../../types/bills").Bill[] | undefined, any, any>;
1863
1863
 
1864
1864
  }
1865
1865
  declare module '@layerfi/components/components/BookkeepingStatus/BookkeepingStatus' {
@@ -2163,8 +2163,8 @@ declare module '@layerfi/components/components/CategorizationRules/Categorizatio
2163
2163
 
2164
2164
  }
2165
2165
  declare module '@layerfi/components/components/CategorySelect/CategorySelect' {
2166
- import { BankTransaction, Category } from '@layerfi/components/types';
2167
- import { SuggestedMatch, type CategoryWithEntries } from '@layerfi/components/types/bank_transactions';
2166
+ import { Category } from '@layerfi/components/types/categories';
2167
+ import { SuggestedMatch, type CategoryWithEntries, BankTransaction } from '@layerfi/components/types/bank_transactions';
2168
2168
  import { MatchDetailsType } from '@layerfi/components/schemas/bankTransactions/match';
2169
2169
  type Props = {
2170
2170
  name?: string;
@@ -2310,7 +2310,7 @@ declare module '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccoun
2310
2310
 
2311
2311
  }
2312
2312
  declare module '@layerfi/components/components/ChartOfAccountsForm/constants' {
2313
- import { Direction } from '@layerfi/components/types';
2313
+ import { Direction } from '@layerfi/components/types/general';
2314
2314
  import { BaseSelectOption } from '@layerfi/components/types/general';
2315
2315
  export const LEDGER_ACCOUNT_TYPES: BaseSelectOption[];
2316
2316
  export const DEFAULT_ACCOUNT_TYPE_DIRECTION: Record<string, Direction>;
@@ -2669,13 +2669,103 @@ declare module '@layerfi/components/components/DataTable/PaginatedTable' {
2669
2669
 
2670
2670
  }
2671
2671
  declare module '@layerfi/components/components/DateCalendar/DateCalendar' {
2672
+ import { type ZonedDateTime } from '@internationalized/date';
2672
2673
  type DateCalendarProps = {
2674
+ minDate?: ZonedDateTime | null;
2675
+ maxDate?: ZonedDateTime | null;
2676
+ };
2677
+ export const DateCalendar: ({ minDate, maxDate }: DateCalendarProps) => import("react/jsx-runtime").JSX.Element;
2678
+ export {};
2679
+
2680
+ }
2681
+ declare module '@layerfi/components/components/DatePicker/DatePicker' {
2682
+ import { ZonedDateTime } from '@internationalized/date';
2683
+ type DatePickerProps = {
2684
+ label: string;
2685
+ isReadOnly?: boolean;
2686
+ showLabel?: boolean;
2687
+ date: ZonedDateTime | null;
2688
+ minDate?: ZonedDateTime | null;
2689
+ maxDate?: ZonedDateTime | null;
2690
+ isInvalid?: boolean;
2691
+ errorText?: string | null;
2692
+ onBlur?: () => void;
2693
+ onChange: (date: ZonedDateTime | null) => void;
2694
+ };
2695
+ export const DatePicker: ({ label, isReadOnly, showLabel, date, minDate, maxDate, isInvalid, errorText, onBlur, onChange, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
2696
+ export {};
2697
+
2698
+ }
2699
+ declare module '@layerfi/components/components/DatePicker/useDatePickerState' {
2700
+ import { ZonedDateTime } from '@internationalized/date';
2701
+ type UseDatePickerStateArgs = {
2702
+ date: Date;
2703
+ setDate?: (date: Date) => void;
2673
2704
  minDate?: Date | null;
2674
2705
  maxDate?: Date | null;
2675
2706
  };
2676
- export const DateCalendar: ({ minDate, maxDate }: DateCalendarProps) => import("react/jsx-runtime").JSX.Element;
2707
+ export const useDatePickerState: ({ date, setDate, minDate, maxDate }: UseDatePickerStateArgs) => {
2708
+ localDate: ZonedDateTime | null;
2709
+ isInvalid: boolean;
2710
+ errorText: string | null;
2711
+ onChange: (date: ZonedDateTime | null) => void;
2712
+ onBlur: () => void;
2713
+ minDateZdt: ZonedDateTime | null;
2714
+ maxDateZdt: ZonedDateTime | null;
2715
+ };
2677
2716
  export {};
2678
2717
 
2718
+ }
2719
+ declare module '@layerfi/components/components/DatePicker/utils' {
2720
+ import { ZonedDateTime } from '@internationalized/date';
2721
+ export const getIsDateInvalid: (date: ZonedDateTime | null, { minDate, maxDate }: {
2722
+ minDate?: ZonedDateTime | null;
2723
+ maxDate?: ZonedDateTime | null;
2724
+ }) => "Cannot select empty date" | "Cannot select date before the business activation date" | "Cannot select date after current date" | null;
2725
+
2726
+ }
2727
+ declare module '@layerfi/components/components/DateSelection/DateRangeSelection' {
2728
+ type DateRangeSelectionProps = {
2729
+ minDate?: Date | null;
2730
+ maxDate?: Date | null;
2731
+ };
2732
+ export const DateRangeSelection: ({ minDate, maxDate }: DateRangeSelectionProps) => import("react/jsx-runtime").JSX.Element;
2733
+ export {};
2734
+
2735
+ }
2736
+ declare module '@layerfi/components/components/DateSelection/DateSelection' {
2737
+ type DateSelectionProps = {
2738
+ minDate?: Date | null;
2739
+ maxDate?: Date | null;
2740
+ };
2741
+ export const DateSelection: ({ minDate, maxDate }: DateSelectionProps) => import("react/jsx-runtime").JSX.Element;
2742
+ export {};
2743
+
2744
+ }
2745
+ declare module '@layerfi/components/components/DateSelection/DateSelectionComboBox' {
2746
+ export const DateSelectionComboBox: () => import("react/jsx-runtime").JSX.Element;
2747
+
2748
+ }
2749
+ declare module '@layerfi/components/components/DateSelection/utils' {
2750
+ import { type DateRange } from '@layerfi/components/providers/GlobalDateStore/GlobalDateStoreProvider';
2751
+ export enum Period {
2752
+ Month = "Month",
2753
+ Quarter = "Quarter",
2754
+ Year = "Year"
2755
+ }
2756
+ export function rangeFor(period: Period, offset?: number, base?: Date): DateRange;
2757
+ export enum DatePreset {
2758
+ ThisMonth = "ThisMonth",
2759
+ LastMonth = "LastMonth",
2760
+ ThisQuarter = "ThisQuarter",
2761
+ LastQuarter = "LastQuarter",
2762
+ ThisYear = "ThisYear",
2763
+ LastYear = "LastYear",
2764
+ Custom = "Custom"
2765
+ }
2766
+ export function rangeForPreset(preset: Exclude<DatePreset, 'Custom'>, base?: Date): DateRange;
2767
+ export function presetForDateRange(input: DateRange, selectedPreset?: DatePreset | null, activationDate?: Date): DatePreset | null;
2768
+
2679
2769
  }
2680
2770
  declare module '@layerfi/components/components/DateTime/DateTime' {
2681
2771
  import { TextStyleProps } from '@layerfi/components/components/ui/Typography/Text';
@@ -2896,7 +2986,7 @@ declare module '@layerfi/components/components/ExpandableDataTable/ExpandableDat
2896
2986
 
2897
2987
  }
2898
2988
  declare module '@layerfi/components/components/ExpandedBankTransactionRow/APIErrorNotifications' {
2899
- import { BankTransaction } from '@layerfi/components/types';
2989
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
2900
2990
  interface APIErrorNotificationsProps {
2901
2991
  bankTransaction: BankTransaction;
2902
2992
  containerWidth?: number;
@@ -2906,7 +2996,7 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/APIErr
2906
2996
 
2907
2997
  }
2908
2998
  declare module '@layerfi/components/components/ExpandedBankTransactionRow/ExpandedBankTransactionRow' {
2909
- import { BankTransaction } from '@layerfi/components/types';
2999
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
2910
3000
  type Props = {
2911
3001
  bankTransaction: BankTransaction;
2912
3002
  isOpen?: boolean;
@@ -3020,7 +3110,7 @@ declare module '@layerfi/components/components/HoverMenu/HoverMenu' {
3020
3110
 
3021
3111
  }
3022
3112
  declare module '@layerfi/components/components/HoverMenu/index' {
3023
- export { HoverMenu, HoverMenuProps } from '@layerfi/components/components/HoverMenu/HoverMenu';
3113
+ export { HoverMenu } from '@layerfi/components/components/HoverMenu/HoverMenu';
3024
3114
 
3025
3115
  }
3026
3116
  declare module '@layerfi/components/components/IconBox/IconBox' {
@@ -3481,70 +3571,70 @@ declare module '@layerfi/components/components/Invoices/InvoicePaymentForm/useIn
3481
3571
  };
3482
3572
  export const useInvoicePaymentForm: (props: UseInvoicePaymentFormProps) => {
3483
3573
  form: import("@tanstack/react-form").AppFieldExtendedReactFormApi<{
3574
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3484
3575
  readonly memo: string;
3485
3576
  readonly amount: import("effect/BigDecimal").BigDecimal;
3486
3577
  readonly referenceNumber: string;
3487
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3488
3578
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3489
3579
  }, import("@tanstack/react-form").FormValidateOrFn<{
3580
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3490
3581
  readonly memo: string;
3491
3582
  readonly amount: import("effect/BigDecimal").BigDecimal;
3492
3583
  readonly referenceNumber: string;
3493
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3494
3584
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3495
3585
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3586
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3496
3587
  readonly memo: string;
3497
3588
  readonly amount: import("effect/BigDecimal").BigDecimal;
3498
3589
  readonly referenceNumber: string;
3499
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3500
3590
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3501
3591
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3592
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3502
3593
  readonly memo: string;
3503
3594
  readonly amount: import("effect/BigDecimal").BigDecimal;
3504
3595
  readonly referenceNumber: string;
3505
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3506
3596
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3507
3597
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3598
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3508
3599
  readonly memo: string;
3509
3600
  readonly amount: import("effect/BigDecimal").BigDecimal;
3510
3601
  readonly referenceNumber: string;
3511
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3512
3602
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3513
3603
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3604
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3514
3605
  readonly memo: string;
3515
3606
  readonly amount: import("effect/BigDecimal").BigDecimal;
3516
3607
  readonly referenceNumber: string;
3517
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3518
3608
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3519
3609
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3610
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3520
3611
  readonly memo: string;
3521
3612
  readonly amount: import("effect/BigDecimal").BigDecimal;
3522
3613
  readonly referenceNumber: string;
3523
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3524
3614
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3525
3615
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3616
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3526
3617
  readonly memo: string;
3527
3618
  readonly amount: import("effect/BigDecimal").BigDecimal;
3528
3619
  readonly referenceNumber: string;
3529
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3530
3620
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3531
3621
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3622
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3532
3623
  readonly memo: string;
3533
3624
  readonly amount: import("effect/BigDecimal").BigDecimal;
3534
3625
  readonly referenceNumber: string;
3535
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3536
3626
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3537
3627
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3628
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3538
3629
  readonly memo: string;
3539
3630
  readonly amount: import("effect/BigDecimal").BigDecimal;
3540
3631
  readonly referenceNumber: string;
3541
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3542
3632
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3543
3633
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3634
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3544
3635
  readonly memo: string;
3545
3636
  readonly amount: import("effect/BigDecimal").BigDecimal;
3546
3637
  readonly referenceNumber: string;
3547
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3548
3638
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3549
3639
  }>, unknown, {
3550
3640
  readonly BaseFormTextField: typeof import("@layerfi/components/features/forms/components/BaseFormTextField").BaseFormTextField;
@@ -3607,49 +3697,49 @@ declare module '@layerfi/components/components/Invoices/InvoiceRefundForm/useInv
3607
3697
  };
3608
3698
  export const useInvoiceRefundForm: ({ onSuccess, invoice }: UseInvoiceRefundFormProps) => {
3609
3699
  form: import("@tanstack/react-form").AppFieldExtendedReactFormApi<{
3700
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3610
3701
  readonly amount: import("effect/BigDecimal").BigDecimal;
3611
3702
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3612
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3613
3703
  }, import("@tanstack/react-form").FormValidateOrFn<{
3704
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3614
3705
  readonly amount: import("effect/BigDecimal").BigDecimal;
3615
3706
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3616
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3617
3707
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3708
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3618
3709
  readonly amount: import("effect/BigDecimal").BigDecimal;
3619
3710
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3620
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3621
3711
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3712
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3622
3713
  readonly amount: import("effect/BigDecimal").BigDecimal;
3623
3714
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3624
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3625
3715
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3716
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3626
3717
  readonly amount: import("effect/BigDecimal").BigDecimal;
3627
3718
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3628
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3629
3719
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3720
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3630
3721
  readonly amount: import("effect/BigDecimal").BigDecimal;
3631
3722
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3632
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3633
3723
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3724
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3634
3725
  readonly amount: import("effect/BigDecimal").BigDecimal;
3635
3726
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3636
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3637
3727
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3728
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3638
3729
  readonly amount: import("effect/BigDecimal").BigDecimal;
3639
3730
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3640
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3641
3731
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3732
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3642
3733
  readonly amount: import("effect/BigDecimal").BigDecimal;
3643
3734
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3644
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3645
3735
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3736
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3646
3737
  readonly amount: import("effect/BigDecimal").BigDecimal;
3647
3738
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3648
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3649
3739
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3740
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3650
3741
  readonly amount: import("effect/BigDecimal").BigDecimal;
3651
3742
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3652
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3653
3743
  }>, unknown, {
3654
3744
  readonly BaseFormTextField: typeof import("@layerfi/components/features/forms/components/BaseFormTextField").BaseFormTextField;
3655
3745
  readonly FormBigDecimalField: typeof import("@layerfi/components/features/forms/components/FormBigDecimalField").FormBigDecimalField;
@@ -4118,8 +4208,8 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/journalE
4118
4208
  readonly valueDisplayName: string | null | undefined;
4119
4209
  }[] | undefined;
4120
4210
  readonly direction: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
4121
- readonly vendorExternalId?: string | undefined;
4122
4211
  readonly vendorId?: string | undefined;
4212
+ readonly vendorExternalId?: string | undefined;
4123
4213
  readonly accountIdentifier: {
4124
4214
  readonly type: "StableName";
4125
4215
  readonly stableName: string;
@@ -4147,8 +4237,8 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/journalE
4147
4237
  readonly dimension_display_name: string | null | undefined;
4148
4238
  readonly value_display_name: string | null | undefined;
4149
4239
  }[] | undefined;
4150
- readonly vendor_external_id?: string | undefined;
4151
4240
  readonly vendor_id?: string | undefined;
4241
+ readonly vendor_external_id?: string | undefined;
4152
4242
  readonly customer_id?: string | undefined;
4153
4243
  readonly customer_external_id?: string | undefined;
4154
4244
  }[], false, never>;
@@ -4250,10 +4340,10 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/journalE
4250
4340
  transactionTags: Schema.PropertySignature<"?:", readonly {
4251
4341
  readonly value: string;
4252
4342
  readonly id: string;
4343
+ readonly key: string;
4253
4344
  readonly _local?: {
4254
4345
  readonly isOptimistic: boolean;
4255
4346
  } | undefined;
4256
- readonly key: string;
4257
4347
  readonly archivedAt: Date | null | undefined;
4258
4348
  readonly dimensionDisplayName: string | null | undefined;
4259
4349
  readonly valueDisplayName: string | null | undefined;
@@ -4471,10 +4561,10 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/journalE
4471
4561
  readonly transactionTags?: readonly {
4472
4562
  readonly value: string;
4473
4563
  readonly id: string;
4564
+ readonly key: string;
4474
4565
  readonly _local?: {
4475
4566
  readonly isOptimistic: boolean;
4476
4567
  } | undefined;
4477
- readonly key: string;
4478
4568
  readonly archivedAt: Date | null | undefined;
4479
4569
  readonly dimensionDisplayName: string | null | undefined;
4480
4570
  readonly valueDisplayName: string | null | undefined;
@@ -4733,10 +4823,10 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/journalE
4733
4823
  readonly transactionTags?: readonly {
4734
4824
  readonly value: string;
4735
4825
  readonly id: string;
4826
+ readonly key: string;
4736
4827
  readonly _local?: {
4737
4828
  readonly isOptimistic: boolean;
4738
4829
  } | undefined;
4739
- readonly key: string;
4740
4830
  readonly archivedAt: Date | null | undefined;
4741
4831
  readonly dimensionDisplayName: string | null | undefined;
4742
4832
  readonly valueDisplayName: string | null | undefined;
@@ -4952,8 +5042,8 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/journalE
4952
5042
  readonly valueDisplayName: string | null | undefined;
4953
5043
  }[] | undefined;
4954
5044
  readonly direction: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
4955
- readonly vendorExternalId?: string | undefined;
4956
5045
  readonly vendorId?: string | undefined;
5046
+ readonly vendorExternalId?: string | undefined;
4957
5047
  readonly accountIdentifier: {
4958
5048
  readonly type: "StableName";
4959
5049
  readonly stableName: string;
@@ -4981,8 +5071,8 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/journalE
4981
5071
  readonly dimension_display_name: string | null | undefined;
4982
5072
  readonly value_display_name: string | null | undefined;
4983
5073
  }[] | undefined;
4984
- readonly vendor_external_id?: string | undefined;
4985
5074
  readonly vendor_id?: string | undefined;
5075
+ readonly vendor_external_id?: string | undefined;
4986
5076
  readonly customer_id?: string | undefined;
4987
5077
  readonly customer_external_id?: string | undefined;
4988
5078
  }[], false, never>;
@@ -5116,10 +5206,10 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/useUpser
5116
5206
  readonly transactionTags?: readonly {
5117
5207
  readonly value: string;
5118
5208
  readonly id: string;
5209
+ readonly key: string;
5119
5210
  readonly _local?: {
5120
5211
  readonly isOptimistic: boolean;
5121
5212
  } | undefined;
5122
- readonly key: string;
5123
5213
  readonly archivedAt: Date | null | undefined;
5124
5214
  readonly dimensionDisplayName: string | null | undefined;
5125
5215
  readonly valueDisplayName: string | null | undefined;
@@ -5130,13 +5220,13 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/useUpser
5130
5220
  readonly lineItemId: string;
5131
5221
  }[];
5132
5222
  readonly entry: {
5223
+ readonly businessId: string;
5133
5224
  readonly memo: string | null;
5134
5225
  readonly referenceNumber: string | null;
5135
5226
  readonly metadata: unknown;
5136
5227
  readonly createdAt: Date;
5137
5228
  readonly customer: unknown;
5138
5229
  readonly vendor: unknown;
5139
- readonly businessId: string;
5140
5230
  readonly transactionTags: readonly unknown[];
5141
5231
  readonly entryId: string;
5142
5232
  readonly lineItems: readonly {
@@ -5278,10 +5368,10 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/useUpser
5278
5368
  readonly transactionTags?: readonly {
5279
5369
  readonly value: string;
5280
5370
  readonly id: string;
5371
+ readonly key: string;
5281
5372
  readonly _local?: {
5282
5373
  readonly isOptimistic: boolean;
5283
5374
  } | undefined;
5284
- readonly key: string;
5285
5375
  readonly archivedAt: Date | null | undefined;
5286
5376
  readonly dimensionDisplayName: string | null | undefined;
5287
5377
  readonly valueDisplayName: string | null | undefined;
@@ -5292,13 +5382,13 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/useUpser
5292
5382
  readonly lineItemId: string;
5293
5383
  }[];
5294
5384
  readonly entry: {
5385
+ readonly businessId: string;
5295
5386
  readonly memo: string | null;
5296
5387
  readonly referenceNumber: string | null;
5297
5388
  readonly metadata: unknown;
5298
5389
  readonly createdAt: Date;
5299
5390
  readonly customer: unknown;
5300
5391
  readonly vendor: unknown;
5301
- readonly businessId: string;
5302
5392
  readonly transactionTags: readonly unknown[];
5303
5393
  readonly entryId: string;
5304
5394
  readonly lineItems: readonly {
@@ -5425,7 +5515,7 @@ declare module '@layerfi/components/components/JournalSidebar/index' {
5425
5515
 
5426
5516
  }
5427
5517
  declare module '@layerfi/components/components/JournalTable/JournalTable' {
5428
- import { JournalEntry } from '@layerfi/components/types';
5518
+ import { JournalEntry } from '@layerfi/components/types/journal';
5429
5519
  import { View } from '@layerfi/components/types/general';
5430
5520
  import { JournalTableStringOverrides } from '@layerfi/components/components/JournalTable/JournalTableWithPanel';
5431
5521
  export const JournalTable: ({ view, data, stringOverrides, }: {
@@ -5490,9 +5580,9 @@ declare module '@layerfi/components/components/LedgerAccount/LedgerAccountIndex'
5490
5580
 
5491
5581
  }
5492
5582
  declare module '@layerfi/components/components/LedgerAccount/LedgerAccountRow' {
5493
- import { LedgerAccountLineItem } from '@layerfi/components/types';
5494
5583
  import { View } from '@layerfi/components/types/general';
5495
5584
  import { LedgerAccountNodeType } from '@layerfi/components/types/chart_of_accounts';
5585
+ import { LedgerAccountLineItem } from '@layerfi/components/types/ledger_accounts';
5496
5586
  export interface LedgerAccountRowProps {
5497
5587
  row: LedgerAccountLineItem;
5498
5588
  index: number;
@@ -5576,7 +5666,7 @@ declare module '@layerfi/components/components/LedgerAccountEntryDetails/index'
5576
5666
 
5577
5667
  }
5578
5668
  declare module '@layerfi/components/components/LinkedAccountOptions/LinkedAccountOptions' {
5579
- import { HoverMenuProps } from '@layerfi/components/components/HoverMenu/index';
5669
+ import { HoverMenuProps } from '@layerfi/components/components/HoverMenu/HoverMenu';
5580
5670
  interface LinkedAccountOptionsProps extends HoverMenuProps {
5581
5671
  showLedgerBalance?: boolean;
5582
5672
  }
@@ -5812,7 +5902,7 @@ declare module '@layerfi/components/components/Loader/index' {
5812
5902
 
5813
5903
  }
5814
5904
  declare module '@layerfi/components/components/MatchForm/MatchForm' {
5815
- import { BankTransaction } from '@layerfi/components/types';
5905
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
5816
5906
  export interface MatchFormProps {
5817
5907
  classNamePrefix: string;
5818
5908
  bankTransaction: BankTransaction;
@@ -5997,7 +6087,7 @@ declare module '@layerfi/components/components/PlatformOnboarding/Steps/WelcomeS
5997
6087
  }
5998
6088
  declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
5999
6089
  import { PropsWithChildren } from 'react';
6000
- import { ReportingBasis } from '@layerfi/components/types';
6090
+ import { ReportingBasis } from '@layerfi/components/types/general';
6001
6091
  import { ProfitAndLossSummaries } from '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries';
6002
6092
  import { ProfitAndLossCompareConfig } from '@layerfi/components/types/profit_and_loss';
6003
6093
  type Props = PropsWithChildren & {
@@ -6124,7 +6214,7 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Detai
6124
6214
  }
6125
6215
  declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/DetailedTable' {
6126
6216
  import { Scope, SidebarScope, ProfitAndLossFilters } from '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss';
6127
- import { SortDirection } from '@layerfi/components/types';
6217
+ import { SortDirection } from '@layerfi/components/types/general';
6128
6218
  import type { PnlChartLineItem } from '@layerfi/components/utils/profitAndLossUtils';
6129
6219
  export interface DetailedTableStringOverrides {
6130
6220
  categoryColumnHeader?: string;
@@ -6196,7 +6286,7 @@ declare module '@layerfi/components/components/ProfitAndLossDownloadButton/Profi
6196
6286
  }
6197
6287
  declare module '@layerfi/components/components/ProfitAndLossDownloadButton/ProfitAndLossDownloadButton' {
6198
6288
  import { type ProfitAndLossDownloadButtonStringOverrides } from '@layerfi/components/components/ProfitAndLossDownloadButton/types';
6199
- import type { MoneyFormat } from '@layerfi/components/types';
6289
+ import type { MoneyFormat } from '@layerfi/components/types/general';
6200
6290
  type ProfitAndLossDownloadButtonProps = {
6201
6291
  stringOverrides?: ProfitAndLossDownloadButtonStringOverrides;
6202
6292
  moneyFormat?: MoneyFormat;
@@ -6206,7 +6296,7 @@ declare module '@layerfi/components/components/ProfitAndLossDownloadButton/Profi
6206
6296
 
6207
6297
  }
6208
6298
  declare module '@layerfi/components/components/ProfitAndLossDownloadButton/ProfitAndLossFullReportDownloadButton' {
6209
- import { MoneyFormat } from '@layerfi/components/types';
6299
+ import { MoneyFormat } from '@layerfi/components/types/general';
6210
6300
  import type { ProfitAndLossDownloadButtonStringOverrides } from '@layerfi/components/components/ProfitAndLossDownloadButton/types';
6211
6301
  export interface ProfitAndLossReportDownloadButtonProps {
6212
6302
  stringOverrides?: ProfitAndLossDownloadButtonStringOverrides;
@@ -6383,7 +6473,6 @@ declare module '@layerfi/components/components/ProfitAndLossTable/ProfitAndLossT
6383
6473
  }
6384
6474
  declare module '@layerfi/components/components/ProfitAndLossTable/index' {
6385
6475
  export { ProfitAndLossTableWithProvider as ProfitAndLossTable } from '@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTableWithProvider';
6386
- export { ProfitAndLossTableStringOverrides } from '@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTableComponent';
6387
6476
 
6388
6477
  }
6389
6478
  declare module '@layerfi/components/components/ProfitAndLossView/ProfitAndLossView' {
@@ -6918,7 +7007,7 @@ declare module '@layerfi/components/components/StatementOfCashFlow/index' {
6918
7007
 
6919
7008
  }
6920
7009
  declare module '@layerfi/components/components/StatementOfCashFlowTable/StatementOfCashFlowTable' {
6921
- import { StatementOfCashFlow } from '@layerfi/components/types';
7010
+ import { StatementOfCashFlow } from '@layerfi/components/types/statement_of_cash_flow';
6922
7011
  type StatementOfCashFlowRowProps = {
6923
7012
  name: string;
6924
7013
  displayName: string;
@@ -7521,21 +7610,11 @@ declare module '@layerfi/components/components/Typography/index' {
7521
7610
 
7522
7611
  }
7523
7612
  declare module '@layerfi/components/components/UnifiedReport/UnifiedReport' {
7524
- import { ReportEnum } from '@layerfi/components/schemas/reports/unifiedReport';
7525
- type UnifiedReportProps = {
7526
- report: ReportEnum;
7527
- };
7528
- export const UnifiedReport: ({ report }: UnifiedReportProps) => import("react/jsx-runtime").JSX.Element;
7529
- export {};
7613
+ export const UnifiedReport: () => import("react/jsx-runtime").JSX.Element;
7530
7614
 
7531
7615
  }
7532
7616
  declare module '@layerfi/components/components/UnifiedReport/UnifiedReportTable' {
7533
- import type { ReportEnum } from '@layerfi/components/schemas/reports/unifiedReport';
7534
- type UnifiedReportTableProps = {
7535
- report: ReportEnum;
7536
- };
7537
- export const UnifiedReportTable: ({ report }: UnifiedReportTableProps) => import("react/jsx-runtime").JSX.Element;
7538
- export {};
7617
+ export const UnifiedReportTable: () => import("react/jsx-runtime").JSX.Element;
7539
7618
 
7540
7619
  }
7541
7620
  declare module '@layerfi/components/components/UnifiedReport/UnifiedReportTableHeader' {
@@ -7582,7 +7661,7 @@ declare module '@layerfi/components/components/UploadTransactions/UploadTransact
7582
7661
  }
7583
7662
  declare module '@layerfi/components/components/UploadTransactions/UploadTransactionsValidateCsvStep' {
7584
7663
  import type { CustomAccountParseCsvResponse } from '@layerfi/components/hooks/customAccounts/useCustomAccountParseCsv';
7585
- import { BankTransaction } from '@layerfi/components/types';
7664
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
7586
7665
  interface UploadTransactionsValidateCsvStepProps {
7587
7666
  parseCsvResponse: CustomAccountParseCsvResponse | null;
7588
7667
  selectedAccountId?: string;
@@ -7821,7 +7900,7 @@ declare module '@layerfi/components/components/ui/ComboBox/ComboBox' {
7821
7900
  }
7822
7901
  declare module '@layerfi/components/components/ui/Date/Date' {
7823
7902
  import type { ZonedDateTime } from '@internationalized/date';
7824
- import { type DateFieldProps as ReactAriaDateFieldProps, type DateSegmentProps as ReactAriaDateSegmentProps, type DateInputProps as ReactAriaDateInputProps } from 'react-aria-components';
7903
+ import { type DateFieldProps as ReactAriaDateFieldProps, type DateSegmentProps as ReactAriaDateSegmentProps, type DateInputProps as ReactAriaDateInputProps, type DatePickerProps as ReactAriaDatePickerProps } from 'react-aria-components';
7825
7904
  export const DateField: import("react").ForwardRefExoticComponent<ReactAriaDateFieldProps<ZonedDateTime> & {
7826
7905
  inline?: boolean;
7827
7906
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -7831,6 +7910,9 @@ declare module '@layerfi/components/components/ui/Date/Date' {
7831
7910
  export const DateSegment: import("react").ForwardRefExoticComponent<Omit<ReactAriaDateSegmentProps, "className"> & {
7832
7911
  isReadOnly?: boolean;
7833
7912
  } & import("react").RefAttributes<HTMLDivElement>>;
7913
+ type DatePickerProps = Omit<ReactAriaDatePickerProps<ZonedDateTime>, 'className'>;
7914
+ export const DatePicker: import("react").ForwardRefExoticComponent<DatePickerProps & import("react").RefAttributes<HTMLDivElement>>;
7915
+ export {};
7834
7916
 
7835
7917
  }
7836
7918
  declare module '@layerfi/components/components/ui/DropdownMenu/DropdownMenu' {
@@ -8173,11 +8255,12 @@ declare module '@layerfi/components/components/ui/Typography/Heading' {
8173
8255
  export { Heading };
8174
8256
 
8175
8257
  }
8176
- declare module '@layerfi/components/components/ui/Typography/MoneyText' {
8258
+ declare module '@layerfi/components/components/ui/Typography/MoneySpan' {
8177
8259
  const MoneySpan: import("react").ForwardRefExoticComponent<{
8178
8260
  amount: number;
8179
8261
  bold?: boolean;
8180
8262
  size?: "xs" | "sm" | "md" | "lg";
8263
+ displayPlusSign?: boolean;
8181
8264
  } & Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "slot"> & import("react").RefAttributes<HTMLSpanElement>>;
8182
8265
  export { MoneySpan };
8183
8266
 
@@ -8372,10 +8455,10 @@ declare module '@layerfi/components/config/theme' {
8372
8455
  }
8373
8456
  declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransactionsContext' {
8374
8457
  import { useAugmentedBankTransactions } from '@layerfi/components/hooks/useBankTransactions/useAugmentedBankTransactions';
8375
- import { DisplayState } from '@layerfi/components/types';
8458
+ import { DisplayState } from '@layerfi/components/types/bank_transactions';
8376
8459
  export type BankTransactionsContextType = ReturnType<typeof useAugmentedBankTransactions>;
8377
8460
  export const BankTransactionsContext: import("react").Context<{
8378
- data: import("@layerfi/components/types").BankTransaction[] | undefined;
8461
+ data: import("@layerfi/components/types/bank_transactions").BankTransaction[] | undefined;
8379
8462
  metadata: {
8380
8463
  pagination: {
8381
8464
  cursor?: string;
@@ -8386,17 +8469,17 @@ declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransac
8386
8469
  isValidating: boolean;
8387
8470
  refetch: () => void;
8388
8471
  isError: boolean;
8389
- categorize: (bankTransactionId: import("@layerfi/components/types").BankTransaction["id"], newCategory: import("../../types").CategoryUpdate, notify?: boolean) => Promise<void>;
8390
- match: (bankTransactionId: import("@layerfi/components/types").BankTransaction["id"], suggestedMatchId: string, notify?: boolean) => Promise<void>;
8391
- updateOneLocal: (newBankTransaction: import("@layerfi/components/types").BankTransaction) => void;
8472
+ categorize: (bankTransactionId: import("@layerfi/components/types/bank_transactions").BankTransaction["id"], newCategory: import("../../types/categories").CategoryUpdate, notify?: boolean) => Promise<void>;
8473
+ match: (bankTransactionId: import("@layerfi/components/types/bank_transactions").BankTransaction["id"], suggestedMatchId: string, notify?: boolean) => Promise<void>;
8474
+ updateOneLocal: (newBankTransaction: import("@layerfi/components/types/bank_transactions").BankTransaction) => void;
8392
8475
  shouldHideAfterCategorize: () => boolean;
8393
- removeAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
8476
+ removeAfterCategorize: (bankTransaction: import("@layerfi/components/types/bank_transactions").BankTransaction) => void;
8394
8477
  display: DisplayState;
8395
8478
  fetchMore: () => void;
8396
8479
  hasMore: boolean;
8397
8480
  }>;
8398
8481
  export const useBankTransactionsContext: () => {
8399
- data: import("@layerfi/components/types").BankTransaction[] | undefined;
8482
+ data: import("@layerfi/components/types/bank_transactions").BankTransaction[] | undefined;
8400
8483
  metadata: {
8401
8484
  pagination: {
8402
8485
  cursor?: string;
@@ -8407,11 +8490,11 @@ declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransac
8407
8490
  isValidating: boolean;
8408
8491
  refetch: () => void;
8409
8492
  isError: boolean;
8410
- categorize: (bankTransactionId: import("@layerfi/components/types").BankTransaction["id"], newCategory: import("../../types").CategoryUpdate, notify?: boolean) => Promise<void>;
8411
- match: (bankTransactionId: import("@layerfi/components/types").BankTransaction["id"], suggestedMatchId: string, notify?: boolean) => Promise<void>;
8412
- updateOneLocal: (newBankTransaction: import("@layerfi/components/types").BankTransaction) => void;
8493
+ categorize: (bankTransactionId: import("@layerfi/components/types/bank_transactions").BankTransaction["id"], newCategory: import("../../types/categories").CategoryUpdate, notify?: boolean) => Promise<void>;
8494
+ match: (bankTransactionId: import("@layerfi/components/types/bank_transactions").BankTransaction["id"], suggestedMatchId: string, notify?: boolean) => Promise<void>;
8495
+ updateOneLocal: (newBankTransaction: import("@layerfi/components/types/bank_transactions").BankTransaction) => void;
8413
8496
  shouldHideAfterCategorize: () => boolean;
8414
- removeAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
8497
+ removeAfterCategorize: (bankTransaction: import("@layerfi/components/types/bank_transactions").BankTransaction) => void;
8415
8498
  display: DisplayState;
8416
8499
  fetchMore: () => void;
8417
8500
  hasMore: boolean;
@@ -8445,7 +8528,7 @@ declare module '@layerfi/components/contexts/BankTransactionsFiltersContext/Bank
8445
8528
  }
8446
8529
  declare module '@layerfi/components/contexts/BankTransactionsFiltersContext/useBankTransactionsFilters' {
8447
8530
  import { BankTransactionFilters, BankTransactionsDateFilterMode } from '@layerfi/components/hooks/useBankTransactions/types';
8448
- import { DisplayState } from '@layerfi/components/types';
8531
+ import { DisplayState } from '@layerfi/components/types/bank_transactions';
8449
8532
  export type useBankTransactionsFiltersParams = {
8450
8533
  scope?: DisplayState;
8451
8534
  monthlyView?: boolean;
@@ -8459,7 +8542,7 @@ declare module '@layerfi/components/contexts/BankTransactionsFiltersContext/useB
8459
8542
  } | undefined;
8460
8543
  amount?: import("@layerfi/components/hooks/useBankTransactions/types").NumericRangeFilter;
8461
8544
  account?: string[];
8462
- direction?: import("@layerfi/components/types").Direction[];
8545
+ direction?: import("@layerfi/components/index").Direction[];
8463
8546
  categorizationStatus?: DisplayState;
8464
8547
  query?: string;
8465
8548
  tagFilter?: import("@layerfi/components/types/tags").TagFilterInput;
@@ -8478,20 +8561,20 @@ declare module '@layerfi/components/contexts/BillsContext' {
8478
8561
  };
8479
8562
  export type BillsContextType = ReturnType<typeof useBills>;
8480
8563
  export const BillsContext: React.Context<{
8481
- data: import("@layerfi/components/types").Bill[];
8482
- paginatedData: import("@layerfi/components/types").Bill[];
8564
+ data: import("@layerfi/components/types/bills").Bill[];
8565
+ paginatedData: import("@layerfi/components/types/bills").Bill[];
8483
8566
  currentPage: number;
8484
8567
  setCurrentPage: (page: number) => void;
8485
8568
  pageSize: number;
8486
- metadata?: import("@layerfi/components/types").Metadata;
8487
- billInDetails?: import("@layerfi/components/types").Bill;
8488
- openBillDetails: (bill?: import("@layerfi/components/types").Bill) => void;
8569
+ metadata?: import("@layerfi/components/types/api").Metadata;
8570
+ billInDetails?: import("@layerfi/components/types/bills").Bill;
8571
+ openBillDetails: (bill?: import("@layerfi/components/types/bills").Bill) => void;
8489
8572
  showBillInDetails: boolean;
8490
8573
  closeBillDetails: () => void;
8491
8574
  status: import("@layerfi/components/hooks/useBills").BillStatusFilter;
8492
8575
  setStatus: (status: import("@layerfi/components/hooks/useBills").BillStatusFilter) => void;
8493
- dateRange: import("@layerfi/components/types").DateRange;
8494
- setDateRange: (dateRange: import("@layerfi/components/types").DateRange) => void;
8576
+ dateRange: import("@layerfi/components/types/general").DateRange;
8577
+ setDateRange: (dateRange: import("@layerfi/components/types/general").DateRange) => void;
8495
8578
  vendor: import("@layerfi/components/types/vendors").Vendor | null;
8496
8579
  setVendor: (vendor: import("@layerfi/components/types/vendors").Vendor | null) => void;
8497
8580
  fetchMore: () => void;
@@ -8504,9 +8587,9 @@ declare module '@layerfi/components/contexts/BillsContext' {
8504
8587
  export type BillsRecordPaymentContextType = ReturnType<typeof useBillsRecordPayment>;
8505
8588
  export const BillsRecordPaymentContext: React.Context<{
8506
8589
  billsToPay: import("@layerfi/components/components/Bills/useBillsRecordPayment").BillsRecordPaymentFormRecord[];
8507
- setBill: (bill: import("@layerfi/components/types").Bill, index: number) => void;
8508
- addBill: (bill?: import("@layerfi/components/types").Bill) => void;
8509
- removeBill: (bill: import("@layerfi/components/types").Bill) => void;
8590
+ setBill: (bill: import("@layerfi/components/types/bills").Bill, index: number) => void;
8591
+ addBill: (bill?: import("@layerfi/components/types/bills").Bill) => void;
8592
+ removeBill: (bill: import("@layerfi/components/types/bills").Bill) => void;
8510
8593
  removeBillByIndex: (index: number) => void;
8511
8594
  setAmount: (billId: string, amount: string) => void;
8512
8595
  setAmountByIndex: (index: number, amount?: string | null) => void;
@@ -8525,26 +8608,26 @@ declare module '@layerfi/components/contexts/BillsContext' {
8525
8608
  dataSaved: boolean;
8526
8609
  closeRecordPayment: () => void;
8527
8610
  clearRecordPaymentSelection: () => void;
8528
- recordPaymentForBill: (bill: import("@layerfi/components/types").Bill) => void;
8611
+ recordPaymentForBill: (bill: import("@layerfi/components/types/bills").Bill) => void;
8529
8612
  payRemainingBalance: () => void;
8530
8613
  isLoading: boolean;
8531
8614
  apiError: import("@layerfi/components/models/APIError").APIError | undefined;
8532
8615
  }>;
8533
8616
  export const useBillsContext: () => {
8534
- data: import("@layerfi/components/types").Bill[];
8535
- paginatedData: import("@layerfi/components/types").Bill[];
8617
+ data: import("@layerfi/components/types/bills").Bill[];
8618
+ paginatedData: import("@layerfi/components/types/bills").Bill[];
8536
8619
  currentPage: number;
8537
8620
  setCurrentPage: (page: number) => void;
8538
8621
  pageSize: number;
8539
- metadata?: import("@layerfi/components/types").Metadata;
8540
- billInDetails?: import("@layerfi/components/types").Bill;
8541
- openBillDetails: (bill?: import("@layerfi/components/types").Bill) => void;
8622
+ metadata?: import("@layerfi/components/types/api").Metadata;
8623
+ billInDetails?: import("@layerfi/components/types/bills").Bill;
8624
+ openBillDetails: (bill?: import("@layerfi/components/types/bills").Bill) => void;
8542
8625
  showBillInDetails: boolean;
8543
8626
  closeBillDetails: () => void;
8544
8627
  status: import("@layerfi/components/hooks/useBills").BillStatusFilter;
8545
8628
  setStatus: (status: import("@layerfi/components/hooks/useBills").BillStatusFilter) => void;
8546
- dateRange: import("@layerfi/components/types").DateRange;
8547
- setDateRange: (dateRange: import("@layerfi/components/types").DateRange) => void;
8629
+ dateRange: import("@layerfi/components/types/general").DateRange;
8630
+ setDateRange: (dateRange: import("@layerfi/components/types/general").DateRange) => void;
8548
8631
  vendor: import("@layerfi/components/types/vendors").Vendor | null;
8549
8632
  setVendor: (vendor: import("@layerfi/components/types/vendors").Vendor | null) => void;
8550
8633
  fetchMore: () => void;
@@ -8556,9 +8639,9 @@ declare module '@layerfi/components/contexts/BillsContext' {
8556
8639
  };
8557
8640
  export const useBillsRecordPaymentContext: () => {
8558
8641
  billsToPay: import("@layerfi/components/components/Bills/useBillsRecordPayment").BillsRecordPaymentFormRecord[];
8559
- setBill: (bill: import("@layerfi/components/types").Bill, index: number) => void;
8560
- addBill: (bill?: import("@layerfi/components/types").Bill) => void;
8561
- removeBill: (bill: import("@layerfi/components/types").Bill) => void;
8642
+ setBill: (bill: import("@layerfi/components/types/bills").Bill, index: number) => void;
8643
+ addBill: (bill?: import("@layerfi/components/types/bills").Bill) => void;
8644
+ removeBill: (bill: import("@layerfi/components/types/bills").Bill) => void;
8562
8645
  removeBillByIndex: (index: number) => void;
8563
8646
  setAmount: (billId: string, amount: string) => void;
8564
8647
  setAmountByIndex: (index: number, amount?: string | null) => void;
@@ -8577,7 +8660,7 @@ declare module '@layerfi/components/contexts/BillsContext' {
8577
8660
  dataSaved: boolean;
8578
8661
  closeRecordPayment: () => void;
8579
8662
  clearRecordPaymentSelection: () => void;
8580
- recordPaymentForBill: (bill: import("@layerfi/components/types").Bill) => void;
8663
+ recordPaymentForBill: (bill: import("@layerfi/components/types/bills").Bill) => void;
8581
8664
  payRemainingBalance: () => void;
8582
8665
  isLoading: boolean;
8583
8666
  apiError: import("@layerfi/components/models/APIError").APIError | undefined;
@@ -8625,7 +8708,7 @@ declare module '@layerfi/components/contexts/ChartOfAccountsContext/ChartOfAccou
8625
8708
  isValidating: boolean;
8626
8709
  isError: boolean;
8627
8710
  refetch: () => Promise<void>;
8628
- create: (newAccount: import("@layerfi/components/types").NewAccount) => Promise<void>;
8711
+ create: (newAccount: import("@layerfi/components/types/chart_of_accounts").NewAccount) => Promise<void>;
8629
8712
  form: import("@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts").ChartOfAccountsForm | undefined;
8630
8713
  sendingForm: boolean;
8631
8714
  apiError: string | undefined;
@@ -8639,7 +8722,7 @@ declare module '@layerfi/components/contexts/ChartOfAccountsContext/ChartOfAccou
8639
8722
  startDate: Date;
8640
8723
  endDate: Date;
8641
8724
  };
8642
- changeDateRange: ({ startDate: newStartDate, endDate: newEndDate, }: Partial<import("@layerfi/components/types").DateRange>) => void;
8725
+ changeDateRange: ({ startDate: newStartDate, endDate: newEndDate, }: Partial<import("@layerfi/components/types/general").DateRange>) => void;
8643
8726
  }>;
8644
8727
 
8645
8728
  }
@@ -8718,7 +8801,7 @@ declare module '@layerfi/components/contexts/JournalContext/JournalContext' {
8718
8801
  import { useJournal } from '@layerfi/components/hooks/useJournal/index';
8719
8802
  export type JournalContextType = ReturnType<typeof useJournal>;
8720
8803
  export const JournalContext: import("react").Context<{
8721
- data?: ReadonlyArray<import("@layerfi/components/types").JournalEntry>;
8804
+ data?: ReadonlyArray<import("@layerfi/components/types/journal").JournalEntry>;
8722
8805
  isLoading?: boolean;
8723
8806
  isLoadingEntry?: boolean;
8724
8807
  isValidating?: boolean;
@@ -8769,8 +8852,8 @@ declare module '@layerfi/components/contexts/LedgerAccountsContext/LedgerAccount
8769
8852
  import { useLedgerAccounts } from '@layerfi/components/hooks/useLedgerAccounts/index';
8770
8853
  export type LedgerAccountsContextType = ReturnType<typeof useLedgerAccounts>;
8771
8854
  export const LedgerAccountsContext: import("react").Context<{
8772
- data?: import("@layerfi/components/types").LedgerAccounts;
8773
- entryData?: import("@layerfi/components/types").LedgerAccountsEntry;
8855
+ data?: import("@layerfi/components/types/ledger_accounts").LedgerAccountLineItem[] | undefined;
8856
+ entryData?: import("@layerfi/components/types/ledger_accounts").LedgerAccountsEntry;
8774
8857
  isLoading?: boolean;
8775
8858
  isLoadingEntry?: boolean;
8776
8859
  isValidating?: boolean;
@@ -8836,7 +8919,7 @@ declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/Prof
8836
8919
  value: string;
8837
8920
  label: string;
8838
8921
  }>) => void;
8839
- getProfitAndLossComparisonCsv: (dateRange: import("@layerfi/components/types").DateRange, moneyFormat?: import("../../types").MoneyFormat) => Promise<{
8922
+ getProfitAndLossComparisonCsv: (dateRange: import("@layerfi/components/types/general").DateRange, moneyFormat?: import("../../types/general").MoneyFormat) => Promise<{
8840
8923
  data?: S3PresignedUrl;
8841
8924
  error?: unknown;
8842
8925
  }>;
@@ -8940,7 +9023,7 @@ declare module '@layerfi/components/contexts/ProfitAndLossContext/ProfitAndLossC
8940
9023
  refetch: () => void;
8941
9024
  sidebarScope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").SidebarScope;
8942
9025
  setSidebarScope: import("react").Dispatch<import("react").SetStateAction<import("../../hooks/useProfitAndLoss/useProfitAndLoss").SidebarScope>>;
8943
- sortBy: (scope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").Scope, field: string, direction?: import("../../types").SortDirection) => void;
9026
+ sortBy: (scope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").Scope, field: string, direction?: import("../../types/general").SortDirection) => void;
8944
9027
  filters: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").ProfitAndLossFilters;
8945
9028
  setFilterTypes: (scope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").Scope, types: string[]) => void;
8946
9029
  tagFilter: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").PnlTagFilter | undefined;
@@ -9016,7 +9099,7 @@ declare module '@layerfi/components/contexts/VendorsContext' {
9016
9099
 
9017
9100
  }
9018
9101
  declare module '@layerfi/components/features/bankTransactions/[bankTransactionId]/components/BankTransactionFormFields' {
9019
- import type { BankTransaction } from '@layerfi/components/types';
9102
+ import type { BankTransaction } from '@layerfi/components/types/bank_transactions';
9020
9103
  type BankTransactionFormFieldProps = {
9021
9104
  bankTransaction: Pick<BankTransaction, 'id' | 'transaction_tags' | 'customer' | 'vendor'>;
9022
9105
  showDescriptions?: boolean;
@@ -9028,7 +9111,7 @@ declare module '@layerfi/components/features/bankTransactions/[bankTransactionId
9028
9111
 
9029
9112
  }
9030
9113
  declare module '@layerfi/components/features/bankTransactions/[bankTransactionId]/customerVendor/components/BankTransactionCustomerVendorSelector' {
9031
- import type { BankTransaction } from '@layerfi/components/types';
9114
+ import type { BankTransaction } from '@layerfi/components/types/bank_transactions';
9032
9115
  type BankTransactionCustomerVendorSelectorProps = {
9033
9116
  bankTransaction: Pick<BankTransaction, 'id' | 'customer' | 'vendor'>;
9034
9117
  };
@@ -9113,7 +9196,7 @@ declare module '@layerfi/components/features/bankTransactions/[bankTransactionId
9113
9196
 
9114
9197
  }
9115
9198
  declare module '@layerfi/components/features/bankTransactions/[bankTransactionId]/tags/components/BankTransactionTagSelector' {
9116
- import type { BankTransaction } from '@layerfi/components/types';
9199
+ import type { BankTransaction } from '@layerfi/components/types/bank_transactions';
9117
9200
  type BankTransactionTagSelectorProps = {
9118
9201
  bankTransaction: Pick<BankTransaction, 'id' | 'transaction_tags'>;
9119
9202
  };
@@ -9145,11 +9228,11 @@ declare module '@layerfi/components/features/callBookings/api/useCallBookings' {
9145
9228
  get data(): {
9146
9229
  readonly data: readonly {
9147
9230
  readonly id: string;
9231
+ readonly businessId: string;
9148
9232
  readonly externalId: string;
9149
9233
  readonly createdAt: Date;
9150
9234
  readonly updatedAt: Date;
9151
9235
  readonly deletedAt?: Date | null | undefined;
9152
- readonly businessId: string;
9153
9236
  readonly state: CallBookingState;
9154
9237
  readonly purpose: CallBookingPurpose;
9155
9238
  readonly callType: CallBookingType;
@@ -9179,11 +9262,11 @@ declare module '@layerfi/components/features/callBookings/api/useCallBookings' {
9179
9262
  declare module '@layerfi/components/features/callBookings/api/useCreateCallBookings' {
9180
9263
  export function useCreateCallBooking(): import("swr/dist/mutation").SWRMutationResponse<{
9181
9264
  readonly id: string;
9265
+ readonly businessId: string;
9182
9266
  readonly externalId: string;
9183
9267
  readonly createdAt: Date;
9184
9268
  readonly updatedAt: Date;
9185
9269
  readonly deletedAt?: Date | null | undefined;
9186
- readonly businessId: string;
9187
9270
  readonly state: import("@layerfi/components/features/callBookings/api/useCallBookings").CallBookingState;
9188
9271
  readonly purpose: import("@layerfi/components/features/callBookings/api/useCallBookings").CallBookingPurpose;
9189
9272
  readonly callType: import("@layerfi/components/features/callBookings/api/useCallBookings").CallBookingType;
@@ -9598,10 +9681,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9598
9681
  readonly transactionTags: readonly {
9599
9682
  readonly value: string;
9600
9683
  readonly id: string;
9684
+ readonly key: string;
9601
9685
  readonly _local?: {
9602
9686
  readonly isOptimistic: boolean;
9603
9687
  } | undefined;
9604
- readonly key: string;
9605
9688
  readonly archivedAt: Date | null | undefined;
9606
9689
  readonly dimensionDisplayName: string | null | undefined;
9607
9690
  readonly valueDisplayName: string | null | undefined;
@@ -9681,6 +9764,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9681
9764
  get data(): {
9682
9765
  readonly data: readonly {
9683
9766
  readonly id: string;
9767
+ readonly businessId: string;
9684
9768
  readonly externalId: string | null;
9685
9769
  readonly status: InvoiceStatus;
9686
9770
  readonly memo: string | null;
@@ -9700,7 +9784,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9700
9784
  readonly isOptimistic: boolean;
9701
9785
  } | undefined;
9702
9786
  } | null;
9703
- readonly businessId: string;
9704
9787
  readonly invoiceNumber: string | null;
9705
9788
  readonly recipientName: string | null;
9706
9789
  readonly lineItems: readonly {
@@ -9711,10 +9794,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9711
9794
  readonly transactionTags: readonly {
9712
9795
  readonly value: string;
9713
9796
  readonly id: string;
9797
+ readonly key: string;
9714
9798
  readonly _local?: {
9715
9799
  readonly isOptimistic: boolean;
9716
9800
  } | undefined;
9717
- readonly key: string;
9718
9801
  readonly archivedAt: Date | null | undefined;
9719
9802
  readonly dimensionDisplayName: string | null | undefined;
9720
9803
  readonly valueDisplayName: string | null | undefined;
@@ -9760,6 +9843,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9760
9843
  get setSize(): (size: number | ((_size: number) => number)) => Promise<{
9761
9844
  readonly data: readonly {
9762
9845
  readonly id: string;
9846
+ readonly businessId: string;
9763
9847
  readonly externalId: string | null;
9764
9848
  readonly status: InvoiceStatus;
9765
9849
  readonly memo: string | null;
@@ -9779,7 +9863,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9779
9863
  readonly isOptimistic: boolean;
9780
9864
  } | undefined;
9781
9865
  } | null;
9782
- readonly businessId: string;
9783
9866
  readonly invoiceNumber: string | null;
9784
9867
  readonly recipientName: string | null;
9785
9868
  readonly lineItems: readonly {
@@ -9790,10 +9873,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9790
9873
  readonly transactionTags: readonly {
9791
9874
  readonly value: string;
9792
9875
  readonly id: string;
9876
+ readonly key: string;
9793
9877
  readonly _local?: {
9794
9878
  readonly isOptimistic: boolean;
9795
9879
  } | undefined;
9796
- readonly key: string;
9797
9880
  readonly archivedAt: Date | null | undefined;
9798
9881
  readonly dimensionDisplayName: string | null | undefined;
9799
9882
  readonly valueDisplayName: string | null | undefined;
@@ -9841,6 +9924,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9841
9924
  get refetch(): import("swr/infinite").SWRInfiniteKeyedMutator<{
9842
9925
  readonly data: readonly {
9843
9926
  readonly id: string;
9927
+ readonly businessId: string;
9844
9928
  readonly externalId: string | null;
9845
9929
  readonly status: InvoiceStatus;
9846
9930
  readonly memo: string | null;
@@ -9860,7 +9944,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9860
9944
  readonly isOptimistic: boolean;
9861
9945
  } | undefined;
9862
9946
  } | null;
9863
- readonly businessId: string;
9864
9947
  readonly invoiceNumber: string | null;
9865
9948
  readonly recipientName: string | null;
9866
9949
  readonly lineItems: readonly {
@@ -9871,10 +9954,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9871
9954
  readonly transactionTags: readonly {
9872
9955
  readonly value: string;
9873
9956
  readonly id: string;
9957
+ readonly key: string;
9874
9958
  readonly _local?: {
9875
9959
  readonly isOptimistic: boolean;
9876
9960
  } | undefined;
9877
- readonly key: string;
9878
9961
  readonly archivedAt: Date | null | undefined;
9879
9962
  readonly dimensionDisplayName: string | null | undefined;
9880
9963
  readonly valueDisplayName: string | null | undefined;
@@ -9922,6 +10005,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9922
10005
  } | undefined) => () => Promise<{
9923
10006
  readonly data: readonly {
9924
10007
  readonly id: string;
10008
+ readonly businessId: string;
9925
10009
  readonly externalId: string | null;
9926
10010
  readonly status: InvoiceStatus;
9927
10011
  readonly memo: string | null;
@@ -9941,7 +10025,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9941
10025
  readonly isOptimistic: boolean;
9942
10026
  } | undefined;
9943
10027
  } | null;
9944
- readonly businessId: string;
9945
10028
  readonly invoiceNumber: string | null;
9946
10029
  readonly recipientName: string | null;
9947
10030
  readonly lineItems: readonly {
@@ -9952,10 +10035,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9952
10035
  readonly transactionTags: readonly {
9953
10036
  readonly value: string;
9954
10037
  readonly id: string;
10038
+ readonly key: string;
9955
10039
  readonly _local?: {
9956
10040
  readonly isOptimistic: boolean;
9957
10041
  } | undefined;
9958
- readonly key: string;
9959
10042
  readonly archivedAt: Date | null | undefined;
9960
10043
  readonly dimensionDisplayName: string | null | undefined;
9961
10044
  readonly valueDisplayName: string | null | undefined;
@@ -10002,6 +10085,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10002
10085
  patchInvoiceByKey: (updatedInvoice: Invoice) => Promise<({
10003
10086
  readonly data: readonly {
10004
10087
  readonly id: string;
10088
+ readonly businessId: string;
10005
10089
  readonly externalId: string | null;
10006
10090
  readonly status: InvoiceStatus;
10007
10091
  readonly memo: string | null;
@@ -10021,7 +10105,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10021
10105
  readonly isOptimistic: boolean;
10022
10106
  } | undefined;
10023
10107
  } | null;
10024
- readonly businessId: string;
10025
10108
  readonly invoiceNumber: string | null;
10026
10109
  readonly recipientName: string | null;
10027
10110
  readonly lineItems: readonly {
@@ -10032,10 +10115,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10032
10115
  readonly transactionTags: readonly {
10033
10116
  readonly value: string;
10034
10117
  readonly id: string;
10118
+ readonly key: string;
10035
10119
  readonly _local?: {
10036
10120
  readonly isOptimistic: boolean;
10037
10121
  } | undefined;
10038
- readonly key: string;
10039
10122
  readonly archivedAt: Date | null | undefined;
10040
10123
  readonly dimensionDisplayName: string | null | undefined;
10041
10124
  readonly valueDisplayName: string | null | undefined;
@@ -10079,6 +10162,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10079
10162
  } | {
10080
10163
  readonly data: readonly {
10081
10164
  readonly id: string;
10165
+ readonly businessId: string;
10082
10166
  readonly externalId: string | null;
10083
10167
  readonly status: InvoiceStatus;
10084
10168
  readonly memo: string | null;
@@ -10098,7 +10182,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10098
10182
  readonly isOptimistic: boolean;
10099
10183
  } | undefined;
10100
10184
  } | null;
10101
- readonly businessId: string;
10102
10185
  readonly invoiceNumber: string | null;
10103
10186
  readonly recipientName: string | null;
10104
10187
  readonly lineItems: readonly {
@@ -10109,10 +10192,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10109
10192
  readonly transactionTags: readonly {
10110
10193
  readonly value: string;
10111
10194
  readonly id: string;
10195
+ readonly key: string;
10112
10196
  readonly _local?: {
10113
10197
  readonly isOptimistic: boolean;
10114
10198
  } | undefined;
10115
- readonly key: string;
10116
10199
  readonly archivedAt: Date | null | undefined;
10117
10200
  readonly dimensionDisplayName: string | null | undefined;
10118
10201
  readonly valueDisplayName: string | null | undefined;
@@ -10157,6 +10240,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10157
10240
  patchInvoiceWithTransformation: (transformation: (invoice: Invoice) => Invoice) => Promise<({
10158
10241
  readonly data: readonly {
10159
10242
  readonly id: string;
10243
+ readonly businessId: string;
10160
10244
  readonly externalId: string | null;
10161
10245
  readonly status: InvoiceStatus;
10162
10246
  readonly memo: string | null;
@@ -10176,7 +10260,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10176
10260
  readonly isOptimistic: boolean;
10177
10261
  } | undefined;
10178
10262
  } | null;
10179
- readonly businessId: string;
10180
10263
  readonly invoiceNumber: string | null;
10181
10264
  readonly recipientName: string | null;
10182
10265
  readonly lineItems: readonly {
@@ -10187,10 +10270,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10187
10270
  readonly transactionTags: readonly {
10188
10271
  readonly value: string;
10189
10272
  readonly id: string;
10273
+ readonly key: string;
10190
10274
  readonly _local?: {
10191
10275
  readonly isOptimistic: boolean;
10192
10276
  } | undefined;
10193
- readonly key: string;
10194
10277
  readonly archivedAt: Date | null | undefined;
10195
10278
  readonly dimensionDisplayName: string | null | undefined;
10196
10279
  readonly valueDisplayName: string | null | undefined;
@@ -10234,6 +10317,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10234
10317
  } | {
10235
10318
  readonly data: readonly {
10236
10319
  readonly id: string;
10320
+ readonly businessId: string;
10237
10321
  readonly externalId: string | null;
10238
10322
  readonly status: InvoiceStatus;
10239
10323
  readonly memo: string | null;
@@ -10253,7 +10337,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10253
10337
  readonly isOptimistic: boolean;
10254
10338
  } | undefined;
10255
10339
  } | null;
10256
- readonly businessId: string;
10257
10340
  readonly invoiceNumber: string | null;
10258
10341
  readonly recipientName: string | null;
10259
10342
  readonly lineItems: readonly {
@@ -10264,10 +10347,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10264
10347
  readonly transactionTags: readonly {
10265
10348
  readonly value: string;
10266
10349
  readonly id: string;
10350
+ readonly key: string;
10267
10351
  readonly _local?: {
10268
10352
  readonly isOptimistic: boolean;
10269
10353
  } | undefined;
10270
- readonly key: string;
10271
10354
  readonly archivedAt: Date | null | undefined;
10272
10355
  readonly dimensionDisplayName: string | null | undefined;
10273
10356
  readonly valueDisplayName: string | null | undefined;
@@ -10359,8 +10442,8 @@ declare module '@layerfi/components/features/invoices/api/useRefundInvoice' {
10359
10442
  readonly isDedicated: boolean;
10360
10443
  };
10361
10444
  }, unknown, Key, {
10362
- readonly completed_at: string;
10363
10445
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod;
10446
+ readonly completed_at: string;
10364
10447
  readonly external_id?: string | undefined;
10365
10448
  readonly memo?: string | undefined;
10366
10449
  readonly reference_number?: string | undefined;
@@ -10416,10 +10499,10 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
10416
10499
  readonly transactionTags: readonly {
10417
10500
  readonly value: string;
10418
10501
  readonly id: string;
10502
+ readonly key: string;
10419
10503
  readonly _local?: {
10420
10504
  readonly isOptimistic: boolean;
10421
10505
  } | undefined;
10422
- readonly key: string;
10423
10506
  readonly archivedAt: Date | null | undefined;
10424
10507
  readonly dimensionDisplayName: string | null | undefined;
10425
10508
  readonly valueDisplayName: string | null | undefined;
@@ -10493,6 +10576,7 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
10493
10576
  get data(): {
10494
10577
  readonly data: {
10495
10578
  readonly id: string;
10579
+ readonly businessId: string;
10496
10580
  readonly externalId: string | null;
10497
10581
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
10498
10582
  readonly memo: string | null;
@@ -10512,7 +10596,6 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
10512
10596
  readonly isOptimistic: boolean;
10513
10597
  } | undefined;
10514
10598
  } | null;
10515
- readonly businessId: string;
10516
10599
  readonly invoiceNumber: string | null;
10517
10600
  readonly recipientName: string | null;
10518
10601
  readonly lineItems: readonly {
@@ -10523,10 +10606,10 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
10523
10606
  readonly transactionTags: readonly {
10524
10607
  readonly value: string;
10525
10608
  readonly id: string;
10609
+ readonly key: string;
10526
10610
  readonly _local?: {
10527
10611
  readonly isOptimistic: boolean;
10528
10612
  } | undefined;
10529
- readonly key: string;
10530
10613
  readonly archivedAt: Date | null | undefined;
10531
10614
  readonly dimensionDisplayName: string | null | undefined;
10532
10615
  readonly valueDisplayName: string | null | undefined;
@@ -10564,6 +10647,7 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
10564
10647
  get trigger(): import("swr/mutation").TriggerWithoutArgs<{
10565
10648
  readonly data: {
10566
10649
  readonly id: string;
10650
+ readonly businessId: string;
10567
10651
  readonly externalId: string | null;
10568
10652
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
10569
10653
  readonly memo: string | null;
@@ -10583,7 +10667,6 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
10583
10667
  readonly isOptimistic: boolean;
10584
10668
  } | undefined;
10585
10669
  } | null;
10586
- readonly businessId: string;
10587
10670
  readonly invoiceNumber: string | null;
10588
10671
  readonly recipientName: string | null;
10589
10672
  readonly lineItems: readonly {
@@ -10594,10 +10677,10 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
10594
10677
  readonly transactionTags: readonly {
10595
10678
  readonly value: string;
10596
10679
  readonly id: string;
10680
+ readonly key: string;
10597
10681
  readonly _local?: {
10598
10682
  readonly isOptimistic: boolean;
10599
10683
  } | undefined;
10600
- readonly key: string;
10601
10684
  readonly archivedAt: Date | null | undefined;
10602
10685
  readonly dimensionDisplayName: string | null | undefined;
10603
10686
  readonly valueDisplayName: string | null | undefined;
@@ -10670,23 +10753,23 @@ declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvo
10670
10753
  get data(): {
10671
10754
  readonly data: {
10672
10755
  readonly at: Date;
10756
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod;
10673
10757
  readonly memo: string | null;
10674
10758
  readonly amount: number;
10675
10759
  readonly referenceNumber: string | null;
10676
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod;
10677
10760
  };
10678
10761
  } | undefined;
10679
10762
  get trigger(): import("swr/mutation").TriggerWithArgs<{
10680
10763
  readonly data: {
10681
10764
  readonly at: Date;
10765
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod;
10682
10766
  readonly memo: string | null;
10683
10767
  readonly amount: number;
10684
10768
  readonly referenceNumber: string | null;
10685
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod;
10686
10769
  };
10687
10770
  }, unknown, Key, {
10688
- readonly amount: number;
10689
10771
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod;
10772
+ readonly amount: number;
10690
10773
  readonly paid_at: string;
10691
10774
  readonly memo?: string | undefined;
10692
10775
  readonly reference_number?: string | undefined;
@@ -10710,6 +10793,7 @@ declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvo
10710
10793
  status: InvoiceStatus;
10711
10794
  outstandingBalance: number;
10712
10795
  id: string;
10796
+ businessId: string;
10713
10797
  externalId: string | null;
10714
10798
  memo: string | null;
10715
10799
  updatedAt: Date | null;
@@ -10728,7 +10812,6 @@ declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvo
10728
10812
  readonly isOptimistic: boolean;
10729
10813
  } | undefined;
10730
10814
  } | null;
10731
- businessId: string;
10732
10815
  invoiceNumber: string | null;
10733
10816
  recipientName: string | null;
10734
10817
  lineItems: readonly {
@@ -10739,10 +10822,10 @@ declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvo
10739
10822
  readonly transactionTags: readonly {
10740
10823
  readonly value: string;
10741
10824
  readonly id: string;
10825
+ readonly key: string;
10742
10826
  readonly _local?: {
10743
10827
  readonly isOptimistic: boolean;
10744
10828
  } | undefined;
10745
- readonly key: string;
10746
10829
  readonly archivedAt: Date | null | undefined;
10747
10830
  readonly dimensionDisplayName: string | null | undefined;
10748
10831
  readonly valueDisplayName: string | null | undefined;
@@ -10832,10 +10915,10 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
10832
10915
  readonly transactionTags: readonly {
10833
10916
  readonly value: string;
10834
10917
  readonly id: string;
10918
+ readonly key: string;
10835
10919
  readonly _local?: {
10836
10920
  readonly isOptimistic: boolean;
10837
10921
  } | undefined;
10838
- readonly key: string;
10839
10922
  readonly archivedAt: Date | null | undefined;
10840
10923
  readonly dimensionDisplayName: string | null | undefined;
10841
10924
  readonly valueDisplayName: string | null | undefined;
@@ -10909,6 +10992,7 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
10909
10992
  get data(): {
10910
10993
  readonly data: {
10911
10994
  readonly id: string;
10995
+ readonly businessId: string;
10912
10996
  readonly externalId: string | null;
10913
10997
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
10914
10998
  readonly memo: string | null;
@@ -10928,7 +11012,6 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
10928
11012
  readonly isOptimistic: boolean;
10929
11013
  } | undefined;
10930
11014
  } | null;
10931
- readonly businessId: string;
10932
11015
  readonly invoiceNumber: string | null;
10933
11016
  readonly recipientName: string | null;
10934
11017
  readonly lineItems: readonly {
@@ -10939,10 +11022,10 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
10939
11022
  readonly transactionTags: readonly {
10940
11023
  readonly value: string;
10941
11024
  readonly id: string;
11025
+ readonly key: string;
10942
11026
  readonly _local?: {
10943
11027
  readonly isOptimistic: boolean;
10944
11028
  } | undefined;
10945
- readonly key: string;
10946
11029
  readonly archivedAt: Date | null | undefined;
10947
11030
  readonly dimensionDisplayName: string | null | undefined;
10948
11031
  readonly valueDisplayName: string | null | undefined;
@@ -10980,6 +11063,7 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
10980
11063
  get trigger(): import("swr/mutation").TriggerWithArgs<{
10981
11064
  readonly data: {
10982
11065
  readonly id: string;
11066
+ readonly businessId: string;
10983
11067
  readonly externalId: string | null;
10984
11068
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
10985
11069
  readonly memo: string | null;
@@ -10999,7 +11083,6 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
10999
11083
  readonly isOptimistic: boolean;
11000
11084
  } | undefined;
11001
11085
  } | null;
11002
- readonly businessId: string;
11003
11086
  readonly invoiceNumber: string | null;
11004
11087
  readonly recipientName: string | null;
11005
11088
  readonly lineItems: readonly {
@@ -11010,10 +11093,10 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
11010
11093
  readonly transactionTags: readonly {
11011
11094
  readonly value: string;
11012
11095
  readonly id: string;
11096
+ readonly key: string;
11013
11097
  readonly _local?: {
11014
11098
  readonly isOptimistic: boolean;
11015
11099
  } | undefined;
11016
- readonly key: string;
11017
11100
  readonly archivedAt: Date | null | undefined;
11018
11101
  readonly dimensionDisplayName: string | null | undefined;
11019
11102
  readonly valueDisplayName: string | null | undefined;
@@ -11138,10 +11221,10 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
11138
11221
  readonly transactionTags: readonly {
11139
11222
  readonly value: string;
11140
11223
  readonly id: string;
11224
+ readonly key: string;
11141
11225
  readonly _local?: {
11142
11226
  readonly isOptimistic: boolean;
11143
11227
  } | undefined;
11144
- readonly key: string;
11145
11228
  readonly archivedAt: Date | null | undefined;
11146
11229
  readonly dimensionDisplayName: string | null | undefined;
11147
11230
  readonly valueDisplayName: string | null | undefined;
@@ -11215,6 +11298,7 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
11215
11298
  get data(): {
11216
11299
  readonly data: {
11217
11300
  readonly id: string;
11301
+ readonly businessId: string;
11218
11302
  readonly externalId: string | null;
11219
11303
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
11220
11304
  readonly memo: string | null;
@@ -11234,7 +11318,6 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
11234
11318
  readonly isOptimistic: boolean;
11235
11319
  } | undefined;
11236
11320
  } | null;
11237
- readonly businessId: string;
11238
11321
  readonly invoiceNumber: string | null;
11239
11322
  readonly recipientName: string | null;
11240
11323
  readonly lineItems: readonly {
@@ -11245,10 +11328,10 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
11245
11328
  readonly transactionTags: readonly {
11246
11329
  readonly value: string;
11247
11330
  readonly id: string;
11331
+ readonly key: string;
11248
11332
  readonly _local?: {
11249
11333
  readonly isOptimistic: boolean;
11250
11334
  } | undefined;
11251
- readonly key: string;
11252
11335
  readonly archivedAt: Date | null | undefined;
11253
11336
  readonly dimensionDisplayName: string | null | undefined;
11254
11337
  readonly valueDisplayName: string | null | undefined;
@@ -11286,6 +11369,7 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
11286
11369
  get trigger(): import("swr/mutation").TriggerWithoutArgs<{
11287
11370
  readonly data: {
11288
11371
  readonly id: string;
11372
+ readonly businessId: string;
11289
11373
  readonly externalId: string | null;
11290
11374
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
11291
11375
  readonly memo: string | null;
@@ -11305,7 +11389,6 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
11305
11389
  readonly isOptimistic: boolean;
11306
11390
  } | undefined;
11307
11391
  } | null;
11308
- readonly businessId: string;
11309
11392
  readonly invoiceNumber: string | null;
11310
11393
  readonly recipientName: string | null;
11311
11394
  readonly lineItems: readonly {
@@ -11316,10 +11399,10 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
11316
11399
  readonly transactionTags: readonly {
11317
11400
  readonly value: string;
11318
11401
  readonly id: string;
11402
+ readonly key: string;
11319
11403
  readonly _local?: {
11320
11404
  readonly isOptimistic: boolean;
11321
11405
  } | undefined;
11322
- readonly key: string;
11323
11406
  readonly archivedAt: Date | null | undefined;
11324
11407
  readonly dimensionDisplayName: string | null | undefined;
11325
11408
  readonly valueDisplayName: string | null | undefined;
@@ -11511,10 +11594,10 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
11511
11594
  transactionTags: Schema.PropertySignature<":", readonly {
11512
11595
  readonly value: string;
11513
11596
  readonly id: string;
11597
+ readonly key: string;
11514
11598
  readonly _local?: {
11515
11599
  readonly isOptimistic: boolean;
11516
11600
  } | undefined;
11517
- readonly key: string;
11518
11601
  readonly archivedAt: Date | null | undefined;
11519
11602
  readonly dimensionDisplayName: string | null | undefined;
11520
11603
  readonly valueDisplayName: string | null | undefined;
@@ -11584,10 +11667,10 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
11584
11667
  readonly transactionTags: readonly {
11585
11668
  readonly value: string;
11586
11669
  readonly id: string;
11670
+ readonly key: string;
11587
11671
  readonly _local?: {
11588
11672
  readonly isOptimistic: boolean;
11589
11673
  } | undefined;
11590
- readonly key: string;
11591
11674
  readonly archivedAt: Date | null | undefined;
11592
11675
  readonly dimensionDisplayName: string | null | undefined;
11593
11676
  readonly valueDisplayName: string | null | undefined;
@@ -11768,10 +11851,10 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
11768
11851
  readonly tags: readonly {
11769
11852
  readonly value: string;
11770
11853
  readonly id: string;
11854
+ readonly key: string;
11771
11855
  readonly _local: {
11772
11856
  readonly isOptimistic: boolean;
11773
11857
  };
11774
- readonly key: string;
11775
11858
  readonly archivedAt: Date | null | undefined;
11776
11859
  readonly dimensionDisplayName: string | null | undefined;
11777
11860
  readonly valueDisplayName: string | null | undefined;
@@ -11985,7 +12068,7 @@ declare module '@layerfi/components/features/ledger/entries/[ledgerEntryId]/tags
11985
12068
 
11986
12069
  }
11987
12070
  declare module '@layerfi/components/features/ledger/entries/api/useListLedgerEntries' {
11988
- import type { JournalEntry } from '@layerfi/components/types';
12071
+ import type { JournalEntry } from '@layerfi/components/types/journal';
11989
12072
  export const LIST_LEDGER_ENTRIES_TAG_KEY = "#list-ledger-entries";
11990
12073
  type GetLedgerEntriesParams = {
11991
12074
  businessId: string;
@@ -12028,7 +12111,7 @@ declare module '@layerfi/components/features/ledger/entries/api/useListLedgerEnt
12028
12111
  }
12029
12112
  declare module '@layerfi/components/features/reports/api/useUnifiedReport' {
12030
12113
  import { type SWRResponse } from 'swr';
12031
- import { type ReportEnum, type UnifiedReport } from '@layerfi/components/schemas/reports/unifiedReport';
12114
+ import { type ReportEnum, type UnifiedReport, type UnifiedReportDateQueryParams } from '@layerfi/components/schemas/reports/unifiedReport';
12032
12115
  export const UNIFIED_REPORT_TAG_KEY = "#unified-report";
12033
12116
  type LineItemDecoded = UnifiedReport['lineItems'][number];
12034
12117
  interface LineItemWithId extends Omit<LineItemDecoded, 'lineItems'> {
@@ -12049,8 +12132,8 @@ declare module '@layerfi/components/features/reports/api/useUnifiedReport' {
12049
12132
  }
12050
12133
  type UseUnifiedReportParameters = {
12051
12134
  report: ReportEnum;
12052
- };
12053
- export function useUnifiedReport({ report }: UseUnifiedReportParameters): UnifiedReportSWRResponse;
12135
+ } & UnifiedReportDateQueryParams;
12136
+ export function useUnifiedReport({ report, ...dateParams }: UseUnifiedReportParameters): UnifiedReportSWRResponse;
12054
12137
  export {};
12055
12138
 
12056
12139
  }
@@ -12309,20 +12392,20 @@ declare module '@layerfi/components/features/tags/tagSchemas' {
12309
12392
  export const makeTag: (i: {
12310
12393
  readonly value: string;
12311
12394
  readonly id: string;
12395
+ readonly key: string;
12312
12396
  readonly _local: {
12313
12397
  readonly isOptimistic: boolean;
12314
12398
  };
12315
- readonly key: string;
12316
12399
  readonly archivedAt: string | null | undefined;
12317
12400
  readonly dimensionDisplayName: string | null | undefined;
12318
12401
  readonly valueDisplayName: string | null | undefined;
12319
12402
  }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
12320
12403
  readonly value: string;
12321
12404
  readonly id: string;
12405
+ readonly key: string;
12322
12406
  readonly _local: {
12323
12407
  readonly isOptimistic: boolean;
12324
12408
  };
12325
- readonly key: string;
12326
12409
  readonly archivedAt: Date | null | undefined;
12327
12410
  readonly dimensionDisplayName: string | null | undefined;
12328
12411
  readonly valueDisplayName: string | null | undefined;
@@ -12448,7 +12531,7 @@ declare module '@layerfi/components/hooks/array/usePaginatedList' {
12448
12531
  declare module '@layerfi/components/hooks/balanceSheet/useBalanceSheet' {
12449
12532
  export function useBalanceSheet({ effectiveDate, }: {
12450
12533
  effectiveDate?: Date;
12451
- }): import("swr").SWRResponse<import("../../types").BalanceSheet, any, any>;
12534
+ }): import("swr").SWRResponse<import("../../types/balance_sheet").BalanceSheet, any, any>;
12452
12535
 
12453
12536
  }
12454
12537
  declare module '@layerfi/components/hooks/bookkeeping/periods/tasks/useDeleteUploadsOnTask' {
@@ -12628,12 +12711,12 @@ declare module '@layerfi/components/hooks/bookkeeping/useBookkeepingStatus' {
12628
12711
  }
12629
12712
  declare module '@layerfi/components/hooks/business/useUpdateBusiness' {
12630
12713
  export const BUSINESS_TAG_KEY = "business";
12631
- export function useUpdateBusiness(): import("swr/mutation").SWRMutationResponse<import("../../types").Business, any, () => {
12714
+ export function useUpdateBusiness(): import("swr/mutation").SWRMutationResponse<import("../../types/business").Business, any, () => {
12632
12715
  readonly accessToken: string;
12633
12716
  readonly apiUrl: string;
12634
12717
  readonly businessId: string;
12635
12718
  readonly tags: readonly [`business:${string}`];
12636
- } | undefined, Partial<import("@layerfi/components/types").Business>>;
12719
+ } | undefined, Partial<import("@layerfi/components/types/business").Business>>;
12637
12720
 
12638
12721
  }
12639
12722
  declare module '@layerfi/components/hooks/businessPersonnel/types' {
@@ -12744,7 +12827,7 @@ declare module '@layerfi/components/hooks/businessPersonnel/useUpdateBusinessPer
12744
12827
 
12745
12828
  }
12746
12829
  declare module '@layerfi/components/hooks/categories/useCategories' {
12747
- import { Category } from '@layerfi/components/types';
12830
+ import { Category } from '@layerfi/components/types/categories';
12748
12831
  import type { CategoriesListMode } from '@layerfi/components/schemas/categorization';
12749
12832
  export const CATEGORIES_TAG_KEY = "#categories";
12750
12833
  export const getCategories: (baseUrl: string, accessToken: string | undefined, options?: {
@@ -12767,7 +12850,7 @@ declare module '@layerfi/components/hooks/categories/useCategories' {
12767
12850
 
12768
12851
  }
12769
12852
  declare module '@layerfi/components/hooks/customAccounts/types' {
12770
- import { Direction } from '@layerfi/components/types/bank_transactions';
12853
+ import { Direction } from '@layerfi/components/types/general';
12771
12854
  export enum CustomAccountSubtype {
12772
12855
  CHECKING = "CHECKING",
12773
12856
  SAVINGS = "SAVINGS",
@@ -12836,7 +12919,7 @@ declare module '@layerfi/components/hooks/customAccounts/useCreateCustomAccount'
12836
12919
  }
12837
12920
  declare module '@layerfi/components/hooks/customAccounts/useCreateCustomAccountTransactions' {
12838
12921
  import type { RawCustomTransaction } from '@layerfi/components/hooks/customAccounts/types';
12839
- import { BankTransaction } from '@layerfi/components/types';
12922
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
12840
12923
  import { APIError } from '@layerfi/components/models/APIError';
12841
12924
  type CreateCustomAccountTransactionsBody = {
12842
12925
  transactions: RawCustomTransaction[];
@@ -13011,7 +13094,9 @@ declare module '@layerfi/components/hooks/useAuth' {
13011
13094
 
13012
13095
  }
13013
13096
  declare module '@layerfi/components/hooks/useBankTransactions/types' {
13014
- import { DateRange, Direction, DisplayState } from '@layerfi/components/types';
13097
+ import { DateRange } from '@layerfi/components/types/general';
13098
+ import { DisplayState } from '@layerfi/components/types/bank_transactions';
13099
+ import { Direction } from '@layerfi/components/types/general';
13015
13100
  import { TagFilterInput } from '@layerfi/components/types/tags';
13016
13101
  export interface NumericRangeFilter {
13017
13102
  min?: number;
@@ -13037,8 +13122,8 @@ declare module '@layerfi/components/hooks/useBankTransactions/types' {
13037
13122
 
13038
13123
  }
13039
13124
  declare module '@layerfi/components/hooks/useBankTransactions/useAugmentedBankTransactions' {
13040
- import { BankTransaction, CategoryUpdate } from '@layerfi/components/types';
13041
- import { DisplayState } from '@layerfi/components/types/bank_transactions';
13125
+ import { CategoryUpdate } from '@layerfi/components/types/categories';
13126
+ import { DisplayState, BankTransaction } from '@layerfi/components/types/bank_transactions';
13042
13127
  import { BankTransactionFilters } from '@layerfi/components/hooks/useBankTransactions/types';
13043
13128
  import { type UseBankTransactionsOptions } from '@layerfi/components/hooks/useBankTransactions/useBankTransactions';
13044
13129
  export function bankTransactionFiltersToHookOptions(filters?: BankTransactionFilters): UseBankTransactionsOptions;
@@ -13070,7 +13155,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/useAugmentedBankTr
13070
13155
  }
13071
13156
  declare module '@layerfi/components/hooks/useBankTransactions/useBankTransactions' {
13072
13157
  import { type GetBankTransactionsReturn } from '@layerfi/components/api/layer/bankTransactions';
13073
- import type { BankTransaction } from '@layerfi/components/types';
13158
+ import type { BankTransaction } from '@layerfi/components/types/bank_transactions';
13074
13159
  export const BANK_TRANSACTIONS_TAG_KEY = "#bank-transactions";
13075
13160
  export type UseBankTransactionsOptions = {
13076
13161
  categorized?: boolean;
@@ -13104,7 +13189,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/useBankTransaction
13104
13189
 
13105
13190
  }
13106
13191
  declare module '@layerfi/components/hooks/useBankTransactions/useBankTransactionsMetadata' {
13107
- import { BankTransaction } from '@layerfi/components/types';
13192
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
13108
13193
  export const GET_BANK_TRANSACTION_METADATA_TAG_KEY = "#bank-transaction-metadata";
13109
13194
  export function useBankTransactionMetadata({ bankTransactionId }: {
13110
13195
  bankTransactionId: BankTransaction['id'];
@@ -13113,7 +13198,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/useBankTransaction
13113
13198
  }
13114
13199
  declare module '@layerfi/components/hooks/useBankTransactions/useCategorizeBankTransaction' {
13115
13200
  import { type GetBankTransactionsReturn } from '@layerfi/components/api/layer/bankTransactions';
13116
- import type { CategoryUpdate } from '@layerfi/components/types';
13201
+ import type { CategoryUpdate } from '@layerfi/components/types/categories';
13117
13202
  import type { SWRInfiniteKeyedMutator } from 'swr/infinite';
13118
13203
  type CategorizeBankTransactionArgs = CategoryUpdate & {
13119
13204
  bankTransactionId: string;
@@ -13121,7 +13206,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/useCategorizeBankT
13121
13206
  type UseCategorizeBankTransactionOptions = {
13122
13207
  mutateBankTransactions: SWRInfiniteKeyedMutator<Array<GetBankTransactionsReturn>>;
13123
13208
  };
13124
- export function useCategorizeBankTransaction({ mutateBankTransactions, }: UseCategorizeBankTransactionOptions): import("swr/mutation").SWRMutationResponse<import("../../types").BankTransaction, any, () => {
13209
+ export function useCategorizeBankTransaction({ mutateBankTransactions, }: UseCategorizeBankTransactionOptions): import("swr/mutation").SWRMutationResponse<import("../../types/bank_transactions").BankTransaction, any, () => {
13125
13210
  accessToken: string;
13126
13211
  apiUrl: string;
13127
13212
  businessId: string;
@@ -13139,7 +13224,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/useMatchBankTransa
13139
13224
  type UseMatchBankTransactionOptions = {
13140
13225
  mutateBankTransactions: SWRInfiniteKeyedMutator<Array<GetBankTransactionsReturn>>;
13141
13226
  };
13142
- export function useMatchBankTransaction({ mutateBankTransactions, }: UseMatchBankTransactionOptions): import("swr/mutation").SWRMutationResponse<import("../../types").BankTransactionMatch, any, () => {
13227
+ export function useMatchBankTransaction({ mutateBankTransactions, }: UseMatchBankTransactionOptions): import("swr/mutation").SWRMutationResponse<import("../../types/bank_transactions").BankTransactionMatch, any, () => {
13143
13228
  accessToken: string;
13144
13229
  apiUrl: string;
13145
13230
  businessId: string;
@@ -13166,7 +13251,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/useUpdateBankTrans
13166
13251
 
13167
13252
  }
13168
13253
  declare module '@layerfi/components/hooks/useBankTransactions/utils' {
13169
- import { BankTransaction, DisplayState } from '@layerfi/components/types';
13254
+ import { BankTransaction, DisplayState } from '@layerfi/components/types/bank_transactions';
13170
13255
  import { AccountItem, NumericRangeFilter } from '@layerfi/components/hooks/useBankTransactions/types';
13171
13256
  export const collectAccounts: (transactions?: BankTransaction[]) => AccountItem[];
13172
13257
  export const uniqAccountsList: (arr: AccountItem[], track?: Set<unknown>) => AccountItem[];
@@ -13177,7 +13262,8 @@ declare module '@layerfi/components/hooks/useBankTransactions/utils' {
13177
13262
  }
13178
13263
  declare module '@layerfi/components/hooks/useBills' {
13179
13264
  import { Bill } from '@layerfi/components/types/bills';
13180
- import { DateRange, Metadata } from '@layerfi/components/types';
13265
+ import { Metadata } from '@layerfi/components/types/api';
13266
+ import { DateRange } from '@layerfi/components/types/general';
13181
13267
  import { Vendor } from '@layerfi/components/types/vendors';
13182
13268
  export type BillStatusFilter = 'PAID' | 'UNPAID';
13183
13269
  type UseBills = () => {
@@ -13240,6 +13326,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useArchiveCateg
13240
13326
  } | undefined) => Promise<{
13241
13327
  readonly data: {
13242
13328
  readonly id: string;
13329
+ readonly businessId: string;
13243
13330
  readonly archivedAt: Date | null | undefined;
13244
13331
  readonly createdAt: Date;
13245
13332
  readonly updatedAt: Date;
@@ -13280,12 +13367,12 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useArchiveCateg
13280
13367
  readonly logo?: string | null | undefined;
13281
13368
  readonly mccs: readonly string[];
13282
13369
  } | null | undefined;
13283
- readonly businessId: string;
13284
13370
  };
13285
13371
  }>;
13286
13372
  export function useArchiveCategorizationRule(): import("swr/mutation").SWRMutationResponse<{
13287
13373
  readonly data: {
13288
13374
  readonly id: string;
13375
+ readonly businessId: string;
13289
13376
  readonly archivedAt: Date | null | undefined;
13290
13377
  readonly createdAt: Date;
13291
13378
  readonly updatedAt: Date;
@@ -13326,7 +13413,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useArchiveCateg
13326
13413
  readonly logo?: string | null | undefined;
13327
13414
  readonly mccs: readonly string[];
13328
13415
  } | null | undefined;
13329
- readonly businessId: string;
13330
13416
  };
13331
13417
  }, any, () => {
13332
13418
  accessToken: string;
@@ -13340,6 +13426,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useCreateCatego
13340
13426
  export function useCreateCategorizationRule(): import("swr/mutation").SWRMutationResponse<{
13341
13427
  readonly data: {
13342
13428
  readonly id: string;
13429
+ readonly businessId: string;
13343
13430
  readonly archivedAt: Date | null | undefined;
13344
13431
  readonly createdAt: Date;
13345
13432
  readonly updatedAt: Date;
@@ -13380,7 +13467,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useCreateCatego
13380
13467
  readonly logo?: string | null | undefined;
13381
13468
  readonly mccs: readonly string[];
13382
13469
  } | null | undefined;
13383
- readonly businessId: string;
13384
13470
  };
13385
13471
  }, any, () => {
13386
13472
  accessToken: string;
@@ -13537,6 +13623,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13537
13623
  get data(): {
13538
13624
  readonly data: readonly {
13539
13625
  readonly id: string;
13626
+ readonly businessId: string;
13540
13627
  readonly archivedAt: Date | null | undefined;
13541
13628
  readonly createdAt: Date;
13542
13629
  readonly updatedAt: Date;
@@ -13577,7 +13664,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13577
13664
  readonly logo?: string | null | undefined;
13578
13665
  readonly mccs: readonly string[];
13579
13666
  } | null | undefined;
13580
- readonly businessId: string;
13581
13667
  }[];
13582
13668
  readonly meta: {
13583
13669
  readonly pagination: {
@@ -13597,6 +13683,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13597
13683
  get setSize(): (size: number | ((_size: number) => number)) => Promise<{
13598
13684
  readonly data: readonly {
13599
13685
  readonly id: string;
13686
+ readonly businessId: string;
13600
13687
  readonly archivedAt: Date | null | undefined;
13601
13688
  readonly createdAt: Date;
13602
13689
  readonly updatedAt: Date;
@@ -13637,7 +13724,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13637
13724
  readonly logo?: string | null | undefined;
13638
13725
  readonly mccs: readonly string[];
13639
13726
  } | null | undefined;
13640
- readonly businessId: string;
13641
13727
  }[];
13642
13728
  readonly meta: {
13643
13729
  readonly pagination: {
@@ -13653,6 +13739,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13653
13739
  get refetch(): import("swr/infinite").SWRInfiniteKeyedMutator<{
13654
13740
  readonly data: readonly {
13655
13741
  readonly id: string;
13742
+ readonly businessId: string;
13656
13743
  readonly archivedAt: Date | null | undefined;
13657
13744
  readonly createdAt: Date;
13658
13745
  readonly updatedAt: Date;
@@ -13693,7 +13780,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13693
13780
  readonly logo?: string | null | undefined;
13694
13781
  readonly mccs: readonly string[];
13695
13782
  } | null | undefined;
13696
- readonly businessId: string;
13697
13783
  }[];
13698
13784
  readonly meta: {
13699
13785
  readonly pagination: {
@@ -13709,6 +13795,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13709
13795
  } | undefined) => () => Promise<{
13710
13796
  readonly data: readonly {
13711
13797
  readonly id: string;
13798
+ readonly businessId: string;
13712
13799
  readonly archivedAt: Date | null | undefined;
13713
13800
  readonly createdAt: Date;
13714
13801
  readonly updatedAt: Date;
@@ -13749,7 +13836,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13749
13836
  readonly logo?: string | null | undefined;
13750
13837
  readonly mccs: readonly string[];
13751
13838
  } | null | undefined;
13752
- readonly businessId: string;
13753
13839
  }[];
13754
13840
  readonly meta: {
13755
13841
  readonly pagination: {
@@ -13764,6 +13850,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13764
13850
  patchCategorizationRuleByKey: (updatedCategorizationRule: CategorizationRule) => Promise<({
13765
13851
  readonly data: readonly {
13766
13852
  readonly id: string;
13853
+ readonly businessId: string;
13767
13854
  readonly archivedAt: Date | null | undefined;
13768
13855
  readonly createdAt: Date;
13769
13856
  readonly updatedAt: Date;
@@ -13804,7 +13891,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13804
13891
  readonly logo?: string | null | undefined;
13805
13892
  readonly mccs: readonly string[];
13806
13893
  } | null | undefined;
13807
- readonly businessId: string;
13808
13894
  }[];
13809
13895
  readonly meta: {
13810
13896
  readonly pagination: {
@@ -13816,6 +13902,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13816
13902
  } | {
13817
13903
  readonly data: readonly {
13818
13904
  readonly id: string;
13905
+ readonly businessId: string;
13819
13906
  readonly archivedAt: Date | null | undefined;
13820
13907
  readonly createdAt: Date;
13821
13908
  readonly updatedAt: Date;
@@ -13856,7 +13943,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13856
13943
  readonly logo?: string | null | undefined;
13857
13944
  readonly mccs: readonly string[];
13858
13945
  } | null | undefined;
13859
- readonly businessId: string;
13860
13946
  }[];
13861
13947
  readonly meta: {
13862
13948
  readonly pagination: {
@@ -13890,7 +13976,8 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/index' {
13890
13976
 
13891
13977
  }
13892
13978
  declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts' {
13893
- import { FormError, DateRange, NewAccount } from '@layerfi/components/types';
13979
+ import { FormError, DateRange } from '@layerfi/components/types/general';
13980
+ import { NewAccount } from '@layerfi/components/types/chart_of_accounts';
13894
13981
  import { BaseSelectOption } from '@layerfi/components/types/general';
13895
13982
  import { NestedLedgerAccountType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
13896
13983
  export interface ChartOfAccountsForm {
@@ -14062,7 +14149,7 @@ declare module '@layerfi/components/hooks/useJournal/index' {
14062
14149
  }
14063
14150
  declare module '@layerfi/components/hooks/useJournal/useJournal' {
14064
14151
  import { Layer } from '@layerfi/components/api/layer';
14065
- import { FormError, FormErrorWithId } from '@layerfi/components/types';
14152
+ import { FormError, FormErrorWithId } from '@layerfi/components/types/general';
14066
14153
  import { BaseSelectOption } from '@layerfi/components/types/general';
14067
14154
  import { JournalEntry, NewApiJournalEntry, NewFormJournalEntry } from '@layerfi/components/types/journal';
14068
14155
  import { type ListLedgerEntriesReturn } from '@layerfi/components/features/ledger/entries/api/useListLedgerEntries';
@@ -14112,11 +14199,11 @@ declare module '@layerfi/components/hooks/useLedgerAccounts/index' {
14112
14199
 
14113
14200
  }
14114
14201
  declare module '@layerfi/components/hooks/useLedgerAccounts/useLedgerAccounts' {
14115
- import { LedgerAccounts, LedgerAccountsEntry } from '@layerfi/components/types';
14202
+ import { LedgerAccountsEntry, type LedgerAccountLineItem } from '@layerfi/components/types/ledger_accounts';
14116
14203
  import { type ListLedgerAccountLinesReturn } from '@layerfi/components/features/ledger/accounts/[ledgerAccountId]/api/useListLedgerAccountLines';
14117
14204
  import type { LedgerAccountBalanceWithNodeType } from '@layerfi/components/types/chart_of_accounts';
14118
14205
  type UseLedgerAccounts = (showReversalEntries: boolean) => {
14119
- data?: LedgerAccounts;
14206
+ data?: LedgerAccountLineItem[] | undefined;
14120
14207
  entryData?: LedgerAccountsEntry;
14121
14208
  isLoading?: boolean;
14122
14209
  isLoadingEntry?: boolean;
@@ -14254,7 +14341,7 @@ declare module '@layerfi/components/hooks/usePaginationRange/usePaginationRange'
14254
14341
  }
14255
14342
  declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
14256
14343
  import { Schema } from 'effect';
14257
- import { Direction } from '@layerfi/components/types';
14344
+ import { Direction } from '@layerfi/components/types/general';
14258
14345
  export const TagFilterSchema: Schema.Struct<{
14259
14346
  key: typeof Schema.String;
14260
14347
  values: Schema.Array$<typeof Schema.String>;
@@ -15179,7 +15266,8 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
15179
15266
 
15180
15267
  }
15181
15268
  declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
15182
- import { ReportingBasis, SortDirection } from '@layerfi/components/types';
15269
+ import { SortDirection } from '@layerfi/components/types/general';
15270
+ import { ReportingBasis } from '@layerfi/components/types/general';
15183
15271
  import { type PnlChartLineItem } from '@layerfi/components/utils/profitAndLossUtils';
15184
15272
  import type { BreadcrumbItem } from '@layerfi/components/components/DetailReportBreadcrumb/DetailReportBreadcrumb';
15185
15273
  export type Scope = 'expenses' | 'revenue';
@@ -15313,7 +15401,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
15313
15401
  }
15314
15402
  declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetailLines' {
15315
15403
  import { type SWRResponse } from 'swr';
15316
- import { ReportingBasis } from '@layerfi/components/types';
15404
+ import { ReportingBasis } from '@layerfi/components/types/general';
15317
15405
  import { PnlDetailLineSchema, PnlDetailLinesDataSchema } from '@layerfi/components/hooks/useProfitAndLoss/schemas';
15318
15406
  export const LIST_PNL_DETAIL_LINES_TAG_KEY = "#list-pnl-detail-lines";
15319
15407
  type PnlStructureLineItemName = string;
@@ -15354,6 +15442,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
15354
15442
  } | null;
15355
15443
  readonly lines: readonly {
15356
15444
  readonly id: string;
15445
+ readonly date: string;
15357
15446
  readonly amount: number;
15358
15447
  readonly account: {
15359
15448
  readonly id: string;
@@ -15369,31 +15458,30 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
15369
15458
  readonly displayName: string;
15370
15459
  };
15371
15460
  };
15372
- readonly date: string;
15373
- readonly direction: import("@layerfi/components/types").Direction;
15461
+ readonly direction: import("@layerfi/components/types/general").Direction;
15374
15462
  readonly source?: {
15375
15463
  readonly type: "Transaction_Ledger_Entry_Source";
15464
+ readonly date: string;
15376
15465
  readonly externalId: string | null;
15377
15466
  readonly memo?: string | null | undefined;
15378
15467
  readonly amount: number;
15379
15468
  readonly description?: string | undefined;
15380
15469
  readonly referenceNumber?: string | null | undefined;
15381
15470
  readonly metadata?: unknown;
15382
- readonly date: string;
15383
15471
  readonly transactionId: string;
15384
- readonly direction: import("@layerfi/components/types").Direction;
15472
+ readonly direction: import("@layerfi/components/types/general").Direction;
15385
15473
  readonly counterparty?: string | null | undefined;
15386
15474
  readonly accountName?: string | undefined;
15387
15475
  readonly displayDescription: string;
15388
15476
  readonly entityName: string;
15389
15477
  } | {
15390
15478
  readonly type: "Invoice_Ledger_Entry_Source";
15479
+ readonly date: string;
15391
15480
  readonly externalId: string | null;
15392
15481
  readonly memo?: string | null | undefined;
15393
15482
  readonly amount: number;
15394
15483
  readonly referenceNumber?: string | null | undefined;
15395
15484
  readonly metadata?: unknown;
15396
- readonly date: string;
15397
15485
  readonly displayDescription: string;
15398
15486
  readonly entityName: string;
15399
15487
  readonly invoiceId: string;
@@ -15498,11 +15586,11 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
15498
15586
  readonly importDate: string;
15499
15587
  } | {
15500
15588
  readonly type: "Invoice_Write_Off_Ledger_Entry_Source";
15589
+ readonly date: string;
15501
15590
  readonly externalId?: string | null | undefined;
15502
15591
  readonly memo?: string | null | undefined;
15503
15592
  readonly referenceNumber?: string | null | undefined;
15504
15593
  readonly metadata?: unknown;
15505
- readonly date: string;
15506
15594
  readonly invoiceIdentifiers: {
15507
15595
  readonly id: string;
15508
15596
  readonly externalId?: string | null | undefined;
@@ -15587,17 +15675,17 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
15587
15675
  readonly payrollId: string;
15588
15676
  } | {
15589
15677
  readonly type: "Bill_Ledger_Entry_Source";
15678
+ readonly date: string;
15590
15679
  readonly externalId?: string | null | undefined;
15591
15680
  readonly memo?: string | null | undefined;
15592
15681
  readonly amount: number;
15593
15682
  readonly referenceNumber?: string | null | undefined;
15594
15683
  readonly metadata?: unknown;
15595
- readonly date: string;
15684
+ readonly billId: string;
15596
15685
  readonly displayDescription: string;
15597
15686
  readonly entityName: string;
15598
15687
  readonly vendorExternalId?: string | null | undefined;
15599
15688
  readonly vendorDescription: string;
15600
- readonly billId: string;
15601
15689
  readonly billNumber?: string | null | undefined;
15602
15690
  } | {
15603
15691
  readonly type: "Bill_Payment_Ledger_Entry_Source";
@@ -15612,9 +15700,9 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
15612
15700
  readonly referenceNumber?: string | null | undefined;
15613
15701
  readonly metadata?: unknown;
15614
15702
  }[];
15703
+ readonly billId: string;
15615
15704
  readonly displayDescription: string;
15616
15705
  readonly entityName: string;
15617
- readonly billId: string;
15618
15706
  readonly billNumber?: string | null | undefined;
15619
15707
  } | {
15620
15708
  readonly type: "Vendor_Credit_Ledger_Entry_Source";
@@ -15710,7 +15798,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
15710
15798
  key: string;
15711
15799
  values: string[];
15712
15800
  } | undefined;
15713
- reportingBasis: import("@layerfi/components/types").ReportingBasis | undefined;
15801
+ reportingBasis: import("@layerfi/components/types/general").ReportingBasis | undefined;
15714
15802
  pnlStructure: string | undefined;
15715
15803
  tags: string[];
15716
15804
  } | undefined, never>;
@@ -15725,7 +15813,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossGloba
15725
15813
 
15726
15814
  }
15727
15815
  declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossLTM' {
15728
- import { ReportingBasis } from '@layerfi/components/types';
15816
+ import { ReportingBasis } from '@layerfi/components/types/general';
15729
15817
  import type { ProfitAndLossSummary } from '@layerfi/components/hooks/useProfitAndLoss/schemas';
15730
15818
  type UseProfitAndLossLTMProps = {
15731
15819
  currentDate: Date;
@@ -16006,7 +16094,7 @@ declare module '@layerfi/components/hooks/useProfitAndLossComparison/index' {
16006
16094
 
16007
16095
  }
16008
16096
  declare module '@layerfi/components/hooks/useProfitAndLossComparison/useProfitAndLossComparison' {
16009
- import { DateRange, MoneyFormat, ReportingBasis } from '@layerfi/components/types';
16097
+ import { DateRange, MoneyFormat, ReportingBasis } from '@layerfi/components/types/general';
16010
16098
  import { MultiValue } from 'react-select';
16011
16099
  import { ProfitAndLossCompareConfig, TagComparisonOption } from '@layerfi/components/types/profit_and_loss';
16012
16100
  export type Scope = 'expenses' | 'revenue';
@@ -16039,7 +16127,7 @@ declare module '@layerfi/components/hooks/useProfitAndLossComparison/useProfitAn
16039
16127
 
16040
16128
  }
16041
16129
  declare module '@layerfi/components/hooks/useProfitAndLossComparison/utils' {
16042
- import { DateRange } from '@layerfi/components/types';
16130
+ import { DateRange } from '@layerfi/components/types/general';
16043
16131
  import { DateRangePickerMode } from '@layerfi/components/providers/GlobalDateStore/GlobalDateStoreProvider';
16044
16132
  import { ProfitAndLossComparisonTags, TagComparisonOption } from '@layerfi/components/types/profit_and_loss';
16045
16133
  import { ReadonlyArrayWithAtLeastOne } from '@layerfi/components/utils/array/getArrayWithAtLeastOneOrFallback';
@@ -16118,7 +16206,7 @@ declare module '@layerfi/components/hooks/useQuickbooks/useQuickbooks' {
16118
16206
  }
16119
16207
  declare module '@layerfi/components/hooks/useReceipts/useReceipts' {
16120
16208
  import { DocumentWithStatus } from '@layerfi/components/components/BankTransactionReceipts/BankTransactionReceipts';
16121
- import { BankTransaction } from '@layerfi/components/types';
16209
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
16122
16210
  import { Awaitable } from '@layerfi/components/types/utility/promises';
16123
16211
  export interface UseReceiptsProps {
16124
16212
  bankTransaction: BankTransaction;
@@ -16137,7 +16225,7 @@ declare module '@layerfi/components/hooks/useStatementOfCashFlow/useStatementOfC
16137
16225
  export function useStatementOfCashFlow({ startDate, endDate, }: {
16138
16226
  startDate?: Date;
16139
16227
  endDate?: Date;
16140
- }): import("swr").SWRResponse<import("../../types").StatementOfCashFlow, any, any>;
16228
+ }): import("swr").SWRResponse<import("../../types/statement_of_cash_flow").StatementOfCashFlow, any, any>;
16141
16229
 
16142
16230
  }
16143
16231
  declare module '@layerfi/components/hooks/useTableExpandRow/index' {
@@ -16586,13 +16674,15 @@ declare module '@layerfi/components/index' {
16586
16674
  export { GeneralLedgerView } from '@layerfi/components/views/GeneralLedger/index';
16587
16675
  export { ProjectProfitabilityView } from '@layerfi/components/views/ProjectProfitability/index';
16588
16676
  export { unstable_BillsView } from '@layerfi/components/views/Bills';
16677
+ export { UnifiedReport as unstable_UnifiedReports } from '@layerfi/components/components/UnifiedReport/UnifiedReport';
16589
16678
  export { Reports } from '@layerfi/components/views/Reports/index';
16590
16679
  export { ProfitAndLossView } from '@layerfi/components/components/ProfitAndLossView/index';
16591
16680
  export { Invoices } from '@layerfi/components/components/Invoices/Invoices';
16592
16681
  export { LayerProvider } from '@layerfi/components/providers/LayerProvider/index';
16593
16682
  export { useLayerContext } from '@layerfi/components/contexts/LayerContext/index';
16594
- export { DisplayState, Direction } from '@layerfi/components/types/bank_transactions';
16595
- export { LinkingMetadata, EntityName } from '@layerfi/components/contexts/InAppLinkContext';
16683
+ export { DisplayState } from '@layerfi/components/types/bank_transactions';
16684
+ export { Direction } from '@layerfi/components/types/general';
16685
+ export { type LinkingMetadata, EntityName } from '@layerfi/components/contexts/InAppLinkContext';
16596
16686
 
16597
16687
  }
16598
16688
  declare module '@layerfi/components/models/APIError' {
@@ -16676,6 +16766,36 @@ declare module '@layerfi/components/providers/AuthInputProvider' {
16676
16766
  export function AuthInputProvider({ appId, appSecret, businessAccessToken, children, }: PropsWithChildren<AuthInputShape>): import("react/jsx-runtime").JSX.Element;
16677
16767
  export {};
16678
16768
 
16769
+ }
16770
+ declare module '@layerfi/components/providers/BankTransactionsCategoryStore/BankTransactionsCategoryStoreProvider' {
16771
+ import { type PropsWithChildren } from 'react';
16772
+ import type { CategoryOption } from '@layerfi/components/components/CategorySelect/CategorySelect';
16773
+ export type BankTransactionsCategoryState = {
16774
+ transactionCategories: Map<string, CategoryOption>;
16775
+ };
16776
+ type BankTransactionsCategoryActions = {
16777
+ actions: {
16778
+ setTransactionCategory: (id: string, category: CategoryOption) => void;
16779
+ setOnlyNewTransactionCategories: (transactionCategories: Array<{
16780
+ id: string;
16781
+ category: CategoryOption;
16782
+ }>) => void;
16783
+ clearTransactionCategory: (id: string) => void;
16784
+ clearMultipleTransactionCategories: (ids: string[]) => void;
16785
+ clearAllTransactionCategories: () => void;
16786
+ };
16787
+ };
16788
+ export function useBankTransactionsCategoryActions(): BankTransactionsCategoryActions['actions'];
16789
+ export function useGetBankTransactionCategory(transactionId: string): {
16790
+ selectedCategory: CategoryOption | undefined;
16791
+ };
16792
+ export function useGetAllBankTransactionsCategories(): {
16793
+ transactionCategories: Map<string, CategoryOption>;
16794
+ };
16795
+ type BankTransactionsCategoryStoreProviderProps = PropsWithChildren;
16796
+ export function BankTransactionsCategoryStoreProvider({ children, }: BankTransactionsCategoryStoreProviderProps): JSX.Element;
16797
+ export {};
16798
+
16679
16799
  }
16680
16800
  declare module '@layerfi/components/providers/BankTransactionsProvider/BankTransactionsProvider' {
16681
16801
  import { ReactNode } from 'react';
@@ -16809,6 +16929,8 @@ declare module '@layerfi/components/providers/GlobalDateStore/GlobalDateStorePro
16809
16929
  const _RANGE_PICKER_MODES: readonly ["dayRangePicker", "monthPicker", "monthRangePicker", "yearPicker"];
16810
16930
  export type DateRangePickerMode = typeof _RANGE_PICKER_MODES[number];
16811
16931
  export const isDateRangePickerMode: (mode: string) => mode is DateRangePickerMode;
16932
+ export function clampToAfterActivationDate(date: Date | number, activationDate: Date): Date;
16933
+ export function clampToPresentOrPast(date: Date | number, cutoff?: Date): Date;
16812
16934
  export type DateRange = {
16813
16935
  startDate: Date;
16814
16936
  endDate: Date;
@@ -17002,7 +17124,7 @@ declare module '@layerfi/components/providers/QuickbooksContextProvider/Quickboo
17002
17124
  }
17003
17125
  declare module '@layerfi/components/providers/ReceiptsProvider/ReceiptsProvider' {
17004
17126
  import { ReactNode } from 'react';
17005
- import { BankTransaction } from '@layerfi/components/types';
17127
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
17006
17128
  interface ReceiptsProviderProps {
17007
17129
  children: ReactNode;
17008
17130
  bankTransaction: BankTransaction;
@@ -17050,6 +17172,24 @@ declare module '@layerfi/components/providers/ReportsModeStoreProvider/ReportsMo
17050
17172
  export function ReportsModeStoreProvider({ children, initialModes, resetPnLModeToDefaultOnMount, }: ReportsModeStoreProviderProps): import("react/jsx-runtime").JSX.Element;
17051
17173
  export {};
17052
17174
 
17175
+ }
17176
+ declare module '@layerfi/components/providers/UnifiedReportRouteStore/UnifiedReportRouteStoreProvider' {
17177
+ import { type PropsWithChildren } from 'react';
17178
+ import { ReportEnum, type UnifiedReportDateQueryParams } from '@layerfi/components/schemas/reports/unifiedReport';
17179
+ type UnifiedReportRouteState = {
17180
+ report: ReportEnum;
17181
+ };
17182
+ export enum UnifiedReportDateVariant {
17183
+ Date = "Date",
17184
+ DateRange = "DateRange"
17185
+ }
17186
+ export const getDateVariantForReportType: (reportType: ReportEnum) => UnifiedReportDateVariant;
17187
+ export function useUnifiedReportRoute(): UnifiedReportRouteState;
17188
+ export function useUnifiedReportDateVariant(): UnifiedReportDateVariant;
17189
+ export function useUnifiedReportDateOrDateRange(): UnifiedReportDateQueryParams;
17190
+ export function UnifiedReportRouteStoreProvider(props: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
17191
+ export {};
17192
+
17053
17193
  }
17054
17194
  declare module '@layerfi/components/public/styles/publicClassname' {
17055
17195
  export const PUBLIC_CLASSNAME = "Layer__Public";
@@ -17253,12 +17393,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17253
17393
  readonly id: string;
17254
17394
  readonly details: ({
17255
17395
  readonly id: string;
17396
+ readonly date: string;
17256
17397
  readonly externalId?: string | null | undefined;
17257
17398
  readonly amount: number;
17258
17399
  readonly description: string;
17259
17400
  readonly referenceNumber?: string | null | undefined;
17260
17401
  readonly metadata?: unknown;
17261
- readonly date: string;
17262
17402
  readonly adjustment: {
17263
17403
  readonly amount: number;
17264
17404
  readonly account: {
@@ -17271,12 +17411,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17271
17411
  readonly type: "Journal_Entry_Match";
17272
17412
  }) | ({
17273
17413
  readonly id: string;
17414
+ readonly date: string;
17274
17415
  readonly externalId?: string | null | undefined;
17275
17416
  readonly amount: number;
17276
17417
  readonly description: string;
17277
17418
  readonly referenceNumber?: string | null | undefined;
17278
17419
  readonly metadata?: unknown;
17279
- readonly date: string;
17280
17420
  readonly adjustment: {
17281
17421
  readonly amount: number;
17282
17422
  readonly account: {
@@ -17295,12 +17435,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17295
17435
  };
17296
17436
  }) | ({
17297
17437
  readonly id: string;
17438
+ readonly date: string;
17298
17439
  readonly externalId?: string | null | undefined;
17299
17440
  readonly amount: number;
17300
17441
  readonly description: string;
17301
17442
  readonly referenceNumber?: string | null | undefined;
17302
17443
  readonly metadata?: unknown;
17303
- readonly date: string;
17304
17444
  readonly adjustment: {
17305
17445
  readonly amount: number;
17306
17446
  readonly account: {
@@ -17319,12 +17459,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17319
17459
  };
17320
17460
  }) | ({
17321
17461
  readonly id: string;
17462
+ readonly date: string;
17322
17463
  readonly externalId?: string | null | undefined;
17323
17464
  readonly amount: number;
17324
17465
  readonly description: string;
17325
17466
  readonly referenceNumber?: string | null | undefined;
17326
17467
  readonly metadata?: unknown;
17327
- readonly date: string;
17328
17468
  readonly adjustment: {
17329
17469
  readonly amount: number;
17330
17470
  readonly account: {
@@ -17343,12 +17483,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17343
17483
  }[];
17344
17484
  }) | ({
17345
17485
  readonly id: string;
17486
+ readonly date: string;
17346
17487
  readonly externalId?: string | null | undefined;
17347
17488
  readonly amount: number;
17348
17489
  readonly description: string;
17349
17490
  readonly referenceNumber?: string | null | undefined;
17350
17491
  readonly metadata?: unknown;
17351
- readonly date: string;
17352
17492
  readonly adjustment: {
17353
17493
  readonly amount: number;
17354
17494
  readonly account: {
@@ -17361,12 +17501,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17361
17501
  readonly type: "Payout_Match";
17362
17502
  }) | ({
17363
17503
  readonly id: string;
17504
+ readonly date: string;
17364
17505
  readonly externalId?: string | null | undefined;
17365
17506
  readonly amount: number;
17366
17507
  readonly description: string;
17367
17508
  readonly referenceNumber?: string | null | undefined;
17368
17509
  readonly metadata?: unknown;
17369
- readonly date: string;
17370
17510
  readonly adjustment: {
17371
17511
  readonly amount: number;
17372
17512
  readonly account: {
@@ -17379,12 +17519,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17379
17519
  readonly type: "Vendor_Payout_Match";
17380
17520
  }) | ({
17381
17521
  readonly id: string;
17522
+ readonly date: string;
17382
17523
  readonly externalId?: string | null | undefined;
17383
17524
  readonly amount: number;
17384
17525
  readonly description: string;
17385
17526
  readonly referenceNumber?: string | null | undefined;
17386
17527
  readonly metadata?: unknown;
17387
- readonly date: string;
17388
17528
  readonly adjustment: {
17389
17529
  readonly amount: number;
17390
17530
  readonly account: {
@@ -17403,12 +17543,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17403
17543
  }[];
17404
17544
  }) | ({
17405
17545
  readonly id: string;
17546
+ readonly date: string;
17406
17547
  readonly externalId?: string | null | undefined;
17407
17548
  readonly amount: number;
17408
17549
  readonly description: string;
17409
17550
  readonly referenceNumber?: string | null | undefined;
17410
17551
  readonly metadata?: unknown;
17411
- readonly date: string;
17412
17552
  readonly adjustment: {
17413
17553
  readonly amount: number;
17414
17554
  readonly account: {
@@ -17421,12 +17561,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17421
17561
  readonly type: "Payroll_Match";
17422
17562
  }) | ({
17423
17563
  readonly id: string;
17564
+ readonly date: string;
17424
17565
  readonly externalId?: string | null | undefined;
17425
17566
  readonly amount: number;
17426
17567
  readonly description: string;
17427
17568
  readonly referenceNumber?: string | null | undefined;
17428
17569
  readonly metadata?: unknown;
17429
- readonly date: string;
17430
17570
  readonly adjustment: {
17431
17571
  readonly amount: number;
17432
17572
  readonly account: {
@@ -17444,9 +17584,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17444
17584
  readonly id: string;
17445
17585
  readonly details: ({
17446
17586
  readonly id: string;
17587
+ readonly date: string;
17447
17588
  readonly amount: number;
17448
17589
  readonly description: string;
17449
- readonly date: string;
17450
17590
  readonly adjustment: {
17451
17591
  readonly amount: number;
17452
17592
  readonly account: {
@@ -17462,9 +17602,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17462
17602
  readonly type: "Journal_Entry_Match";
17463
17603
  }) | ({
17464
17604
  readonly id: string;
17605
+ readonly date: string;
17465
17606
  readonly amount: number;
17466
17607
  readonly description: string;
17467
- readonly date: string;
17468
17608
  readonly adjustment: {
17469
17609
  readonly amount: number;
17470
17610
  readonly account: {
@@ -17486,9 +17626,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17486
17626
  };
17487
17627
  }) | ({
17488
17628
  readonly id: string;
17629
+ readonly date: string;
17489
17630
  readonly amount: number;
17490
17631
  readonly description: string;
17491
- readonly date: string;
17492
17632
  readonly adjustment: {
17493
17633
  readonly amount: number;
17494
17634
  readonly account: {
@@ -17510,9 +17650,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17510
17650
  };
17511
17651
  }) | ({
17512
17652
  readonly id: string;
17653
+ readonly date: string;
17513
17654
  readonly amount: number;
17514
17655
  readonly description: string;
17515
- readonly date: string;
17516
17656
  readonly adjustment: {
17517
17657
  readonly amount: number;
17518
17658
  readonly account: {
@@ -17534,9 +17674,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17534
17674
  }[];
17535
17675
  }) | ({
17536
17676
  readonly id: string;
17677
+ readonly date: string;
17537
17678
  readonly amount: number;
17538
17679
  readonly description: string;
17539
- readonly date: string;
17540
17680
  readonly adjustment: {
17541
17681
  readonly amount: number;
17542
17682
  readonly account: {
@@ -17552,9 +17692,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17552
17692
  readonly type: "Payout_Match";
17553
17693
  }) | ({
17554
17694
  readonly id: string;
17695
+ readonly date: string;
17555
17696
  readonly amount: number;
17556
17697
  readonly description: string;
17557
- readonly date: string;
17558
17698
  readonly adjustment: {
17559
17699
  readonly amount: number;
17560
17700
  readonly account: {
@@ -17570,9 +17710,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17570
17710
  readonly type: "Vendor_Payout_Match";
17571
17711
  }) | ({
17572
17712
  readonly id: string;
17713
+ readonly date: string;
17573
17714
  readonly amount: number;
17574
17715
  readonly description: string;
17575
- readonly date: string;
17576
17716
  readonly adjustment: {
17577
17717
  readonly amount: number;
17578
17718
  readonly account: {
@@ -17594,9 +17734,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17594
17734
  }[];
17595
17735
  }) | ({
17596
17736
  readonly id: string;
17737
+ readonly date: string;
17597
17738
  readonly amount: number;
17598
17739
  readonly description: string;
17599
- readonly date: string;
17600
17740
  readonly adjustment: {
17601
17741
  readonly amount: number;
17602
17742
  readonly account: {
@@ -17612,9 +17752,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17612
17752
  readonly type: "Payroll_Match";
17613
17753
  }) | ({
17614
17754
  readonly id: string;
17755
+ readonly date: string;
17615
17756
  readonly amount: number;
17616
17757
  readonly description: string;
17617
- readonly date: string;
17618
17758
  readonly adjustment: {
17619
17759
  readonly amount: number;
17620
17760
  readonly account: {
@@ -17848,10 +17988,10 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17848
17988
  transactionTags: Schema.PropertySignature<":", readonly {
17849
17989
  readonly value: string;
17850
17990
  readonly id: string;
17991
+ readonly key: string;
17851
17992
  readonly _local?: {
17852
17993
  readonly isOptimistic: boolean;
17853
17994
  } | undefined;
17854
- readonly key: string;
17855
17995
  readonly archivedAt: Date | null | undefined;
17856
17996
  readonly dimensionDisplayName: string | null | undefined;
17857
17997
  readonly valueDisplayName: string | null | undefined;
@@ -17963,9 +18103,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17963
18103
  readonly suggestionPrompt: string | null | undefined;
17964
18104
  readonly transactionsThatWillBeAffected: readonly {
17965
18105
  readonly id: string;
18106
+ readonly date: Date;
17966
18107
  readonly amount: number;
17967
18108
  readonly description?: string | null | undefined;
17968
- readonly date: Date;
17969
18109
  readonly direction: import("@layerfi/components/schemas/bankTransactions/base").BankTransactionDirection;
17970
18110
  readonly counterpartyName?: string | null | undefined;
17971
18111
  }[];
@@ -18027,8 +18167,8 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
18027
18167
  readonly suggestion_prompt: string | null | undefined;
18028
18168
  readonly transactions_that_will_be_affected: readonly {
18029
18169
  readonly id: string;
18030
- readonly amount: number;
18031
18170
  readonly date: string;
18171
+ readonly amount: number;
18032
18172
  readonly direction: import("@layerfi/components/schemas/bankTransactions/base").BankTransactionDirection;
18033
18173
  readonly description?: string | null | undefined;
18034
18174
  readonly counterparty_name?: string | null | undefined;
@@ -18261,15 +18401,15 @@ declare module '@layerfi/components/schemas/bankTransactions/categorizationRules
18261
18401
  suggestionPrompt: Schema.PropertySignature<":", string | null | undefined, "suggestion_prompt", ":", string | null | undefined, false, never>;
18262
18402
  transactionsThatWillBeAffected: Schema.PropertySignature<":", readonly {
18263
18403
  readonly id: string;
18404
+ readonly date: Date;
18264
18405
  readonly amount: number;
18265
18406
  readonly description?: string | null | undefined;
18266
- readonly date: Date;
18267
18407
  readonly direction: import("@layerfi/components/schemas/bankTransactions/base").BankTransactionDirection;
18268
18408
  readonly counterpartyName?: string | null | undefined;
18269
18409
  }[], "transactions_that_will_be_affected", ":", readonly {
18270
18410
  readonly id: string;
18271
- readonly amount: number;
18272
18411
  readonly date: string;
18412
+ readonly amount: number;
18273
18413
  readonly direction: import("@layerfi/components/schemas/bankTransactions/base").BankTransactionDirection;
18274
18414
  readonly description?: string | null | undefined;
18275
18415
  readonly counterparty_name?: string | null | undefined;
@@ -18448,15 +18588,15 @@ declare module '@layerfi/components/schemas/bankTransactions/categorizationRules
18448
18588
  suggestionPrompt: Schema.PropertySignature<":", string | null | undefined, "suggestion_prompt", ":", string | null | undefined, false, never>;
18449
18589
  transactionsThatWillBeAffected: Schema.PropertySignature<":", readonly {
18450
18590
  readonly id: string;
18591
+ readonly date: Date;
18451
18592
  readonly amount: number;
18452
18593
  readonly description?: string | null | undefined;
18453
- readonly date: Date;
18454
18594
  readonly direction: import("@layerfi/components/schemas/bankTransactions/base").BankTransactionDirection;
18455
18595
  readonly counterpartyName?: string | null | undefined;
18456
18596
  }[], "transactions_that_will_be_affected", ":", readonly {
18457
18597
  readonly id: string;
18458
- readonly amount: number;
18459
18598
  readonly date: string;
18599
+ readonly amount: number;
18460
18600
  readonly direction: import("@layerfi/components/schemas/bankTransactions/base").BankTransactionDirection;
18461
18601
  readonly description?: string | null | undefined;
18462
18602
  readonly counterparty_name?: string | null | undefined;
@@ -18924,12 +19064,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
18924
19064
  }>;
18925
19065
  export const decodeMatchDetails: (data: unknown) => ({
18926
19066
  readonly id: string;
19067
+ readonly date: string;
18927
19068
  readonly externalId?: string | null | undefined;
18928
19069
  readonly amount: number;
18929
19070
  readonly description: string;
18930
19071
  readonly referenceNumber?: string | null | undefined;
18931
19072
  readonly metadata?: unknown;
18932
- readonly date: string;
18933
19073
  readonly adjustment: {
18934
19074
  readonly amount: number;
18935
19075
  readonly account: {
@@ -18942,12 +19082,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
18942
19082
  readonly type: "Journal_Entry_Match";
18943
19083
  }) | ({
18944
19084
  readonly id: string;
19085
+ readonly date: string;
18945
19086
  readonly externalId?: string | null | undefined;
18946
19087
  readonly amount: number;
18947
19088
  readonly description: string;
18948
19089
  readonly referenceNumber?: string | null | undefined;
18949
19090
  readonly metadata?: unknown;
18950
- readonly date: string;
18951
19091
  readonly adjustment: {
18952
19092
  readonly amount: number;
18953
19093
  readonly account: {
@@ -18966,12 +19106,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
18966
19106
  };
18967
19107
  }) | ({
18968
19108
  readonly id: string;
19109
+ readonly date: string;
18969
19110
  readonly externalId?: string | null | undefined;
18970
19111
  readonly amount: number;
18971
19112
  readonly description: string;
18972
19113
  readonly referenceNumber?: string | null | undefined;
18973
19114
  readonly metadata?: unknown;
18974
- readonly date: string;
18975
19115
  readonly adjustment: {
18976
19116
  readonly amount: number;
18977
19117
  readonly account: {
@@ -18990,12 +19130,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
18990
19130
  };
18991
19131
  }) | ({
18992
19132
  readonly id: string;
19133
+ readonly date: string;
18993
19134
  readonly externalId?: string | null | undefined;
18994
19135
  readonly amount: number;
18995
19136
  readonly description: string;
18996
19137
  readonly referenceNumber?: string | null | undefined;
18997
19138
  readonly metadata?: unknown;
18998
- readonly date: string;
18999
19139
  readonly adjustment: {
19000
19140
  readonly amount: number;
19001
19141
  readonly account: {
@@ -19014,12 +19154,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
19014
19154
  }[];
19015
19155
  }) | ({
19016
19156
  readonly id: string;
19157
+ readonly date: string;
19017
19158
  readonly externalId?: string | null | undefined;
19018
19159
  readonly amount: number;
19019
19160
  readonly description: string;
19020
19161
  readonly referenceNumber?: string | null | undefined;
19021
19162
  readonly metadata?: unknown;
19022
- readonly date: string;
19023
19163
  readonly adjustment: {
19024
19164
  readonly amount: number;
19025
19165
  readonly account: {
@@ -19032,12 +19172,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
19032
19172
  readonly type: "Payout_Match";
19033
19173
  }) | ({
19034
19174
  readonly id: string;
19175
+ readonly date: string;
19035
19176
  readonly externalId?: string | null | undefined;
19036
19177
  readonly amount: number;
19037
19178
  readonly description: string;
19038
19179
  readonly referenceNumber?: string | null | undefined;
19039
19180
  readonly metadata?: unknown;
19040
- readonly date: string;
19041
19181
  readonly adjustment: {
19042
19182
  readonly amount: number;
19043
19183
  readonly account: {
@@ -19050,12 +19190,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
19050
19190
  readonly type: "Vendor_Payout_Match";
19051
19191
  }) | ({
19052
19192
  readonly id: string;
19193
+ readonly date: string;
19053
19194
  readonly externalId?: string | null | undefined;
19054
19195
  readonly amount: number;
19055
19196
  readonly description: string;
19056
19197
  readonly referenceNumber?: string | null | undefined;
19057
19198
  readonly metadata?: unknown;
19058
- readonly date: string;
19059
19199
  readonly adjustment: {
19060
19200
  readonly amount: number;
19061
19201
  readonly account: {
@@ -19074,12 +19214,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
19074
19214
  }[];
19075
19215
  }) | ({
19076
19216
  readonly id: string;
19217
+ readonly date: string;
19077
19218
  readonly externalId?: string | null | undefined;
19078
19219
  readonly amount: number;
19079
19220
  readonly description: string;
19080
19221
  readonly referenceNumber?: string | null | undefined;
19081
19222
  readonly metadata?: unknown;
19082
- readonly date: string;
19083
19223
  readonly adjustment: {
19084
19224
  readonly amount: number;
19085
19225
  readonly account: {
@@ -19092,12 +19232,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
19092
19232
  readonly type: "Payroll_Match";
19093
19233
  }) | ({
19094
19234
  readonly id: string;
19235
+ readonly date: string;
19095
19236
  readonly externalId?: string | null | undefined;
19096
19237
  readonly amount: number;
19097
19238
  readonly description: string;
19098
19239
  readonly referenceNumber?: string | null | undefined;
19099
19240
  readonly metadata?: unknown;
19100
- readonly date: string;
19101
19241
  readonly adjustment: {
19102
19242
  readonly amount: number;
19103
19243
  readonly account: {
@@ -19702,10 +19842,10 @@ declare module '@layerfi/components/schemas/categorization' {
19702
19842
  tags: Schema.PropertySignature<":", readonly {
19703
19843
  readonly value: string;
19704
19844
  readonly id: string;
19845
+ readonly key: string;
19705
19846
  readonly _local?: {
19706
19847
  readonly isOptimistic: boolean;
19707
19848
  } | undefined;
19708
- readonly key: string;
19709
19849
  readonly archivedAt: Date | null | undefined;
19710
19850
  readonly dimensionDisplayName: string | null | undefined;
19711
19851
  readonly valueDisplayName: string | null | undefined;
@@ -19767,10 +19907,10 @@ declare module '@layerfi/components/schemas/categorization' {
19767
19907
  tags: Schema.PropertySignature<":", readonly {
19768
19908
  readonly value: string;
19769
19909
  readonly id: string;
19910
+ readonly key: string;
19770
19911
  readonly _local?: {
19771
19912
  readonly isOptimistic: boolean;
19772
19913
  } | undefined;
19773
- readonly key: string;
19774
19914
  readonly archivedAt: Date | null | undefined;
19775
19915
  readonly dimensionDisplayName: string | null | undefined;
19776
19916
  readonly valueDisplayName: string | null | undefined;
@@ -19833,10 +19973,10 @@ declare module '@layerfi/components/schemas/categorization' {
19833
19973
  tags: Schema.PropertySignature<":", readonly {
19834
19974
  readonly value: string;
19835
19975
  readonly id: string;
19976
+ readonly key: string;
19836
19977
  readonly _local?: {
19837
19978
  readonly isOptimistic: boolean;
19838
19979
  } | undefined;
19839
- readonly key: string;
19840
19980
  readonly archivedAt: Date | null | undefined;
19841
19981
  readonly dimensionDisplayName: string | null | undefined;
19842
19982
  readonly valueDisplayName: string | null | undefined;
@@ -19897,10 +20037,10 @@ declare module '@layerfi/components/schemas/categorization' {
19897
20037
  tags: Schema.PropertySignature<":", readonly {
19898
20038
  readonly value: string;
19899
20039
  readonly id: string;
20040
+ readonly key: string;
19900
20041
  readonly _local?: {
19901
20042
  readonly isOptimistic: boolean;
19902
20043
  } | undefined;
19903
- readonly key: string;
19904
20044
  readonly archivedAt: Date | null | undefined;
19905
20045
  readonly dimensionDisplayName: string | null | undefined;
19906
20046
  readonly valueDisplayName: string | null | undefined;
@@ -19968,10 +20108,10 @@ declare module '@layerfi/components/schemas/categorization' {
19968
20108
  tags: Schema.PropertySignature<":", readonly {
19969
20109
  readonly value: string;
19970
20110
  readonly id: string;
20111
+ readonly key: string;
19971
20112
  readonly _local?: {
19972
20113
  readonly isOptimistic: boolean;
19973
20114
  } | undefined;
19974
- readonly key: string;
19975
20115
  readonly archivedAt: Date | null | undefined;
19976
20116
  readonly dimensionDisplayName: string | null | undefined;
19977
20117
  readonly valueDisplayName: string | null | undefined;
@@ -20032,10 +20172,10 @@ declare module '@layerfi/components/schemas/categorization' {
20032
20172
  tags: Schema.PropertySignature<":", readonly {
20033
20173
  readonly value: string;
20034
20174
  readonly id: string;
20175
+ readonly key: string;
20035
20176
  readonly _local?: {
20036
20177
  readonly isOptimistic: boolean;
20037
20178
  } | undefined;
20038
- readonly key: string;
20039
20179
  readonly archivedAt: Date | null | undefined;
20040
20180
  readonly dimensionDisplayName: string | null | undefined;
20041
20181
  readonly valueDisplayName: string | null | undefined;
@@ -20205,10 +20345,10 @@ declare module '@layerfi/components/schemas/categorization' {
20205
20345
  tags: Schema.PropertySignature<":", readonly {
20206
20346
  readonly value: string;
20207
20347
  readonly id: string;
20348
+ readonly key: string;
20208
20349
  readonly _local?: {
20209
20350
  readonly isOptimistic: boolean;
20210
20351
  } | undefined;
20211
- readonly key: string;
20212
20352
  readonly archivedAt: Date | null | undefined;
20213
20353
  readonly dimensionDisplayName: string | null | undefined;
20214
20354
  readonly valueDisplayName: string | null | undefined;
@@ -20269,10 +20409,10 @@ declare module '@layerfi/components/schemas/categorization' {
20269
20409
  tags: Schema.PropertySignature<":", readonly {
20270
20410
  readonly value: string;
20271
20411
  readonly id: string;
20412
+ readonly key: string;
20272
20413
  readonly _local?: {
20273
20414
  readonly isOptimistic: boolean;
20274
20415
  } | undefined;
20275
- readonly key: string;
20276
20416
  readonly archivedAt: Date | null | undefined;
20277
20417
  readonly dimensionDisplayName: string | null | undefined;
20278
20418
  readonly valueDisplayName: string | null | undefined;
@@ -22222,7 +22362,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
22222
22362
  }
22223
22363
  declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
22224
22364
  import { Schema } from 'effect';
22225
- import { Direction } from '@layerfi/components/types';
22365
+ import { Direction } from '@layerfi/components/types/general';
22226
22366
  import { LinkingMetadata } from '@layerfi/components/contexts/InAppLinkContext';
22227
22367
  export const FinancialEventIdentifiersSchema: Schema.Struct<{
22228
22368
  id: typeof Schema.String;
@@ -22910,13 +23050,13 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
22910
23050
  }>]>;
22911
23051
  export const decodeLedgerEntrySource: (data: unknown) => {
22912
23052
  readonly type: "Transaction_Ledger_Entry_Source";
23053
+ readonly date: string;
22913
23054
  readonly externalId: string | null;
22914
23055
  readonly memo?: string | null | undefined;
22915
23056
  readonly amount: number;
22916
23057
  readonly description?: string | undefined;
22917
23058
  readonly referenceNumber?: string | null | undefined;
22918
23059
  readonly metadata?: unknown;
22919
- readonly date: string;
22920
23060
  readonly transactionId: string;
22921
23061
  readonly direction: Direction;
22922
23062
  readonly counterparty?: string | null | undefined;
@@ -22925,12 +23065,12 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
22925
23065
  readonly entityName: string;
22926
23066
  } | {
22927
23067
  readonly type: "Invoice_Ledger_Entry_Source";
23068
+ readonly date: string;
22928
23069
  readonly externalId: string | null;
22929
23070
  readonly memo?: string | null | undefined;
22930
23071
  readonly amount: number;
22931
23072
  readonly referenceNumber?: string | null | undefined;
22932
23073
  readonly metadata?: unknown;
22933
- readonly date: string;
22934
23074
  readonly displayDescription: string;
22935
23075
  readonly entityName: string;
22936
23076
  readonly invoiceId: string;
@@ -23035,11 +23175,11 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
23035
23175
  readonly importDate: string;
23036
23176
  } | {
23037
23177
  readonly type: "Invoice_Write_Off_Ledger_Entry_Source";
23178
+ readonly date: string;
23038
23179
  readonly externalId?: string | null | undefined;
23039
23180
  readonly memo?: string | null | undefined;
23040
23181
  readonly referenceNumber?: string | null | undefined;
23041
23182
  readonly metadata?: unknown;
23042
- readonly date: string;
23043
23183
  readonly invoiceIdentifiers: {
23044
23184
  readonly id: string;
23045
23185
  readonly externalId?: string | null | undefined;
@@ -23124,17 +23264,17 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
23124
23264
  readonly payrollId: string;
23125
23265
  } | {
23126
23266
  readonly type: "Bill_Ledger_Entry_Source";
23267
+ readonly date: string;
23127
23268
  readonly externalId?: string | null | undefined;
23128
23269
  readonly memo?: string | null | undefined;
23129
23270
  readonly amount: number;
23130
23271
  readonly referenceNumber?: string | null | undefined;
23131
23272
  readonly metadata?: unknown;
23132
- readonly date: string;
23273
+ readonly billId: string;
23133
23274
  readonly displayDescription: string;
23134
23275
  readonly entityName: string;
23135
23276
  readonly vendorExternalId?: string | null | undefined;
23136
23277
  readonly vendorDescription: string;
23137
- readonly billId: string;
23138
23278
  readonly billNumber?: string | null | undefined;
23139
23279
  } | {
23140
23280
  readonly type: "Bill_Payment_Ledger_Entry_Source";
@@ -23149,9 +23289,9 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
23149
23289
  readonly referenceNumber?: string | null | undefined;
23150
23290
  readonly metadata?: unknown;
23151
23291
  }[];
23292
+ readonly billId: string;
23152
23293
  readonly displayDescription: string;
23153
23294
  readonly entityName: string;
23154
- readonly billId: string;
23155
23295
  readonly billNumber?: string | null | undefined;
23156
23296
  } | {
23157
23297
  readonly type: "Vendor_Credit_Ledger_Entry_Source";
@@ -23210,8 +23350,23 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
23210
23350
  declare module '@layerfi/components/schemas/reports/unifiedReport' {
23211
23351
  import { Schema } from 'effect';
23212
23352
  export enum ReportEnum {
23213
- BalanceSheet = "balance-sheet"
23353
+ BalanceSheet = "balance-sheet",
23354
+ CashflowStatement = "cashflow-statement"
23214
23355
  }
23356
+ export const DateQueryParamsSchema: Schema.Struct<{
23357
+ effectiveDate: Schema.PropertySignature<":", Date, "effective_date", ":", string, false, never>;
23358
+ }>;
23359
+ export const DateRangeQueryParamsSchema: Schema.Struct<{
23360
+ startDate: Schema.PropertySignature<":", Date, "start_date", ":", string, false, never>;
23361
+ endDate: Schema.PropertySignature<":", Date, "end_date", ":", string, false, never>;
23362
+ }>;
23363
+ export const UnifiedReportDateQueryParamsSchema: Schema.Union<[Schema.Struct<{
23364
+ effectiveDate: Schema.PropertySignature<":", Date, "effective_date", ":", string, false, never>;
23365
+ }>, Schema.Struct<{
23366
+ startDate: Schema.PropertySignature<":", Date, "start_date", ":", string, false, never>;
23367
+ endDate: Schema.PropertySignature<":", Date, "end_date", ":", string, false, never>;
23368
+ }>]>;
23369
+ export type UnifiedReportDateQueryParams = typeof UnifiedReportDateQueryParamsSchema.Type;
23215
23370
  export const UnifiedReportSchema: Schema.Struct<{
23216
23371
  businessId: Schema.PropertySignature<":", string, "business_id", ":", string, false, never>;
23217
23372
  lineItems: Schema.PropertySignature<":", readonly {
@@ -23321,13 +23476,9 @@ declare module '@layerfi/components/types/bank_transactions' {
23321
23476
  import { MatchDetailsType } from '@layerfi/components/schemas/bankTransactions/match';
23322
23477
  import { Categorization, Category } from '@layerfi/components/types/categories';
23323
23478
  import { CategorizationStatus } from '@layerfi/components/schemas/bankTransactions/bankTransaction';
23324
- import { S3PresignedUrl } from '@layerfi/components/types/general';
23479
+ import { S3PresignedUrl, type Direction } from '@layerfi/components/types/general';
23325
23480
  import type { TransactionTagEncoded } from '@layerfi/components/features/tags/tagSchemas';
23326
23481
  import { UpdateCategorizationRulesSuggestionSchema } from '@layerfi/components/schemas/bankTransactions/categorizationRules/categorizationRule';
23327
- export enum Direction {
23328
- CREDIT = "CREDIT",
23329
- DEBIT = "DEBIT"
23330
- }
23331
23482
  export enum BankTransactionMatchType {
23332
23483
  CONFIRM_MATCH = "Confirm_Match"
23333
23484
  }
@@ -23622,7 +23773,7 @@ declare module '@layerfi/components/types/categories' {
23622
23773
 
23623
23774
  }
23624
23775
  declare module '@layerfi/components/types/chart_of_accounts' {
23625
- import { Direction } from '@layerfi/components/types/bank_transactions';
23776
+ import { Direction } from '@layerfi/components/types/general';
23626
23777
  import { NestedLedgerAccountType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
23627
23778
  export type AugmentedLedgerAccountBalance = NestedLedgerAccountType & {
23628
23779
  isMatching?: true;
@@ -23682,6 +23833,7 @@ declare module '@layerfi/components/types/file_upload' {
23682
23833
 
23683
23834
  }
23684
23835
  declare module '@layerfi/components/types/general' {
23836
+ import type { EnumWithUnknownValues } from '@layerfi/components/types/utility/enumWithUnknownValues';
23685
23837
  export type SortDirection = 'asc' | 'desc';
23686
23838
  export type View = 'mobile' | 'tablet' | 'desktop';
23687
23839
  export interface BaseSelectOption {
@@ -23707,6 +23859,25 @@ declare module '@layerfi/components/types/general' {
23707
23859
  PROFIT_AND_LOSS = "PROFIT_AND_LOSS",
23708
23860
  STATEMENT_OF_CASH_FLOWS = "STATEMENT_OF_CASH_FLOWS"
23709
23861
  }
23862
+ export interface FormError {
23863
+ field: string;
23864
+ message: string;
23865
+ }
23866
+ export interface FormErrorWithId extends FormError {
23867
+ id: number;
23868
+ }
23869
+ export type DateRange<T = Date> = {
23870
+ startDate: T;
23871
+ endDate: T;
23872
+ };
23873
+ type StrictReportingBasis = 'CASH' | 'CASH_COLLECTED' | 'ACCRUAL';
23874
+ export type ReportingBasis = EnumWithUnknownValues<StrictReportingBasis>;
23875
+ export type MoneyFormat = 'CENTS' | 'DOLLAR_STRING';
23876
+ export enum Direction {
23877
+ CREDIT = "CREDIT",
23878
+ DEBIT = "DEBIT"
23879
+ }
23880
+ export {};
23710
23881
 
23711
23882
  }
23712
23883
  declare module '@layerfi/components/types/journal' {
@@ -23796,7 +23967,8 @@ declare module '@layerfi/components/types/layer_context' {
23796
23967
  import type { EventCallbacks } from '@layerfi/components/providers/LayerProvider/LayerProvider';
23797
23968
  import { LayerError } from '@layerfi/components/models/ErrorHandler';
23798
23969
  import { AccountingConfigurationSchemaType } from '@layerfi/components/schemas/accountingConfiguration';
23799
- import { Business, type DateRange } from '@layerfi/components/types';
23970
+ import { DateRange } from '@layerfi/components/types/general';
23971
+ import { Business } from '@layerfi/components/types/business';
23800
23972
  import { DataModel } from '@layerfi/components/types/general';
23801
23973
  export type LayerContextValues = {
23802
23974
  businessId: string;
@@ -23925,7 +24097,8 @@ declare module '@layerfi/components/types/layer_context' {
23925
24097
  }
23926
24098
  declare module '@layerfi/components/types/ledger_accounts' {
23927
24099
  import { LedgerEntrySourceType } from '@layerfi/components/schemas/generalLedger/ledgerEntrySource';
23928
- import { BankTransaction, Direction } from '@layerfi/components/types/bank_transactions';
24100
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
24101
+ import { Direction } from '@layerfi/components/types/general';
23929
24102
  export type LedgerAccountLineItems = LedgerAccountLineItem[];
23930
24103
  export interface LedgerAccountsEntry {
23931
24104
  business_id: string;
@@ -24210,7 +24383,7 @@ declare module '@layerfi/components/types/location' {
24210
24383
 
24211
24384
  }
24212
24385
  declare module '@layerfi/components/types/profit_and_loss' {
24213
- import type { ReportingBasis } from '@layerfi/components/types';
24386
+ import type { ReportingBasis } from '@layerfi/components/types/general';
24214
24387
  import { ReadonlyArrayWithAtLeastOne } from '@layerfi/components/utils/array/getArrayWithAtLeastOneOrFallback';
24215
24388
  import { LineItem } from '@layerfi/components/schemas/common/lineItem';
24216
24389
  import { TagViewConfig } from '@layerfi/components/types/tags';
@@ -24489,38 +24662,6 @@ declare module '@layerfi/components/types/vendors' {
24489
24662
  status: VendorStatus;
24490
24663
  };
24491
24664
 
24492
- }
24493
- declare module '@layerfi/components/types' {
24494
- import type { EnumWithUnknownValues } from '@layerfi/components/types/utility/enumWithUnknownValues';
24495
- export { OAuthResponse } from '@layerfi/components/types/authentication';
24496
- export { Metadata } from '@layerfi/components/types/api';
24497
- export { LineItem } from '@layerfi/components/types/line_item';
24498
- export { BalanceSheet } from '@layerfi/components/types/balance_sheet';
24499
- export { StatementOfCashFlow } from '@layerfi/components/types/statement_of_cash_flow';
24500
- export { Direction, BankTransaction, DisplayState, SuggestedMatch, BankTransactionMatch, } from '@layerfi/components/types/bank_transactions';
24501
- export { Category, CategorizationType, AutoCategorization, SuggestedCategorization, SingleCategoryUpdate, SplitCategoryUpdate, CategoryUpdate, } from '@layerfi/components/types/categories';
24502
- export { NewAccount, EditAccount, NewChildAccount, } from '@layerfi/components/types/chart_of_accounts';
24503
- export { LedgerAccountLineItems as LedgerAccounts, LedgerAccountLineItem, LedgerAccountsAccount, LedgerAccountsEntry, } from '@layerfi/components/types/ledger_accounts';
24504
- export { SortDirection } from '@layerfi/components/types/general';
24505
- export { Business } from '@layerfi/components/types/business';
24506
- export { Bill } from '@layerfi/components/types/bills';
24507
- export interface FormError {
24508
- field: string;
24509
- message: string;
24510
- }
24511
- export interface FormErrorWithId extends FormError {
24512
- id: number;
24513
- }
24514
- export { JournalEntry, JournalEntryLine, JournalEntryLineItem, } from '@layerfi/components/types/journal';
24515
- export type DateRange<T = Date> = {
24516
- startDate: T;
24517
- endDate: T;
24518
- };
24519
- type StrictReportingBasis = 'CASH' | 'CASH_COLLECTED' | 'ACCRUAL';
24520
- export type ReportingBasis = EnumWithUnknownValues<StrictReportingBasis>;
24521
- export type MoneyFormat = 'CENTS' | 'DOLLAR_STRING';
24522
- export type { LedgerEntrySourceType } from '@layerfi/components/schemas/generalLedger/ledgerEntrySource';
24523
-
24524
24665
  }
24525
24666
  declare module '@layerfi/components/utils/array/getArrayWithAtLeastOneOrFallback' {
24526
24667
  export type ReadonlyArrayWithAtLeastOne<T> = readonly [T, ...T[]];
@@ -24547,7 +24688,8 @@ declare module '@layerfi/components/utils/asMutable' {
24547
24688
  }
24548
24689
  declare module '@layerfi/components/utils/bankTransactions' {
24549
24690
  import { CategoryOption } from '@layerfi/components/components/CategorySelect/CategorySelect';
24550
- import { BankTransaction, DateRange } from '@layerfi/components/types';
24691
+ import { DateRange } from '@layerfi/components/types/general';
24692
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
24551
24693
  export const hasMatch: (bankTransaction?: BankTransaction) => boolean;
24552
24694
  export const isCredit: ({ direction }: Pick<BankTransaction, "direction">) => boolean;
24553
24695
  export const isAlreadyMatched: (bankTransaction?: BankTransaction) => string | undefined;
@@ -24671,7 +24813,7 @@ declare module '@layerfi/components/utils/bookkeeping/tasks/getBookkeepingTaskSt
24671
24813
 
24672
24814
  }
24673
24815
  declare module '@layerfi/components/utils/business' {
24674
- import { Business } from '@layerfi/components/types';
24816
+ import { Business } from '@layerfi/components/types/business';
24675
24817
  export const getActivationDate: (business?: Business) => Date | undefined;
24676
24818
  export const getEarliestDateToBrowse: (business?: Business) => Date | undefined;
24677
24819
  export const isDateAllowedToBrowse: (date: Date, business?: Business) => boolean;
@@ -24757,7 +24899,7 @@ declare module '@layerfi/components/utils/helpers' {
24757
24899
 
24758
24900
  }
24759
24901
  declare module '@layerfi/components/utils/journal' {
24760
- import { LedgerAccountLineItem, LedgerAccountsEntry } from '@layerfi/components/types';
24902
+ import { LedgerAccountLineItem, LedgerAccountsEntry } from '@layerfi/components/types/ledger_accounts';
24761
24903
  import { AccountIdentifierPayloadObject } from '@layerfi/components/types/categories';
24762
24904
  import { JournalEntry, JournalEntryLineItem } from '@layerfi/components/types/journal';
24763
24905
  export const getAccountIdentifierPayload: (journalLineItem: JournalEntryLineItem) => AccountIdentifierPayloadObject;
@@ -24886,6 +25028,7 @@ declare module '@layerfi/components/utils/time/timeUtils' {
24886
25028
  export const toLocalDateString: (date: Date) => string;
24887
25029
  export function getDueDifference(dueDate: Date): number;
24888
25030
  export function isZonedDateTime(val: unknown): val is ZonedDateTime;
25031
+ export const convertDateToZonedDateTime: (date: Date | null) => ZonedDateTime | null;
24889
25032
 
24890
25033
  }
24891
25034
  declare module '@layerfi/components/utils/vendors' {
@@ -25100,7 +25243,7 @@ declare module '@layerfi/components/views/GeneralLedger/index' {
25100
25243
 
25101
25244
  }
25102
25245
  declare module '@layerfi/components/views/ProjectProfitability/ProjectProfitability' {
25103
- import { MoneyFormat } from '@layerfi/components/types';
25246
+ import { MoneyFormat } from '@layerfi/components/types/general';
25104
25247
  import type { DateRangePickerMode } from '@layerfi/components/providers/GlobalDateStore/GlobalDateStoreProvider';
25105
25248
  export type TagOption = {
25106
25249
  label: string;
@@ -25129,7 +25272,7 @@ declare module '@layerfi/components/views/Reports/Reports' {
25129
25272
  import { BalanceSheetStringOverrides } from '@layerfi/components/components/BalanceSheet/BalanceSheet';
25130
25273
  import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
25131
25274
  import { ProfitAndLossDownloadButtonStringOverrides } from '@layerfi/components/components/ProfitAndLossDownloadButton/types';
25132
- import { ProfitAndLossTableStringOverrides } from '@layerfi/components/components/ProfitAndLossTable/index';
25275
+ import { ProfitAndLossTableStringOverrides } from '@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTableComponent';
25133
25276
  import { StatementOfCashFlowStringOverrides } from '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow';
25134
25277
  import { View as ViewType } from '@layerfi/components/types/general';
25135
25278
  import type { TimeRangePickerConfig } from '@layerfi/components/views/Reports/reportTypes';
@@ -25176,7 +25319,7 @@ declare module '@layerfi/components/views/Reports/index' {
25176
25319
  declare module '@layerfi/components/views/Reports/reportTypes' {
25177
25320
  import type { CustomDateRange } from '@layerfi/components/components/DeprecatedDatePicker/DeprecatedDatePickerOptions';
25178
25321
  import type { DateRangePickerMode } from '@layerfi/components/providers/GlobalDateStore/GlobalDateStoreProvider';
25179
- import type { MoneyFormat } from '@layerfi/components/types';
25322
+ import type { MoneyFormat } from '@layerfi/components/types/general';
25180
25323
  export type TimeRangePickerConfig = {
25181
25324
  /**
25182
25325
  * @deprecated Use `defaultDatePickerMode` instead