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

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' {
@@ -996,6 +996,31 @@ declare module '@layerfi/components/components/ActionableRow/ActionableRow' {
996
996
  declare module '@layerfi/components/components/ActionableRow/index' {
997
997
  export { ActionableRow } from '@layerfi/components/components/ActionableRow/ActionableRow';
998
998
 
999
+ }
1000
+ declare module '@layerfi/components/components/AddToCalendar/AddToCalendar' {
1001
+ export type AddToCalendarProvider = 'google' | 'outlook' | 'yahoo' | 'ics';
1002
+ export type AddToCalendarProps = {
1003
+ title: string;
1004
+ description: string;
1005
+ location?: string;
1006
+ startDate: Date;
1007
+ endDate?: Date | null;
1008
+ organizer: {
1009
+ name: string;
1010
+ email: string;
1011
+ };
1012
+ };
1013
+ export const AddToCalendar: ({ title, description, location, startDate, endDate, organizer, }: AddToCalendarProps) => import("react/jsx-runtime").JSX.Element;
1014
+
1015
+ }
1016
+ declare module '@layerfi/components/components/AddToCalendar/downloadICS' {
1017
+ import { IcsCalendar } from 'ts-ics';
1018
+ export function prepareIcsFilename(title: string): string;
1019
+ export function downloadICS(calendar: IcsCalendar, filename: string, triggerInvisibleDownload: (options: {
1020
+ url: string;
1021
+ filename?: string;
1022
+ }) => void): void;
1023
+
999
1024
  }
1000
1025
  declare module '@layerfi/components/components/Badge/Badge' {
1001
1026
  import { ReactNode } from 'react';
@@ -1120,7 +1145,7 @@ declare module '@layerfi/components/components/BalanceSheetExpandAllButton/index
1120
1145
 
1121
1146
  }
1122
1147
  declare module '@layerfi/components/components/BalanceSheetTable/BalanceSheetTable' {
1123
- import { BalanceSheet } from '@layerfi/components/types';
1148
+ import type { BalanceSheet } from '@layerfi/components/types/balance_sheet';
1124
1149
  export interface BalanceSheetTableStringOverrides {
1125
1150
  typeColumnHeader?: string;
1126
1151
  totalColumnHeader?: string;
@@ -1143,7 +1168,7 @@ declare module '@layerfi/components/components/BalanceSheetTable/index' {
1143
1168
 
1144
1169
  }
1145
1170
  declare module '@layerfi/components/components/BankTransactionList/Assignment' {
1146
- import { BankTransaction } from '@layerfi/components/types';
1171
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1147
1172
  export interface AssignmentProps {
1148
1173
  bankTransaction: BankTransaction;
1149
1174
  }
@@ -1151,7 +1176,7 @@ declare module '@layerfi/components/components/BankTransactionList/Assignment' {
1151
1176
 
1152
1177
  }
1153
1178
  declare module '@layerfi/components/components/BankTransactionList/BankTransactionList' {
1154
- import { BankTransaction } from '@layerfi/components/types';
1179
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1155
1180
  import { BankTransactionCTAStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
1156
1181
  interface BankTransactionListProps {
1157
1182
  bankTransactions?: BankTransaction[];
@@ -1168,7 +1193,7 @@ declare module '@layerfi/components/components/BankTransactionList/BankTransacti
1168
1193
 
1169
1194
  }
1170
1195
  declare module '@layerfi/components/components/BankTransactionList/BankTransactionListItem' {
1171
- import { BankTransaction } from '@layerfi/components/types';
1196
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1172
1197
  import { BankTransactionCTAStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
1173
1198
  type Props = {
1174
1199
  index: number;
@@ -1195,7 +1220,7 @@ declare module '@layerfi/components/components/BankTransactionList/index' {
1195
1220
 
1196
1221
  }
1197
1222
  declare module '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileForms' {
1198
- import { BankTransaction } from '@layerfi/components/types';
1223
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1199
1224
  import { Purpose } from '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileListItem';
1200
1225
  interface BankTransactionMobileFormsProps {
1201
1226
  isOpen?: boolean;
@@ -1211,7 +1236,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
1211
1236
 
1212
1237
  }
1213
1238
  declare module '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileList' {
1214
- import { BankTransaction } from '@layerfi/components/types';
1239
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1215
1240
  export interface BankTransactionMobileListProps {
1216
1241
  bankTransactions?: BankTransaction[];
1217
1242
  editable: boolean;
@@ -1225,7 +1250,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
1225
1250
 
1226
1251
  }
1227
1252
  declare module '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileListItem' {
1228
- import { BankTransaction } from '@layerfi/components/types';
1253
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1229
1254
  export interface BankTransactionMobileListItemProps {
1230
1255
  index: number;
1231
1256
  bankTransaction: BankTransaction;
@@ -1256,7 +1281,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Busines
1256
1281
 
1257
1282
  }
1258
1283
  declare module '@layerfi/components/components/BankTransactionMobileList/BusinessForm' {
1259
- import { BankTransaction } from '@layerfi/components/types';
1284
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1260
1285
  interface BusinessFormProps {
1261
1286
  bankTransaction: BankTransaction;
1262
1287
  showCategorization?: boolean;
@@ -1269,7 +1294,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Busines
1269
1294
 
1270
1295
  }
1271
1296
  declare module '@layerfi/components/components/BankTransactionMobileList/MatchForm' {
1272
- import { BankTransaction } from '@layerfi/components/types';
1297
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1273
1298
  export const MatchForm: ({ bankTransaction, showReceiptUploads, showDescriptions, showCategorization, }: {
1274
1299
  bankTransaction: BankTransaction;
1275
1300
  showReceiptUploads?: boolean;
@@ -1279,7 +1304,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/MatchFo
1279
1304
 
1280
1305
  }
1281
1306
  declare module '@layerfi/components/components/BankTransactionMobileList/PersonalForm' {
1282
- import { BankTransaction } from '@layerfi/components/types';
1307
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1283
1308
  interface PersonalFormProps {
1284
1309
  bankTransaction: BankTransaction;
1285
1310
  showReceiptUploads?: boolean;
@@ -1291,7 +1316,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Persona
1291
1316
 
1292
1317
  }
1293
1318
  declare module '@layerfi/components/components/BankTransactionMobileList/SplitAndMatchForm' {
1294
- import { BankTransaction } from '@layerfi/components/types';
1319
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1295
1320
  interface SplitAndMatchFormProps {
1296
1321
  bankTransaction: BankTransaction;
1297
1322
  showTooltips: boolean;
@@ -1304,7 +1329,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/SplitAn
1304
1329
 
1305
1330
  }
1306
1331
  declare module '@layerfi/components/components/BankTransactionMobileList/SplitForm' {
1307
- import { BankTransaction } from '@layerfi/components/types';
1332
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1308
1333
  export const SplitForm: ({ bankTransaction, showTooltips, showCategorization, showReceiptUploads, showDescriptions, }: {
1309
1334
  bankTransaction: BankTransaction;
1310
1335
  showTooltips: boolean;
@@ -1338,7 +1363,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/constan
1338
1363
 
1339
1364
  }
1340
1365
  declare module '@layerfi/components/components/BankTransactionMobileList/utils' {
1341
- import { BankTransaction } from '@layerfi/components/types';
1366
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1342
1367
  import type { CategoryWithEntries } from '@layerfi/components/types/bank_transactions';
1343
1368
  import { CategoryOptionPayload } from '@layerfi/components/components/CategorySelect/CategorySelect';
1344
1369
  export interface Option {
@@ -1360,7 +1385,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/utils'
1360
1385
 
1361
1386
  }
1362
1387
  declare module '@layerfi/components/components/BankTransactionReceipts/BankTransactionReceipts' {
1363
- import { BankTransaction } from '@layerfi/components/types';
1388
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1364
1389
  export interface DocumentWithStatus {
1365
1390
  id?: string;
1366
1391
  url?: string;
@@ -1394,7 +1419,7 @@ declare module '@layerfi/components/components/BankTransactionReceipts/index' {
1394
1419
 
1395
1420
  }
1396
1421
  declare module '@layerfi/components/components/BankTransactionRow/BankTransactionRow' {
1397
- import { BankTransaction } from '@layerfi/components/types';
1422
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1398
1423
  import { BankTransactionCTAStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
1399
1424
  import type { CategoryWithEntries } from '@layerfi/components/types/bank_transactions';
1400
1425
  type Props = {
@@ -1420,7 +1445,7 @@ declare module '@layerfi/components/components/BankTransactionRow/BankTransactio
1420
1445
 
1421
1446
  }
1422
1447
  declare module '@layerfi/components/components/BankTransactionRow/MatchBadge' {
1423
- import { BankTransaction } from '@layerfi/components/types';
1448
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1424
1449
  export interface MatchBadgeProps {
1425
1450
  bankTransaction: BankTransaction;
1426
1451
  classNamePrefix: string;
@@ -1446,7 +1471,7 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactionM
1446
1471
 
1447
1472
  }
1448
1473
  declare module '@layerfi/components/components/BankTransactions/BankTransactionMemo/useBankTransactionMemo' {
1449
- import { BankTransaction } from '@layerfi/components/types';
1474
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1450
1475
  interface BankTransactionMemoProps {
1451
1476
  bankTransactionId: BankTransaction['id'];
1452
1477
  }
@@ -1600,7 +1625,7 @@ declare module '@layerfi/components/components/BankTransactions/constants' {
1600
1625
 
1601
1626
  }
1602
1627
  declare module '@layerfi/components/components/BankTransactions/utils' {
1603
- import { BankTransaction, DisplayState } from '@layerfi/components/types';
1628
+ import { BankTransaction, DisplayState } from '@layerfi/components/types/bank_transactions';
1604
1629
  export const filterVisibility: (scope: DisplayState, bankTransaction: BankTransaction) => boolean;
1605
1630
  export const isCategorized: (bankTransaction: BankTransaction) => boolean;
1606
1631
 
@@ -1617,7 +1642,7 @@ declare module '@layerfi/components/components/BankTransactionsLoader/index' {
1617
1642
 
1618
1643
  }
1619
1644
  declare module '@layerfi/components/components/BankTransactionsTable/BankTransactionsTable' {
1620
- import { BankTransaction } from '@layerfi/components/types';
1645
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1621
1646
  import { BankTransactionsStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
1622
1647
  export interface BankTransactionsTableStringOverrides {
1623
1648
  dateColumnHeaderText?: string;
@@ -1682,7 +1707,7 @@ declare module '@layerfi/components/components/BaseDetailView/BaseDetailView' {
1682
1707
 
1683
1708
  }
1684
1709
  declare module '@layerfi/components/components/Bills/BillSummary' {
1685
- import type { Bill } from '@layerfi/components/types';
1710
+ import type { Bill } from '@layerfi/components/types/bills';
1686
1711
  type BillSummaryProps = {
1687
1712
  bill: Bill;
1688
1713
  };
@@ -1691,7 +1716,7 @@ declare module '@layerfi/components/components/Bills/BillSummary' {
1691
1716
 
1692
1717
  }
1693
1718
  declare module '@layerfi/components/components/Bills/BillSummaryPaid' {
1694
- import { Bill } from '@layerfi/components/types';
1719
+ import type { Bill } from '@layerfi/components/types/bills';
1695
1720
  type BillSummaryPaidProps = {
1696
1721
  bill: Bill;
1697
1722
  };
@@ -1700,7 +1725,7 @@ declare module '@layerfi/components/components/Bills/BillSummaryPaid' {
1700
1725
 
1701
1726
  }
1702
1727
  declare module '@layerfi/components/components/Bills/BillSummaryUnpaid' {
1703
- import { Bill } from '@layerfi/components/types';
1728
+ import type { Bill } from '@layerfi/components/types/bills';
1704
1729
  type BillSummaryUnpaidProps = {
1705
1730
  bill: Bill;
1706
1731
  };
@@ -1729,7 +1754,7 @@ declare module '@layerfi/components/components/Bills/BillsDatePicker' {
1729
1754
  }
1730
1755
  declare module '@layerfi/components/components/Bills/BillsDetails' {
1731
1756
  import { RefObject } from 'react';
1732
- import type { Bill } from '@layerfi/components/types';
1757
+ import { Bill } from '@layerfi/components/types/bills';
1733
1758
  export const BillsDetails: ({ bill, containerRef, }: {
1734
1759
  bill?: Bill;
1735
1760
  containerRef: RefObject<HTMLDivElement>;
@@ -1859,7 +1884,7 @@ declare module '@layerfi/components/components/Bills/useBillsRecordPayment' {
1859
1884
  declare module '@layerfi/components/components/Bills/useUnpaidBillsByVendor' {
1860
1885
  export const useUnpaidBillsByVendor: ({ vendorId }: {
1861
1886
  vendorId?: string;
1862
- }) => import("swr").SWRResponse<import("../../types").Bill[] | undefined, any, any>;
1887
+ }) => import("swr").SWRResponse<import("../../types/bills").Bill[] | undefined, any, any>;
1863
1888
 
1864
1889
  }
1865
1890
  declare module '@layerfi/components/components/BookkeepingStatus/BookkeepingStatus' {
@@ -2136,9 +2161,8 @@ declare module '@layerfi/components/components/CallBooking/CallBooking' {
2136
2161
  export interface CallBookingProps {
2137
2162
  callBooking?: CallBookingData;
2138
2163
  onBookCall?: () => void;
2139
- onAddToCalendar?: (callBooking: CallBookingData) => void;
2140
2164
  }
2141
- export const CallBooking: ({ callBooking, onBookCall, onAddToCalendar, }: CallBookingProps) => import("react/jsx-runtime").JSX.Element;
2165
+ export const CallBooking: ({ callBooking, onBookCall, }: CallBookingProps) => import("react/jsx-runtime").JSX.Element;
2142
2166
 
2143
2167
  }
2144
2168
  declare module '@layerfi/components/components/Card/Card' {
@@ -2163,8 +2187,8 @@ declare module '@layerfi/components/components/CategorizationRules/Categorizatio
2163
2187
 
2164
2188
  }
2165
2189
  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';
2190
+ import { Category } from '@layerfi/components/types/categories';
2191
+ import { SuggestedMatch, type CategoryWithEntries, BankTransaction } from '@layerfi/components/types/bank_transactions';
2168
2192
  import { MatchDetailsType } from '@layerfi/components/schemas/bankTransactions/match';
2169
2193
  type Props = {
2170
2194
  name?: string;
@@ -2310,7 +2334,7 @@ declare module '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccoun
2310
2334
 
2311
2335
  }
2312
2336
  declare module '@layerfi/components/components/ChartOfAccountsForm/constants' {
2313
- import { Direction } from '@layerfi/components/types';
2337
+ import { Direction } from '@layerfi/components/types/general';
2314
2338
  import { BaseSelectOption } from '@layerfi/components/types/general';
2315
2339
  export const LEDGER_ACCOUNT_TYPES: BaseSelectOption[];
2316
2340
  export const DEFAULT_ACCOUNT_TYPE_DIRECTION: Record<string, Direction>;
@@ -2669,13 +2693,103 @@ declare module '@layerfi/components/components/DataTable/PaginatedTable' {
2669
2693
 
2670
2694
  }
2671
2695
  declare module '@layerfi/components/components/DateCalendar/DateCalendar' {
2696
+ import { type ZonedDateTime } from '@internationalized/date';
2672
2697
  type DateCalendarProps = {
2698
+ minDate?: ZonedDateTime | null;
2699
+ maxDate?: ZonedDateTime | null;
2700
+ };
2701
+ export const DateCalendar: ({ minDate, maxDate }: DateCalendarProps) => import("react/jsx-runtime").JSX.Element;
2702
+ export {};
2703
+
2704
+ }
2705
+ declare module '@layerfi/components/components/DatePicker/DatePicker' {
2706
+ import { ZonedDateTime } from '@internationalized/date';
2707
+ type DatePickerProps = {
2708
+ label: string;
2709
+ isReadOnly?: boolean;
2710
+ showLabel?: boolean;
2711
+ date: ZonedDateTime | null;
2712
+ minDate?: ZonedDateTime | null;
2713
+ maxDate?: ZonedDateTime | null;
2714
+ isInvalid?: boolean;
2715
+ errorText?: string | null;
2716
+ onBlur?: () => void;
2717
+ onChange: (date: ZonedDateTime | null) => void;
2718
+ };
2719
+ export const DatePicker: ({ label, isReadOnly, showLabel, date, minDate, maxDate, isInvalid, errorText, onBlur, onChange, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
2720
+ export {};
2721
+
2722
+ }
2723
+ declare module '@layerfi/components/components/DatePicker/useDatePickerState' {
2724
+ import { ZonedDateTime } from '@internationalized/date';
2725
+ type UseDatePickerStateArgs = {
2726
+ date: Date;
2727
+ setDate?: (date: Date) => void;
2673
2728
  minDate?: Date | null;
2674
2729
  maxDate?: Date | null;
2675
2730
  };
2676
- export const DateCalendar: ({ minDate, maxDate }: DateCalendarProps) => import("react/jsx-runtime").JSX.Element;
2731
+ export const useDatePickerState: ({ date, setDate, minDate, maxDate }: UseDatePickerStateArgs) => {
2732
+ localDate: ZonedDateTime | null;
2733
+ isInvalid: boolean;
2734
+ errorText: string | null;
2735
+ onChange: (date: ZonedDateTime | null) => void;
2736
+ onBlur: () => void;
2737
+ minDateZdt: ZonedDateTime | null;
2738
+ maxDateZdt: ZonedDateTime | null;
2739
+ };
2677
2740
  export {};
2678
2741
 
2742
+ }
2743
+ declare module '@layerfi/components/components/DatePicker/utils' {
2744
+ import { ZonedDateTime } from '@internationalized/date';
2745
+ export const getIsDateInvalid: (date: ZonedDateTime | null, { minDate, maxDate }: {
2746
+ minDate?: ZonedDateTime | null;
2747
+ maxDate?: ZonedDateTime | null;
2748
+ }) => "Cannot select empty date" | "Cannot select date before the business activation date" | "Cannot select date after current date" | null;
2749
+
2750
+ }
2751
+ declare module '@layerfi/components/components/DateSelection/DateRangeSelection' {
2752
+ type DateRangeSelectionProps = {
2753
+ minDate?: Date | null;
2754
+ maxDate?: Date | null;
2755
+ };
2756
+ export const DateRangeSelection: ({ minDate, maxDate }: DateRangeSelectionProps) => import("react/jsx-runtime").JSX.Element;
2757
+ export {};
2758
+
2759
+ }
2760
+ declare module '@layerfi/components/components/DateSelection/DateSelection' {
2761
+ type DateSelectionProps = {
2762
+ minDate?: Date | null;
2763
+ maxDate?: Date | null;
2764
+ };
2765
+ export const DateSelection: ({ minDate, maxDate }: DateSelectionProps) => import("react/jsx-runtime").JSX.Element;
2766
+ export {};
2767
+
2768
+ }
2769
+ declare module '@layerfi/components/components/DateSelection/DateSelectionComboBox' {
2770
+ export const DateSelectionComboBox: () => import("react/jsx-runtime").JSX.Element;
2771
+
2772
+ }
2773
+ declare module '@layerfi/components/components/DateSelection/utils' {
2774
+ import { type DateRange } from '@layerfi/components/providers/GlobalDateStore/GlobalDateStoreProvider';
2775
+ export enum Period {
2776
+ Month = "Month",
2777
+ Quarter = "Quarter",
2778
+ Year = "Year"
2779
+ }
2780
+ export function rangeFor(period: Period, offset?: number, base?: Date): DateRange;
2781
+ export enum DatePreset {
2782
+ ThisMonth = "ThisMonth",
2783
+ LastMonth = "LastMonth",
2784
+ ThisQuarter = "ThisQuarter",
2785
+ LastQuarter = "LastQuarter",
2786
+ ThisYear = "ThisYear",
2787
+ LastYear = "LastYear",
2788
+ Custom = "Custom"
2789
+ }
2790
+ export function rangeForPreset(preset: Exclude<DatePreset, 'Custom'>, base?: Date): DateRange;
2791
+ export function presetForDateRange(input: DateRange, selectedPreset?: DatePreset | null, activationDate?: Date): DatePreset | null;
2792
+
2679
2793
  }
2680
2794
  declare module '@layerfi/components/components/DateTime/DateTime' {
2681
2795
  import { TextStyleProps } from '@layerfi/components/components/ui/Typography/Text';
@@ -2896,7 +3010,7 @@ declare module '@layerfi/components/components/ExpandableDataTable/ExpandableDat
2896
3010
 
2897
3011
  }
2898
3012
  declare module '@layerfi/components/components/ExpandedBankTransactionRow/APIErrorNotifications' {
2899
- import { BankTransaction } from '@layerfi/components/types';
3013
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
2900
3014
  interface APIErrorNotificationsProps {
2901
3015
  bankTransaction: BankTransaction;
2902
3016
  containerWidth?: number;
@@ -2906,7 +3020,7 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/APIErr
2906
3020
 
2907
3021
  }
2908
3022
  declare module '@layerfi/components/components/ExpandedBankTransactionRow/ExpandedBankTransactionRow' {
2909
- import { BankTransaction } from '@layerfi/components/types';
3023
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
2910
3024
  type Props = {
2911
3025
  bankTransaction: BankTransaction;
2912
3026
  isOpen?: boolean;
@@ -3020,7 +3134,7 @@ declare module '@layerfi/components/components/HoverMenu/HoverMenu' {
3020
3134
 
3021
3135
  }
3022
3136
  declare module '@layerfi/components/components/HoverMenu/index' {
3023
- export { HoverMenu, HoverMenuProps } from '@layerfi/components/components/HoverMenu/HoverMenu';
3137
+ export { HoverMenu } from '@layerfi/components/components/HoverMenu/HoverMenu';
3024
3138
 
3025
3139
  }
3026
3140
  declare module '@layerfi/components/components/IconBox/IconBox' {
@@ -3481,70 +3595,70 @@ declare module '@layerfi/components/components/Invoices/InvoicePaymentForm/useIn
3481
3595
  };
3482
3596
  export const useInvoicePaymentForm: (props: UseInvoicePaymentFormProps) => {
3483
3597
  form: import("@tanstack/react-form").AppFieldExtendedReactFormApi<{
3598
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3484
3599
  readonly memo: string;
3485
3600
  readonly amount: import("effect/BigDecimal").BigDecimal;
3486
3601
  readonly referenceNumber: string;
3487
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3488
3602
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3489
3603
  }, import("@tanstack/react-form").FormValidateOrFn<{
3604
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3490
3605
  readonly memo: string;
3491
3606
  readonly amount: import("effect/BigDecimal").BigDecimal;
3492
3607
  readonly referenceNumber: string;
3493
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3494
3608
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3495
3609
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3610
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3496
3611
  readonly memo: string;
3497
3612
  readonly amount: import("effect/BigDecimal").BigDecimal;
3498
3613
  readonly referenceNumber: string;
3499
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3500
3614
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3501
3615
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3616
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3502
3617
  readonly memo: string;
3503
3618
  readonly amount: import("effect/BigDecimal").BigDecimal;
3504
3619
  readonly referenceNumber: string;
3505
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3506
3620
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3507
3621
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3622
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3508
3623
  readonly memo: string;
3509
3624
  readonly amount: import("effect/BigDecimal").BigDecimal;
3510
3625
  readonly referenceNumber: string;
3511
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3512
3626
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3513
3627
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3628
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3514
3629
  readonly memo: string;
3515
3630
  readonly amount: import("effect/BigDecimal").BigDecimal;
3516
3631
  readonly referenceNumber: string;
3517
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3518
3632
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3519
3633
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3634
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3520
3635
  readonly memo: string;
3521
3636
  readonly amount: import("effect/BigDecimal").BigDecimal;
3522
3637
  readonly referenceNumber: string;
3523
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3524
3638
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3525
3639
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3640
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3526
3641
  readonly memo: string;
3527
3642
  readonly amount: import("effect/BigDecimal").BigDecimal;
3528
3643
  readonly referenceNumber: string;
3529
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3530
3644
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3531
3645
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3646
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3532
3647
  readonly memo: string;
3533
3648
  readonly amount: import("effect/BigDecimal").BigDecimal;
3534
3649
  readonly referenceNumber: string;
3535
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3536
3650
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3537
3651
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3652
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3538
3653
  readonly memo: string;
3539
3654
  readonly amount: import("effect/BigDecimal").BigDecimal;
3540
3655
  readonly referenceNumber: string;
3541
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3542
3656
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3543
3657
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3658
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3544
3659
  readonly memo: string;
3545
3660
  readonly amount: import("effect/BigDecimal").BigDecimal;
3546
3661
  readonly referenceNumber: string;
3547
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3548
3662
  readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3549
3663
  }>, unknown, {
3550
3664
  readonly BaseFormTextField: typeof import("@layerfi/components/features/forms/components/BaseFormTextField").BaseFormTextField;
@@ -3607,49 +3721,49 @@ declare module '@layerfi/components/components/Invoices/InvoiceRefundForm/useInv
3607
3721
  };
3608
3722
  export const useInvoiceRefundForm: ({ onSuccess, invoice }: UseInvoiceRefundFormProps) => {
3609
3723
  form: import("@tanstack/react-form").AppFieldExtendedReactFormApi<{
3724
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3610
3725
  readonly amount: import("effect/BigDecimal").BigDecimal;
3611
3726
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3612
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3613
3727
  }, import("@tanstack/react-form").FormValidateOrFn<{
3728
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3614
3729
  readonly amount: import("effect/BigDecimal").BigDecimal;
3615
3730
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3616
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3617
3731
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3732
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3618
3733
  readonly amount: import("effect/BigDecimal").BigDecimal;
3619
3734
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3620
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3621
3735
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3736
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3622
3737
  readonly amount: import("effect/BigDecimal").BigDecimal;
3623
3738
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3624
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3625
3739
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3740
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3626
3741
  readonly amount: import("effect/BigDecimal").BigDecimal;
3627
3742
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3628
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3629
3743
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3744
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3630
3745
  readonly amount: import("effect/BigDecimal").BigDecimal;
3631
3746
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3632
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3633
3747
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3748
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3634
3749
  readonly amount: import("effect/BigDecimal").BigDecimal;
3635
3750
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3636
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3637
3751
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3752
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3638
3753
  readonly amount: import("effect/BigDecimal").BigDecimal;
3639
3754
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3640
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3641
3755
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3756
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3642
3757
  readonly amount: import("effect/BigDecimal").BigDecimal;
3643
3758
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3644
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3645
3759
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3760
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3646
3761
  readonly amount: import("effect/BigDecimal").BigDecimal;
3647
3762
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3648
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3649
3763
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3764
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3650
3765
  readonly amount: import("effect/BigDecimal").BigDecimal;
3651
3766
  readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3652
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3653
3767
  }>, unknown, {
3654
3768
  readonly BaseFormTextField: typeof import("@layerfi/components/features/forms/components/BaseFormTextField").BaseFormTextField;
3655
3769
  readonly FormBigDecimalField: typeof import("@layerfi/components/features/forms/components/FormBigDecimalField").FormBigDecimalField;
@@ -4118,8 +4232,8 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/journalE
4118
4232
  readonly valueDisplayName: string | null | undefined;
4119
4233
  }[] | undefined;
4120
4234
  readonly direction: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
4121
- readonly vendorExternalId?: string | undefined;
4122
4235
  readonly vendorId?: string | undefined;
4236
+ readonly vendorExternalId?: string | undefined;
4123
4237
  readonly accountIdentifier: {
4124
4238
  readonly type: "StableName";
4125
4239
  readonly stableName: string;
@@ -4147,8 +4261,8 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/journalE
4147
4261
  readonly dimension_display_name: string | null | undefined;
4148
4262
  readonly value_display_name: string | null | undefined;
4149
4263
  }[] | undefined;
4150
- readonly vendor_external_id?: string | undefined;
4151
4264
  readonly vendor_id?: string | undefined;
4265
+ readonly vendor_external_id?: string | undefined;
4152
4266
  readonly customer_id?: string | undefined;
4153
4267
  readonly customer_external_id?: string | undefined;
4154
4268
  }[], false, never>;
@@ -4250,10 +4364,10 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/journalE
4250
4364
  transactionTags: Schema.PropertySignature<"?:", readonly {
4251
4365
  readonly value: string;
4252
4366
  readonly id: string;
4367
+ readonly key: string;
4253
4368
  readonly _local?: {
4254
4369
  readonly isOptimistic: boolean;
4255
4370
  } | undefined;
4256
- readonly key: string;
4257
4371
  readonly archivedAt: Date | null | undefined;
4258
4372
  readonly dimensionDisplayName: string | null | undefined;
4259
4373
  readonly valueDisplayName: string | null | undefined;
@@ -4471,10 +4585,10 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/journalE
4471
4585
  readonly transactionTags?: readonly {
4472
4586
  readonly value: string;
4473
4587
  readonly id: string;
4588
+ readonly key: string;
4474
4589
  readonly _local?: {
4475
4590
  readonly isOptimistic: boolean;
4476
4591
  } | undefined;
4477
- readonly key: string;
4478
4592
  readonly archivedAt: Date | null | undefined;
4479
4593
  readonly dimensionDisplayName: string | null | undefined;
4480
4594
  readonly valueDisplayName: string | null | undefined;
@@ -4733,10 +4847,10 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/journalE
4733
4847
  readonly transactionTags?: readonly {
4734
4848
  readonly value: string;
4735
4849
  readonly id: string;
4850
+ readonly key: string;
4736
4851
  readonly _local?: {
4737
4852
  readonly isOptimistic: boolean;
4738
4853
  } | undefined;
4739
- readonly key: string;
4740
4854
  readonly archivedAt: Date | null | undefined;
4741
4855
  readonly dimensionDisplayName: string | null | undefined;
4742
4856
  readonly valueDisplayName: string | null | undefined;
@@ -4952,8 +5066,8 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/journalE
4952
5066
  readonly valueDisplayName: string | null | undefined;
4953
5067
  }[] | undefined;
4954
5068
  readonly direction: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
4955
- readonly vendorExternalId?: string | undefined;
4956
5069
  readonly vendorId?: string | undefined;
5070
+ readonly vendorExternalId?: string | undefined;
4957
5071
  readonly accountIdentifier: {
4958
5072
  readonly type: "StableName";
4959
5073
  readonly stableName: string;
@@ -4981,8 +5095,8 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/journalE
4981
5095
  readonly dimension_display_name: string | null | undefined;
4982
5096
  readonly value_display_name: string | null | undefined;
4983
5097
  }[] | undefined;
4984
- readonly vendor_external_id?: string | undefined;
4985
5098
  readonly vendor_id?: string | undefined;
5099
+ readonly vendor_external_id?: string | undefined;
4986
5100
  readonly customer_id?: string | undefined;
4987
5101
  readonly customer_external_id?: string | undefined;
4988
5102
  }[], false, never>;
@@ -5116,10 +5230,10 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/useUpser
5116
5230
  readonly transactionTags?: readonly {
5117
5231
  readonly value: string;
5118
5232
  readonly id: string;
5233
+ readonly key: string;
5119
5234
  readonly _local?: {
5120
5235
  readonly isOptimistic: boolean;
5121
5236
  } | undefined;
5122
- readonly key: string;
5123
5237
  readonly archivedAt: Date | null | undefined;
5124
5238
  readonly dimensionDisplayName: string | null | undefined;
5125
5239
  readonly valueDisplayName: string | null | undefined;
@@ -5130,13 +5244,13 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/useUpser
5130
5244
  readonly lineItemId: string;
5131
5245
  }[];
5132
5246
  readonly entry: {
5247
+ readonly businessId: string;
5133
5248
  readonly memo: string | null;
5134
5249
  readonly referenceNumber: string | null;
5135
5250
  readonly metadata: unknown;
5136
5251
  readonly createdAt: Date;
5137
5252
  readonly customer: unknown;
5138
5253
  readonly vendor: unknown;
5139
- readonly businessId: string;
5140
5254
  readonly transactionTags: readonly unknown[];
5141
5255
  readonly entryId: string;
5142
5256
  readonly lineItems: readonly {
@@ -5278,10 +5392,10 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/useUpser
5278
5392
  readonly transactionTags?: readonly {
5279
5393
  readonly value: string;
5280
5394
  readonly id: string;
5395
+ readonly key: string;
5281
5396
  readonly _local?: {
5282
5397
  readonly isOptimistic: boolean;
5283
5398
  } | undefined;
5284
- readonly key: string;
5285
5399
  readonly archivedAt: Date | null | undefined;
5286
5400
  readonly dimensionDisplayName: string | null | undefined;
5287
5401
  readonly valueDisplayName: string | null | undefined;
@@ -5292,13 +5406,13 @@ declare module '@layerfi/components/components/Journal/JournalEntryForm/useUpser
5292
5406
  readonly lineItemId: string;
5293
5407
  }[];
5294
5408
  readonly entry: {
5409
+ readonly businessId: string;
5295
5410
  readonly memo: string | null;
5296
5411
  readonly referenceNumber: string | null;
5297
5412
  readonly metadata: unknown;
5298
5413
  readonly createdAt: Date;
5299
5414
  readonly customer: unknown;
5300
5415
  readonly vendor: unknown;
5301
- readonly businessId: string;
5302
5416
  readonly transactionTags: readonly unknown[];
5303
5417
  readonly entryId: string;
5304
5418
  readonly lineItems: readonly {
@@ -5425,7 +5539,7 @@ declare module '@layerfi/components/components/JournalSidebar/index' {
5425
5539
 
5426
5540
  }
5427
5541
  declare module '@layerfi/components/components/JournalTable/JournalTable' {
5428
- import { JournalEntry } from '@layerfi/components/types';
5542
+ import { JournalEntry } from '@layerfi/components/types/journal';
5429
5543
  import { View } from '@layerfi/components/types/general';
5430
5544
  import { JournalTableStringOverrides } from '@layerfi/components/components/JournalTable/JournalTableWithPanel';
5431
5545
  export const JournalTable: ({ view, data, stringOverrides, }: {
@@ -5490,9 +5604,9 @@ declare module '@layerfi/components/components/LedgerAccount/LedgerAccountIndex'
5490
5604
 
5491
5605
  }
5492
5606
  declare module '@layerfi/components/components/LedgerAccount/LedgerAccountRow' {
5493
- import { LedgerAccountLineItem } from '@layerfi/components/types';
5494
5607
  import { View } from '@layerfi/components/types/general';
5495
5608
  import { LedgerAccountNodeType } from '@layerfi/components/types/chart_of_accounts';
5609
+ import { LedgerAccountLineItem } from '@layerfi/components/types/ledger_accounts';
5496
5610
  export interface LedgerAccountRowProps {
5497
5611
  row: LedgerAccountLineItem;
5498
5612
  index: number;
@@ -5576,7 +5690,7 @@ declare module '@layerfi/components/components/LedgerAccountEntryDetails/index'
5576
5690
 
5577
5691
  }
5578
5692
  declare module '@layerfi/components/components/LinkedAccountOptions/LinkedAccountOptions' {
5579
- import { HoverMenuProps } from '@layerfi/components/components/HoverMenu/index';
5693
+ import { HoverMenuProps } from '@layerfi/components/components/HoverMenu/HoverMenu';
5580
5694
  interface LinkedAccountOptionsProps extends HoverMenuProps {
5581
5695
  showLedgerBalance?: boolean;
5582
5696
  }
@@ -5812,7 +5926,7 @@ declare module '@layerfi/components/components/Loader/index' {
5812
5926
 
5813
5927
  }
5814
5928
  declare module '@layerfi/components/components/MatchForm/MatchForm' {
5815
- import { BankTransaction } from '@layerfi/components/types';
5929
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
5816
5930
  export interface MatchFormProps {
5817
5931
  classNamePrefix: string;
5818
5932
  bankTransaction: BankTransaction;
@@ -5954,6 +6068,17 @@ declare module '@layerfi/components/components/PlatformOnboarding/PlatformOnboar
5954
6068
  export const PlatformOnboarding: ({ onComplete }: PlatformOnboardingProps) => import("react/jsx-runtime").JSX.Element;
5955
6069
  export {};
5956
6070
 
6071
+ }
6072
+ declare module '@layerfi/components/components/PlatformOnboarding/Steps/BookOnboardingCallStep' {
6073
+ type BookOnboardingCallStepProps = {
6074
+ onNext: () => void;
6075
+ title?: string;
6076
+ description?: string;
6077
+ stepsEnabled?: string[];
6078
+ };
6079
+ export const BookOnboardingCallStep: ({ title, description, onNext }: BookOnboardingCallStepProps) => import("react/jsx-runtime").JSX.Element | null;
6080
+ export {};
6081
+
5957
6082
  }
5958
6083
  declare module '@layerfi/components/components/PlatformOnboarding/Steps/BusinessInfoStep' {
5959
6084
  type BusinessInfoStepProps = {
@@ -5997,7 +6122,7 @@ declare module '@layerfi/components/components/PlatformOnboarding/Steps/WelcomeS
5997
6122
  }
5998
6123
  declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
5999
6124
  import { PropsWithChildren } from 'react';
6000
- import { ReportingBasis } from '@layerfi/components/types';
6125
+ import { ReportingBasis } from '@layerfi/components/types/general';
6001
6126
  import { ProfitAndLossSummaries } from '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries';
6002
6127
  import { ProfitAndLossCompareConfig } from '@layerfi/components/types/profit_and_loss';
6003
6128
  type Props = PropsWithChildren & {
@@ -6124,7 +6249,7 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Detai
6124
6249
  }
6125
6250
  declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/DetailedTable' {
6126
6251
  import { Scope, SidebarScope, ProfitAndLossFilters } from '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss';
6127
- import { SortDirection } from '@layerfi/components/types';
6252
+ import { SortDirection } from '@layerfi/components/types/general';
6128
6253
  import type { PnlChartLineItem } from '@layerfi/components/utils/profitAndLossUtils';
6129
6254
  export interface DetailedTableStringOverrides {
6130
6255
  categoryColumnHeader?: string;
@@ -6196,7 +6321,7 @@ declare module '@layerfi/components/components/ProfitAndLossDownloadButton/Profi
6196
6321
  }
6197
6322
  declare module '@layerfi/components/components/ProfitAndLossDownloadButton/ProfitAndLossDownloadButton' {
6198
6323
  import { type ProfitAndLossDownloadButtonStringOverrides } from '@layerfi/components/components/ProfitAndLossDownloadButton/types';
6199
- import type { MoneyFormat } from '@layerfi/components/types';
6324
+ import type { MoneyFormat } from '@layerfi/components/types/general';
6200
6325
  type ProfitAndLossDownloadButtonProps = {
6201
6326
  stringOverrides?: ProfitAndLossDownloadButtonStringOverrides;
6202
6327
  moneyFormat?: MoneyFormat;
@@ -6206,7 +6331,7 @@ declare module '@layerfi/components/components/ProfitAndLossDownloadButton/Profi
6206
6331
 
6207
6332
  }
6208
6333
  declare module '@layerfi/components/components/ProfitAndLossDownloadButton/ProfitAndLossFullReportDownloadButton' {
6209
- import { MoneyFormat } from '@layerfi/components/types';
6334
+ import { MoneyFormat } from '@layerfi/components/types/general';
6210
6335
  import type { ProfitAndLossDownloadButtonStringOverrides } from '@layerfi/components/components/ProfitAndLossDownloadButton/types';
6211
6336
  export interface ProfitAndLossReportDownloadButtonProps {
6212
6337
  stringOverrides?: ProfitAndLossDownloadButtonStringOverrides;
@@ -6383,7 +6508,6 @@ declare module '@layerfi/components/components/ProfitAndLossTable/ProfitAndLossT
6383
6508
  }
6384
6509
  declare module '@layerfi/components/components/ProfitAndLossTable/index' {
6385
6510
  export { ProfitAndLossTableWithProvider as ProfitAndLossTable } from '@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTableWithProvider';
6386
- export { ProfitAndLossTableStringOverrides } from '@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTableComponent';
6387
6511
 
6388
6512
  }
6389
6513
  declare module '@layerfi/components/components/ProfitAndLossView/ProfitAndLossView' {
@@ -6918,7 +7042,7 @@ declare module '@layerfi/components/components/StatementOfCashFlow/index' {
6918
7042
 
6919
7043
  }
6920
7044
  declare module '@layerfi/components/components/StatementOfCashFlowTable/StatementOfCashFlowTable' {
6921
- import { StatementOfCashFlow } from '@layerfi/components/types';
7045
+ import { StatementOfCashFlow } from '@layerfi/components/types/statement_of_cash_flow';
6922
7046
  type StatementOfCashFlowRowProps = {
6923
7047
  name: string;
6924
7048
  displayName: string;
@@ -7521,26 +7645,52 @@ declare module '@layerfi/components/components/Typography/index' {
7521
7645
 
7522
7646
  }
7523
7647
  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 {};
7648
+ export const UnifiedReport: () => import("react/jsx-runtime").JSX.Element;
7530
7649
 
7531
7650
  }
7532
7651
  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 {};
7652
+ export const UnifiedReportTable: () => import("react/jsx-runtime").JSX.Element;
7539
7653
 
7540
7654
  }
7541
7655
  declare module '@layerfi/components/components/UnifiedReport/UnifiedReportTableHeader' {
7542
7656
  export const UnifiedReportTableHeader: () => import("react/jsx-runtime").JSX.Element;
7543
7657
 
7658
+ }
7659
+ declare module '@layerfi/components/components/UnifiedReport/download/UnifiedReportDownloadButton' {
7660
+ export function UnifiedReportDownloadButton(): import("react/jsx-runtime").JSX.Element;
7661
+
7662
+ }
7663
+ declare module '@layerfi/components/components/UnifiedReport/download/useUnifiedReportDownload' {
7664
+ import type { Key } from 'swr';
7665
+ import { type SWRMutationResponse } from 'swr/mutation';
7666
+ import { S3PresignedUrlSchemaType } from '@layerfi/components/schemas/common/s3PresignedUrl';
7667
+ type DownloadUnifiedReportSWRMutationResponse = SWRMutationResponse<S3PresignedUrlSchemaType, unknown, Key, never>;
7668
+ class DownloadUnifiedReportSWRResponse {
7669
+ private swrResponse;
7670
+ constructor(swrResponse: DownloadUnifiedReportSWRMutationResponse);
7671
+ get data(): {
7672
+ readonly createdAt: Date;
7673
+ readonly documentId: string | null | undefined;
7674
+ readonly fileName: string;
7675
+ readonly presignedUrl: string;
7676
+ readonly fileType: string;
7677
+ } | undefined;
7678
+ get trigger(): import("swr/mutation").TriggerWithoutArgs<{
7679
+ readonly createdAt: Date;
7680
+ readonly documentId: string | null | undefined;
7681
+ readonly fileName: string;
7682
+ readonly presignedUrl: string;
7683
+ readonly fileType: string;
7684
+ }, unknown, Key, never>;
7685
+ get isMutating(): boolean;
7686
+ get isError(): boolean;
7687
+ }
7688
+ type UseUnifiedReportDownloadOptions = {
7689
+ onSuccess?: (url: S3PresignedUrlSchemaType) => Promise<void> | void;
7690
+ };
7691
+ export function useUnifiedReportDownload({ onSuccess }?: UseUnifiedReportDownloadOptions): DownloadUnifiedReportSWRResponse;
7692
+ export {};
7693
+
7544
7694
  }
7545
7695
  declare module '@layerfi/components/components/UploadTransactions/UploadTransactions' {
7546
7696
  import type { Awaitable } from '@layerfi/components/types/utility/promises';
@@ -7582,7 +7732,7 @@ declare module '@layerfi/components/components/UploadTransactions/UploadTransact
7582
7732
  }
7583
7733
  declare module '@layerfi/components/components/UploadTransactions/UploadTransactionsValidateCsvStep' {
7584
7734
  import type { CustomAccountParseCsvResponse } from '@layerfi/components/hooks/customAccounts/useCustomAccountParseCsv';
7585
- import { BankTransaction } from '@layerfi/components/types';
7735
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
7586
7736
  interface UploadTransactionsValidateCsvStepProps {
7587
7737
  parseCsvResponse: CustomAccountParseCsvResponse | null;
7588
7738
  selectedAccountId?: string;
@@ -7821,7 +7971,7 @@ declare module '@layerfi/components/components/ui/ComboBox/ComboBox' {
7821
7971
  }
7822
7972
  declare module '@layerfi/components/components/ui/Date/Date' {
7823
7973
  import type { ZonedDateTime } from '@internationalized/date';
7824
- import { type DateFieldProps as ReactAriaDateFieldProps, type DateSegmentProps as ReactAriaDateSegmentProps, type DateInputProps as ReactAriaDateInputProps } from 'react-aria-components';
7974
+ import { type DateFieldProps as ReactAriaDateFieldProps, type DateSegmentProps as ReactAriaDateSegmentProps, type DateInputProps as ReactAriaDateInputProps, type DatePickerProps as ReactAriaDatePickerProps } from 'react-aria-components';
7825
7975
  export const DateField: import("react").ForwardRefExoticComponent<ReactAriaDateFieldProps<ZonedDateTime> & {
7826
7976
  inline?: boolean;
7827
7977
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -7831,6 +7981,9 @@ declare module '@layerfi/components/components/ui/Date/Date' {
7831
7981
  export const DateSegment: import("react").ForwardRefExoticComponent<Omit<ReactAriaDateSegmentProps, "className"> & {
7832
7982
  isReadOnly?: boolean;
7833
7983
  } & import("react").RefAttributes<HTMLDivElement>>;
7984
+ type DatePickerProps = Omit<ReactAriaDatePickerProps<ZonedDateTime>, 'className'>;
7985
+ export const DatePicker: import("react").ForwardRefExoticComponent<DatePickerProps & import("react").RefAttributes<HTMLDivElement>>;
7986
+ export {};
7834
7987
 
7835
7988
  }
7836
7989
  declare module '@layerfi/components/components/ui/DropdownMenu/DropdownMenu' {
@@ -7901,6 +8054,20 @@ declare module '@layerfi/components/components/ui/Input/TextArea' {
7901
8054
  export const TextArea: import("react").ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
7902
8055
  export {};
7903
8056
 
8057
+ }
8058
+ declare module '@layerfi/components/components/ui/Link/Link' {
8059
+ import { type LinkProps as ReactAriaLinkProps } from 'react-aria-components';
8060
+ type LinkSize = 'xs' | 'sm' | 'md' | 'lg';
8061
+ export const Link: import("react").ForwardRefExoticComponent<Omit<ReactAriaLinkProps, "className"> & {
8062
+ size?: LinkSize;
8063
+ ellipsis?: true;
8064
+ external?: true;
8065
+ disabled?: true;
8066
+ } & {
8067
+ children?: import("react").ReactNode | undefined;
8068
+ } & import("react").RefAttributes<HTMLAnchorElement>>;
8069
+ export {};
8070
+
7904
8071
  }
7905
8072
  declare module '@layerfi/components/components/ui/ListBox/ListBox' {
7906
8073
  import { type ForwardedRef, type Ref } from 'react';
@@ -8173,11 +8340,12 @@ declare module '@layerfi/components/components/ui/Typography/Heading' {
8173
8340
  export { Heading };
8174
8341
 
8175
8342
  }
8176
- declare module '@layerfi/components/components/ui/Typography/MoneyText' {
8343
+ declare module '@layerfi/components/components/ui/Typography/MoneySpan' {
8177
8344
  const MoneySpan: import("react").ForwardRefExoticComponent<{
8178
8345
  amount: number;
8179
8346
  bold?: boolean;
8180
8347
  size?: "xs" | "sm" | "md" | "lg";
8348
+ displayPlusSign?: boolean;
8181
8349
  } & Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "slot"> & import("react").RefAttributes<HTMLSpanElement>>;
8182
8350
  export { MoneySpan };
8183
8351
 
@@ -8274,12 +8442,14 @@ declare module '@layerfi/components/components/utility/InvisibleDownload' {
8274
8442
  type InvisibleDownloadHandle = {
8275
8443
  trigger: (options: {
8276
8444
  url: string;
8445
+ filename?: string;
8277
8446
  }) => Promise<void>;
8278
8447
  };
8279
8448
  export function useInvisibleDownload(): {
8280
8449
  invisibleDownloadRef: import("react").RefObject<InvisibleDownloadHandle>;
8281
8450
  triggerInvisibleDownload: (options: {
8282
8451
  url: string;
8452
+ filename?: string;
8283
8453
  }) => void;
8284
8454
  };
8285
8455
  const InvisibleDownload: import("react").ForwardRefExoticComponent<import("react").RefAttributes<InvisibleDownloadHandle>>;
@@ -8372,10 +8542,10 @@ declare module '@layerfi/components/config/theme' {
8372
8542
  }
8373
8543
  declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransactionsContext' {
8374
8544
  import { useAugmentedBankTransactions } from '@layerfi/components/hooks/useBankTransactions/useAugmentedBankTransactions';
8375
- import { DisplayState } from '@layerfi/components/types';
8545
+ import { DisplayState } from '@layerfi/components/types/bank_transactions';
8376
8546
  export type BankTransactionsContextType = ReturnType<typeof useAugmentedBankTransactions>;
8377
8547
  export const BankTransactionsContext: import("react").Context<{
8378
- data: import("@layerfi/components/types").BankTransaction[] | undefined;
8548
+ data: import("@layerfi/components/types/bank_transactions").BankTransaction[] | undefined;
8379
8549
  metadata: {
8380
8550
  pagination: {
8381
8551
  cursor?: string;
@@ -8386,17 +8556,17 @@ declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransac
8386
8556
  isValidating: boolean;
8387
8557
  refetch: () => void;
8388
8558
  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;
8559
+ categorize: (bankTransactionId: import("@layerfi/components/types/bank_transactions").BankTransaction["id"], newCategory: import("../../types/categories").CategoryUpdate, notify?: boolean) => Promise<void>;
8560
+ match: (bankTransactionId: import("@layerfi/components/types/bank_transactions").BankTransaction["id"], suggestedMatchId: string, notify?: boolean) => Promise<void>;
8561
+ updateOneLocal: (newBankTransaction: import("@layerfi/components/types/bank_transactions").BankTransaction) => void;
8392
8562
  shouldHideAfterCategorize: () => boolean;
8393
- removeAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
8563
+ removeAfterCategorize: (bankTransaction: import("@layerfi/components/types/bank_transactions").BankTransaction) => void;
8394
8564
  display: DisplayState;
8395
8565
  fetchMore: () => void;
8396
8566
  hasMore: boolean;
8397
8567
  }>;
8398
8568
  export const useBankTransactionsContext: () => {
8399
- data: import("@layerfi/components/types").BankTransaction[] | undefined;
8569
+ data: import("@layerfi/components/types/bank_transactions").BankTransaction[] | undefined;
8400
8570
  metadata: {
8401
8571
  pagination: {
8402
8572
  cursor?: string;
@@ -8407,11 +8577,11 @@ declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransac
8407
8577
  isValidating: boolean;
8408
8578
  refetch: () => void;
8409
8579
  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;
8580
+ categorize: (bankTransactionId: import("@layerfi/components/types/bank_transactions").BankTransaction["id"], newCategory: import("../../types/categories").CategoryUpdate, notify?: boolean) => Promise<void>;
8581
+ match: (bankTransactionId: import("@layerfi/components/types/bank_transactions").BankTransaction["id"], suggestedMatchId: string, notify?: boolean) => Promise<void>;
8582
+ updateOneLocal: (newBankTransaction: import("@layerfi/components/types/bank_transactions").BankTransaction) => void;
8413
8583
  shouldHideAfterCategorize: () => boolean;
8414
- removeAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
8584
+ removeAfterCategorize: (bankTransaction: import("@layerfi/components/types/bank_transactions").BankTransaction) => void;
8415
8585
  display: DisplayState;
8416
8586
  fetchMore: () => void;
8417
8587
  hasMore: boolean;
@@ -8445,7 +8615,7 @@ declare module '@layerfi/components/contexts/BankTransactionsFiltersContext/Bank
8445
8615
  }
8446
8616
  declare module '@layerfi/components/contexts/BankTransactionsFiltersContext/useBankTransactionsFilters' {
8447
8617
  import { BankTransactionFilters, BankTransactionsDateFilterMode } from '@layerfi/components/hooks/useBankTransactions/types';
8448
- import { DisplayState } from '@layerfi/components/types';
8618
+ import { DisplayState } from '@layerfi/components/types/bank_transactions';
8449
8619
  export type useBankTransactionsFiltersParams = {
8450
8620
  scope?: DisplayState;
8451
8621
  monthlyView?: boolean;
@@ -8459,7 +8629,7 @@ declare module '@layerfi/components/contexts/BankTransactionsFiltersContext/useB
8459
8629
  } | undefined;
8460
8630
  amount?: import("@layerfi/components/hooks/useBankTransactions/types").NumericRangeFilter;
8461
8631
  account?: string[];
8462
- direction?: import("@layerfi/components/types").Direction[];
8632
+ direction?: import("@layerfi/components/index").Direction[];
8463
8633
  categorizationStatus?: DisplayState;
8464
8634
  query?: string;
8465
8635
  tagFilter?: import("@layerfi/components/types/tags").TagFilterInput;
@@ -8478,20 +8648,20 @@ declare module '@layerfi/components/contexts/BillsContext' {
8478
8648
  };
8479
8649
  export type BillsContextType = ReturnType<typeof useBills>;
8480
8650
  export const BillsContext: React.Context<{
8481
- data: import("@layerfi/components/types").Bill[];
8482
- paginatedData: import("@layerfi/components/types").Bill[];
8651
+ data: import("@layerfi/components/types/bills").Bill[];
8652
+ paginatedData: import("@layerfi/components/types/bills").Bill[];
8483
8653
  currentPage: number;
8484
8654
  setCurrentPage: (page: number) => void;
8485
8655
  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;
8656
+ metadata?: import("@layerfi/components/types/api").Metadata;
8657
+ billInDetails?: import("@layerfi/components/types/bills").Bill;
8658
+ openBillDetails: (bill?: import("@layerfi/components/types/bills").Bill) => void;
8489
8659
  showBillInDetails: boolean;
8490
8660
  closeBillDetails: () => void;
8491
8661
  status: import("@layerfi/components/hooks/useBills").BillStatusFilter;
8492
8662
  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;
8663
+ dateRange: import("@layerfi/components/types/general").DateRange;
8664
+ setDateRange: (dateRange: import("@layerfi/components/types/general").DateRange) => void;
8495
8665
  vendor: import("@layerfi/components/types/vendors").Vendor | null;
8496
8666
  setVendor: (vendor: import("@layerfi/components/types/vendors").Vendor | null) => void;
8497
8667
  fetchMore: () => void;
@@ -8504,9 +8674,9 @@ declare module '@layerfi/components/contexts/BillsContext' {
8504
8674
  export type BillsRecordPaymentContextType = ReturnType<typeof useBillsRecordPayment>;
8505
8675
  export const BillsRecordPaymentContext: React.Context<{
8506
8676
  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;
8677
+ setBill: (bill: import("@layerfi/components/types/bills").Bill, index: number) => void;
8678
+ addBill: (bill?: import("@layerfi/components/types/bills").Bill) => void;
8679
+ removeBill: (bill: import("@layerfi/components/types/bills").Bill) => void;
8510
8680
  removeBillByIndex: (index: number) => void;
8511
8681
  setAmount: (billId: string, amount: string) => void;
8512
8682
  setAmountByIndex: (index: number, amount?: string | null) => void;
@@ -8525,26 +8695,26 @@ declare module '@layerfi/components/contexts/BillsContext' {
8525
8695
  dataSaved: boolean;
8526
8696
  closeRecordPayment: () => void;
8527
8697
  clearRecordPaymentSelection: () => void;
8528
- recordPaymentForBill: (bill: import("@layerfi/components/types").Bill) => void;
8698
+ recordPaymentForBill: (bill: import("@layerfi/components/types/bills").Bill) => void;
8529
8699
  payRemainingBalance: () => void;
8530
8700
  isLoading: boolean;
8531
8701
  apiError: import("@layerfi/components/models/APIError").APIError | undefined;
8532
8702
  }>;
8533
8703
  export const useBillsContext: () => {
8534
- data: import("@layerfi/components/types").Bill[];
8535
- paginatedData: import("@layerfi/components/types").Bill[];
8704
+ data: import("@layerfi/components/types/bills").Bill[];
8705
+ paginatedData: import("@layerfi/components/types/bills").Bill[];
8536
8706
  currentPage: number;
8537
8707
  setCurrentPage: (page: number) => void;
8538
8708
  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;
8709
+ metadata?: import("@layerfi/components/types/api").Metadata;
8710
+ billInDetails?: import("@layerfi/components/types/bills").Bill;
8711
+ openBillDetails: (bill?: import("@layerfi/components/types/bills").Bill) => void;
8542
8712
  showBillInDetails: boolean;
8543
8713
  closeBillDetails: () => void;
8544
8714
  status: import("@layerfi/components/hooks/useBills").BillStatusFilter;
8545
8715
  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;
8716
+ dateRange: import("@layerfi/components/types/general").DateRange;
8717
+ setDateRange: (dateRange: import("@layerfi/components/types/general").DateRange) => void;
8548
8718
  vendor: import("@layerfi/components/types/vendors").Vendor | null;
8549
8719
  setVendor: (vendor: import("@layerfi/components/types/vendors").Vendor | null) => void;
8550
8720
  fetchMore: () => void;
@@ -8556,9 +8726,9 @@ declare module '@layerfi/components/contexts/BillsContext' {
8556
8726
  };
8557
8727
  export const useBillsRecordPaymentContext: () => {
8558
8728
  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;
8729
+ setBill: (bill: import("@layerfi/components/types/bills").Bill, index: number) => void;
8730
+ addBill: (bill?: import("@layerfi/components/types/bills").Bill) => void;
8731
+ removeBill: (bill: import("@layerfi/components/types/bills").Bill) => void;
8562
8732
  removeBillByIndex: (index: number) => void;
8563
8733
  setAmount: (billId: string, amount: string) => void;
8564
8734
  setAmountByIndex: (index: number, amount?: string | null) => void;
@@ -8577,7 +8747,7 @@ declare module '@layerfi/components/contexts/BillsContext' {
8577
8747
  dataSaved: boolean;
8578
8748
  closeRecordPayment: () => void;
8579
8749
  clearRecordPaymentSelection: () => void;
8580
- recordPaymentForBill: (bill: import("@layerfi/components/types").Bill) => void;
8750
+ recordPaymentForBill: (bill: import("@layerfi/components/types/bills").Bill) => void;
8581
8751
  payRemainingBalance: () => void;
8582
8752
  isLoading: boolean;
8583
8753
  apiError: import("@layerfi/components/models/APIError").APIError | undefined;
@@ -8625,7 +8795,7 @@ declare module '@layerfi/components/contexts/ChartOfAccountsContext/ChartOfAccou
8625
8795
  isValidating: boolean;
8626
8796
  isError: boolean;
8627
8797
  refetch: () => Promise<void>;
8628
- create: (newAccount: import("@layerfi/components/types").NewAccount) => Promise<void>;
8798
+ create: (newAccount: import("@layerfi/components/types/chart_of_accounts").NewAccount) => Promise<void>;
8629
8799
  form: import("@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts").ChartOfAccountsForm | undefined;
8630
8800
  sendingForm: boolean;
8631
8801
  apiError: string | undefined;
@@ -8639,7 +8809,7 @@ declare module '@layerfi/components/contexts/ChartOfAccountsContext/ChartOfAccou
8639
8809
  startDate: Date;
8640
8810
  endDate: Date;
8641
8811
  };
8642
- changeDateRange: ({ startDate: newStartDate, endDate: newEndDate, }: Partial<import("@layerfi/components/types").DateRange>) => void;
8812
+ changeDateRange: ({ startDate: newStartDate, endDate: newEndDate, }: Partial<import("@layerfi/components/types/general").DateRange>) => void;
8643
8813
  }>;
8644
8814
 
8645
8815
  }
@@ -8718,7 +8888,7 @@ declare module '@layerfi/components/contexts/JournalContext/JournalContext' {
8718
8888
  import { useJournal } from '@layerfi/components/hooks/useJournal/index';
8719
8889
  export type JournalContextType = ReturnType<typeof useJournal>;
8720
8890
  export const JournalContext: import("react").Context<{
8721
- data?: ReadonlyArray<import("@layerfi/components/types").JournalEntry>;
8891
+ data?: ReadonlyArray<import("@layerfi/components/types/journal").JournalEntry>;
8722
8892
  isLoading?: boolean;
8723
8893
  isLoadingEntry?: boolean;
8724
8894
  isValidating?: boolean;
@@ -8769,8 +8939,8 @@ declare module '@layerfi/components/contexts/LedgerAccountsContext/LedgerAccount
8769
8939
  import { useLedgerAccounts } from '@layerfi/components/hooks/useLedgerAccounts/index';
8770
8940
  export type LedgerAccountsContextType = ReturnType<typeof useLedgerAccounts>;
8771
8941
  export const LedgerAccountsContext: import("react").Context<{
8772
- data?: import("@layerfi/components/types").LedgerAccounts;
8773
- entryData?: import("@layerfi/components/types").LedgerAccountsEntry;
8942
+ data?: import("@layerfi/components/types/ledger_accounts").LedgerAccountLineItem[] | undefined;
8943
+ entryData?: import("@layerfi/components/types/ledger_accounts").LedgerAccountsEntry;
8774
8944
  isLoading?: boolean;
8775
8945
  isLoadingEntry?: boolean;
8776
8946
  isValidating?: boolean;
@@ -8836,7 +9006,7 @@ declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/Prof
8836
9006
  value: string;
8837
9007
  label: string;
8838
9008
  }>) => void;
8839
- getProfitAndLossComparisonCsv: (dateRange: import("@layerfi/components/types").DateRange, moneyFormat?: import("../../types").MoneyFormat) => Promise<{
9009
+ getProfitAndLossComparisonCsv: (dateRange: import("@layerfi/components/types/general").DateRange, moneyFormat?: import("../../types/general").MoneyFormat) => Promise<{
8840
9010
  data?: S3PresignedUrl;
8841
9011
  error?: unknown;
8842
9012
  }>;
@@ -8940,7 +9110,7 @@ declare module '@layerfi/components/contexts/ProfitAndLossContext/ProfitAndLossC
8940
9110
  refetch: () => void;
8941
9111
  sidebarScope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").SidebarScope;
8942
9112
  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;
9113
+ sortBy: (scope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").Scope, field: string, direction?: import("../../types/general").SortDirection) => void;
8944
9114
  filters: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").ProfitAndLossFilters;
8945
9115
  setFilterTypes: (scope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").Scope, types: string[]) => void;
8946
9116
  tagFilter: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").PnlTagFilter | undefined;
@@ -9016,7 +9186,7 @@ declare module '@layerfi/components/contexts/VendorsContext' {
9016
9186
 
9017
9187
  }
9018
9188
  declare module '@layerfi/components/features/bankTransactions/[bankTransactionId]/components/BankTransactionFormFields' {
9019
- import type { BankTransaction } from '@layerfi/components/types';
9189
+ import type { BankTransaction } from '@layerfi/components/types/bank_transactions';
9020
9190
  type BankTransactionFormFieldProps = {
9021
9191
  bankTransaction: Pick<BankTransaction, 'id' | 'transaction_tags' | 'customer' | 'vendor'>;
9022
9192
  showDescriptions?: boolean;
@@ -9028,7 +9198,7 @@ declare module '@layerfi/components/features/bankTransactions/[bankTransactionId
9028
9198
 
9029
9199
  }
9030
9200
  declare module '@layerfi/components/features/bankTransactions/[bankTransactionId]/customerVendor/components/BankTransactionCustomerVendorSelector' {
9031
- import type { BankTransaction } from '@layerfi/components/types';
9201
+ import type { BankTransaction } from '@layerfi/components/types/bank_transactions';
9032
9202
  type BankTransactionCustomerVendorSelectorProps = {
9033
9203
  bankTransaction: Pick<BankTransaction, 'id' | 'customer' | 'vendor'>;
9034
9204
  };
@@ -9113,7 +9283,7 @@ declare module '@layerfi/components/features/bankTransactions/[bankTransactionId
9113
9283
 
9114
9284
  }
9115
9285
  declare module '@layerfi/components/features/bankTransactions/[bankTransactionId]/tags/components/BankTransactionTagSelector' {
9116
- import type { BankTransaction } from '@layerfi/components/types';
9286
+ import type { BankTransaction } from '@layerfi/components/types/bank_transactions';
9117
9287
  type BankTransactionTagSelectorProps = {
9118
9288
  bankTransaction: Pick<BankTransaction, 'id' | 'transaction_tags'>;
9119
9289
  };
@@ -9145,15 +9315,16 @@ declare module '@layerfi/components/features/callBookings/api/useCallBookings' {
9145
9315
  get data(): {
9146
9316
  readonly data: readonly {
9147
9317
  readonly id: string;
9318
+ readonly businessId: string;
9148
9319
  readonly externalId: string;
9149
9320
  readonly createdAt: Date;
9150
9321
  readonly updatedAt: Date;
9151
9322
  readonly deletedAt?: Date | null | undefined;
9152
- readonly businessId: string;
9153
9323
  readonly state: CallBookingState;
9154
9324
  readonly purpose: CallBookingPurpose;
9155
9325
  readonly callType: CallBookingType;
9156
9326
  readonly eventStartAt: Date;
9327
+ readonly eventEndAt: Date | null | undefined;
9157
9328
  readonly callLink: URL;
9158
9329
  readonly cancellationReason?: string | null | undefined;
9159
9330
  readonly didAttend?: boolean | null | undefined;
@@ -9177,17 +9348,18 @@ declare module '@layerfi/components/features/callBookings/api/useCallBookings' {
9177
9348
 
9178
9349
  }
9179
9350
  declare module '@layerfi/components/features/callBookings/api/useCreateCallBookings' {
9180
- export function useCreateCallBooking(): import("swr/dist/mutation").SWRMutationResponse<{
9351
+ export function useCreateCallBooking(): import("swr/mutation").SWRMutationResponse<{
9181
9352
  readonly id: string;
9353
+ readonly businessId: string;
9182
9354
  readonly externalId: string;
9183
9355
  readonly createdAt: Date;
9184
9356
  readonly updatedAt: Date;
9185
9357
  readonly deletedAt?: Date | null | undefined;
9186
- readonly businessId: string;
9187
9358
  readonly state: import("@layerfi/components/features/callBookings/api/useCallBookings").CallBookingState;
9188
9359
  readonly purpose: import("@layerfi/components/features/callBookings/api/useCallBookings").CallBookingPurpose;
9189
9360
  readonly callType: import("@layerfi/components/features/callBookings/api/useCallBookings").CallBookingType;
9190
9361
  readonly eventStartAt: Date;
9362
+ readonly eventEndAt: Date | null | undefined;
9191
9363
  readonly callLink: URL;
9192
9364
  readonly cancellationReason?: string | null | undefined;
9193
9365
  readonly didAttend?: boolean | null | undefined;
@@ -9199,12 +9371,9 @@ declare module '@layerfi/components/features/callBookings/api/useCreateCallBooki
9199
9371
  readonly businessId: string;
9200
9372
  readonly tags: readonly ["#call-bookings:create"];
9201
9373
  } | undefined, {
9202
- readonly externalId: string;
9203
- readonly location?: string | undefined;
9374
+ readonly external_id: string;
9204
9375
  readonly purpose: import("@layerfi/components/features/callBookings/api/useCallBookings").CallBookingPurpose;
9205
- readonly callType: import("@layerfi/components/features/callBookings/api/useCallBookings").CallBookingType;
9206
- readonly eventStartAt?: Date | undefined;
9207
- readonly cancellationReason?: string | undefined;
9376
+ readonly call_type: import("@layerfi/components/features/callBookings/api/useCallBookings").CallBookingType;
9208
9377
  }>;
9209
9378
 
9210
9379
  }
@@ -9598,10 +9767,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9598
9767
  readonly transactionTags: readonly {
9599
9768
  readonly value: string;
9600
9769
  readonly id: string;
9770
+ readonly key: string;
9601
9771
  readonly _local?: {
9602
9772
  readonly isOptimistic: boolean;
9603
9773
  } | undefined;
9604
- readonly key: string;
9605
9774
  readonly archivedAt: Date | null | undefined;
9606
9775
  readonly dimensionDisplayName: string | null | undefined;
9607
9776
  readonly valueDisplayName: string | null | undefined;
@@ -9681,6 +9850,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9681
9850
  get data(): {
9682
9851
  readonly data: readonly {
9683
9852
  readonly id: string;
9853
+ readonly businessId: string;
9684
9854
  readonly externalId: string | null;
9685
9855
  readonly status: InvoiceStatus;
9686
9856
  readonly memo: string | null;
@@ -9700,7 +9870,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9700
9870
  readonly isOptimistic: boolean;
9701
9871
  } | undefined;
9702
9872
  } | null;
9703
- readonly businessId: string;
9704
9873
  readonly invoiceNumber: string | null;
9705
9874
  readonly recipientName: string | null;
9706
9875
  readonly lineItems: readonly {
@@ -9711,10 +9880,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9711
9880
  readonly transactionTags: readonly {
9712
9881
  readonly value: string;
9713
9882
  readonly id: string;
9883
+ readonly key: string;
9714
9884
  readonly _local?: {
9715
9885
  readonly isOptimistic: boolean;
9716
9886
  } | undefined;
9717
- readonly key: string;
9718
9887
  readonly archivedAt: Date | null | undefined;
9719
9888
  readonly dimensionDisplayName: string | null | undefined;
9720
9889
  readonly valueDisplayName: string | null | undefined;
@@ -9760,6 +9929,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9760
9929
  get setSize(): (size: number | ((_size: number) => number)) => Promise<{
9761
9930
  readonly data: readonly {
9762
9931
  readonly id: string;
9932
+ readonly businessId: string;
9763
9933
  readonly externalId: string | null;
9764
9934
  readonly status: InvoiceStatus;
9765
9935
  readonly memo: string | null;
@@ -9779,7 +9949,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9779
9949
  readonly isOptimistic: boolean;
9780
9950
  } | undefined;
9781
9951
  } | null;
9782
- readonly businessId: string;
9783
9952
  readonly invoiceNumber: string | null;
9784
9953
  readonly recipientName: string | null;
9785
9954
  readonly lineItems: readonly {
@@ -9790,10 +9959,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9790
9959
  readonly transactionTags: readonly {
9791
9960
  readonly value: string;
9792
9961
  readonly id: string;
9962
+ readonly key: string;
9793
9963
  readonly _local?: {
9794
9964
  readonly isOptimistic: boolean;
9795
9965
  } | undefined;
9796
- readonly key: string;
9797
9966
  readonly archivedAt: Date | null | undefined;
9798
9967
  readonly dimensionDisplayName: string | null | undefined;
9799
9968
  readonly valueDisplayName: string | null | undefined;
@@ -9841,6 +10010,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9841
10010
  get refetch(): import("swr/infinite").SWRInfiniteKeyedMutator<{
9842
10011
  readonly data: readonly {
9843
10012
  readonly id: string;
10013
+ readonly businessId: string;
9844
10014
  readonly externalId: string | null;
9845
10015
  readonly status: InvoiceStatus;
9846
10016
  readonly memo: string | null;
@@ -9860,7 +10030,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9860
10030
  readonly isOptimistic: boolean;
9861
10031
  } | undefined;
9862
10032
  } | null;
9863
- readonly businessId: string;
9864
10033
  readonly invoiceNumber: string | null;
9865
10034
  readonly recipientName: string | null;
9866
10035
  readonly lineItems: readonly {
@@ -9871,10 +10040,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9871
10040
  readonly transactionTags: readonly {
9872
10041
  readonly value: string;
9873
10042
  readonly id: string;
10043
+ readonly key: string;
9874
10044
  readonly _local?: {
9875
10045
  readonly isOptimistic: boolean;
9876
10046
  } | undefined;
9877
- readonly key: string;
9878
10047
  readonly archivedAt: Date | null | undefined;
9879
10048
  readonly dimensionDisplayName: string | null | undefined;
9880
10049
  readonly valueDisplayName: string | null | undefined;
@@ -9922,6 +10091,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9922
10091
  } | undefined) => () => Promise<{
9923
10092
  readonly data: readonly {
9924
10093
  readonly id: string;
10094
+ readonly businessId: string;
9925
10095
  readonly externalId: string | null;
9926
10096
  readonly status: InvoiceStatus;
9927
10097
  readonly memo: string | null;
@@ -9941,7 +10111,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9941
10111
  readonly isOptimistic: boolean;
9942
10112
  } | undefined;
9943
10113
  } | null;
9944
- readonly businessId: string;
9945
10114
  readonly invoiceNumber: string | null;
9946
10115
  readonly recipientName: string | null;
9947
10116
  readonly lineItems: readonly {
@@ -9952,10 +10121,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
9952
10121
  readonly transactionTags: readonly {
9953
10122
  readonly value: string;
9954
10123
  readonly id: string;
10124
+ readonly key: string;
9955
10125
  readonly _local?: {
9956
10126
  readonly isOptimistic: boolean;
9957
10127
  } | undefined;
9958
- readonly key: string;
9959
10128
  readonly archivedAt: Date | null | undefined;
9960
10129
  readonly dimensionDisplayName: string | null | undefined;
9961
10130
  readonly valueDisplayName: string | null | undefined;
@@ -10002,6 +10171,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10002
10171
  patchInvoiceByKey: (updatedInvoice: Invoice) => Promise<({
10003
10172
  readonly data: readonly {
10004
10173
  readonly id: string;
10174
+ readonly businessId: string;
10005
10175
  readonly externalId: string | null;
10006
10176
  readonly status: InvoiceStatus;
10007
10177
  readonly memo: string | null;
@@ -10021,7 +10191,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10021
10191
  readonly isOptimistic: boolean;
10022
10192
  } | undefined;
10023
10193
  } | null;
10024
- readonly businessId: string;
10025
10194
  readonly invoiceNumber: string | null;
10026
10195
  readonly recipientName: string | null;
10027
10196
  readonly lineItems: readonly {
@@ -10032,10 +10201,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10032
10201
  readonly transactionTags: readonly {
10033
10202
  readonly value: string;
10034
10203
  readonly id: string;
10204
+ readonly key: string;
10035
10205
  readonly _local?: {
10036
10206
  readonly isOptimistic: boolean;
10037
10207
  } | undefined;
10038
- readonly key: string;
10039
10208
  readonly archivedAt: Date | null | undefined;
10040
10209
  readonly dimensionDisplayName: string | null | undefined;
10041
10210
  readonly valueDisplayName: string | null | undefined;
@@ -10079,6 +10248,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10079
10248
  } | {
10080
10249
  readonly data: readonly {
10081
10250
  readonly id: string;
10251
+ readonly businessId: string;
10082
10252
  readonly externalId: string | null;
10083
10253
  readonly status: InvoiceStatus;
10084
10254
  readonly memo: string | null;
@@ -10098,7 +10268,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10098
10268
  readonly isOptimistic: boolean;
10099
10269
  } | undefined;
10100
10270
  } | null;
10101
- readonly businessId: string;
10102
10271
  readonly invoiceNumber: string | null;
10103
10272
  readonly recipientName: string | null;
10104
10273
  readonly lineItems: readonly {
@@ -10109,10 +10278,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10109
10278
  readonly transactionTags: readonly {
10110
10279
  readonly value: string;
10111
10280
  readonly id: string;
10281
+ readonly key: string;
10112
10282
  readonly _local?: {
10113
10283
  readonly isOptimistic: boolean;
10114
10284
  } | undefined;
10115
- readonly key: string;
10116
10285
  readonly archivedAt: Date | null | undefined;
10117
10286
  readonly dimensionDisplayName: string | null | undefined;
10118
10287
  readonly valueDisplayName: string | null | undefined;
@@ -10157,6 +10326,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10157
10326
  patchInvoiceWithTransformation: (transformation: (invoice: Invoice) => Invoice) => Promise<({
10158
10327
  readonly data: readonly {
10159
10328
  readonly id: string;
10329
+ readonly businessId: string;
10160
10330
  readonly externalId: string | null;
10161
10331
  readonly status: InvoiceStatus;
10162
10332
  readonly memo: string | null;
@@ -10176,7 +10346,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10176
10346
  readonly isOptimistic: boolean;
10177
10347
  } | undefined;
10178
10348
  } | null;
10179
- readonly businessId: string;
10180
10349
  readonly invoiceNumber: string | null;
10181
10350
  readonly recipientName: string | null;
10182
10351
  readonly lineItems: readonly {
@@ -10187,10 +10356,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10187
10356
  readonly transactionTags: readonly {
10188
10357
  readonly value: string;
10189
10358
  readonly id: string;
10359
+ readonly key: string;
10190
10360
  readonly _local?: {
10191
10361
  readonly isOptimistic: boolean;
10192
10362
  } | undefined;
10193
- readonly key: string;
10194
10363
  readonly archivedAt: Date | null | undefined;
10195
10364
  readonly dimensionDisplayName: string | null | undefined;
10196
10365
  readonly valueDisplayName: string | null | undefined;
@@ -10234,6 +10403,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10234
10403
  } | {
10235
10404
  readonly data: readonly {
10236
10405
  readonly id: string;
10406
+ readonly businessId: string;
10237
10407
  readonly externalId: string | null;
10238
10408
  readonly status: InvoiceStatus;
10239
10409
  readonly memo: string | null;
@@ -10253,7 +10423,6 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10253
10423
  readonly isOptimistic: boolean;
10254
10424
  } | undefined;
10255
10425
  } | null;
10256
- readonly businessId: string;
10257
10426
  readonly invoiceNumber: string | null;
10258
10427
  readonly recipientName: string | null;
10259
10428
  readonly lineItems: readonly {
@@ -10264,10 +10433,10 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
10264
10433
  readonly transactionTags: readonly {
10265
10434
  readonly value: string;
10266
10435
  readonly id: string;
10436
+ readonly key: string;
10267
10437
  readonly _local?: {
10268
10438
  readonly isOptimistic: boolean;
10269
10439
  } | undefined;
10270
- readonly key: string;
10271
10440
  readonly archivedAt: Date | null | undefined;
10272
10441
  readonly dimensionDisplayName: string | null | undefined;
10273
10442
  readonly valueDisplayName: string | null | undefined;
@@ -10359,8 +10528,8 @@ declare module '@layerfi/components/features/invoices/api/useRefundInvoice' {
10359
10528
  readonly isDedicated: boolean;
10360
10529
  };
10361
10530
  }, unknown, Key, {
10362
- readonly completed_at: string;
10363
10531
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod;
10532
+ readonly completed_at: string;
10364
10533
  readonly external_id?: string | undefined;
10365
10534
  readonly memo?: string | undefined;
10366
10535
  readonly reference_number?: string | undefined;
@@ -10416,10 +10585,10 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
10416
10585
  readonly transactionTags: readonly {
10417
10586
  readonly value: string;
10418
10587
  readonly id: string;
10588
+ readonly key: string;
10419
10589
  readonly _local?: {
10420
10590
  readonly isOptimistic: boolean;
10421
10591
  } | undefined;
10422
- readonly key: string;
10423
10592
  readonly archivedAt: Date | null | undefined;
10424
10593
  readonly dimensionDisplayName: string | null | undefined;
10425
10594
  readonly valueDisplayName: string | null | undefined;
@@ -10493,6 +10662,7 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
10493
10662
  get data(): {
10494
10663
  readonly data: {
10495
10664
  readonly id: string;
10665
+ readonly businessId: string;
10496
10666
  readonly externalId: string | null;
10497
10667
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
10498
10668
  readonly memo: string | null;
@@ -10512,7 +10682,6 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
10512
10682
  readonly isOptimistic: boolean;
10513
10683
  } | undefined;
10514
10684
  } | null;
10515
- readonly businessId: string;
10516
10685
  readonly invoiceNumber: string | null;
10517
10686
  readonly recipientName: string | null;
10518
10687
  readonly lineItems: readonly {
@@ -10523,10 +10692,10 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
10523
10692
  readonly transactionTags: readonly {
10524
10693
  readonly value: string;
10525
10694
  readonly id: string;
10695
+ readonly key: string;
10526
10696
  readonly _local?: {
10527
10697
  readonly isOptimistic: boolean;
10528
10698
  } | undefined;
10529
- readonly key: string;
10530
10699
  readonly archivedAt: Date | null | undefined;
10531
10700
  readonly dimensionDisplayName: string | null | undefined;
10532
10701
  readonly valueDisplayName: string | null | undefined;
@@ -10564,6 +10733,7 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
10564
10733
  get trigger(): import("swr/mutation").TriggerWithoutArgs<{
10565
10734
  readonly data: {
10566
10735
  readonly id: string;
10736
+ readonly businessId: string;
10567
10737
  readonly externalId: string | null;
10568
10738
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
10569
10739
  readonly memo: string | null;
@@ -10583,7 +10753,6 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
10583
10753
  readonly isOptimistic: boolean;
10584
10754
  } | undefined;
10585
10755
  } | null;
10586
- readonly businessId: string;
10587
10756
  readonly invoiceNumber: string | null;
10588
10757
  readonly recipientName: string | null;
10589
10758
  readonly lineItems: readonly {
@@ -10594,10 +10763,10 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
10594
10763
  readonly transactionTags: readonly {
10595
10764
  readonly value: string;
10596
10765
  readonly id: string;
10766
+ readonly key: string;
10597
10767
  readonly _local?: {
10598
10768
  readonly isOptimistic: boolean;
10599
10769
  } | undefined;
10600
- readonly key: string;
10601
10770
  readonly archivedAt: Date | null | undefined;
10602
10771
  readonly dimensionDisplayName: string | null | undefined;
10603
10772
  readonly valueDisplayName: string | null | undefined;
@@ -10670,23 +10839,23 @@ declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvo
10670
10839
  get data(): {
10671
10840
  readonly data: {
10672
10841
  readonly at: Date;
10842
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod;
10673
10843
  readonly memo: string | null;
10674
10844
  readonly amount: number;
10675
10845
  readonly referenceNumber: string | null;
10676
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod;
10677
10846
  };
10678
10847
  } | undefined;
10679
10848
  get trigger(): import("swr/mutation").TriggerWithArgs<{
10680
10849
  readonly data: {
10681
10850
  readonly at: Date;
10851
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod;
10682
10852
  readonly memo: string | null;
10683
10853
  readonly amount: number;
10684
10854
  readonly referenceNumber: string | null;
10685
- readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod;
10686
10855
  };
10687
10856
  }, unknown, Key, {
10688
- readonly amount: number;
10689
10857
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod;
10858
+ readonly amount: number;
10690
10859
  readonly paid_at: string;
10691
10860
  readonly memo?: string | undefined;
10692
10861
  readonly reference_number?: string | undefined;
@@ -10710,6 +10879,7 @@ declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvo
10710
10879
  status: InvoiceStatus;
10711
10880
  outstandingBalance: number;
10712
10881
  id: string;
10882
+ businessId: string;
10713
10883
  externalId: string | null;
10714
10884
  memo: string | null;
10715
10885
  updatedAt: Date | null;
@@ -10728,7 +10898,6 @@ declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvo
10728
10898
  readonly isOptimistic: boolean;
10729
10899
  } | undefined;
10730
10900
  } | null;
10731
- businessId: string;
10732
10901
  invoiceNumber: string | null;
10733
10902
  recipientName: string | null;
10734
10903
  lineItems: readonly {
@@ -10739,10 +10908,10 @@ declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvo
10739
10908
  readonly transactionTags: readonly {
10740
10909
  readonly value: string;
10741
10910
  readonly id: string;
10911
+ readonly key: string;
10742
10912
  readonly _local?: {
10743
10913
  readonly isOptimistic: boolean;
10744
10914
  } | undefined;
10745
- readonly key: string;
10746
10915
  readonly archivedAt: Date | null | undefined;
10747
10916
  readonly dimensionDisplayName: string | null | undefined;
10748
10917
  readonly valueDisplayName: string | null | undefined;
@@ -10832,10 +11001,10 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
10832
11001
  readonly transactionTags: readonly {
10833
11002
  readonly value: string;
10834
11003
  readonly id: string;
11004
+ readonly key: string;
10835
11005
  readonly _local?: {
10836
11006
  readonly isOptimistic: boolean;
10837
11007
  } | undefined;
10838
- readonly key: string;
10839
11008
  readonly archivedAt: Date | null | undefined;
10840
11009
  readonly dimensionDisplayName: string | null | undefined;
10841
11010
  readonly valueDisplayName: string | null | undefined;
@@ -10909,6 +11078,7 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
10909
11078
  get data(): {
10910
11079
  readonly data: {
10911
11080
  readonly id: string;
11081
+ readonly businessId: string;
10912
11082
  readonly externalId: string | null;
10913
11083
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
10914
11084
  readonly memo: string | null;
@@ -10928,7 +11098,6 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
10928
11098
  readonly isOptimistic: boolean;
10929
11099
  } | undefined;
10930
11100
  } | null;
10931
- readonly businessId: string;
10932
11101
  readonly invoiceNumber: string | null;
10933
11102
  readonly recipientName: string | null;
10934
11103
  readonly lineItems: readonly {
@@ -10939,10 +11108,10 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
10939
11108
  readonly transactionTags: readonly {
10940
11109
  readonly value: string;
10941
11110
  readonly id: string;
11111
+ readonly key: string;
10942
11112
  readonly _local?: {
10943
11113
  readonly isOptimistic: boolean;
10944
11114
  } | undefined;
10945
- readonly key: string;
10946
11115
  readonly archivedAt: Date | null | undefined;
10947
11116
  readonly dimensionDisplayName: string | null | undefined;
10948
11117
  readonly valueDisplayName: string | null | undefined;
@@ -10980,6 +11149,7 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
10980
11149
  get trigger(): import("swr/mutation").TriggerWithArgs<{
10981
11150
  readonly data: {
10982
11151
  readonly id: string;
11152
+ readonly businessId: string;
10983
11153
  readonly externalId: string | null;
10984
11154
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
10985
11155
  readonly memo: string | null;
@@ -10999,7 +11169,6 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
10999
11169
  readonly isOptimistic: boolean;
11000
11170
  } | undefined;
11001
11171
  } | null;
11002
- readonly businessId: string;
11003
11172
  readonly invoiceNumber: string | null;
11004
11173
  readonly recipientName: string | null;
11005
11174
  readonly lineItems: readonly {
@@ -11010,10 +11179,10 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
11010
11179
  readonly transactionTags: readonly {
11011
11180
  readonly value: string;
11012
11181
  readonly id: string;
11182
+ readonly key: string;
11013
11183
  readonly _local?: {
11014
11184
  readonly isOptimistic: boolean;
11015
11185
  } | undefined;
11016
- readonly key: string;
11017
11186
  readonly archivedAt: Date | null | undefined;
11018
11187
  readonly dimensionDisplayName: string | null | undefined;
11019
11188
  readonly valueDisplayName: string | null | undefined;
@@ -11138,10 +11307,10 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
11138
11307
  readonly transactionTags: readonly {
11139
11308
  readonly value: string;
11140
11309
  readonly id: string;
11310
+ readonly key: string;
11141
11311
  readonly _local?: {
11142
11312
  readonly isOptimistic: boolean;
11143
11313
  } | undefined;
11144
- readonly key: string;
11145
11314
  readonly archivedAt: Date | null | undefined;
11146
11315
  readonly dimensionDisplayName: string | null | undefined;
11147
11316
  readonly valueDisplayName: string | null | undefined;
@@ -11215,6 +11384,7 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
11215
11384
  get data(): {
11216
11385
  readonly data: {
11217
11386
  readonly id: string;
11387
+ readonly businessId: string;
11218
11388
  readonly externalId: string | null;
11219
11389
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
11220
11390
  readonly memo: string | null;
@@ -11234,7 +11404,6 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
11234
11404
  readonly isOptimistic: boolean;
11235
11405
  } | undefined;
11236
11406
  } | null;
11237
- readonly businessId: string;
11238
11407
  readonly invoiceNumber: string | null;
11239
11408
  readonly recipientName: string | null;
11240
11409
  readonly lineItems: readonly {
@@ -11245,10 +11414,10 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
11245
11414
  readonly transactionTags: readonly {
11246
11415
  readonly value: string;
11247
11416
  readonly id: string;
11417
+ readonly key: string;
11248
11418
  readonly _local?: {
11249
11419
  readonly isOptimistic: boolean;
11250
11420
  } | undefined;
11251
- readonly key: string;
11252
11421
  readonly archivedAt: Date | null | undefined;
11253
11422
  readonly dimensionDisplayName: string | null | undefined;
11254
11423
  readonly valueDisplayName: string | null | undefined;
@@ -11286,6 +11455,7 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
11286
11455
  get trigger(): import("swr/mutation").TriggerWithoutArgs<{
11287
11456
  readonly data: {
11288
11457
  readonly id: string;
11458
+ readonly businessId: string;
11289
11459
  readonly externalId: string | null;
11290
11460
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
11291
11461
  readonly memo: string | null;
@@ -11305,7 +11475,6 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
11305
11475
  readonly isOptimistic: boolean;
11306
11476
  } | undefined;
11307
11477
  } | null;
11308
- readonly businessId: string;
11309
11478
  readonly invoiceNumber: string | null;
11310
11479
  readonly recipientName: string | null;
11311
11480
  readonly lineItems: readonly {
@@ -11316,10 +11485,10 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
11316
11485
  readonly transactionTags: readonly {
11317
11486
  readonly value: string;
11318
11487
  readonly id: string;
11488
+ readonly key: string;
11319
11489
  readonly _local?: {
11320
11490
  readonly isOptimistic: boolean;
11321
11491
  } | undefined;
11322
- readonly key: string;
11323
11492
  readonly archivedAt: Date | null | undefined;
11324
11493
  readonly dimensionDisplayName: string | null | undefined;
11325
11494
  readonly valueDisplayName: string | null | undefined;
@@ -11511,10 +11680,10 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
11511
11680
  transactionTags: Schema.PropertySignature<":", readonly {
11512
11681
  readonly value: string;
11513
11682
  readonly id: string;
11683
+ readonly key: string;
11514
11684
  readonly _local?: {
11515
11685
  readonly isOptimistic: boolean;
11516
11686
  } | undefined;
11517
- readonly key: string;
11518
11687
  readonly archivedAt: Date | null | undefined;
11519
11688
  readonly dimensionDisplayName: string | null | undefined;
11520
11689
  readonly valueDisplayName: string | null | undefined;
@@ -11584,10 +11753,10 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
11584
11753
  readonly transactionTags: readonly {
11585
11754
  readonly value: string;
11586
11755
  readonly id: string;
11756
+ readonly key: string;
11587
11757
  readonly _local?: {
11588
11758
  readonly isOptimistic: boolean;
11589
11759
  } | undefined;
11590
- readonly key: string;
11591
11760
  readonly archivedAt: Date | null | undefined;
11592
11761
  readonly dimensionDisplayName: string | null | undefined;
11593
11762
  readonly valueDisplayName: string | null | undefined;
@@ -11768,10 +11937,10 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
11768
11937
  readonly tags: readonly {
11769
11938
  readonly value: string;
11770
11939
  readonly id: string;
11940
+ readonly key: string;
11771
11941
  readonly _local: {
11772
11942
  readonly isOptimistic: boolean;
11773
11943
  };
11774
- readonly key: string;
11775
11944
  readonly archivedAt: Date | null | undefined;
11776
11945
  readonly dimensionDisplayName: string | null | undefined;
11777
11946
  readonly valueDisplayName: string | null | undefined;
@@ -11985,7 +12154,7 @@ declare module '@layerfi/components/features/ledger/entries/[ledgerEntryId]/tags
11985
12154
 
11986
12155
  }
11987
12156
  declare module '@layerfi/components/features/ledger/entries/api/useListLedgerEntries' {
11988
- import type { JournalEntry } from '@layerfi/components/types';
12157
+ import type { JournalEntry } from '@layerfi/components/types/journal';
11989
12158
  export const LIST_LEDGER_ENTRIES_TAG_KEY = "#list-ledger-entries";
11990
12159
  type GetLedgerEntriesParams = {
11991
12160
  businessId: string;
@@ -12028,7 +12197,7 @@ declare module '@layerfi/components/features/ledger/entries/api/useListLedgerEnt
12028
12197
  }
12029
12198
  declare module '@layerfi/components/features/reports/api/useUnifiedReport' {
12030
12199
  import { type SWRResponse } from 'swr';
12031
- import { type ReportEnum, type UnifiedReport } from '@layerfi/components/schemas/reports/unifiedReport';
12200
+ import { type ReportEnum, type UnifiedReport, type UnifiedReportDateQueryParams } from '@layerfi/components/schemas/reports/unifiedReport';
12032
12201
  export const UNIFIED_REPORT_TAG_KEY = "#unified-report";
12033
12202
  type LineItemDecoded = UnifiedReport['lineItems'][number];
12034
12203
  interface LineItemWithId extends Omit<LineItemDecoded, 'lineItems'> {
@@ -12049,8 +12218,8 @@ declare module '@layerfi/components/features/reports/api/useUnifiedReport' {
12049
12218
  }
12050
12219
  type UseUnifiedReportParameters = {
12051
12220
  report: ReportEnum;
12052
- };
12053
- export function useUnifiedReport({ report }: UseUnifiedReportParameters): UnifiedReportSWRResponse;
12221
+ } & UnifiedReportDateQueryParams;
12222
+ export function useUnifiedReport({ report, ...dateParams }: UseUnifiedReportParameters): UnifiedReportSWRResponse;
12054
12223
  export {};
12055
12224
 
12056
12225
  }
@@ -12309,20 +12478,20 @@ declare module '@layerfi/components/features/tags/tagSchemas' {
12309
12478
  export const makeTag: (i: {
12310
12479
  readonly value: string;
12311
12480
  readonly id: string;
12481
+ readonly key: string;
12312
12482
  readonly _local: {
12313
12483
  readonly isOptimistic: boolean;
12314
12484
  };
12315
- readonly key: string;
12316
12485
  readonly archivedAt: string | null | undefined;
12317
12486
  readonly dimensionDisplayName: string | null | undefined;
12318
12487
  readonly valueDisplayName: string | null | undefined;
12319
12488
  }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
12320
12489
  readonly value: string;
12321
12490
  readonly id: string;
12491
+ readonly key: string;
12322
12492
  readonly _local: {
12323
12493
  readonly isOptimistic: boolean;
12324
12494
  };
12325
- readonly key: string;
12326
12495
  readonly archivedAt: Date | null | undefined;
12327
12496
  readonly dimensionDisplayName: string | null | undefined;
12328
12497
  readonly valueDisplayName: string | null | undefined;
@@ -12448,7 +12617,7 @@ declare module '@layerfi/components/hooks/array/usePaginatedList' {
12448
12617
  declare module '@layerfi/components/hooks/balanceSheet/useBalanceSheet' {
12449
12618
  export function useBalanceSheet({ effectiveDate, }: {
12450
12619
  effectiveDate?: Date;
12451
- }): import("swr").SWRResponse<import("../../types").BalanceSheet, any, any>;
12620
+ }): import("swr").SWRResponse<import("../../types/balance_sheet").BalanceSheet, any, any>;
12452
12621
 
12453
12622
  }
12454
12623
  declare module '@layerfi/components/hooks/bookkeeping/periods/tasks/useDeleteUploadsOnTask' {
@@ -12628,12 +12797,12 @@ declare module '@layerfi/components/hooks/bookkeeping/useBookkeepingStatus' {
12628
12797
  }
12629
12798
  declare module '@layerfi/components/hooks/business/useUpdateBusiness' {
12630
12799
  export const BUSINESS_TAG_KEY = "business";
12631
- export function useUpdateBusiness(): import("swr/mutation").SWRMutationResponse<import("../../types").Business, any, () => {
12800
+ export function useUpdateBusiness(): import("swr/mutation").SWRMutationResponse<import("../../types/business").Business, any, () => {
12632
12801
  readonly accessToken: string;
12633
12802
  readonly apiUrl: string;
12634
12803
  readonly businessId: string;
12635
12804
  readonly tags: readonly [`business:${string}`];
12636
- } | undefined, Partial<import("@layerfi/components/types").Business>>;
12805
+ } | undefined, Partial<import("@layerfi/components/types/business").Business>>;
12637
12806
 
12638
12807
  }
12639
12808
  declare module '@layerfi/components/hooks/businessPersonnel/types' {
@@ -12744,7 +12913,7 @@ declare module '@layerfi/components/hooks/businessPersonnel/useUpdateBusinessPer
12744
12913
 
12745
12914
  }
12746
12915
  declare module '@layerfi/components/hooks/categories/useCategories' {
12747
- import { Category } from '@layerfi/components/types';
12916
+ import { Category } from '@layerfi/components/types/categories';
12748
12917
  import type { CategoriesListMode } from '@layerfi/components/schemas/categorization';
12749
12918
  export const CATEGORIES_TAG_KEY = "#categories";
12750
12919
  export const getCategories: (baseUrl: string, accessToken: string | undefined, options?: {
@@ -12767,7 +12936,7 @@ declare module '@layerfi/components/hooks/categories/useCategories' {
12767
12936
 
12768
12937
  }
12769
12938
  declare module '@layerfi/components/hooks/customAccounts/types' {
12770
- import { Direction } from '@layerfi/components/types/bank_transactions';
12939
+ import { Direction } from '@layerfi/components/types/general';
12771
12940
  export enum CustomAccountSubtype {
12772
12941
  CHECKING = "CHECKING",
12773
12942
  SAVINGS = "SAVINGS",
@@ -12836,7 +13005,7 @@ declare module '@layerfi/components/hooks/customAccounts/useCreateCustomAccount'
12836
13005
  }
12837
13006
  declare module '@layerfi/components/hooks/customAccounts/useCreateCustomAccountTransactions' {
12838
13007
  import type { RawCustomTransaction } from '@layerfi/components/hooks/customAccounts/types';
12839
- import { BankTransaction } from '@layerfi/components/types';
13008
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
12840
13009
  import { APIError } from '@layerfi/components/models/APIError';
12841
13010
  type CreateCustomAccountTransactionsBody = {
12842
13011
  transactions: RawCustomTransaction[];
@@ -13011,7 +13180,9 @@ declare module '@layerfi/components/hooks/useAuth' {
13011
13180
 
13012
13181
  }
13013
13182
  declare module '@layerfi/components/hooks/useBankTransactions/types' {
13014
- import { DateRange, Direction, DisplayState } from '@layerfi/components/types';
13183
+ import { DateRange } from '@layerfi/components/types/general';
13184
+ import { DisplayState } from '@layerfi/components/types/bank_transactions';
13185
+ import { Direction } from '@layerfi/components/types/general';
13015
13186
  import { TagFilterInput } from '@layerfi/components/types/tags';
13016
13187
  export interface NumericRangeFilter {
13017
13188
  min?: number;
@@ -13037,8 +13208,8 @@ declare module '@layerfi/components/hooks/useBankTransactions/types' {
13037
13208
 
13038
13209
  }
13039
13210
  declare module '@layerfi/components/hooks/useBankTransactions/useAugmentedBankTransactions' {
13040
- import { BankTransaction, CategoryUpdate } from '@layerfi/components/types';
13041
- import { DisplayState } from '@layerfi/components/types/bank_transactions';
13211
+ import { CategoryUpdate } from '@layerfi/components/types/categories';
13212
+ import { DisplayState, BankTransaction } from '@layerfi/components/types/bank_transactions';
13042
13213
  import { BankTransactionFilters } from '@layerfi/components/hooks/useBankTransactions/types';
13043
13214
  import { type UseBankTransactionsOptions } from '@layerfi/components/hooks/useBankTransactions/useBankTransactions';
13044
13215
  export function bankTransactionFiltersToHookOptions(filters?: BankTransactionFilters): UseBankTransactionsOptions;
@@ -13070,7 +13241,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/useAugmentedBankTr
13070
13241
  }
13071
13242
  declare module '@layerfi/components/hooks/useBankTransactions/useBankTransactions' {
13072
13243
  import { type GetBankTransactionsReturn } from '@layerfi/components/api/layer/bankTransactions';
13073
- import type { BankTransaction } from '@layerfi/components/types';
13244
+ import type { BankTransaction } from '@layerfi/components/types/bank_transactions';
13074
13245
  export const BANK_TRANSACTIONS_TAG_KEY = "#bank-transactions";
13075
13246
  export type UseBankTransactionsOptions = {
13076
13247
  categorized?: boolean;
@@ -13104,7 +13275,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/useBankTransaction
13104
13275
 
13105
13276
  }
13106
13277
  declare module '@layerfi/components/hooks/useBankTransactions/useBankTransactionsMetadata' {
13107
- import { BankTransaction } from '@layerfi/components/types';
13278
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
13108
13279
  export const GET_BANK_TRANSACTION_METADATA_TAG_KEY = "#bank-transaction-metadata";
13109
13280
  export function useBankTransactionMetadata({ bankTransactionId }: {
13110
13281
  bankTransactionId: BankTransaction['id'];
@@ -13113,7 +13284,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/useBankTransaction
13113
13284
  }
13114
13285
  declare module '@layerfi/components/hooks/useBankTransactions/useCategorizeBankTransaction' {
13115
13286
  import { type GetBankTransactionsReturn } from '@layerfi/components/api/layer/bankTransactions';
13116
- import type { CategoryUpdate } from '@layerfi/components/types';
13287
+ import type { CategoryUpdate } from '@layerfi/components/types/categories';
13117
13288
  import type { SWRInfiniteKeyedMutator } from 'swr/infinite';
13118
13289
  type CategorizeBankTransactionArgs = CategoryUpdate & {
13119
13290
  bankTransactionId: string;
@@ -13121,7 +13292,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/useCategorizeBankT
13121
13292
  type UseCategorizeBankTransactionOptions = {
13122
13293
  mutateBankTransactions: SWRInfiniteKeyedMutator<Array<GetBankTransactionsReturn>>;
13123
13294
  };
13124
- export function useCategorizeBankTransaction({ mutateBankTransactions, }: UseCategorizeBankTransactionOptions): import("swr/mutation").SWRMutationResponse<import("../../types").BankTransaction, any, () => {
13295
+ export function useCategorizeBankTransaction({ mutateBankTransactions, }: UseCategorizeBankTransactionOptions): import("swr/mutation").SWRMutationResponse<import("../../types/bank_transactions").BankTransaction, any, () => {
13125
13296
  accessToken: string;
13126
13297
  apiUrl: string;
13127
13298
  businessId: string;
@@ -13139,7 +13310,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/useMatchBankTransa
13139
13310
  type UseMatchBankTransactionOptions = {
13140
13311
  mutateBankTransactions: SWRInfiniteKeyedMutator<Array<GetBankTransactionsReturn>>;
13141
13312
  };
13142
- export function useMatchBankTransaction({ mutateBankTransactions, }: UseMatchBankTransactionOptions): import("swr/mutation").SWRMutationResponse<import("../../types").BankTransactionMatch, any, () => {
13313
+ export function useMatchBankTransaction({ mutateBankTransactions, }: UseMatchBankTransactionOptions): import("swr/mutation").SWRMutationResponse<import("../../types/bank_transactions").BankTransactionMatch, any, () => {
13143
13314
  accessToken: string;
13144
13315
  apiUrl: string;
13145
13316
  businessId: string;
@@ -13166,7 +13337,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/useUpdateBankTrans
13166
13337
 
13167
13338
  }
13168
13339
  declare module '@layerfi/components/hooks/useBankTransactions/utils' {
13169
- import { BankTransaction, DisplayState } from '@layerfi/components/types';
13340
+ import { BankTransaction, DisplayState } from '@layerfi/components/types/bank_transactions';
13170
13341
  import { AccountItem, NumericRangeFilter } from '@layerfi/components/hooks/useBankTransactions/types';
13171
13342
  export const collectAccounts: (transactions?: BankTransaction[]) => AccountItem[];
13172
13343
  export const uniqAccountsList: (arr: AccountItem[], track?: Set<unknown>) => AccountItem[];
@@ -13177,7 +13348,8 @@ declare module '@layerfi/components/hooks/useBankTransactions/utils' {
13177
13348
  }
13178
13349
  declare module '@layerfi/components/hooks/useBills' {
13179
13350
  import { Bill } from '@layerfi/components/types/bills';
13180
- import { DateRange, Metadata } from '@layerfi/components/types';
13351
+ import { Metadata } from '@layerfi/components/types/api';
13352
+ import { DateRange } from '@layerfi/components/types/general';
13181
13353
  import { Vendor } from '@layerfi/components/types/vendors';
13182
13354
  export type BillStatusFilter = 'PAID' | 'UNPAID';
13183
13355
  type UseBills = () => {
@@ -13207,6 +13379,53 @@ declare module '@layerfi/components/hooks/useBills' {
13207
13379
  export const useBills: UseBills;
13208
13380
  export {};
13209
13381
 
13382
+ }
13383
+ declare module '@layerfi/components/hooks/useBookkeepingConfiguration/index' {
13384
+ export { useBookkeepingConfiguration, BookkeepingStatus, TransactionTaggingStrategy, BOOKKEEPING_CONFIGURATION_TAG_KEY, } from '@layerfi/components/hooks/useBookkeepingConfiguration/useBookkeepingConfiguration';
13385
+ export type { BookkeepingConfiguration } from '@layerfi/components/hooks/useBookkeepingConfiguration/useBookkeepingConfiguration';
13386
+
13387
+ }
13388
+ declare module '@layerfi/components/hooks/useBookkeepingConfiguration/useBookkeepingConfiguration' {
13389
+ import { type SWRResponse } from 'swr';
13390
+ import { BookkeepingConfiguration, BookkeepingStatus, TransactionTaggingStrategy } from '@layerfi/components/schemas/bookkeepingConfiguration';
13391
+ export type { BookkeepingConfiguration };
13392
+ export { BookkeepingStatus, TransactionTaggingStrategy };
13393
+ export const BOOKKEEPING_CONFIGURATION_TAG_KEY = "#bookkeeping-configuration";
13394
+ class BookkeepingConfigurationSWRResponse {
13395
+ private swrResponse;
13396
+ constructor(swrResponse: SWRResponse<BookkeepingConfiguration>);
13397
+ get data(): {
13398
+ readonly businessId: string;
13399
+ readonly bookkeeperId: string | null | undefined;
13400
+ readonly firstMonthPurchasedDate: Date | null | undefined;
13401
+ readonly onboardingDate: Date | null | undefined;
13402
+ readonly churnedDate: Date | null | undefined;
13403
+ readonly bookkeepingEndDate: Date | null | undefined;
13404
+ readonly bookkeepingStatus: BookkeepingStatus;
13405
+ readonly transactionTaggingStrategy: TransactionTaggingStrategy.PC_MSO | null;
13406
+ readonly notes: string | null;
13407
+ readonly onboardingCallUrl: string | null;
13408
+ readonly adhocCallUrl: string | null;
13409
+ } | undefined;
13410
+ get isLoading(): boolean;
13411
+ get isValidating(): boolean;
13412
+ get isError(): boolean;
13413
+ get mutate(): import("swr").KeyedMutator<{
13414
+ readonly businessId: string;
13415
+ readonly bookkeeperId: string | null | undefined;
13416
+ readonly firstMonthPurchasedDate: Date | null | undefined;
13417
+ readonly onboardingDate: Date | null | undefined;
13418
+ readonly churnedDate: Date | null | undefined;
13419
+ readonly bookkeepingEndDate: Date | null | undefined;
13420
+ readonly bookkeepingStatus: BookkeepingStatus;
13421
+ readonly transactionTaggingStrategy: TransactionTaggingStrategy.PC_MSO | null;
13422
+ readonly notes: string | null;
13423
+ readonly onboardingCallUrl: string | null;
13424
+ readonly adhocCallUrl: string | null;
13425
+ }>;
13426
+ }
13427
+ export function useBookkeepingConfiguration(): BookkeepingConfigurationSWRResponse;
13428
+
13210
13429
  }
13211
13430
  declare module '@layerfi/components/hooks/useCalendly/useCalendly' {
13212
13431
  import { ServiceOfferingLink } from '@layerfi/components/components/ServiceOffering/types';
@@ -13223,7 +13442,11 @@ declare module '@layerfi/components/hooks/useCalendly/useCalendly' {
13223
13442
  payload?: CalendlyPayload;
13224
13443
  }
13225
13444
  export const isCalendlyLink: (link?: ServiceOfferingLink) => boolean;
13226
- export const useCalendly: () => {
13445
+ export const createCalendlyMessageHandler: (onEventScheduled?: (payload?: CalendlyPayload) => void) => (e: MessageEvent) => void;
13446
+ export interface UseCalendlyOptions {
13447
+ onEventScheduled?: (payload?: CalendlyPayload) => void;
13448
+ }
13449
+ export const useCalendly: (options?: UseCalendlyOptions) => {
13227
13450
  isCalendlyVisible: boolean;
13228
13451
  calendlyLink: string;
13229
13452
  calendlyRef: import("react").RefObject<HTMLDivElement>;
@@ -13240,6 +13463,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useArchiveCateg
13240
13463
  } | undefined) => Promise<{
13241
13464
  readonly data: {
13242
13465
  readonly id: string;
13466
+ readonly businessId: string;
13243
13467
  readonly archivedAt: Date | null | undefined;
13244
13468
  readonly createdAt: Date;
13245
13469
  readonly updatedAt: Date;
@@ -13280,12 +13504,12 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useArchiveCateg
13280
13504
  readonly logo?: string | null | undefined;
13281
13505
  readonly mccs: readonly string[];
13282
13506
  } | null | undefined;
13283
- readonly businessId: string;
13284
13507
  };
13285
13508
  }>;
13286
13509
  export function useArchiveCategorizationRule(): import("swr/mutation").SWRMutationResponse<{
13287
13510
  readonly data: {
13288
13511
  readonly id: string;
13512
+ readonly businessId: string;
13289
13513
  readonly archivedAt: Date | null | undefined;
13290
13514
  readonly createdAt: Date;
13291
13515
  readonly updatedAt: Date;
@@ -13326,7 +13550,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useArchiveCateg
13326
13550
  readonly logo?: string | null | undefined;
13327
13551
  readonly mccs: readonly string[];
13328
13552
  } | null | undefined;
13329
- readonly businessId: string;
13330
13553
  };
13331
13554
  }, any, () => {
13332
13555
  accessToken: string;
@@ -13340,6 +13563,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useCreateCatego
13340
13563
  export function useCreateCategorizationRule(): import("swr/mutation").SWRMutationResponse<{
13341
13564
  readonly data: {
13342
13565
  readonly id: string;
13566
+ readonly businessId: string;
13343
13567
  readonly archivedAt: Date | null | undefined;
13344
13568
  readonly createdAt: Date;
13345
13569
  readonly updatedAt: Date;
@@ -13380,7 +13604,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useCreateCatego
13380
13604
  readonly logo?: string | null | undefined;
13381
13605
  readonly mccs: readonly string[];
13382
13606
  } | null | undefined;
13383
- readonly businessId: string;
13384
13607
  };
13385
13608
  }, any, () => {
13386
13609
  accessToken: string;
@@ -13537,6 +13760,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13537
13760
  get data(): {
13538
13761
  readonly data: readonly {
13539
13762
  readonly id: string;
13763
+ readonly businessId: string;
13540
13764
  readonly archivedAt: Date | null | undefined;
13541
13765
  readonly createdAt: Date;
13542
13766
  readonly updatedAt: Date;
@@ -13577,7 +13801,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13577
13801
  readonly logo?: string | null | undefined;
13578
13802
  readonly mccs: readonly string[];
13579
13803
  } | null | undefined;
13580
- readonly businessId: string;
13581
13804
  }[];
13582
13805
  readonly meta: {
13583
13806
  readonly pagination: {
@@ -13597,6 +13820,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13597
13820
  get setSize(): (size: number | ((_size: number) => number)) => Promise<{
13598
13821
  readonly data: readonly {
13599
13822
  readonly id: string;
13823
+ readonly businessId: string;
13600
13824
  readonly archivedAt: Date | null | undefined;
13601
13825
  readonly createdAt: Date;
13602
13826
  readonly updatedAt: Date;
@@ -13637,7 +13861,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13637
13861
  readonly logo?: string | null | undefined;
13638
13862
  readonly mccs: readonly string[];
13639
13863
  } | null | undefined;
13640
- readonly businessId: string;
13641
13864
  }[];
13642
13865
  readonly meta: {
13643
13866
  readonly pagination: {
@@ -13653,6 +13876,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13653
13876
  get refetch(): import("swr/infinite").SWRInfiniteKeyedMutator<{
13654
13877
  readonly data: readonly {
13655
13878
  readonly id: string;
13879
+ readonly businessId: string;
13656
13880
  readonly archivedAt: Date | null | undefined;
13657
13881
  readonly createdAt: Date;
13658
13882
  readonly updatedAt: Date;
@@ -13693,7 +13917,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13693
13917
  readonly logo?: string | null | undefined;
13694
13918
  readonly mccs: readonly string[];
13695
13919
  } | null | undefined;
13696
- readonly businessId: string;
13697
13920
  }[];
13698
13921
  readonly meta: {
13699
13922
  readonly pagination: {
@@ -13709,6 +13932,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13709
13932
  } | undefined) => () => Promise<{
13710
13933
  readonly data: readonly {
13711
13934
  readonly id: string;
13935
+ readonly businessId: string;
13712
13936
  readonly archivedAt: Date | null | undefined;
13713
13937
  readonly createdAt: Date;
13714
13938
  readonly updatedAt: Date;
@@ -13749,7 +13973,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13749
13973
  readonly logo?: string | null | undefined;
13750
13974
  readonly mccs: readonly string[];
13751
13975
  } | null | undefined;
13752
- readonly businessId: string;
13753
13976
  }[];
13754
13977
  readonly meta: {
13755
13978
  readonly pagination: {
@@ -13764,6 +13987,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13764
13987
  patchCategorizationRuleByKey: (updatedCategorizationRule: CategorizationRule) => Promise<({
13765
13988
  readonly data: readonly {
13766
13989
  readonly id: string;
13990
+ readonly businessId: string;
13767
13991
  readonly archivedAt: Date | null | undefined;
13768
13992
  readonly createdAt: Date;
13769
13993
  readonly updatedAt: Date;
@@ -13804,7 +14028,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13804
14028
  readonly logo?: string | null | undefined;
13805
14029
  readonly mccs: readonly string[];
13806
14030
  } | null | undefined;
13807
- readonly businessId: string;
13808
14031
  }[];
13809
14032
  readonly meta: {
13810
14033
  readonly pagination: {
@@ -13816,6 +14039,7 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13816
14039
  } | {
13817
14040
  readonly data: readonly {
13818
14041
  readonly id: string;
14042
+ readonly businessId: string;
13819
14043
  readonly archivedAt: Date | null | undefined;
13820
14044
  readonly createdAt: Date;
13821
14045
  readonly updatedAt: Date;
@@ -13856,7 +14080,6 @@ declare module '@layerfi/components/hooks/useCategorizationRules/useListCategori
13856
14080
  readonly logo?: string | null | undefined;
13857
14081
  readonly mccs: readonly string[];
13858
14082
  } | null | undefined;
13859
- readonly businessId: string;
13860
14083
  }[];
13861
14084
  readonly meta: {
13862
14085
  readonly pagination: {
@@ -13890,7 +14113,8 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/index' {
13890
14113
 
13891
14114
  }
13892
14115
  declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts' {
13893
- import { FormError, DateRange, NewAccount } from '@layerfi/components/types';
14116
+ import { FormError, DateRange } from '@layerfi/components/types/general';
14117
+ import { NewAccount } from '@layerfi/components/types/chart_of_accounts';
13894
14118
  import { BaseSelectOption } from '@layerfi/components/types/general';
13895
14119
  import { NestedLedgerAccountType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
13896
14120
  export interface ChartOfAccountsForm {
@@ -14062,7 +14286,7 @@ declare module '@layerfi/components/hooks/useJournal/index' {
14062
14286
  }
14063
14287
  declare module '@layerfi/components/hooks/useJournal/useJournal' {
14064
14288
  import { Layer } from '@layerfi/components/api/layer';
14065
- import { FormError, FormErrorWithId } from '@layerfi/components/types';
14289
+ import { FormError, FormErrorWithId } from '@layerfi/components/types/general';
14066
14290
  import { BaseSelectOption } from '@layerfi/components/types/general';
14067
14291
  import { JournalEntry, NewApiJournalEntry, NewFormJournalEntry } from '@layerfi/components/types/journal';
14068
14292
  import { type ListLedgerEntriesReturn } from '@layerfi/components/features/ledger/entries/api/useListLedgerEntries';
@@ -14112,11 +14336,11 @@ declare module '@layerfi/components/hooks/useLedgerAccounts/index' {
14112
14336
 
14113
14337
  }
14114
14338
  declare module '@layerfi/components/hooks/useLedgerAccounts/useLedgerAccounts' {
14115
- import { LedgerAccounts, LedgerAccountsEntry } from '@layerfi/components/types';
14339
+ import { LedgerAccountsEntry, type LedgerAccountLineItem } from '@layerfi/components/types/ledger_accounts';
14116
14340
  import { type ListLedgerAccountLinesReturn } from '@layerfi/components/features/ledger/accounts/[ledgerAccountId]/api/useListLedgerAccountLines';
14117
14341
  import type { LedgerAccountBalanceWithNodeType } from '@layerfi/components/types/chart_of_accounts';
14118
14342
  type UseLedgerAccounts = (showReversalEntries: boolean) => {
14119
- data?: LedgerAccounts;
14343
+ data?: LedgerAccountLineItem[] | undefined;
14120
14344
  entryData?: LedgerAccountsEntry;
14121
14345
  isLoading?: boolean;
14122
14346
  isLoadingEntry?: boolean;
@@ -14254,7 +14478,7 @@ declare module '@layerfi/components/hooks/usePaginationRange/usePaginationRange'
14254
14478
  }
14255
14479
  declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
14256
14480
  import { Schema } from 'effect';
14257
- import { Direction } from '@layerfi/components/types';
14481
+ import { Direction } from '@layerfi/components/types/general';
14258
14482
  export const TagFilterSchema: Schema.Struct<{
14259
14483
  key: typeof Schema.String;
14260
14484
  values: Schema.Array$<typeof Schema.String>;
@@ -15179,7 +15403,8 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
15179
15403
 
15180
15404
  }
15181
15405
  declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
15182
- import { ReportingBasis, SortDirection } from '@layerfi/components/types';
15406
+ import { SortDirection } from '@layerfi/components/types/general';
15407
+ import { ReportingBasis } from '@layerfi/components/types/general';
15183
15408
  import { type PnlChartLineItem } from '@layerfi/components/utils/profitAndLossUtils';
15184
15409
  import type { BreadcrumbItem } from '@layerfi/components/components/DetailReportBreadcrumb/DetailReportBreadcrumb';
15185
15410
  export type Scope = 'expenses' | 'revenue';
@@ -15313,7 +15538,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
15313
15538
  }
15314
15539
  declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetailLines' {
15315
15540
  import { type SWRResponse } from 'swr';
15316
- import { ReportingBasis } from '@layerfi/components/types';
15541
+ import { ReportingBasis } from '@layerfi/components/types/general';
15317
15542
  import { PnlDetailLineSchema, PnlDetailLinesDataSchema } from '@layerfi/components/hooks/useProfitAndLoss/schemas';
15318
15543
  export const LIST_PNL_DETAIL_LINES_TAG_KEY = "#list-pnl-detail-lines";
15319
15544
  type PnlStructureLineItemName = string;
@@ -15354,6 +15579,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
15354
15579
  } | null;
15355
15580
  readonly lines: readonly {
15356
15581
  readonly id: string;
15582
+ readonly date: string;
15357
15583
  readonly amount: number;
15358
15584
  readonly account: {
15359
15585
  readonly id: string;
@@ -15369,31 +15595,30 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
15369
15595
  readonly displayName: string;
15370
15596
  };
15371
15597
  };
15372
- readonly date: string;
15373
- readonly direction: import("@layerfi/components/types").Direction;
15598
+ readonly direction: import("@layerfi/components/types/general").Direction;
15374
15599
  readonly source?: {
15375
15600
  readonly type: "Transaction_Ledger_Entry_Source";
15601
+ readonly date: string;
15376
15602
  readonly externalId: string | null;
15377
15603
  readonly memo?: string | null | undefined;
15378
15604
  readonly amount: number;
15379
15605
  readonly description?: string | undefined;
15380
15606
  readonly referenceNumber?: string | null | undefined;
15381
15607
  readonly metadata?: unknown;
15382
- readonly date: string;
15383
15608
  readonly transactionId: string;
15384
- readonly direction: import("@layerfi/components/types").Direction;
15609
+ readonly direction: import("@layerfi/components/types/general").Direction;
15385
15610
  readonly counterparty?: string | null | undefined;
15386
15611
  readonly accountName?: string | undefined;
15387
15612
  readonly displayDescription: string;
15388
15613
  readonly entityName: string;
15389
15614
  } | {
15390
15615
  readonly type: "Invoice_Ledger_Entry_Source";
15616
+ readonly date: string;
15391
15617
  readonly externalId: string | null;
15392
15618
  readonly memo?: string | null | undefined;
15393
15619
  readonly amount: number;
15394
15620
  readonly referenceNumber?: string | null | undefined;
15395
15621
  readonly metadata?: unknown;
15396
- readonly date: string;
15397
15622
  readonly displayDescription: string;
15398
15623
  readonly entityName: string;
15399
15624
  readonly invoiceId: string;
@@ -15498,11 +15723,11 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
15498
15723
  readonly importDate: string;
15499
15724
  } | {
15500
15725
  readonly type: "Invoice_Write_Off_Ledger_Entry_Source";
15726
+ readonly date: string;
15501
15727
  readonly externalId?: string | null | undefined;
15502
15728
  readonly memo?: string | null | undefined;
15503
15729
  readonly referenceNumber?: string | null | undefined;
15504
15730
  readonly metadata?: unknown;
15505
- readonly date: string;
15506
15731
  readonly invoiceIdentifiers: {
15507
15732
  readonly id: string;
15508
15733
  readonly externalId?: string | null | undefined;
@@ -15587,17 +15812,17 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
15587
15812
  readonly payrollId: string;
15588
15813
  } | {
15589
15814
  readonly type: "Bill_Ledger_Entry_Source";
15815
+ readonly date: string;
15590
15816
  readonly externalId?: string | null | undefined;
15591
15817
  readonly memo?: string | null | undefined;
15592
15818
  readonly amount: number;
15593
15819
  readonly referenceNumber?: string | null | undefined;
15594
15820
  readonly metadata?: unknown;
15595
- readonly date: string;
15821
+ readonly billId: string;
15596
15822
  readonly displayDescription: string;
15597
15823
  readonly entityName: string;
15598
15824
  readonly vendorExternalId?: string | null | undefined;
15599
15825
  readonly vendorDescription: string;
15600
- readonly billId: string;
15601
15826
  readonly billNumber?: string | null | undefined;
15602
15827
  } | {
15603
15828
  readonly type: "Bill_Payment_Ledger_Entry_Source";
@@ -15612,9 +15837,9 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
15612
15837
  readonly referenceNumber?: string | null | undefined;
15613
15838
  readonly metadata?: unknown;
15614
15839
  }[];
15840
+ readonly billId: string;
15615
15841
  readonly displayDescription: string;
15616
15842
  readonly entityName: string;
15617
- readonly billId: string;
15618
15843
  readonly billNumber?: string | null | undefined;
15619
15844
  } | {
15620
15845
  readonly type: "Vendor_Credit_Ledger_Entry_Source";
@@ -15710,7 +15935,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
15710
15935
  key: string;
15711
15936
  values: string[];
15712
15937
  } | undefined;
15713
- reportingBasis: import("@layerfi/components/types").ReportingBasis | undefined;
15938
+ reportingBasis: import("@layerfi/components/types/general").ReportingBasis | undefined;
15714
15939
  pnlStructure: string | undefined;
15715
15940
  tags: string[];
15716
15941
  } | undefined, never>;
@@ -15725,7 +15950,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossGloba
15725
15950
 
15726
15951
  }
15727
15952
  declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossLTM' {
15728
- import { ReportingBasis } from '@layerfi/components/types';
15953
+ import { ReportingBasis } from '@layerfi/components/types/general';
15729
15954
  import type { ProfitAndLossSummary } from '@layerfi/components/hooks/useProfitAndLoss/schemas';
15730
15955
  type UseProfitAndLossLTMProps = {
15731
15956
  currentDate: Date;
@@ -16006,7 +16231,7 @@ declare module '@layerfi/components/hooks/useProfitAndLossComparison/index' {
16006
16231
 
16007
16232
  }
16008
16233
  declare module '@layerfi/components/hooks/useProfitAndLossComparison/useProfitAndLossComparison' {
16009
- import { DateRange, MoneyFormat, ReportingBasis } from '@layerfi/components/types';
16234
+ import { DateRange, MoneyFormat, ReportingBasis } from '@layerfi/components/types/general';
16010
16235
  import { MultiValue } from 'react-select';
16011
16236
  import { ProfitAndLossCompareConfig, TagComparisonOption } from '@layerfi/components/types/profit_and_loss';
16012
16237
  export type Scope = 'expenses' | 'revenue';
@@ -16039,7 +16264,7 @@ declare module '@layerfi/components/hooks/useProfitAndLossComparison/useProfitAn
16039
16264
 
16040
16265
  }
16041
16266
  declare module '@layerfi/components/hooks/useProfitAndLossComparison/utils' {
16042
- import { DateRange } from '@layerfi/components/types';
16267
+ import { DateRange } from '@layerfi/components/types/general';
16043
16268
  import { DateRangePickerMode } from '@layerfi/components/providers/GlobalDateStore/GlobalDateStoreProvider';
16044
16269
  import { ProfitAndLossComparisonTags, TagComparisonOption } from '@layerfi/components/types/profit_and_loss';
16045
16270
  import { ReadonlyArrayWithAtLeastOne } from '@layerfi/components/utils/array/getArrayWithAtLeastOneOrFallback';
@@ -16118,7 +16343,7 @@ declare module '@layerfi/components/hooks/useQuickbooks/useQuickbooks' {
16118
16343
  }
16119
16344
  declare module '@layerfi/components/hooks/useReceipts/useReceipts' {
16120
16345
  import { DocumentWithStatus } from '@layerfi/components/components/BankTransactionReceipts/BankTransactionReceipts';
16121
- import { BankTransaction } from '@layerfi/components/types';
16346
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
16122
16347
  import { Awaitable } from '@layerfi/components/types/utility/promises';
16123
16348
  export interface UseReceiptsProps {
16124
16349
  bankTransaction: BankTransaction;
@@ -16137,7 +16362,7 @@ declare module '@layerfi/components/hooks/useStatementOfCashFlow/useStatementOfC
16137
16362
  export function useStatementOfCashFlow({ startDate, endDate, }: {
16138
16363
  startDate?: Date;
16139
16364
  endDate?: Date;
16140
- }): import("swr").SWRResponse<import("../../types").StatementOfCashFlow, any, any>;
16365
+ }): import("swr").SWRResponse<import("../../types/statement_of_cash_flow").StatementOfCashFlow, any, any>;
16141
16366
 
16142
16367
  }
16143
16368
  declare module '@layerfi/components/hooks/useTableExpandRow/index' {
@@ -16586,13 +16811,15 @@ declare module '@layerfi/components/index' {
16586
16811
  export { GeneralLedgerView } from '@layerfi/components/views/GeneralLedger/index';
16587
16812
  export { ProjectProfitabilityView } from '@layerfi/components/views/ProjectProfitability/index';
16588
16813
  export { unstable_BillsView } from '@layerfi/components/views/Bills';
16814
+ export { UnifiedReport as unstable_UnifiedReports } from '@layerfi/components/components/UnifiedReport/UnifiedReport';
16589
16815
  export { Reports } from '@layerfi/components/views/Reports/index';
16590
16816
  export { ProfitAndLossView } from '@layerfi/components/components/ProfitAndLossView/index';
16591
16817
  export { Invoices } from '@layerfi/components/components/Invoices/Invoices';
16592
16818
  export { LayerProvider } from '@layerfi/components/providers/LayerProvider/index';
16593
16819
  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';
16820
+ export { DisplayState } from '@layerfi/components/types/bank_transactions';
16821
+ export { Direction } from '@layerfi/components/types/general';
16822
+ export { type LinkingMetadata, EntityName } from '@layerfi/components/contexts/InAppLinkContext';
16596
16823
 
16597
16824
  }
16598
16825
  declare module '@layerfi/components/models/APIError' {
@@ -16676,6 +16903,36 @@ declare module '@layerfi/components/providers/AuthInputProvider' {
16676
16903
  export function AuthInputProvider({ appId, appSecret, businessAccessToken, children, }: PropsWithChildren<AuthInputShape>): import("react/jsx-runtime").JSX.Element;
16677
16904
  export {};
16678
16905
 
16906
+ }
16907
+ declare module '@layerfi/components/providers/BankTransactionsCategoryStore/BankTransactionsCategoryStoreProvider' {
16908
+ import { type PropsWithChildren } from 'react';
16909
+ import type { CategoryOption } from '@layerfi/components/components/CategorySelect/CategorySelect';
16910
+ export type BankTransactionsCategoryState = {
16911
+ transactionCategories: Map<string, CategoryOption>;
16912
+ };
16913
+ type BankTransactionsCategoryActions = {
16914
+ actions: {
16915
+ setTransactionCategory: (id: string, category: CategoryOption) => void;
16916
+ setOnlyNewTransactionCategories: (transactionCategories: Array<{
16917
+ id: string;
16918
+ category: CategoryOption;
16919
+ }>) => void;
16920
+ clearTransactionCategory: (id: string) => void;
16921
+ clearMultipleTransactionCategories: (ids: string[]) => void;
16922
+ clearAllTransactionCategories: () => void;
16923
+ };
16924
+ };
16925
+ export function useBankTransactionsCategoryActions(): BankTransactionsCategoryActions['actions'];
16926
+ export function useGetBankTransactionCategory(transactionId: string): {
16927
+ selectedCategory: CategoryOption | undefined;
16928
+ };
16929
+ export function useGetAllBankTransactionsCategories(): {
16930
+ transactionCategories: Map<string, CategoryOption>;
16931
+ };
16932
+ type BankTransactionsCategoryStoreProviderProps = PropsWithChildren;
16933
+ export function BankTransactionsCategoryStoreProvider({ children, }: BankTransactionsCategoryStoreProviderProps): JSX.Element;
16934
+ export {};
16935
+
16679
16936
  }
16680
16937
  declare module '@layerfi/components/providers/BankTransactionsProvider/BankTransactionsProvider' {
16681
16938
  import { ReactNode } from 'react';
@@ -16809,6 +17066,8 @@ declare module '@layerfi/components/providers/GlobalDateStore/GlobalDateStorePro
16809
17066
  const _RANGE_PICKER_MODES: readonly ["dayRangePicker", "monthPicker", "monthRangePicker", "yearPicker"];
16810
17067
  export type DateRangePickerMode = typeof _RANGE_PICKER_MODES[number];
16811
17068
  export const isDateRangePickerMode: (mode: string) => mode is DateRangePickerMode;
17069
+ export function clampToAfterActivationDate(date: Date | number, activationDate: Date): Date;
17070
+ export function clampToPresentOrPast(date: Date | number, cutoff?: Date): Date;
16812
17071
  export type DateRange = {
16813
17072
  startDate: Date;
16814
17073
  endDate: Date;
@@ -17002,7 +17261,7 @@ declare module '@layerfi/components/providers/QuickbooksContextProvider/Quickboo
17002
17261
  }
17003
17262
  declare module '@layerfi/components/providers/ReceiptsProvider/ReceiptsProvider' {
17004
17263
  import { ReactNode } from 'react';
17005
- import { BankTransaction } from '@layerfi/components/types';
17264
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
17006
17265
  interface ReceiptsProviderProps {
17007
17266
  children: ReactNode;
17008
17267
  bankTransaction: BankTransaction;
@@ -17050,6 +17309,23 @@ declare module '@layerfi/components/providers/ReportsModeStoreProvider/ReportsMo
17050
17309
  export function ReportsModeStoreProvider({ children, initialModes, resetPnLModeToDefaultOnMount, }: ReportsModeStoreProviderProps): import("react/jsx-runtime").JSX.Element;
17051
17310
  export {};
17052
17311
 
17312
+ }
17313
+ declare module '@layerfi/components/providers/UnifiedReportStore/UnifiedReportStoreProvider' {
17314
+ import { type PropsWithChildren } from 'react';
17315
+ import { ReportEnum, type DateQueryParams, type DateRangeQueryParams } from '@layerfi/components/schemas/reports/unifiedReport';
17316
+ export enum UnifiedReportDateVariant {
17317
+ Date = "Date",
17318
+ DateRange = "DateRange"
17319
+ }
17320
+ export type UnifiedReportWithDateParams = {
17321
+ report: ReportEnum.BalanceSheet;
17322
+ } & DateQueryParams | {
17323
+ report: ReportEnum.CashflowStatement;
17324
+ } & DateRangeQueryParams;
17325
+ export function useUnifiedReportDateVariant(): UnifiedReportDateVariant;
17326
+ export function useUnifiedReportWithDateParams(): UnifiedReportWithDateParams;
17327
+ export function UnifiedReportStoreProvider(props: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
17328
+
17053
17329
  }
17054
17330
  declare module '@layerfi/components/public/styles/publicClassname' {
17055
17331
  export const PUBLIC_CLASSNAME = "Layer__Public";
@@ -17253,12 +17529,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17253
17529
  readonly id: string;
17254
17530
  readonly details: ({
17255
17531
  readonly id: string;
17532
+ readonly date: string;
17256
17533
  readonly externalId?: string | null | undefined;
17257
17534
  readonly amount: number;
17258
17535
  readonly description: string;
17259
17536
  readonly referenceNumber?: string | null | undefined;
17260
17537
  readonly metadata?: unknown;
17261
- readonly date: string;
17262
17538
  readonly adjustment: {
17263
17539
  readonly amount: number;
17264
17540
  readonly account: {
@@ -17271,12 +17547,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17271
17547
  readonly type: "Journal_Entry_Match";
17272
17548
  }) | ({
17273
17549
  readonly id: string;
17550
+ readonly date: string;
17274
17551
  readonly externalId?: string | null | undefined;
17275
17552
  readonly amount: number;
17276
17553
  readonly description: string;
17277
17554
  readonly referenceNumber?: string | null | undefined;
17278
17555
  readonly metadata?: unknown;
17279
- readonly date: string;
17280
17556
  readonly adjustment: {
17281
17557
  readonly amount: number;
17282
17558
  readonly account: {
@@ -17295,12 +17571,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17295
17571
  };
17296
17572
  }) | ({
17297
17573
  readonly id: string;
17574
+ readonly date: string;
17298
17575
  readonly externalId?: string | null | undefined;
17299
17576
  readonly amount: number;
17300
17577
  readonly description: string;
17301
17578
  readonly referenceNumber?: string | null | undefined;
17302
17579
  readonly metadata?: unknown;
17303
- readonly date: string;
17304
17580
  readonly adjustment: {
17305
17581
  readonly amount: number;
17306
17582
  readonly account: {
@@ -17319,12 +17595,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17319
17595
  };
17320
17596
  }) | ({
17321
17597
  readonly id: string;
17598
+ readonly date: string;
17322
17599
  readonly externalId?: string | null | undefined;
17323
17600
  readonly amount: number;
17324
17601
  readonly description: string;
17325
17602
  readonly referenceNumber?: string | null | undefined;
17326
17603
  readonly metadata?: unknown;
17327
- readonly date: string;
17328
17604
  readonly adjustment: {
17329
17605
  readonly amount: number;
17330
17606
  readonly account: {
@@ -17343,12 +17619,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17343
17619
  }[];
17344
17620
  }) | ({
17345
17621
  readonly id: string;
17622
+ readonly date: string;
17346
17623
  readonly externalId?: string | null | undefined;
17347
17624
  readonly amount: number;
17348
17625
  readonly description: string;
17349
17626
  readonly referenceNumber?: string | null | undefined;
17350
17627
  readonly metadata?: unknown;
17351
- readonly date: string;
17352
17628
  readonly adjustment: {
17353
17629
  readonly amount: number;
17354
17630
  readonly account: {
@@ -17361,12 +17637,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17361
17637
  readonly type: "Payout_Match";
17362
17638
  }) | ({
17363
17639
  readonly id: string;
17640
+ readonly date: string;
17364
17641
  readonly externalId?: string | null | undefined;
17365
17642
  readonly amount: number;
17366
17643
  readonly description: string;
17367
17644
  readonly referenceNumber?: string | null | undefined;
17368
17645
  readonly metadata?: unknown;
17369
- readonly date: string;
17370
17646
  readonly adjustment: {
17371
17647
  readonly amount: number;
17372
17648
  readonly account: {
@@ -17379,12 +17655,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17379
17655
  readonly type: "Vendor_Payout_Match";
17380
17656
  }) | ({
17381
17657
  readonly id: string;
17658
+ readonly date: string;
17382
17659
  readonly externalId?: string | null | undefined;
17383
17660
  readonly amount: number;
17384
17661
  readonly description: string;
17385
17662
  readonly referenceNumber?: string | null | undefined;
17386
17663
  readonly metadata?: unknown;
17387
- readonly date: string;
17388
17664
  readonly adjustment: {
17389
17665
  readonly amount: number;
17390
17666
  readonly account: {
@@ -17403,12 +17679,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17403
17679
  }[];
17404
17680
  }) | ({
17405
17681
  readonly id: string;
17682
+ readonly date: string;
17406
17683
  readonly externalId?: string | null | undefined;
17407
17684
  readonly amount: number;
17408
17685
  readonly description: string;
17409
17686
  readonly referenceNumber?: string | null | undefined;
17410
17687
  readonly metadata?: unknown;
17411
- readonly date: string;
17412
17688
  readonly adjustment: {
17413
17689
  readonly amount: number;
17414
17690
  readonly account: {
@@ -17421,12 +17697,12 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17421
17697
  readonly type: "Payroll_Match";
17422
17698
  }) | ({
17423
17699
  readonly id: string;
17700
+ readonly date: string;
17424
17701
  readonly externalId?: string | null | undefined;
17425
17702
  readonly amount: number;
17426
17703
  readonly description: string;
17427
17704
  readonly referenceNumber?: string | null | undefined;
17428
17705
  readonly metadata?: unknown;
17429
- readonly date: string;
17430
17706
  readonly adjustment: {
17431
17707
  readonly amount: number;
17432
17708
  readonly account: {
@@ -17444,9 +17720,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17444
17720
  readonly id: string;
17445
17721
  readonly details: ({
17446
17722
  readonly id: string;
17723
+ readonly date: string;
17447
17724
  readonly amount: number;
17448
17725
  readonly description: string;
17449
- readonly date: string;
17450
17726
  readonly adjustment: {
17451
17727
  readonly amount: number;
17452
17728
  readonly account: {
@@ -17462,9 +17738,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17462
17738
  readonly type: "Journal_Entry_Match";
17463
17739
  }) | ({
17464
17740
  readonly id: string;
17741
+ readonly date: string;
17465
17742
  readonly amount: number;
17466
17743
  readonly description: string;
17467
- readonly date: string;
17468
17744
  readonly adjustment: {
17469
17745
  readonly amount: number;
17470
17746
  readonly account: {
@@ -17486,9 +17762,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17486
17762
  };
17487
17763
  }) | ({
17488
17764
  readonly id: string;
17765
+ readonly date: string;
17489
17766
  readonly amount: number;
17490
17767
  readonly description: string;
17491
- readonly date: string;
17492
17768
  readonly adjustment: {
17493
17769
  readonly amount: number;
17494
17770
  readonly account: {
@@ -17510,9 +17786,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17510
17786
  };
17511
17787
  }) | ({
17512
17788
  readonly id: string;
17789
+ readonly date: string;
17513
17790
  readonly amount: number;
17514
17791
  readonly description: string;
17515
- readonly date: string;
17516
17792
  readonly adjustment: {
17517
17793
  readonly amount: number;
17518
17794
  readonly account: {
@@ -17534,9 +17810,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17534
17810
  }[];
17535
17811
  }) | ({
17536
17812
  readonly id: string;
17813
+ readonly date: string;
17537
17814
  readonly amount: number;
17538
17815
  readonly description: string;
17539
- readonly date: string;
17540
17816
  readonly adjustment: {
17541
17817
  readonly amount: number;
17542
17818
  readonly account: {
@@ -17552,9 +17828,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17552
17828
  readonly type: "Payout_Match";
17553
17829
  }) | ({
17554
17830
  readonly id: string;
17831
+ readonly date: string;
17555
17832
  readonly amount: number;
17556
17833
  readonly description: string;
17557
- readonly date: string;
17558
17834
  readonly adjustment: {
17559
17835
  readonly amount: number;
17560
17836
  readonly account: {
@@ -17570,9 +17846,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17570
17846
  readonly type: "Vendor_Payout_Match";
17571
17847
  }) | ({
17572
17848
  readonly id: string;
17849
+ readonly date: string;
17573
17850
  readonly amount: number;
17574
17851
  readonly description: string;
17575
- readonly date: string;
17576
17852
  readonly adjustment: {
17577
17853
  readonly amount: number;
17578
17854
  readonly account: {
@@ -17594,9 +17870,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17594
17870
  }[];
17595
17871
  }) | ({
17596
17872
  readonly id: string;
17873
+ readonly date: string;
17597
17874
  readonly amount: number;
17598
17875
  readonly description: string;
17599
- readonly date: string;
17600
17876
  readonly adjustment: {
17601
17877
  readonly amount: number;
17602
17878
  readonly account: {
@@ -17612,9 +17888,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17612
17888
  readonly type: "Payroll_Match";
17613
17889
  }) | ({
17614
17890
  readonly id: string;
17891
+ readonly date: string;
17615
17892
  readonly amount: number;
17616
17893
  readonly description: string;
17617
- readonly date: string;
17618
17894
  readonly adjustment: {
17619
17895
  readonly amount: number;
17620
17896
  readonly account: {
@@ -17848,10 +18124,10 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17848
18124
  transactionTags: Schema.PropertySignature<":", readonly {
17849
18125
  readonly value: string;
17850
18126
  readonly id: string;
18127
+ readonly key: string;
17851
18128
  readonly _local?: {
17852
18129
  readonly isOptimistic: boolean;
17853
18130
  } | undefined;
17854
- readonly key: string;
17855
18131
  readonly archivedAt: Date | null | undefined;
17856
18132
  readonly dimensionDisplayName: string | null | undefined;
17857
18133
  readonly valueDisplayName: string | null | undefined;
@@ -17963,9 +18239,9 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
17963
18239
  readonly suggestionPrompt: string | null | undefined;
17964
18240
  readonly transactionsThatWillBeAffected: readonly {
17965
18241
  readonly id: string;
18242
+ readonly date: Date;
17966
18243
  readonly amount: number;
17967
18244
  readonly description?: string | null | undefined;
17968
- readonly date: Date;
17969
18245
  readonly direction: import("@layerfi/components/schemas/bankTransactions/base").BankTransactionDirection;
17970
18246
  readonly counterpartyName?: string | null | undefined;
17971
18247
  }[];
@@ -18027,8 +18303,8 @@ declare module '@layerfi/components/schemas/bankTransactions/bankTransaction' {
18027
18303
  readonly suggestion_prompt: string | null | undefined;
18028
18304
  readonly transactions_that_will_be_affected: readonly {
18029
18305
  readonly id: string;
18030
- readonly amount: number;
18031
18306
  readonly date: string;
18307
+ readonly amount: number;
18032
18308
  readonly direction: import("@layerfi/components/schemas/bankTransactions/base").BankTransactionDirection;
18033
18309
  readonly description?: string | null | undefined;
18034
18310
  readonly counterparty_name?: string | null | undefined;
@@ -18261,15 +18537,15 @@ declare module '@layerfi/components/schemas/bankTransactions/categorizationRules
18261
18537
  suggestionPrompt: Schema.PropertySignature<":", string | null | undefined, "suggestion_prompt", ":", string | null | undefined, false, never>;
18262
18538
  transactionsThatWillBeAffected: Schema.PropertySignature<":", readonly {
18263
18539
  readonly id: string;
18540
+ readonly date: Date;
18264
18541
  readonly amount: number;
18265
18542
  readonly description?: string | null | undefined;
18266
- readonly date: Date;
18267
18543
  readonly direction: import("@layerfi/components/schemas/bankTransactions/base").BankTransactionDirection;
18268
18544
  readonly counterpartyName?: string | null | undefined;
18269
18545
  }[], "transactions_that_will_be_affected", ":", readonly {
18270
18546
  readonly id: string;
18271
- readonly amount: number;
18272
18547
  readonly date: string;
18548
+ readonly amount: number;
18273
18549
  readonly direction: import("@layerfi/components/schemas/bankTransactions/base").BankTransactionDirection;
18274
18550
  readonly description?: string | null | undefined;
18275
18551
  readonly counterparty_name?: string | null | undefined;
@@ -18448,15 +18724,15 @@ declare module '@layerfi/components/schemas/bankTransactions/categorizationRules
18448
18724
  suggestionPrompt: Schema.PropertySignature<":", string | null | undefined, "suggestion_prompt", ":", string | null | undefined, false, never>;
18449
18725
  transactionsThatWillBeAffected: Schema.PropertySignature<":", readonly {
18450
18726
  readonly id: string;
18727
+ readonly date: Date;
18451
18728
  readonly amount: number;
18452
18729
  readonly description?: string | null | undefined;
18453
- readonly date: Date;
18454
18730
  readonly direction: import("@layerfi/components/schemas/bankTransactions/base").BankTransactionDirection;
18455
18731
  readonly counterpartyName?: string | null | undefined;
18456
18732
  }[], "transactions_that_will_be_affected", ":", readonly {
18457
18733
  readonly id: string;
18458
- readonly amount: number;
18459
18734
  readonly date: string;
18735
+ readonly amount: number;
18460
18736
  readonly direction: import("@layerfi/components/schemas/bankTransactions/base").BankTransactionDirection;
18461
18737
  readonly description?: string | null | undefined;
18462
18738
  readonly counterparty_name?: string | null | undefined;
@@ -18924,12 +19200,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
18924
19200
  }>;
18925
19201
  export const decodeMatchDetails: (data: unknown) => ({
18926
19202
  readonly id: string;
19203
+ readonly date: string;
18927
19204
  readonly externalId?: string | null | undefined;
18928
19205
  readonly amount: number;
18929
19206
  readonly description: string;
18930
19207
  readonly referenceNumber?: string | null | undefined;
18931
19208
  readonly metadata?: unknown;
18932
- readonly date: string;
18933
19209
  readonly adjustment: {
18934
19210
  readonly amount: number;
18935
19211
  readonly account: {
@@ -18942,12 +19218,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
18942
19218
  readonly type: "Journal_Entry_Match";
18943
19219
  }) | ({
18944
19220
  readonly id: string;
19221
+ readonly date: string;
18945
19222
  readonly externalId?: string | null | undefined;
18946
19223
  readonly amount: number;
18947
19224
  readonly description: string;
18948
19225
  readonly referenceNumber?: string | null | undefined;
18949
19226
  readonly metadata?: unknown;
18950
- readonly date: string;
18951
19227
  readonly adjustment: {
18952
19228
  readonly amount: number;
18953
19229
  readonly account: {
@@ -18966,12 +19242,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
18966
19242
  };
18967
19243
  }) | ({
18968
19244
  readonly id: string;
19245
+ readonly date: string;
18969
19246
  readonly externalId?: string | null | undefined;
18970
19247
  readonly amount: number;
18971
19248
  readonly description: string;
18972
19249
  readonly referenceNumber?: string | null | undefined;
18973
19250
  readonly metadata?: unknown;
18974
- readonly date: string;
18975
19251
  readonly adjustment: {
18976
19252
  readonly amount: number;
18977
19253
  readonly account: {
@@ -18990,12 +19266,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
18990
19266
  };
18991
19267
  }) | ({
18992
19268
  readonly id: string;
19269
+ readonly date: string;
18993
19270
  readonly externalId?: string | null | undefined;
18994
19271
  readonly amount: number;
18995
19272
  readonly description: string;
18996
19273
  readonly referenceNumber?: string | null | undefined;
18997
19274
  readonly metadata?: unknown;
18998
- readonly date: string;
18999
19275
  readonly adjustment: {
19000
19276
  readonly amount: number;
19001
19277
  readonly account: {
@@ -19014,12 +19290,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
19014
19290
  }[];
19015
19291
  }) | ({
19016
19292
  readonly id: string;
19293
+ readonly date: string;
19017
19294
  readonly externalId?: string | null | undefined;
19018
19295
  readonly amount: number;
19019
19296
  readonly description: string;
19020
19297
  readonly referenceNumber?: string | null | undefined;
19021
19298
  readonly metadata?: unknown;
19022
- readonly date: string;
19023
19299
  readonly adjustment: {
19024
19300
  readonly amount: number;
19025
19301
  readonly account: {
@@ -19032,12 +19308,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
19032
19308
  readonly type: "Payout_Match";
19033
19309
  }) | ({
19034
19310
  readonly id: string;
19311
+ readonly date: string;
19035
19312
  readonly externalId?: string | null | undefined;
19036
19313
  readonly amount: number;
19037
19314
  readonly description: string;
19038
19315
  readonly referenceNumber?: string | null | undefined;
19039
19316
  readonly metadata?: unknown;
19040
- readonly date: string;
19041
19317
  readonly adjustment: {
19042
19318
  readonly amount: number;
19043
19319
  readonly account: {
@@ -19050,12 +19326,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
19050
19326
  readonly type: "Vendor_Payout_Match";
19051
19327
  }) | ({
19052
19328
  readonly id: string;
19329
+ readonly date: string;
19053
19330
  readonly externalId?: string | null | undefined;
19054
19331
  readonly amount: number;
19055
19332
  readonly description: string;
19056
19333
  readonly referenceNumber?: string | null | undefined;
19057
19334
  readonly metadata?: unknown;
19058
- readonly date: string;
19059
19335
  readonly adjustment: {
19060
19336
  readonly amount: number;
19061
19337
  readonly account: {
@@ -19074,12 +19350,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
19074
19350
  }[];
19075
19351
  }) | ({
19076
19352
  readonly id: string;
19353
+ readonly date: string;
19077
19354
  readonly externalId?: string | null | undefined;
19078
19355
  readonly amount: number;
19079
19356
  readonly description: string;
19080
19357
  readonly referenceNumber?: string | null | undefined;
19081
19358
  readonly metadata?: unknown;
19082
- readonly date: string;
19083
19359
  readonly adjustment: {
19084
19360
  readonly amount: number;
19085
19361
  readonly account: {
@@ -19092,12 +19368,12 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
19092
19368
  readonly type: "Payroll_Match";
19093
19369
  }) | ({
19094
19370
  readonly id: string;
19371
+ readonly date: string;
19095
19372
  readonly externalId?: string | null | undefined;
19096
19373
  readonly amount: number;
19097
19374
  readonly description: string;
19098
19375
  readonly referenceNumber?: string | null | undefined;
19099
19376
  readonly metadata?: unknown;
19100
- readonly date: string;
19101
19377
  readonly adjustment: {
19102
19378
  readonly amount: number;
19103
19379
  readonly account: {
@@ -19553,6 +19829,49 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
19553
19829
  }>>]>;
19554
19830
  }>;
19555
19831
 
19832
+ }
19833
+ declare module '@layerfi/components/schemas/bookkeepingConfiguration' {
19834
+ import { Schema } from 'effect';
19835
+ export enum TransactionTaggingStrategy {
19836
+ PC_MSO = "PC_MSO"
19837
+ }
19838
+ export enum BookkeepingStatus {
19839
+ NOT_PURCHASED = "NOT_PURCHASED",
19840
+ ONBOARDING = "ONBOARDING",
19841
+ BOOKKEEPING_PAUSED = "BOOKKEEPING_PAUSED",
19842
+ ACTIVE = "ACTIVE"
19843
+ }
19844
+ export const BookkeepingConfigurationSchema: Schema.Struct<{
19845
+ businessId: Schema.PropertySignature<":", string, "business_id", ":", string, false, never>;
19846
+ bookkeeperId: Schema.PropertySignature<":", string | null | undefined, "bookkeeper_id", ":", string | null | undefined, false, never>;
19847
+ firstMonthPurchasedDate: Schema.PropertySignature<":", Date | null | undefined, "first_month_purchased_date", ":", string | null | undefined, false, never>;
19848
+ onboardingDate: Schema.PropertySignature<":", Date | null | undefined, "onboarding_date", ":", string | null | undefined, false, never>;
19849
+ churnedDate: Schema.PropertySignature<":", Date | null | undefined, "churned_date", ":", string | null | undefined, false, never>;
19850
+ bookkeepingEndDate: Schema.PropertySignature<":", Date | null | undefined, "bookkeeping_end_date", ":", string | null | undefined, false, never>;
19851
+ bookkeepingStatus: Schema.PropertySignature<":", BookkeepingStatus, "bookkeeping_status", ":", string, false, never>;
19852
+ transactionTaggingStrategy: Schema.PropertySignature<":", TransactionTaggingStrategy.PC_MSO | null, "transaction_tagging_strategy", ":", string | null, false, never>;
19853
+ notes: Schema.NullOr<typeof Schema.String>;
19854
+ onboardingCallUrl: Schema.PropertySignature<":", string | null, "onboarding_call_url", ":", string | null, false, never>;
19855
+ adhocCallUrl: Schema.PropertySignature<":", string | null, "adhoc_call_url", ":", string | null, false, never>;
19856
+ }>;
19857
+ export type BookkeepingConfiguration = typeof BookkeepingConfigurationSchema.Type;
19858
+ export const BookkeepingConfigurationResponseSchema: Schema.Struct<{
19859
+ data: Schema.Struct<{
19860
+ businessId: Schema.PropertySignature<":", string, "business_id", ":", string, false, never>;
19861
+ bookkeeperId: Schema.PropertySignature<":", string | null | undefined, "bookkeeper_id", ":", string | null | undefined, false, never>;
19862
+ firstMonthPurchasedDate: Schema.PropertySignature<":", Date | null | undefined, "first_month_purchased_date", ":", string | null | undefined, false, never>;
19863
+ onboardingDate: Schema.PropertySignature<":", Date | null | undefined, "onboarding_date", ":", string | null | undefined, false, never>;
19864
+ churnedDate: Schema.PropertySignature<":", Date | null | undefined, "churned_date", ":", string | null | undefined, false, never>;
19865
+ bookkeepingEndDate: Schema.PropertySignature<":", Date | null | undefined, "bookkeeping_end_date", ":", string | null | undefined, false, never>;
19866
+ bookkeepingStatus: Schema.PropertySignature<":", BookkeepingStatus, "bookkeeping_status", ":", string, false, never>;
19867
+ transactionTaggingStrategy: Schema.PropertySignature<":", TransactionTaggingStrategy.PC_MSO | null, "transaction_tagging_strategy", ":", string | null, false, never>;
19868
+ notes: Schema.NullOr<typeof Schema.String>;
19869
+ onboardingCallUrl: Schema.PropertySignature<":", string | null, "onboarding_call_url", ":", string | null, false, never>;
19870
+ adhocCallUrl: Schema.PropertySignature<":", string | null, "adhoc_call_url", ":", string | null, false, never>;
19871
+ }>;
19872
+ }>;
19873
+ export type BookkeepingConfigurationResponse = typeof BookkeepingConfigurationResponseSchema.Type;
19874
+
19556
19875
  }
19557
19876
  declare module '@layerfi/components/schemas/callBookings' {
19558
19877
  import { Schema } from 'effect';
@@ -19569,7 +19888,7 @@ declare module '@layerfi/components/schemas/callBookings' {
19569
19888
  BOOKKEEPING_ONBOARDING = "BOOKKEEPING_ONBOARDING",
19570
19889
  ADHOC = "ADHOC"
19571
19890
  }
19572
- export const CallBookingSchema: Schema.Struct<{
19891
+ const CallBookingSchema: Schema.Struct<{
19573
19892
  id: typeof Schema.UUID;
19574
19893
  businessId: Schema.PropertySignature<":", string, "business_id", ":", string, false, never>;
19575
19894
  externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
@@ -19577,6 +19896,7 @@ declare module '@layerfi/components/schemas/callBookings' {
19577
19896
  state: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<CallBookingState, CallBookingState, never>>;
19578
19897
  callType: Schema.PropertySignature<":", CallBookingType, "call_type", ":", string, false, never>;
19579
19898
  eventStartAt: Schema.PropertySignature<":", Date, "event_start_at", ":", string, false, never>;
19899
+ eventEndAt: Schema.PropertySignature<":", Date | null | undefined, "event_end_at", ":", string | null | undefined, false, never>;
19580
19900
  callLink: Schema.PropertySignature<":", URL, "call_link", ":", string, false, never>;
19581
19901
  cancellationReason: Schema.PropertySignature<"?:", string | null | undefined, "cancellation_reason", "?:", string | null | undefined, false, never>;
19582
19902
  didAttend: Schema.PropertySignature<"?:", boolean | null | undefined, "did_attend", "?:", boolean | null | undefined, false, never>;
@@ -19596,6 +19916,7 @@ declare module '@layerfi/components/schemas/callBookings' {
19596
19916
  state: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<CallBookingState, CallBookingState, never>>;
19597
19917
  callType: Schema.PropertySignature<":", CallBookingType, "call_type", ":", string, false, never>;
19598
19918
  eventStartAt: Schema.PropertySignature<":", Date, "event_start_at", ":", string, false, never>;
19919
+ eventEndAt: Schema.PropertySignature<":", Date | null | undefined, "event_end_at", ":", string | null | undefined, false, never>;
19599
19920
  callLink: Schema.PropertySignature<":", URL, "call_link", ":", string, false, never>;
19600
19921
  cancellationReason: Schema.PropertySignature<"?:", string | null | undefined, "cancellation_reason", "?:", string | null | undefined, false, never>;
19601
19922
  didAttend: Schema.PropertySignature<"?:", boolean | null | undefined, "did_attend", "?:", boolean | null | undefined, false, never>;
@@ -19623,6 +19944,7 @@ declare module '@layerfi/components/schemas/callBookings' {
19623
19944
  state: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<CallBookingState, CallBookingState, never>>;
19624
19945
  callType: Schema.PropertySignature<":", CallBookingType, "call_type", ":", string, false, never>;
19625
19946
  eventStartAt: Schema.PropertySignature<":", Date, "event_start_at", ":", string, false, never>;
19947
+ eventEndAt: Schema.PropertySignature<":", Date | null | undefined, "event_end_at", ":", string | null | undefined, false, never>;
19626
19948
  callLink: Schema.PropertySignature<":", URL, "call_link", ":", string, false, never>;
19627
19949
  cancellationReason: Schema.PropertySignature<"?:", string | null | undefined, "cancellation_reason", "?:", string | null | undefined, false, never>;
19628
19950
  didAttend: Schema.PropertySignature<"?:", boolean | null | undefined, "did_attend", "?:", boolean | null | undefined, false, never>;
@@ -19638,34 +19960,23 @@ declare module '@layerfi/components/schemas/callBookings' {
19638
19960
  externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
19639
19961
  purpose: Schema.Enums<typeof CallBookingPurpose>;
19640
19962
  callType: Schema.PropertySignature<":", CallBookingType, "call_type", ":", CallBookingType, false, never>;
19641
- eventStartAt: Schema.PropertySignature<"?:", Date | undefined, "event_start_at", "?:", string | undefined, false, never>;
19642
- location: Schema.optional<typeof Schema.String>;
19643
- cancellationReason: Schema.PropertySignature<"?:", string | undefined, "cancellation_reason", "?:", string | undefined, false, never>;
19644
19963
  }>;
19645
19964
  export const CreateCallBookingBodySchema: Schema.Struct<{
19646
19965
  externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
19647
19966
  purpose: Schema.Enums<typeof CallBookingPurpose>;
19648
19967
  callType: Schema.PropertySignature<":", CallBookingType, "call_type", ":", CallBookingType, false, never>;
19649
- eventStartAt: Schema.PropertySignature<"?:", Date | undefined, "event_start_at", "?:", string | undefined, false, never>;
19650
- location: Schema.optional<typeof Schema.String>;
19651
- cancellationReason: Schema.PropertySignature<"?:", string | undefined, "cancellation_reason", "?:", string | undefined, false, never>;
19652
19968
  }>;
19653
19969
  export const encodeCreateCallBookingBody: (a: {
19654
19970
  readonly externalId: string;
19655
- readonly location?: string | undefined;
19656
19971
  readonly purpose: CallBookingPurpose;
19657
19972
  readonly callType: CallBookingType;
19658
- readonly eventStartAt?: Date | undefined;
19659
- readonly cancellationReason?: string | undefined;
19660
19973
  }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
19661
19974
  readonly external_id: string;
19662
19975
  readonly purpose: CallBookingPurpose;
19663
19976
  readonly call_type: CallBookingType;
19664
- readonly location?: string | undefined;
19665
- readonly event_start_at?: string | undefined;
19666
- readonly cancellation_reason?: string | undefined;
19667
19977
  };
19668
19978
  export type CreateCallBookingBody = typeof CreateCallBookingBodySchemaDefinition.Type;
19979
+ export type CreateCallBookingBodyEncoded = typeof CreateCallBookingBodySchemaDefinition.Encoded;
19669
19980
  export {};
19670
19981
 
19671
19982
  }
@@ -19702,10 +20013,10 @@ declare module '@layerfi/components/schemas/categorization' {
19702
20013
  tags: Schema.PropertySignature<":", readonly {
19703
20014
  readonly value: string;
19704
20015
  readonly id: string;
20016
+ readonly key: string;
19705
20017
  readonly _local?: {
19706
20018
  readonly isOptimistic: boolean;
19707
20019
  } | undefined;
19708
- readonly key: string;
19709
20020
  readonly archivedAt: Date | null | undefined;
19710
20021
  readonly dimensionDisplayName: string | null | undefined;
19711
20022
  readonly valueDisplayName: string | null | undefined;
@@ -19767,10 +20078,10 @@ declare module '@layerfi/components/schemas/categorization' {
19767
20078
  tags: Schema.PropertySignature<":", readonly {
19768
20079
  readonly value: string;
19769
20080
  readonly id: string;
20081
+ readonly key: string;
19770
20082
  readonly _local?: {
19771
20083
  readonly isOptimistic: boolean;
19772
20084
  } | undefined;
19773
- readonly key: string;
19774
20085
  readonly archivedAt: Date | null | undefined;
19775
20086
  readonly dimensionDisplayName: string | null | undefined;
19776
20087
  readonly valueDisplayName: string | null | undefined;
@@ -19833,10 +20144,10 @@ declare module '@layerfi/components/schemas/categorization' {
19833
20144
  tags: Schema.PropertySignature<":", readonly {
19834
20145
  readonly value: string;
19835
20146
  readonly id: string;
20147
+ readonly key: string;
19836
20148
  readonly _local?: {
19837
20149
  readonly isOptimistic: boolean;
19838
20150
  } | undefined;
19839
- readonly key: string;
19840
20151
  readonly archivedAt: Date | null | undefined;
19841
20152
  readonly dimensionDisplayName: string | null | undefined;
19842
20153
  readonly valueDisplayName: string | null | undefined;
@@ -19897,10 +20208,10 @@ declare module '@layerfi/components/schemas/categorization' {
19897
20208
  tags: Schema.PropertySignature<":", readonly {
19898
20209
  readonly value: string;
19899
20210
  readonly id: string;
20211
+ readonly key: string;
19900
20212
  readonly _local?: {
19901
20213
  readonly isOptimistic: boolean;
19902
20214
  } | undefined;
19903
- readonly key: string;
19904
20215
  readonly archivedAt: Date | null | undefined;
19905
20216
  readonly dimensionDisplayName: string | null | undefined;
19906
20217
  readonly valueDisplayName: string | null | undefined;
@@ -19968,10 +20279,10 @@ declare module '@layerfi/components/schemas/categorization' {
19968
20279
  tags: Schema.PropertySignature<":", readonly {
19969
20280
  readonly value: string;
19970
20281
  readonly id: string;
20282
+ readonly key: string;
19971
20283
  readonly _local?: {
19972
20284
  readonly isOptimistic: boolean;
19973
20285
  } | undefined;
19974
- readonly key: string;
19975
20286
  readonly archivedAt: Date | null | undefined;
19976
20287
  readonly dimensionDisplayName: string | null | undefined;
19977
20288
  readonly valueDisplayName: string | null | undefined;
@@ -20032,10 +20343,10 @@ declare module '@layerfi/components/schemas/categorization' {
20032
20343
  tags: Schema.PropertySignature<":", readonly {
20033
20344
  readonly value: string;
20034
20345
  readonly id: string;
20346
+ readonly key: string;
20035
20347
  readonly _local?: {
20036
20348
  readonly isOptimistic: boolean;
20037
20349
  } | undefined;
20038
- readonly key: string;
20039
20350
  readonly archivedAt: Date | null | undefined;
20040
20351
  readonly dimensionDisplayName: string | null | undefined;
20041
20352
  readonly valueDisplayName: string | null | undefined;
@@ -20205,10 +20516,10 @@ declare module '@layerfi/components/schemas/categorization' {
20205
20516
  tags: Schema.PropertySignature<":", readonly {
20206
20517
  readonly value: string;
20207
20518
  readonly id: string;
20519
+ readonly key: string;
20208
20520
  readonly _local?: {
20209
20521
  readonly isOptimistic: boolean;
20210
20522
  } | undefined;
20211
- readonly key: string;
20212
20523
  readonly archivedAt: Date | null | undefined;
20213
20524
  readonly dimensionDisplayName: string | null | undefined;
20214
20525
  readonly valueDisplayName: string | null | undefined;
@@ -20269,10 +20580,10 @@ declare module '@layerfi/components/schemas/categorization' {
20269
20580
  tags: Schema.PropertySignature<":", readonly {
20270
20581
  readonly value: string;
20271
20582
  readonly id: string;
20583
+ readonly key: string;
20272
20584
  readonly _local?: {
20273
20585
  readonly isOptimistic: boolean;
20274
20586
  } | undefined;
20275
- readonly key: string;
20276
20587
  readonly archivedAt: Date | null | undefined;
20277
20588
  readonly dimensionDisplayName: string | null | undefined;
20278
20589
  readonly valueDisplayName: string | null | undefined;
@@ -20413,6 +20724,18 @@ declare module '@layerfi/components/schemas/common/lineItem' {
20413
20724
  export const decodeLineItemWithId: (input: unknown) => Effect.Effect<LineItemWithId, ParseResult.ParseError>;
20414
20725
  export {};
20415
20726
 
20727
+ }
20728
+ declare module '@layerfi/components/schemas/common/s3PresignedUrl' {
20729
+ import { Schema } from 'effect';
20730
+ export const S3PresignedUrlSchema: Schema.Struct<{
20731
+ presignedUrl: typeof Schema.String;
20732
+ fileType: typeof Schema.String;
20733
+ fileName: typeof Schema.String;
20734
+ createdAt: typeof Schema.Date;
20735
+ documentId: Schema.NullishOr<typeof Schema.UUID>;
20736
+ }>;
20737
+ export type S3PresignedUrlSchemaType = typeof S3PresignedUrlSchema.Type;
20738
+
20416
20739
  }
20417
20740
  declare module '@layerfi/components/schemas/common/zonedDateTimeFromSelf' {
20418
20741
  import { Schema } from 'effect';
@@ -22222,7 +22545,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
22222
22545
  }
22223
22546
  declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
22224
22547
  import { Schema } from 'effect';
22225
- import { Direction } from '@layerfi/components/types';
22548
+ import { Direction } from '@layerfi/components/types/general';
22226
22549
  import { LinkingMetadata } from '@layerfi/components/contexts/InAppLinkContext';
22227
22550
  export const FinancialEventIdentifiersSchema: Schema.Struct<{
22228
22551
  id: typeof Schema.String;
@@ -22910,13 +23233,13 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
22910
23233
  }>]>;
22911
23234
  export const decodeLedgerEntrySource: (data: unknown) => {
22912
23235
  readonly type: "Transaction_Ledger_Entry_Source";
23236
+ readonly date: string;
22913
23237
  readonly externalId: string | null;
22914
23238
  readonly memo?: string | null | undefined;
22915
23239
  readonly amount: number;
22916
23240
  readonly description?: string | undefined;
22917
23241
  readonly referenceNumber?: string | null | undefined;
22918
23242
  readonly metadata?: unknown;
22919
- readonly date: string;
22920
23243
  readonly transactionId: string;
22921
23244
  readonly direction: Direction;
22922
23245
  readonly counterparty?: string | null | undefined;
@@ -22925,12 +23248,12 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
22925
23248
  readonly entityName: string;
22926
23249
  } | {
22927
23250
  readonly type: "Invoice_Ledger_Entry_Source";
23251
+ readonly date: string;
22928
23252
  readonly externalId: string | null;
22929
23253
  readonly memo?: string | null | undefined;
22930
23254
  readonly amount: number;
22931
23255
  readonly referenceNumber?: string | null | undefined;
22932
23256
  readonly metadata?: unknown;
22933
- readonly date: string;
22934
23257
  readonly displayDescription: string;
22935
23258
  readonly entityName: string;
22936
23259
  readonly invoiceId: string;
@@ -23035,11 +23358,11 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
23035
23358
  readonly importDate: string;
23036
23359
  } | {
23037
23360
  readonly type: "Invoice_Write_Off_Ledger_Entry_Source";
23361
+ readonly date: string;
23038
23362
  readonly externalId?: string | null | undefined;
23039
23363
  readonly memo?: string | null | undefined;
23040
23364
  readonly referenceNumber?: string | null | undefined;
23041
23365
  readonly metadata?: unknown;
23042
- readonly date: string;
23043
23366
  readonly invoiceIdentifiers: {
23044
23367
  readonly id: string;
23045
23368
  readonly externalId?: string | null | undefined;
@@ -23124,17 +23447,17 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
23124
23447
  readonly payrollId: string;
23125
23448
  } | {
23126
23449
  readonly type: "Bill_Ledger_Entry_Source";
23450
+ readonly date: string;
23127
23451
  readonly externalId?: string | null | undefined;
23128
23452
  readonly memo?: string | null | undefined;
23129
23453
  readonly amount: number;
23130
23454
  readonly referenceNumber?: string | null | undefined;
23131
23455
  readonly metadata?: unknown;
23132
- readonly date: string;
23456
+ readonly billId: string;
23133
23457
  readonly displayDescription: string;
23134
23458
  readonly entityName: string;
23135
23459
  readonly vendorExternalId?: string | null | undefined;
23136
23460
  readonly vendorDescription: string;
23137
- readonly billId: string;
23138
23461
  readonly billNumber?: string | null | undefined;
23139
23462
  } | {
23140
23463
  readonly type: "Bill_Payment_Ledger_Entry_Source";
@@ -23149,9 +23472,9 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
23149
23472
  readonly referenceNumber?: string | null | undefined;
23150
23473
  readonly metadata?: unknown;
23151
23474
  }[];
23475
+ readonly billId: string;
23152
23476
  readonly displayDescription: string;
23153
23477
  readonly entityName: string;
23154
- readonly billId: string;
23155
23478
  readonly billNumber?: string | null | undefined;
23156
23479
  } | {
23157
23480
  readonly type: "Vendor_Credit_Ledger_Entry_Source";
@@ -23210,8 +23533,25 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
23210
23533
  declare module '@layerfi/components/schemas/reports/unifiedReport' {
23211
23534
  import { Schema } from 'effect';
23212
23535
  export enum ReportEnum {
23213
- BalanceSheet = "balance-sheet"
23536
+ BalanceSheet = "balance-sheet",
23537
+ CashflowStatement = "cashflow-statement"
23214
23538
  }
23539
+ export const DateQueryParamsSchema: Schema.Struct<{
23540
+ effectiveDate: Schema.PropertySignature<":", Date, "effective_date", ":", string, false, never>;
23541
+ }>;
23542
+ export type DateQueryParams = typeof DateQueryParamsSchema.Type;
23543
+ export const DateRangeQueryParamsSchema: Schema.Struct<{
23544
+ startDate: Schema.PropertySignature<":", Date, "start_date", ":", string, false, never>;
23545
+ endDate: Schema.PropertySignature<":", Date, "end_date", ":", string, false, never>;
23546
+ }>;
23547
+ export type DateRangeQueryParams = typeof DateRangeQueryParamsSchema.Type;
23548
+ export const UnifiedReportDateQueryParamsSchema: Schema.Union<[Schema.Struct<{
23549
+ effectiveDate: Schema.PropertySignature<":", Date, "effective_date", ":", string, false, never>;
23550
+ }>, Schema.Struct<{
23551
+ startDate: Schema.PropertySignature<":", Date, "start_date", ":", string, false, never>;
23552
+ endDate: Schema.PropertySignature<":", Date, "end_date", ":", string, false, never>;
23553
+ }>]>;
23554
+ export type UnifiedReportDateQueryParams = typeof UnifiedReportDateQueryParamsSchema.Type;
23215
23555
  export const UnifiedReportSchema: Schema.Struct<{
23216
23556
  businessId: Schema.PropertySignature<":", string, "business_id", ":", string, false, never>;
23217
23557
  lineItems: Schema.PropertySignature<":", readonly {
@@ -23232,6 +23572,11 @@ declare module '@layerfi/components/schemas/reports/unifiedReport' {
23232
23572
  }>;
23233
23573
  export type UnifiedReport = typeof UnifiedReportSchema.Type;
23234
23574
 
23575
+ }
23576
+ declare module '@layerfi/components/schemas/utils' {
23577
+ import { Schema } from 'effect/index';
23578
+ export const createTransformedEnumSchema: <T extends Record<string, string>>(enumSchema: Schema.Schema<T[keyof T], T[keyof T]>, enumObject: T, defaultValue: T[keyof T]) => Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<T[keyof T], T[keyof T], never>>;
23579
+
23235
23580
  }
23236
23581
  declare module '@layerfi/components/schemas/vendor' {
23237
23582
  import { Schema } from 'effect';
@@ -23321,13 +23666,9 @@ declare module '@layerfi/components/types/bank_transactions' {
23321
23666
  import { MatchDetailsType } from '@layerfi/components/schemas/bankTransactions/match';
23322
23667
  import { Categorization, Category } from '@layerfi/components/types/categories';
23323
23668
  import { CategorizationStatus } from '@layerfi/components/schemas/bankTransactions/bankTransaction';
23324
- import { S3PresignedUrl } from '@layerfi/components/types/general';
23669
+ import { S3PresignedUrl, type Direction } from '@layerfi/components/types/general';
23325
23670
  import type { TransactionTagEncoded } from '@layerfi/components/features/tags/tagSchemas';
23326
23671
  import { UpdateCategorizationRulesSuggestionSchema } from '@layerfi/components/schemas/bankTransactions/categorizationRules/categorizationRule';
23327
- export enum Direction {
23328
- CREDIT = "CREDIT",
23329
- DEBIT = "DEBIT"
23330
- }
23331
23672
  export enum BankTransactionMatchType {
23332
23673
  CONFIRM_MATCH = "Confirm_Match"
23333
23674
  }
@@ -23622,7 +23963,7 @@ declare module '@layerfi/components/types/categories' {
23622
23963
 
23623
23964
  }
23624
23965
  declare module '@layerfi/components/types/chart_of_accounts' {
23625
- import { Direction } from '@layerfi/components/types/bank_transactions';
23966
+ import { Direction } from '@layerfi/components/types/general';
23626
23967
  import { NestedLedgerAccountType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
23627
23968
  export type AugmentedLedgerAccountBalance = NestedLedgerAccountType & {
23628
23969
  isMatching?: true;
@@ -23682,6 +24023,7 @@ declare module '@layerfi/components/types/file_upload' {
23682
24023
 
23683
24024
  }
23684
24025
  declare module '@layerfi/components/types/general' {
24026
+ import type { EnumWithUnknownValues } from '@layerfi/components/types/utility/enumWithUnknownValues';
23685
24027
  export type SortDirection = 'asc' | 'desc';
23686
24028
  export type View = 'mobile' | 'tablet' | 'desktop';
23687
24029
  export interface BaseSelectOption {
@@ -23707,6 +24049,25 @@ declare module '@layerfi/components/types/general' {
23707
24049
  PROFIT_AND_LOSS = "PROFIT_AND_LOSS",
23708
24050
  STATEMENT_OF_CASH_FLOWS = "STATEMENT_OF_CASH_FLOWS"
23709
24051
  }
24052
+ export interface FormError {
24053
+ field: string;
24054
+ message: string;
24055
+ }
24056
+ export interface FormErrorWithId extends FormError {
24057
+ id: number;
24058
+ }
24059
+ export type DateRange<T = Date> = {
24060
+ startDate: T;
24061
+ endDate: T;
24062
+ };
24063
+ type StrictReportingBasis = 'CASH' | 'CASH_COLLECTED' | 'ACCRUAL';
24064
+ export type ReportingBasis = EnumWithUnknownValues<StrictReportingBasis>;
24065
+ export type MoneyFormat = 'CENTS' | 'DOLLAR_STRING';
24066
+ export enum Direction {
24067
+ CREDIT = "CREDIT",
24068
+ DEBIT = "DEBIT"
24069
+ }
24070
+ export {};
23710
24071
 
23711
24072
  }
23712
24073
  declare module '@layerfi/components/types/journal' {
@@ -23796,7 +24157,8 @@ declare module '@layerfi/components/types/layer_context' {
23796
24157
  import type { EventCallbacks } from '@layerfi/components/providers/LayerProvider/LayerProvider';
23797
24158
  import { LayerError } from '@layerfi/components/models/ErrorHandler';
23798
24159
  import { AccountingConfigurationSchemaType } from '@layerfi/components/schemas/accountingConfiguration';
23799
- import { Business, type DateRange } from '@layerfi/components/types';
24160
+ import { DateRange } from '@layerfi/components/types/general';
24161
+ import { Business } from '@layerfi/components/types/business';
23800
24162
  import { DataModel } from '@layerfi/components/types/general';
23801
24163
  export type LayerContextValues = {
23802
24164
  businessId: string;
@@ -23925,7 +24287,8 @@ declare module '@layerfi/components/types/layer_context' {
23925
24287
  }
23926
24288
  declare module '@layerfi/components/types/ledger_accounts' {
23927
24289
  import { LedgerEntrySourceType } from '@layerfi/components/schemas/generalLedger/ledgerEntrySource';
23928
- import { BankTransaction, Direction } from '@layerfi/components/types/bank_transactions';
24290
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
24291
+ import { Direction } from '@layerfi/components/types/general';
23929
24292
  export type LedgerAccountLineItems = LedgerAccountLineItem[];
23930
24293
  export interface LedgerAccountsEntry {
23931
24294
  business_id: string;
@@ -24210,7 +24573,7 @@ declare module '@layerfi/components/types/location' {
24210
24573
 
24211
24574
  }
24212
24575
  declare module '@layerfi/components/types/profit_and_loss' {
24213
- import type { ReportingBasis } from '@layerfi/components/types';
24576
+ import type { ReportingBasis } from '@layerfi/components/types/general';
24214
24577
  import { ReadonlyArrayWithAtLeastOne } from '@layerfi/components/utils/array/getArrayWithAtLeastOneOrFallback';
24215
24578
  import { LineItem } from '@layerfi/components/schemas/common/lineItem';
24216
24579
  import { TagViewConfig } from '@layerfi/components/types/tags';
@@ -24489,38 +24852,6 @@ declare module '@layerfi/components/types/vendors' {
24489
24852
  status: VendorStatus;
24490
24853
  };
24491
24854
 
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
24855
  }
24525
24856
  declare module '@layerfi/components/utils/array/getArrayWithAtLeastOneOrFallback' {
24526
24857
  export type ReadonlyArrayWithAtLeastOne<T> = readonly [T, ...T[]];
@@ -24547,7 +24878,8 @@ declare module '@layerfi/components/utils/asMutable' {
24547
24878
  }
24548
24879
  declare module '@layerfi/components/utils/bankTransactions' {
24549
24880
  import { CategoryOption } from '@layerfi/components/components/CategorySelect/CategorySelect';
24550
- import { BankTransaction, DateRange } from '@layerfi/components/types';
24881
+ import { DateRange } from '@layerfi/components/types/general';
24882
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
24551
24883
  export const hasMatch: (bankTransaction?: BankTransaction) => boolean;
24552
24884
  export const isCredit: ({ direction }: Pick<BankTransaction, "direction">) => boolean;
24553
24885
  export const isAlreadyMatched: (bankTransaction?: BankTransaction) => string | undefined;
@@ -24671,7 +25003,7 @@ declare module '@layerfi/components/utils/bookkeeping/tasks/getBookkeepingTaskSt
24671
25003
 
24672
25004
  }
24673
25005
  declare module '@layerfi/components/utils/business' {
24674
- import { Business } from '@layerfi/components/types';
25006
+ import { Business } from '@layerfi/components/types/business';
24675
25007
  export const getActivationDate: (business?: Business) => Date | undefined;
24676
25008
  export const getEarliestDateToBrowse: (business?: Business) => Date | undefined;
24677
25009
  export const isDateAllowedToBrowse: (date: Date, business?: Business) => boolean;
@@ -24757,7 +25089,7 @@ declare module '@layerfi/components/utils/helpers' {
24757
25089
 
24758
25090
  }
24759
25091
  declare module '@layerfi/components/utils/journal' {
24760
- import { LedgerAccountLineItem, LedgerAccountsEntry } from '@layerfi/components/types';
25092
+ import { LedgerAccountLineItem, LedgerAccountsEntry } from '@layerfi/components/types/ledger_accounts';
24761
25093
  import { AccountIdentifierPayloadObject } from '@layerfi/components/types/categories';
24762
25094
  import { JournalEntry, JournalEntryLineItem } from '@layerfi/components/types/journal';
24763
25095
  export const getAccountIdentifierPayload: (journalLineItem: JournalEntryLineItem) => AccountIdentifierPayloadObject;
@@ -24886,6 +25218,16 @@ declare module '@layerfi/components/utils/time/timeUtils' {
24886
25218
  export const toLocalDateString: (date: Date) => string;
24887
25219
  export function getDueDifference(dueDate: Date): number;
24888
25220
  export function isZonedDateTime(val: unknown): val is ZonedDateTime;
25221
+ export const convertDateToZonedDateTime: (date: Date | null) => ZonedDateTime | null;
25222
+
25223
+ }
25224
+ declare module '@layerfi/components/utils/time/timezoneUtils' {
25225
+ /**
25226
+ * Gets the timezone abbreviation for a given date based on the user's locale
25227
+ * @param date - The date to get the timezone for
25228
+ * @returns Timezone abbreviation (e.g., "PST", "EST", "GMT") or empty string if unable to determine
25229
+ */
25230
+ export const getTimezoneDisplay: (date: Date) => string;
24889
25231
 
24890
25232
  }
24891
25233
  declare module '@layerfi/components/utils/vendors' {
@@ -25100,7 +25442,7 @@ declare module '@layerfi/components/views/GeneralLedger/index' {
25100
25442
 
25101
25443
  }
25102
25444
  declare module '@layerfi/components/views/ProjectProfitability/ProjectProfitability' {
25103
- import { MoneyFormat } from '@layerfi/components/types';
25445
+ import { MoneyFormat } from '@layerfi/components/types/general';
25104
25446
  import type { DateRangePickerMode } from '@layerfi/components/providers/GlobalDateStore/GlobalDateStoreProvider';
25105
25447
  export type TagOption = {
25106
25448
  label: string;
@@ -25129,7 +25471,7 @@ declare module '@layerfi/components/views/Reports/Reports' {
25129
25471
  import { BalanceSheetStringOverrides } from '@layerfi/components/components/BalanceSheet/BalanceSheet';
25130
25472
  import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
25131
25473
  import { ProfitAndLossDownloadButtonStringOverrides } from '@layerfi/components/components/ProfitAndLossDownloadButton/types';
25132
- import { ProfitAndLossTableStringOverrides } from '@layerfi/components/components/ProfitAndLossTable/index';
25474
+ import { ProfitAndLossTableStringOverrides } from '@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTableComponent';
25133
25475
  import { StatementOfCashFlowStringOverrides } from '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow';
25134
25476
  import { View as ViewType } from '@layerfi/components/types/general';
25135
25477
  import type { TimeRangePickerConfig } from '@layerfi/components/views/Reports/reportTypes';
@@ -25176,7 +25518,7 @@ declare module '@layerfi/components/views/Reports/index' {
25176
25518
  declare module '@layerfi/components/views/Reports/reportTypes' {
25177
25519
  import type { CustomDateRange } from '@layerfi/components/components/DeprecatedDatePicker/DeprecatedDatePickerOptions';
25178
25520
  import type { DateRangePickerMode } from '@layerfi/components/providers/GlobalDateStore/GlobalDateStoreProvider';
25179
- import type { MoneyFormat } from '@layerfi/components/types';
25521
+ import type { MoneyFormat } from '@layerfi/components/types/general';
25180
25522
  export type TimeRangePickerConfig = {
25181
25523
  /**
25182
25524
  * @deprecated Use `defaultDatePickerMode` instead