@layerfi/components 0.1.108 → 0.1.109

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
@@ -257,55 +257,29 @@ declare module '@layerfi/components/api/layer/businessPersonnel/updateBusinessPe
257
257
  data: BusinessPersonnel;
258
258
  }>;
259
259
 
260
- }
261
- declare module '@layerfi/components/api/layer/categories' {
262
- import { Category } from '@layerfi/components/types';
263
- export type CategoriesListMode = 'ALL' | 'EXPENSES' | 'DEFAULT';
264
- export const getCategories: (baseUrl: string, accessToken: string | undefined, options?: {
265
- params?: {
266
- businessId: string;
267
- mode?: CategoriesListMode;
268
- } | undefined;
269
- } | undefined) => () => Promise<{
270
- data: {
271
- type: "Category_List";
272
- categories: Category[];
273
- };
274
- }>;
275
-
276
260
  }
277
261
  declare module '@layerfi/components/api/layer/chart_of_accounts' {
278
- import { Account, ChartOfAccounts, NewAccount, EditAccount, NewChildAccount, LedgerAccountsEntry } from '@layerfi/components/types';
279
- import { ChartWithBalances } from '@layerfi/components/types/chart_of_accounts';
262
+ import { SingleChartAccountEncodedType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
263
+ import { NewAccount, EditAccount, NewChildAccount, LedgerAccountsEntry } from '@layerfi/components/types';
280
264
  import { S3PresignedUrl } from '@layerfi/components/types/general';
281
265
  import { LedgerAccountLineItems } from '@layerfi/components/types/ledger_accounts';
282
- export const getChartOfAccounts: (baseUrl: string, accessToken: string | undefined, options?: {
283
- params?: Record<string, string | undefined> | undefined;
284
- } | undefined) => () => Promise<{
285
- data: ChartOfAccounts;
286
- }>;
287
- export const getLedgerAccountBalances: (baseUrl: string, accessToken: string | undefined, options?: {
288
- params?: Record<string, string | undefined> | undefined;
289
- } | undefined) => () => Promise<{
290
- data: ChartWithBalances;
291
- }>;
292
266
  export const createAccount: (baseUrl: string, accessToken: string | undefined, options?: {
293
267
  params?: Record<string, string | undefined> | undefined;
294
268
  body?: NewAccount | undefined;
295
269
  } | undefined) => Promise<{
296
- data: Account;
270
+ data: SingleChartAccountEncodedType;
297
271
  }>;
298
272
  export const updateAccount: (baseUrl: string, accessToken: string | undefined, options?: {
299
273
  params?: Record<string, string | undefined> | undefined;
300
274
  body?: EditAccount | undefined;
301
275
  } | undefined) => Promise<{
302
- data: Account;
276
+ data: SingleChartAccountEncodedType;
303
277
  }>;
304
278
  export const createChildAccount: (baseUrl: string, accessToken: string | undefined, options?: {
305
279
  params?: Record<string, string | undefined> | undefined;
306
280
  body?: NewChildAccount | undefined;
307
281
  } | undefined) => Promise<{
308
- data: Account;
282
+ data: SingleChartAccountEncodedType;
309
283
  }>;
310
284
  export const getLedgerAccountsLines: (baseUrl: string, accessToken: string | undefined, options?: {
311
285
  params?: Record<string, string | undefined> | undefined;
@@ -636,19 +610,19 @@ declare module '@layerfi/components/api/layer' {
636
610
  params?: Record<string, string | undefined> | undefined;
637
611
  body?: import("@layerfi/components/types").NewAccount | undefined;
638
612
  } | undefined) => Promise<{
639
- data: import("@layerfi/components/types").Account;
613
+ data: import("@layerfi/components/schemas/generalLedger/ledgerAccount").SingleChartAccountEncodedType;
640
614
  }>;
641
615
  updateAccount: (baseUrl: string, accessToken: string | undefined, options?: {
642
616
  params?: Record<string, string | undefined> | undefined;
643
617
  body?: import("@layerfi/components/types").EditAccount | undefined;
644
618
  } | undefined) => Promise<{
645
- data: import("@layerfi/components/types").Account;
619
+ data: import("@layerfi/components/schemas/generalLedger/ledgerAccount").SingleChartAccountEncodedType;
646
620
  }>;
647
621
  createChildAccount: (baseUrl: string, accessToken: string | undefined, options?: {
648
622
  params?: Record<string, string | undefined> | undefined;
649
623
  body?: import("@layerfi/components/types").NewChildAccount | undefined;
650
624
  } | undefined) => Promise<{
651
- data: import("@layerfi/components/types").Account;
625
+ data: import("@layerfi/components/schemas/generalLedger/ledgerAccount").SingleChartAccountEncodedType;
652
626
  }>;
653
627
  getBalanceSheet: (baseUrl: string, accessToken: string | undefined, options?: {
654
628
  params?: {
@@ -746,27 +720,6 @@ declare module '@layerfi/components/api/layer' {
746
720
  } | undefined) => Promise<{
747
721
  data: import("@layerfi/components/types/bills").BillPayment;
748
722
  }>;
749
- getCategories: (baseUrl: string, accessToken: string | undefined, options?: {
750
- params?: {
751
- businessId: string;
752
- mode?: import("@layerfi/components/api/layer/categories").CategoriesListMode;
753
- } | undefined;
754
- } | undefined) => () => Promise<{
755
- data: {
756
- type: "Category_List";
757
- categories: import("@layerfi/components/types").Category[];
758
- };
759
- }>;
760
- getChartOfAccounts: (baseUrl: string, accessToken: string | undefined, options?: {
761
- params?: Record<string, string | undefined> | undefined;
762
- } | undefined) => () => Promise<{
763
- data: import("@layerfi/components/types").ChartOfAccounts;
764
- }>;
765
- getLedgerAccountBalances: (baseUrl: string, accessToken: string | undefined, options?: {
766
- params?: Record<string, string | undefined> | undefined;
767
- } | undefined) => () => Promise<{
768
- data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances;
769
- }>;
770
723
  getLedgerAccountBalancesCSV: (baseUrl: string, accessToken: string | undefined, options?: {
771
724
  params?: Record<string, string | undefined> | undefined;
772
725
  } | undefined) => () => Promise<{
@@ -1889,14 +1842,6 @@ declare module '@layerfi/components/components/BookkeepingStatus/BookkeepingStat
1889
1842
  export const BookkeepingStatusDescription: ({ monthNumber, status, incompleteTasksCount }: BookkeepingStatusDescriptionProps) => import("react/jsx-runtime").JSX.Element | null;
1890
1843
  export {};
1891
1844
 
1892
- }
1893
- declare module '@layerfi/components/components/BookkeepingStatus/BookkeepingStatusPanelNotification' {
1894
- type BookkeepingStatusPanelNotificationProps = {
1895
- onClick?: () => void;
1896
- };
1897
- export const BookkeepingStatusPanelNotification: ({ onClick }: BookkeepingStatusPanelNotificationProps) => import("react/jsx-runtime").JSX.Element | null;
1898
- export {};
1899
-
1900
1845
  }
1901
1846
  declare module '@layerfi/components/components/BookkeepingStatus/utils' {
1902
1847
  import { ReactNode } from 'react';
@@ -2009,15 +1954,6 @@ declare module '@layerfi/components/components/Button/DownloadButton' {
2009
1954
  export const DownloadButton: ({ iconOnly, onClick, isDownloading, requestFailed, tooltip, text, retryText, errorText, variant, }: DownloadButtonProps) => import("react/jsx-runtime").JSX.Element;
2010
1955
  export {};
2011
1956
 
2012
- }
2013
- declare module '@layerfi/components/components/Button/ExpandButton' {
2014
- import { ButtonHTMLAttributes } from 'react';
2015
- type ExpandButtonProps = {
2016
- collapsed?: boolean;
2017
- } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'>;
2018
- export const ExpandButton: ({ className, collapsed, ...props }: ExpandButtonProps) => import("react/jsx-runtime").JSX.Element;
2019
- export {};
2020
-
2021
1957
  }
2022
1958
  declare module '@layerfi/components/components/Button/ExpandCollapseButton' {
2023
1959
  import { ButtonVariant } from '@layerfi/components/components/Button/Button';
@@ -2125,7 +2061,6 @@ declare module '@layerfi/components/components/Button/index' {
2125
2061
  export { TextButton } from '@layerfi/components/components/Button/TextButton';
2126
2062
  export { BackButton } from '@layerfi/components/components/Button/BackButton';
2127
2063
  export { CloseButton } from '@layerfi/components/components/Button/CloseButton';
2128
- export { ExpandButton } from '@layerfi/components/components/Button/ExpandButton';
2129
2064
  export { SwitchButton } from '@layerfi/components/components/Button/SwitchButton';
2130
2065
  export { Link } from '@layerfi/components/components/Button/Link';
2131
2066
  export { DownloadButton } from '@layerfi/components/components/Button/DownloadButton';
@@ -2163,7 +2098,8 @@ declare module '@layerfi/components/components/CategorySelect/CategorySelect' {
2163
2098
  export enum OptionActionType {
2164
2099
  CATEGORY = "category",
2165
2100
  MATCH = "match",
2166
- HIDDEN = "hidden"
2101
+ HIDDEN = "hidden",
2102
+ SUGGESTIONS_LOADING = "suggestions loading"
2167
2103
  }
2168
2104
  export interface CategoryOptionPayload {
2169
2105
  id: string;
@@ -2281,6 +2217,7 @@ declare module '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccoun
2281
2217
  saveButton?: string;
2282
2218
  parentLabel?: string;
2283
2219
  nameLabel?: string;
2220
+ accountNumberLabel?: string;
2284
2221
  typeLabel?: string;
2285
2222
  subTypeLabel?: string;
2286
2223
  normalityLabel?: string;
@@ -2310,9 +2247,9 @@ declare module '@layerfi/components/components/ChartOfAccountsForm/index' {
2310
2247
 
2311
2248
  }
2312
2249
  declare module '@layerfi/components/components/ChartOfAccountsForm/useParentOptions' {
2313
- import { ChartWithBalances } from '@layerfi/components/types/chart_of_accounts';
2314
2250
  import { BaseSelectOption } from '@layerfi/components/types/general';
2315
- export const useParentOptions: (data?: ChartWithBalances) => BaseSelectOption[];
2251
+ import { LedgerBalancesSchemaType } from '@layerfi/src/schemas/generalLedger/ledgerAccount/index';
2252
+ export const useParentOptions: (data?: LedgerBalancesSchemaType) => BaseSelectOption[];
2316
2253
 
2317
2254
  }
2318
2255
  declare module '@layerfi/components/components/ChartOfAccountsSidebar/ChartOfAccountsSidebar' {
@@ -2329,24 +2266,22 @@ declare module '@layerfi/components/components/ChartOfAccountsSidebar/index' {
2329
2266
 
2330
2267
  }
2331
2268
  declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTable' {
2332
- import { ChartWithBalances } from '@layerfi/components/types/chart_of_accounts';
2333
2269
  import { View } from '@layerfi/components/types/general';
2334
2270
  import { ChartOfAccountsTableStringOverrides, ExpandActionState } from '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTableWithPanel';
2335
- export const ChartOfAccountsTable: ({ view, stringOverrides, data, searchQuery, error, expandAll, templateAccountsEditable, }: {
2271
+ import { LedgerBalancesSchemaType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
2272
+ export const ChartOfAccountsTable: ({ view, stringOverrides, data, searchQuery, expandAll, templateAccountsEditable, }: {
2336
2273
  view: View;
2337
- data: ChartWithBalances;
2274
+ data: LedgerBalancesSchemaType;
2338
2275
  searchQuery: string;
2339
2276
  stringOverrides?: ChartOfAccountsTableStringOverrides;
2340
- error?: unknown;
2341
2277
  expandAll?: ExpandActionState;
2342
2278
  templateAccountsEditable?: boolean;
2343
2279
  }) => import("react/jsx-runtime").JSX.Element;
2344
- export const ChartOfAccountsTableContent: ({ stringOverrides, data, searchQuery, error, expandAll, templateAccountsEditable, }: {
2280
+ export const ChartOfAccountsTableContent: ({ stringOverrides, data, searchQuery, expandAll, templateAccountsEditable, }: {
2345
2281
  view: View;
2346
- data: ChartWithBalances;
2282
+ data: LedgerBalancesSchemaType;
2347
2283
  searchQuery: string;
2348
2284
  stringOverrides?: ChartOfAccountsTableStringOverrides;
2349
- error?: unknown;
2350
2285
  expandAll?: ExpandActionState;
2351
2286
  templateAccountsEditable: boolean;
2352
2287
  }) => import("react/jsx-runtime").JSX.Element;
@@ -2362,6 +2297,7 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccou
2362
2297
  addAccountButtonText?: string;
2363
2298
  csvDownloadButtonText?: string;
2364
2299
  nameColumnHeader?: string;
2300
+ numberColumnHeader?: string;
2365
2301
  typeColumnHeader?: string;
2366
2302
  balanceColumnHeader?: string;
2367
2303
  subtypeColumnHeader?: string;
@@ -2442,9 +2378,10 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/utils/types'
2442
2378
 
2443
2379
  }
2444
2380
  declare module '@layerfi/components/components/ChartOfAccountsTable/utils/utils' {
2445
- import type { AugmentedLedgerAccountBalance, LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
2446
- export const sortAccountsRecursive: (accounts: LedgerAccountBalance[]) => LedgerAccountBalance[];
2447
- export const filterAccounts: (accounts: LedgerAccountBalance[], query: string) => AugmentedLedgerAccountBalance[];
2381
+ import type { AugmentedLedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
2382
+ import { NestedLedgerAccountType } from '@layerfi/src/schemas/generalLedger/ledgerAccount/index';
2383
+ export const sortAccountsRecursive: (accounts: NestedLedgerAccountType[]) => NestedLedgerAccountType[];
2384
+ export const filterAccounts: (accounts: NestedLedgerAccountType[], query: string) => AugmentedLedgerAccountBalance[];
2448
2385
  export const getMatchedTextIndices: ({ text, query, isMatching, }: {
2449
2386
  text: string;
2450
2387
  query: string;
@@ -3104,19 +3041,6 @@ declare module '@layerfi/components/components/Input/InputGroup' {
3104
3041
  }
3105
3042
  export const InputGroup: ({ label, name, className, inline, children, }: InputGroupProps) => import("react/jsx-runtime").JSX.Element;
3106
3043
 
3107
- }
3108
- declare module '@layerfi/components/components/Input/InputWithBadge' {
3109
- import { HTMLProps } from 'react';
3110
- import { BadgeVariant } from '@layerfi/components/components/Badge/index';
3111
- export interface InputWithBadgeProps extends HTMLProps<HTMLInputElement> {
3112
- isInvalid?: boolean;
3113
- errorMessage?: string;
3114
- leftText?: string;
3115
- variant?: BadgeVariant;
3116
- badge: React.ReactNode;
3117
- }
3118
- export const InputWithBadge: ({ className, isInvalid, errorMessage, leftText, badge, variant, ...props }: InputWithBadgeProps) => import("react/jsx-runtime").JSX.Element;
3119
-
3120
3044
  }
3121
3045
  declare module '@layerfi/components/components/Input/MultiSelect' {
3122
3046
  import { GroupBase, MultiValue, OptionsOrGroups, StylesConfig } from 'react-select';
@@ -3197,7 +3121,6 @@ declare module '@layerfi/components/components/Input/index' {
3197
3121
  export { InputGroup } from '@layerfi/components/components/Input/InputGroup';
3198
3122
  export { FileInput } from '@layerfi/components/components/Input/FileInput';
3199
3123
  export { Select } from '@layerfi/components/components/Input/Select';
3200
- export { InputWithBadge } from '@layerfi/components/components/Input/InputWithBadge';
3201
3124
  export { MultiSelect } from '@layerfi/components/components/Input/MultiSelect';
3202
3125
 
3203
3126
  }
@@ -3263,10 +3186,18 @@ declare module '@layerfi/components/components/Invoices/InvoiceDetail/InvoiceDet
3263
3186
 
3264
3187
  }
3265
3188
  declare module '@layerfi/components/components/Invoices/InvoiceForm/InvoiceForm' {
3266
- import React from 'react';
3267
- import type { Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
3189
+ import React, { type PropsWithChildren } from 'react';
3190
+ import type { Invoice, InvoiceForm as InvoiceFormType } from '@layerfi/components/features/invoices/invoiceSchemas';
3268
3191
  import { UpsertInvoiceMode } from '@layerfi/components/features/invoices/api/useUpsertInvoice';
3269
3192
  import { type InvoiceFormState } from '@layerfi/components/components/Invoices/InvoiceForm/formUtils';
3193
+ import type { AppForm } from '@layerfi/components/features/forms/hooks/useForm';
3194
+ type InvoiceFormLineItemRowProps = PropsWithChildren<{
3195
+ form: AppForm<InvoiceFormType>;
3196
+ index: number;
3197
+ isReadOnly: boolean;
3198
+ onDeleteLine: () => void;
3199
+ }>;
3200
+ export const InvoiceFormLineItemRow: ({ form, index, isReadOnly, onDeleteLine }: InvoiceFormLineItemRowProps) => import("react/jsx-runtime").JSX.Element;
3270
3201
  export type InvoiceFormMode = {
3271
3202
  mode: UpsertInvoiceMode.Update;
3272
3203
  invoice: Invoice;
@@ -3279,16 +3210,21 @@ declare module '@layerfi/components/components/Invoices/InvoiceForm/InvoiceForm'
3279
3210
  onChangeFormState?: (formState: InvoiceFormState) => void;
3280
3211
  };
3281
3212
  export const InvoiceForm: React.ForwardRefExoticComponent<InvoiceFormProps & React.RefAttributes<unknown>>;
3213
+ export {};
3282
3214
 
3283
3215
  }
3284
3216
  declare module '@layerfi/components/components/Invoices/InvoiceForm/formUtils' {
3285
3217
  import { type Invoice, type InvoiceForm, type InvoiceFormLineItem } from '@layerfi/components/features/invoices/invoiceSchemas';
3218
+ import { type Tag } from '@layerfi/components/features/tags/tagSchemas';
3219
+ export const INVOICE_MECE_TAG_DIMENSION = "Job";
3286
3220
  export type InvoiceFormState = {
3287
3221
  isDirty: boolean;
3288
3222
  isSubmitting: boolean;
3289
3223
  };
3290
3224
  export const EMPTY_LINE_ITEM: InvoiceFormLineItem;
3291
3225
  export const getInvoiceFormDefaultValues: () => InvoiceForm;
3226
+ export const getAdditionalTags: (tags: readonly Tag[]) => Tag[];
3227
+ export const getSelectedTag: (tags: readonly Tag[]) => Tag | null;
3292
3228
  export const getInvoiceFormInitialValues: (invoice: Invoice) => InvoiceForm;
3293
3229
  export const validateInvoiceForm: ({ value: invoice }: {
3294
3230
  value: InvoiceForm;
@@ -3394,7 +3330,8 @@ declare module '@layerfi/components/components/Invoices/InvoiceOverview/InvoiceO
3394
3330
 
3395
3331
  }
3396
3332
  declare module '@layerfi/components/components/Invoices/InvoicePaymentForm/InvoicePaymentForm' {
3397
- import type { Invoice, InvoicePayment } from '@layerfi/components/features/invoices/invoiceSchemas';
3333
+ import type { Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
3334
+ import type { InvoicePayment } from '@layerfi/components/features/invoices/invoicePaymentSchemas';
3398
3335
  import type { UpsertDedicatedInvoicePaymentMode } from '@layerfi/components/features/invoices/api/useUpsertDedicatedInvoicePayment';
3399
3336
  export type InvoicePaymentFormMode = {
3400
3337
  mode: UpsertDedicatedInvoicePaymentMode.Update;
@@ -3412,7 +3349,8 @@ declare module '@layerfi/components/components/Invoices/InvoicePaymentForm/Invoi
3412
3349
 
3413
3350
  }
3414
3351
  declare module '@layerfi/components/components/Invoices/InvoicePaymentForm/formUtils' {
3415
- import { type DedicatedInvoicePaymentForm, type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
3352
+ import { type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
3353
+ import { type DedicatedInvoicePaymentForm } from '@layerfi/components/features/invoices/invoicePaymentSchemas';
3416
3354
  export const getInvoicePaymentFormDefaultValues: (invoice: Invoice) => DedicatedInvoicePaymentForm;
3417
3355
  export const validateInvoicePaymentForm: ({ invoicePayment, invoice }: {
3418
3356
  invoicePayment: DedicatedInvoicePaymentForm;
@@ -3434,7 +3372,8 @@ declare module '@layerfi/components/components/Invoices/InvoicePaymentForm/formU
3434
3372
 
3435
3373
  }
3436
3374
  declare module '@layerfi/components/components/Invoices/InvoicePaymentForm/useInvoicePaymentForm' {
3437
- import { type InvoicePayment, type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
3375
+ import { type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
3376
+ import { type InvoicePayment } from '@layerfi/components/features/invoices/invoicePaymentSchemas';
3438
3377
  type onSuccessFn = (invoicePayment: InvoicePayment) => void;
3439
3378
  type UseInvoicePaymentFormProps = {
3440
3379
  onSuccess: onSuccessFn;
@@ -3688,7 +3627,7 @@ declare module '@layerfi/components/components/Invoices/Invoices' {
3688
3627
  showTitle?: boolean;
3689
3628
  stringOverrides?: InvoicesStringOverrides;
3690
3629
  }
3691
- export const unstable_Invoices: ({ showTitle, stringOverrides }: InvoicesProps) => import("react/jsx-runtime").JSX.Element;
3630
+ export const Invoices: ({ showTitle, stringOverrides }: InvoicesProps) => import("react/jsx-runtime").JSX.Element;
3692
3631
  export {};
3693
3632
 
3694
3633
  }
@@ -3815,13 +3754,14 @@ declare module '@layerfi/components/components/JournalForm/JournalForm' {
3815
3754
 
3816
3755
  }
3817
3756
  declare module '@layerfi/components/components/JournalForm/JournalFormEntryLines' {
3818
- import { Direction, JournalEntryLineItem } from '@layerfi/components/types';
3819
- import { LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
3757
+ import { LedgerAccountBalance } from '@layerfi/components/types/journal';
3820
3758
  import { BaseSelectOption } from '@layerfi/components/types/general';
3821
3759
  import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
3760
+ import { JournalEntryLineItem } from '@layerfi/components/types/journal';
3761
+ import { LedgerEntryDirection } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
3822
3762
  export const JournalFormEntryLines: ({ entrylineItems, addEntryLine, removeEntryLine, changeFormData, sendingForm, config, }: {
3823
3763
  entrylineItems: JournalEntryLineItem[];
3824
- addEntryLine: (direction: Direction) => void;
3764
+ addEntryLine: (direction: LedgerEntryDirection) => void;
3825
3765
  removeEntryLine: (index: number) => void;
3826
3766
  changeFormData: (name: string, value: string | BaseSelectOption | number | undefined, lineItemIndex: number, accounts?: LedgerAccountBalance[]) => void;
3827
3767
  sendingForm: boolean;
@@ -3870,6 +3810,7 @@ declare module '@layerfi/components/components/JournalTable/JournalTableWithPane
3870
3810
  idColumnHeader?: string;
3871
3811
  dateColumnHeader?: string;
3872
3812
  transactionColumnHeader?: string;
3813
+ accountNumberColumnHeader?: string;
3873
3814
  accountColumnHeader?: string;
3874
3815
  debitColumnHeader?: string;
3875
3816
  creditColumnHeader?: string;
@@ -3930,6 +3871,21 @@ declare module '@layerfi/components/components/LedgerAccount/LedgerAccountRow' {
3930
3871
  declare module '@layerfi/components/components/LedgerAccount/index' {
3931
3872
  export { LedgerAccount } from '@layerfi/components/components/LedgerAccount/LedgerAccountIndex';
3932
3873
 
3874
+ }
3875
+ declare module '@layerfi/components/components/LedgerAccountCombobox/LedgerAccountCombobox' {
3876
+ import { type CategoriesListMode } from '@layerfi/components/types/categories';
3877
+ import { type AccountIdentifier } from '@layerfi/components/schemas/accountIdentifier';
3878
+ type LedgerAccountComboboxProps = {
3879
+ label: string;
3880
+ value: AccountIdentifier | null;
3881
+ onValueChange: (value: AccountIdentifier | null) => void;
3882
+ mode?: CategoriesListMode;
3883
+ isReadOnly?: boolean;
3884
+ showLabel?: boolean;
3885
+ };
3886
+ export const LedgerAccountCombobox: ({ label, value, mode, onValueChange, isReadOnly, showLabel }: LedgerAccountComboboxProps) => import("react/jsx-runtime").JSX.Element;
3887
+ export {};
3888
+
3933
3889
  }
3934
3890
  declare module '@layerfi/components/components/LedgerAccountEntryDetails/LedgerAccountEntryDetails' {
3935
3891
  import { LedgerEntrySourceType } from '@layerfi/components/schemas/generalLedger/ledgerEntrySource';
@@ -4341,20 +4297,6 @@ declare module '@layerfi/components/components/PaymentMethod/schemas' {
4341
4297
  export const PaymentMethodSchema: Schema.Enums<typeof PaymentMethod>;
4342
4298
  export const TransformedPaymentMethodSchema: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<PaymentMethod, PaymentMethod, never>>;
4343
4299
 
4344
- }
4345
- declare module '@layerfi/components/components/PeriodPicker/PeriodPicker' {
4346
- export type PeriodPickerOption = 'month' | 'quarter' | 'year' | '2_months' | '3_months' | '6_months' | '12_months' | '2_quarters' | '3_quarters' | '4_quarters' | '8_quarters' | '2_years' | '3_years';
4347
- interface PeriodPickerProps {
4348
- onSelect: (option: {
4349
- key: PeriodPickerOption;
4350
- start_date: string;
4351
- end_date: string;
4352
- }) => void;
4353
- defaultValue?: PeriodPickerOption;
4354
- }
4355
- export const PeriodPicker: ({ onSelect, defaultValue }: PeriodPickerProps) => import("react/jsx-runtime").JSX.Element;
4356
- export {};
4357
-
4358
4300
  }
4359
4301
  declare module '@layerfi/components/components/PlatformOnboarding/Container/LinkAccountsListContainer' {
4360
4302
  import type { PropsWithChildren } from 'react';
@@ -4443,16 +4385,16 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
4443
4385
  readonly endDate: Date;
4444
4386
  readonly income: {
4445
4387
  readonly value: number;
4446
- readonly name: string;
4447
4388
  readonly displayName: string;
4389
+ readonly name: string;
4448
4390
  readonly isContra: boolean;
4449
4391
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
4450
4392
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
4451
4393
  };
4452
4394
  readonly costOfGoodsSold: {
4453
4395
  readonly value: number;
4454
- readonly name: string;
4455
4396
  readonly displayName: string;
4397
+ readonly name: string;
4456
4398
  readonly isContra: boolean;
4457
4399
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
4458
4400
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -4461,8 +4403,8 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
4461
4403
  readonly profitBeforeTaxes: number;
4462
4404
  readonly taxes: {
4463
4405
  readonly value: number;
4464
- readonly name: string;
4465
4406
  readonly displayName: string;
4407
+ readonly name: string;
4466
4408
  readonly isContra: boolean;
4467
4409
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
4468
4410
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -4471,16 +4413,16 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
4471
4413
  readonly fullyCategorized: boolean;
4472
4414
  readonly uncategorizedInflows?: {
4473
4415
  readonly value: number;
4474
- readonly name: string;
4475
4416
  readonly displayName: string;
4417
+ readonly name: string;
4476
4418
  readonly isContra: boolean;
4477
4419
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
4478
4420
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
4479
4421
  } | undefined;
4480
4422
  readonly uncategorizedOutflows?: {
4481
4423
  readonly value: number;
4482
- readonly name: string;
4483
4424
  readonly displayName: string;
4425
+ readonly name: string;
4484
4426
  readonly isContra: boolean;
4485
4427
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
4486
4428
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -4490,32 +4432,32 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
4490
4432
  readonly netProfitPercentDelta: import("effect/BigDecimal").BigDecimal | undefined;
4491
4433
  readonly expenses: {
4492
4434
  readonly value: number;
4493
- readonly name: string;
4494
4435
  readonly displayName: string;
4436
+ readonly name: string;
4495
4437
  readonly isContra: boolean;
4496
4438
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
4497
4439
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
4498
4440
  };
4499
4441
  readonly customLineItems: {
4500
4442
  readonly value: number;
4501
- readonly name: string;
4502
4443
  readonly displayName: string;
4444
+ readonly name: string;
4503
4445
  readonly isContra: boolean;
4504
4446
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
4505
4447
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
4506
4448
  } | null;
4507
4449
  readonly otherOutflows: {
4508
4450
  readonly value: number;
4509
- readonly name: string;
4510
4451
  readonly displayName: string;
4452
+ readonly name: string;
4511
4453
  readonly isContra: boolean;
4512
4454
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
4513
4455
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
4514
4456
  } | null;
4515
4457
  readonly personalExpenses: {
4516
4458
  readonly value: number;
4517
- readonly name: string;
4518
4459
  readonly displayName: string;
4460
+ readonly name: string;
4519
4461
  readonly isContra: boolean;
4520
4462
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
4521
4463
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -4965,10 +4907,6 @@ declare module '@layerfi/components/components/ProgressSteps/ProgressSteps' {
4965
4907
  };
4966
4908
  export const ProgressSteps: ({ steps, currentStep }: ProgressStepsProps) => import("react/jsx-runtime").JSX.Element;
4967
4909
 
4968
- }
4969
- declare module '@layerfi/components/components/ProjectProfitability/ProjectSelector' {
4970
- export function ProjectSelector(): import("react/jsx-runtime").JSX.Element;
4971
-
4972
4910
  }
4973
4911
  declare module '@layerfi/components/components/SearchField/SearchField' {
4974
4912
  export type SearchFieldProps = {
@@ -4979,9 +4917,6 @@ declare module '@layerfi/components/components/SearchField/SearchField' {
4979
4917
  };
4980
4918
  export function SearchField({ slot, label, ...restProps }: SearchFieldProps): import("react/jsx-runtime").JSX.Element;
4981
4919
 
4982
- }
4983
- declare module '@layerfi/components/components/SelectVendor/SelectVendor' {
4984
-
4985
4920
  }
4986
4921
  declare module '@layerfi/components/components/Separator/Separator' {
4987
4922
  import { Spacing } from '@layerfi/components/components/ui/sharedUITypes';
@@ -4992,17 +4927,6 @@ declare module '@layerfi/components/components/Separator/Separator' {
4992
4927
  export const Separator: ({ mbs, mbe }: SeparatorProps) => import("react/jsx-runtime").JSX.Element;
4993
4928
  export {};
4994
4929
 
4995
- }
4996
- declare module '@layerfi/components/components/SkeletonBalanceSheetRow/SkeletonBalanceSheetRow' {
4997
- import { PropsWithChildren } from 'react';
4998
- type Props = PropsWithChildren;
4999
- export const SkeletonBalanceSheetRow: ({ children }: Props) => import("react/jsx-runtime").JSX.Element;
5000
- export {};
5001
-
5002
- }
5003
- declare module '@layerfi/components/components/SkeletonBalanceSheetRow/index' {
5004
- export { SkeletonBalanceSheetRow } from '@layerfi/components/components/SkeletonBalanceSheetRow/SkeletonBalanceSheetRow';
5005
-
5006
4930
  }
5007
4931
  declare module '@layerfi/components/components/SkeletonLoader/SkeletonLoader' {
5008
4932
  import type { PropsWithChildren } from 'react';
@@ -6649,13 +6573,30 @@ declare module '@layerfi/components/contexts/ChartOfAccountsContext/ChartOfAccou
6649
6573
  import { useChartOfAccounts } from '@layerfi/components/hooks/useChartOfAccounts/index';
6650
6574
  export type ChartOfAccountsContextType = ReturnType<typeof useChartOfAccounts>;
6651
6575
  export const ChartOfAccountsContext: import("react").Context<{
6652
- data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances | undefined;
6576
+ data: {
6577
+ readonly accounts: readonly {
6578
+ readonly name: string;
6579
+ readonly stableName: string | null;
6580
+ readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
6581
+ readonly accountType: {
6582
+ readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
6583
+ readonly displayName: string;
6584
+ };
6585
+ readonly accountSubtype: {
6586
+ readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountSubtype;
6587
+ readonly displayName: string;
6588
+ };
6589
+ readonly accountId: string;
6590
+ readonly accountNumber: string | null;
6591
+ readonly balance: number;
6592
+ readonly isDeletable: boolean | null;
6593
+ readonly subAccounts: readonly import("@layerfi/components/schemas/generalLedger/ledgerAccount").NestedLedgerAccount[];
6594
+ }[];
6595
+ } | undefined;
6653
6596
  isLoading: boolean;
6654
6597
  isValidating: boolean;
6655
- error: any;
6656
- refetch: () => Promise<{
6657
- data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances;
6658
- } | undefined>;
6598
+ isError: boolean;
6599
+ refetch: () => Promise<void>;
6659
6600
  create: (newAccount: import("@layerfi/components/types").NewAccount) => Promise<void>;
6660
6601
  form: import("@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts").ChartOfAccountsForm | undefined;
6661
6602
  sendingForm: boolean;
@@ -6746,7 +6687,7 @@ declare module '@layerfi/components/contexts/JournalContext/JournalContext' {
6746
6687
  setSelectedEntryId: (id?: string) => void;
6747
6688
  closeSelectedEntry: () => void;
6748
6689
  create: (newJournalEntry: import("@layerfi/components/types/journal").NewApiJournalEntry) => void;
6749
- changeFormData: (name: string, value: string | import("@layerfi/components/types/general").BaseSelectOption | undefined | number, lineItemIndex?: number, accounts?: import("../../types/chart_of_accounts").LedgerAccountBalance[]) => void;
6690
+ changeFormData: (name: string, value: string | import("@layerfi/components/types/general").BaseSelectOption | undefined | number, lineItemIndex?: number, accounts?: import("../../types/journal").LedgerAccountBalance[]) => void;
6750
6691
  submitForm: () => void;
6751
6692
  cancelForm: () => void;
6752
6693
  addEntry: () => void;
@@ -6754,7 +6695,7 @@ declare module '@layerfi/components/contexts/JournalContext/JournalContext' {
6754
6695
  form?: import("@layerfi/components/hooks/useJournal/useJournal").JournalFormTypes;
6755
6696
  apiError?: string;
6756
6697
  setForm: (form?: import("@layerfi/components/hooks/useJournal/useJournal").JournalFormTypes) => void;
6757
- addEntryLine: (direction: import("@layerfi/components/index").Direction) => void;
6698
+ addEntryLine: (direction: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection) => void;
6758
6699
  removeEntryLine: (index: number) => void;
6759
6700
  reverseEntry: (entryId: string) => ReturnType<(baseUrl: string, accessToken: string | undefined, options?: {
6760
6701
  params?: Record<string, string | undefined> | undefined;
@@ -7313,6 +7254,7 @@ declare module '@layerfi/components/features/forms/hooks/useForm' {
7313
7254
  readonly FormTextAreaField: typeof FormTextAreaField;
7314
7255
  readonly FormTextField: typeof FormTextField;
7315
7256
  }, {}>;
7257
+ export type AppForm<T extends Record<string, unknown>> = ReturnType<typeof useAppForm<T>>;
7316
7258
  export function useForm<T extends Record<string, unknown>>(props: FormOptions<T, FormValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormAsyncValidateOrFn<T>, unknown>): import("@tanstack/react-form").ReactFormExtendedApi<T, FormValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormAsyncValidateOrFn<T>, unknown>;
7317
7259
 
7318
7260
  }
@@ -7409,26 +7351,60 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7409
7351
  readonly memo: string | null;
7410
7352
  readonly description: string | null;
7411
7353
  readonly invoiceId: string;
7412
- readonly product: string | null;
7413
7354
  readonly subtotal: number;
7414
7355
  readonly quantity: import("effect/BigDecimal").BigDecimal;
7415
7356
  readonly unitPrice: number;
7416
7357
  readonly discountAmount: number;
7417
7358
  readonly salesTaxTotal: number;
7418
7359
  readonly totalAmount: number;
7360
+ readonly transactionTags: readonly {
7361
+ readonly value: string;
7362
+ readonly id: string;
7363
+ readonly _local?: {
7364
+ readonly isOptimistic: boolean;
7365
+ } | undefined;
7366
+ readonly key: string;
7367
+ readonly createdAt: Date;
7368
+ readonly updatedAt: Date;
7369
+ readonly deletedAt?: Date | undefined;
7370
+ }[];
7371
+ readonly accountIdentifier: {
7372
+ readonly type: "StableName";
7373
+ readonly stableName: string;
7374
+ } | {
7375
+ readonly id: string;
7376
+ readonly type: "AccountId";
7377
+ } | null;
7419
7378
  }[], "line_items", ":", readonly {
7420
7379
  readonly id: string;
7421
7380
  readonly external_id: string | null;
7422
7381
  readonly memo: string | null;
7423
7382
  readonly description: string | null;
7424
7383
  readonly invoice_id: string;
7425
- readonly product: string | null;
7426
7384
  readonly subtotal: number;
7427
7385
  readonly quantity: string;
7428
7386
  readonly unit_price: number;
7429
7387
  readonly discount_amount: number;
7430
7388
  readonly sales_taxes_total: number;
7431
7389
  readonly total_amount: number;
7390
+ readonly transaction_tags: readonly {
7391
+ readonly value: string;
7392
+ readonly id: string;
7393
+ readonly key: string;
7394
+ readonly created_at: string;
7395
+ readonly updated_at: string;
7396
+ readonly _local?: {
7397
+ readonly isOptimistic: boolean;
7398
+ } | undefined;
7399
+ readonly deleted_at?: string | undefined;
7400
+ }[];
7401
+ readonly account_identifier: {
7402
+ readonly type: "StableName";
7403
+ readonly stable_name: string;
7404
+ } | {
7405
+ readonly id: string;
7406
+ readonly type: "AccountId";
7407
+ } | null;
7432
7408
  }[], false, never>;
7433
7409
  subtotal: typeof Schema.Number;
7434
7410
  additionalDiscount: Schema.PropertySignature<":", number, "additional_discount", ":", number, false, never>;
@@ -7457,6 +7433,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7457
7433
  readonly externalId: string | null;
7458
7434
  readonly status: InvoiceStatus;
7459
7435
  readonly memo: string | null;
7436
+ readonly updatedAt: Date | null;
7460
7437
  readonly customer: {
7461
7438
  readonly id: string;
7462
7439
  readonly externalId: string | null;
@@ -7481,15 +7458,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7481
7458
  readonly memo: string | null;
7482
7459
  readonly description: string | null;
7483
7460
  readonly invoiceId: string;
7484
- readonly product: string | null;
7485
7461
  readonly subtotal: number;
7486
7462
  readonly quantity: import("effect/BigDecimal").BigDecimal;
7487
7463
  readonly unitPrice: number;
7488
7464
  readonly discountAmount: number;
7489
7465
  readonly salesTaxTotal: number;
7490
7466
  readonly totalAmount: number;
7467
+ readonly transactionTags: readonly {
7468
+ readonly value: string;
7469
+ readonly id: string;
7470
+ readonly _local?: {
7471
+ readonly isOptimistic: boolean;
7472
+ } | undefined;
7473
+ readonly key: string;
7474
+ readonly createdAt: Date;
7475
+ readonly updatedAt: Date;
7476
+ readonly deletedAt?: Date | undefined;
7477
+ }[];
7478
+ readonly accountIdentifier: {
7479
+ readonly type: "StableName";
7480
+ readonly stableName: string;
7481
+ } | {
7482
+ readonly id: string;
7483
+ readonly type: "AccountId";
7484
+ } | null;
7491
7485
  }[];
7492
- readonly updatedAt: Date | null;
7493
7486
  readonly subtotal: number;
7494
7487
  readonly paidAt: Date | null;
7495
7488
  readonly totalAmount: number;
@@ -7516,6 +7509,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7516
7509
  readonly externalId: string | null;
7517
7510
  readonly status: InvoiceStatus;
7518
7511
  readonly memo: string | null;
7512
+ readonly updatedAt: Date | null;
7519
7513
  readonly customer: {
7520
7514
  readonly id: string;
7521
7515
  readonly externalId: string | null;
@@ -7540,15 +7534,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7540
7534
  readonly memo: string | null;
7541
7535
  readonly description: string | null;
7542
7536
  readonly invoiceId: string;
7543
- readonly product: string | null;
7544
7537
  readonly subtotal: number;
7545
7538
  readonly quantity: import("effect/BigDecimal").BigDecimal;
7546
7539
  readonly unitPrice: number;
7547
7540
  readonly discountAmount: number;
7548
7541
  readonly salesTaxTotal: number;
7549
7542
  readonly totalAmount: number;
7543
+ readonly transactionTags: readonly {
7544
+ readonly value: string;
7545
+ readonly id: string;
7546
+ readonly _local?: {
7547
+ readonly isOptimistic: boolean;
7548
+ } | undefined;
7549
+ readonly key: string;
7550
+ readonly createdAt: Date;
7551
+ readonly updatedAt: Date;
7552
+ readonly deletedAt?: Date | undefined;
7553
+ }[];
7554
+ readonly accountIdentifier: {
7555
+ readonly type: "StableName";
7556
+ readonly stableName: string;
7557
+ } | {
7558
+ readonly id: string;
7559
+ readonly type: "AccountId";
7560
+ } | null;
7550
7561
  }[];
7551
- readonly updatedAt: Date | null;
7552
7562
  readonly subtotal: number;
7553
7563
  readonly paidAt: Date | null;
7554
7564
  readonly totalAmount: number;
@@ -7577,6 +7587,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7577
7587
  readonly externalId: string | null;
7578
7588
  readonly status: InvoiceStatus;
7579
7589
  readonly memo: string | null;
7590
+ readonly updatedAt: Date | null;
7580
7591
  readonly customer: {
7581
7592
  readonly id: string;
7582
7593
  readonly externalId: string | null;
@@ -7601,15 +7612,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7601
7612
  readonly memo: string | null;
7602
7613
  readonly description: string | null;
7603
7614
  readonly invoiceId: string;
7604
- readonly product: string | null;
7605
7615
  readonly subtotal: number;
7606
7616
  readonly quantity: import("effect/BigDecimal").BigDecimal;
7607
7617
  readonly unitPrice: number;
7608
7618
  readonly discountAmount: number;
7609
7619
  readonly salesTaxTotal: number;
7610
7620
  readonly totalAmount: number;
7621
+ readonly transactionTags: readonly {
7622
+ readonly value: string;
7623
+ readonly id: string;
7624
+ readonly _local?: {
7625
+ readonly isOptimistic: boolean;
7626
+ } | undefined;
7627
+ readonly key: string;
7628
+ readonly createdAt: Date;
7629
+ readonly updatedAt: Date;
7630
+ readonly deletedAt?: Date | undefined;
7631
+ }[];
7632
+ readonly accountIdentifier: {
7633
+ readonly type: "StableName";
7634
+ readonly stableName: string;
7635
+ } | {
7636
+ readonly id: string;
7637
+ readonly type: "AccountId";
7638
+ } | null;
7611
7639
  }[];
7612
- readonly updatedAt: Date | null;
7613
7640
  readonly subtotal: number;
7614
7641
  readonly paidAt: Date | null;
7615
7642
  readonly totalAmount: number;
@@ -7638,6 +7665,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7638
7665
  readonly externalId: string | null;
7639
7666
  readonly status: InvoiceStatus;
7640
7667
  readonly memo: string | null;
7668
+ readonly updatedAt: Date | null;
7641
7669
  readonly customer: {
7642
7670
  readonly id: string;
7643
7671
  readonly externalId: string | null;
@@ -7662,15 +7690,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7662
7690
  readonly memo: string | null;
7663
7691
  readonly description: string | null;
7664
7692
  readonly invoiceId: string;
7665
- readonly product: string | null;
7666
7693
  readonly subtotal: number;
7667
7694
  readonly quantity: import("effect/BigDecimal").BigDecimal;
7668
7695
  readonly unitPrice: number;
7669
7696
  readonly discountAmount: number;
7670
7697
  readonly salesTaxTotal: number;
7671
7698
  readonly totalAmount: number;
7699
+ readonly transactionTags: readonly {
7700
+ readonly value: string;
7701
+ readonly id: string;
7702
+ readonly _local?: {
7703
+ readonly isOptimistic: boolean;
7704
+ } | undefined;
7705
+ readonly key: string;
7706
+ readonly createdAt: Date;
7707
+ readonly updatedAt: Date;
7708
+ readonly deletedAt?: Date | undefined;
7709
+ }[];
7710
+ readonly accountIdentifier: {
7711
+ readonly type: "StableName";
7712
+ readonly stableName: string;
7713
+ } | {
7714
+ readonly id: string;
7715
+ readonly type: "AccountId";
7716
+ } | null;
7672
7717
  }[];
7673
- readonly updatedAt: Date | null;
7674
7718
  readonly subtotal: number;
7675
7719
  readonly paidAt: Date | null;
7676
7720
  readonly totalAmount: number;
@@ -7698,6 +7742,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7698
7742
  readonly externalId: string | null;
7699
7743
  readonly status: InvoiceStatus;
7700
7744
  readonly memo: string | null;
7745
+ readonly updatedAt: Date | null;
7701
7746
  readonly customer: {
7702
7747
  readonly id: string;
7703
7748
  readonly externalId: string | null;
@@ -7722,15 +7767,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7722
7767
  readonly memo: string | null;
7723
7768
  readonly description: string | null;
7724
7769
  readonly invoiceId: string;
7725
- readonly product: string | null;
7726
7770
  readonly subtotal: number;
7727
7771
  readonly quantity: import("effect/BigDecimal").BigDecimal;
7728
7772
  readonly unitPrice: number;
7729
7773
  readonly discountAmount: number;
7730
7774
  readonly salesTaxTotal: number;
7731
7775
  readonly totalAmount: number;
7776
+ readonly transactionTags: readonly {
7777
+ readonly value: string;
7778
+ readonly id: string;
7779
+ readonly _local?: {
7780
+ readonly isOptimistic: boolean;
7781
+ } | undefined;
7782
+ readonly key: string;
7783
+ readonly createdAt: Date;
7784
+ readonly updatedAt: Date;
7785
+ readonly deletedAt?: Date | undefined;
7786
+ }[];
7787
+ readonly accountIdentifier: {
7788
+ readonly type: "StableName";
7789
+ readonly stableName: string;
7790
+ } | {
7791
+ readonly id: string;
7792
+ readonly type: "AccountId";
7793
+ } | null;
7732
7794
  }[];
7733
- readonly updatedAt: Date | null;
7734
7795
  readonly subtotal: number;
7735
7796
  readonly paidAt: Date | null;
7736
7797
  readonly totalAmount: number;
@@ -7755,6 +7816,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7755
7816
  readonly externalId: string | null;
7756
7817
  readonly status: InvoiceStatus;
7757
7818
  readonly memo: string | null;
7819
+ readonly updatedAt: Date | null;
7758
7820
  readonly customer: {
7759
7821
  readonly id: string;
7760
7822
  readonly externalId: string | null;
@@ -7779,15 +7841,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7779
7841
  readonly memo: string | null;
7780
7842
  readonly description: string | null;
7781
7843
  readonly invoiceId: string;
7782
- readonly product: string | null;
7783
7844
  readonly subtotal: number;
7784
7845
  readonly quantity: import("effect/BigDecimal").BigDecimal;
7785
7846
  readonly unitPrice: number;
7786
7847
  readonly discountAmount: number;
7787
7848
  readonly salesTaxTotal: number;
7788
7849
  readonly totalAmount: number;
7850
+ readonly transactionTags: readonly {
7851
+ readonly value: string;
7852
+ readonly id: string;
7853
+ readonly _local?: {
7854
+ readonly isOptimistic: boolean;
7855
+ } | undefined;
7856
+ readonly key: string;
7857
+ readonly createdAt: Date;
7858
+ readonly updatedAt: Date;
7859
+ readonly deletedAt?: Date | undefined;
7860
+ }[];
7861
+ readonly accountIdentifier: {
7862
+ readonly type: "StableName";
7863
+ readonly stableName: string;
7864
+ } | {
7865
+ readonly id: string;
7866
+ readonly type: "AccountId";
7867
+ } | null;
7789
7868
  }[];
7790
- readonly updatedAt: Date | null;
7791
7869
  readonly subtotal: number;
7792
7870
  readonly paidAt: Date | null;
7793
7871
  readonly totalAmount: number;
@@ -7813,6 +7891,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7813
7891
  readonly externalId: string | null;
7814
7892
  readonly status: InvoiceStatus;
7815
7893
  readonly memo: string | null;
7894
+ readonly updatedAt: Date | null;
7816
7895
  readonly customer: {
7817
7896
  readonly id: string;
7818
7897
  readonly externalId: string | null;
@@ -7837,15 +7916,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7837
7916
  readonly memo: string | null;
7838
7917
  readonly description: string | null;
7839
7918
  readonly invoiceId: string;
7840
- readonly product: string | null;
7841
7919
  readonly subtotal: number;
7842
7920
  readonly quantity: import("effect/BigDecimal").BigDecimal;
7843
7921
  readonly unitPrice: number;
7844
7922
  readonly discountAmount: number;
7845
7923
  readonly salesTaxTotal: number;
7846
7924
  readonly totalAmount: number;
7925
+ readonly transactionTags: readonly {
7926
+ readonly value: string;
7927
+ readonly id: string;
7928
+ readonly _local?: {
7929
+ readonly isOptimistic: boolean;
7930
+ } | undefined;
7931
+ readonly key: string;
7932
+ readonly createdAt: Date;
7933
+ readonly updatedAt: Date;
7934
+ readonly deletedAt?: Date | undefined;
7935
+ }[];
7936
+ readonly accountIdentifier: {
7937
+ readonly type: "StableName";
7938
+ readonly stableName: string;
7939
+ } | {
7940
+ readonly id: string;
7941
+ readonly type: "AccountId";
7942
+ } | null;
7847
7943
  }[];
7848
- readonly updatedAt: Date | null;
7849
7944
  readonly subtotal: number;
7850
7945
  readonly paidAt: Date | null;
7851
7946
  readonly totalAmount: number;
@@ -7870,6 +7965,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7870
7965
  readonly externalId: string | null;
7871
7966
  readonly status: InvoiceStatus;
7872
7967
  readonly memo: string | null;
7968
+ readonly updatedAt: Date | null;
7873
7969
  readonly customer: {
7874
7970
  readonly id: string;
7875
7971
  readonly externalId: string | null;
@@ -7894,15 +7990,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7894
7990
  readonly memo: string | null;
7895
7991
  readonly description: string | null;
7896
7992
  readonly invoiceId: string;
7897
- readonly product: string | null;
7898
7993
  readonly subtotal: number;
7899
7994
  readonly quantity: import("effect/BigDecimal").BigDecimal;
7900
7995
  readonly unitPrice: number;
7901
7996
  readonly discountAmount: number;
7902
7997
  readonly salesTaxTotal: number;
7903
7998
  readonly totalAmount: number;
7999
+ readonly transactionTags: readonly {
8000
+ readonly value: string;
8001
+ readonly id: string;
8002
+ readonly _local?: {
8003
+ readonly isOptimistic: boolean;
8004
+ } | undefined;
8005
+ readonly key: string;
8006
+ readonly createdAt: Date;
8007
+ readonly updatedAt: Date;
8008
+ readonly deletedAt?: Date | undefined;
8009
+ }[];
8010
+ readonly accountIdentifier: {
8011
+ readonly type: "StableName";
8012
+ readonly stableName: string;
8013
+ } | {
8014
+ readonly id: string;
8015
+ readonly type: "AccountId";
8016
+ } | null;
7904
8017
  }[];
7905
- readonly updatedAt: Date | null;
7906
8018
  readonly subtotal: number;
7907
8019
  readonly paidAt: Date | null;
7908
8020
  readonly totalAmount: number;
@@ -8027,26 +8139,60 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
8027
8139
  readonly memo: string | null;
8028
8140
  readonly description: string | null;
8029
8141
  readonly invoiceId: string;
8030
- readonly product: string | null;
8031
8142
  readonly subtotal: number;
8032
8143
  readonly quantity: import("effect/BigDecimal").BigDecimal;
8033
8144
  readonly unitPrice: number;
8034
8145
  readonly discountAmount: number;
8035
8146
  readonly salesTaxTotal: number;
8036
8147
  readonly totalAmount: number;
8148
+ readonly transactionTags: readonly {
8149
+ readonly value: string;
8150
+ readonly id: string;
8151
+ readonly _local?: {
8152
+ readonly isOptimistic: boolean;
8153
+ } | undefined;
8154
+ readonly key: string;
8155
+ readonly createdAt: Date;
8156
+ readonly updatedAt: Date;
8157
+ readonly deletedAt?: Date | undefined;
8158
+ }[];
8159
+ readonly accountIdentifier: {
8160
+ readonly type: "StableName";
8161
+ readonly stableName: string;
8162
+ } | {
8163
+ readonly id: string;
8164
+ readonly type: "AccountId";
8165
+ } | null;
8037
8166
  }[], "line_items", ":", readonly {
8038
8167
  readonly id: string;
8039
8168
  readonly external_id: string | null;
8040
8169
  readonly memo: string | null;
8041
8170
  readonly description: string | null;
8042
8171
  readonly invoice_id: string;
8043
- readonly product: string | null;
8044
8172
  readonly subtotal: number;
8045
8173
  readonly quantity: string;
8046
8174
  readonly unit_price: number;
8047
8175
  readonly discount_amount: number;
8048
8176
  readonly sales_taxes_total: number;
8049
8177
  readonly total_amount: number;
8178
+ readonly transaction_tags: readonly {
8179
+ readonly value: string;
8180
+ readonly id: string;
8181
+ readonly key: string;
8182
+ readonly created_at: string;
8183
+ readonly updated_at: string;
8184
+ readonly _local?: {
8185
+ readonly isOptimistic: boolean;
8186
+ } | undefined;
8187
+ readonly deleted_at?: string | undefined;
8188
+ }[];
8189
+ readonly account_identifier: {
8190
+ readonly type: "StableName";
8191
+ readonly stable_name: string;
8192
+ } | {
8193
+ readonly id: string;
8194
+ readonly type: "AccountId";
8195
+ } | null;
8050
8196
  }[], false, never>;
8051
8197
  subtotal: typeof Schema.Number;
8052
8198
  additionalDiscount: Schema.PropertySignature<":", number, "additional_discount", ":", number, false, never>;
@@ -8069,6 +8215,7 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
8069
8215
  readonly externalId: string | null;
8070
8216
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
8071
8217
  readonly memo: string | null;
8218
+ readonly updatedAt: Date | null;
8072
8219
  readonly customer: {
8073
8220
  readonly id: string;
8074
8221
  readonly externalId: string | null;
@@ -8093,15 +8240,31 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
8093
8240
  readonly memo: string | null;
8094
8241
  readonly description: string | null;
8095
8242
  readonly invoiceId: string;
8096
- readonly product: string | null;
8097
8243
  readonly subtotal: number;
8098
8244
  readonly quantity: import("effect/BigDecimal").BigDecimal;
8099
8245
  readonly unitPrice: number;
8100
8246
  readonly discountAmount: number;
8101
8247
  readonly salesTaxTotal: number;
8102
8248
  readonly totalAmount: number;
8249
+ readonly transactionTags: readonly {
8250
+ readonly value: string;
8251
+ readonly id: string;
8252
+ readonly _local?: {
8253
+ readonly isOptimistic: boolean;
8254
+ } | undefined;
8255
+ readonly key: string;
8256
+ readonly createdAt: Date;
8257
+ readonly updatedAt: Date;
8258
+ readonly deletedAt?: Date | undefined;
8259
+ }[];
8260
+ readonly accountIdentifier: {
8261
+ readonly type: "StableName";
8262
+ readonly stableName: string;
8263
+ } | {
8264
+ readonly id: string;
8265
+ readonly type: "AccountId";
8266
+ } | null;
8103
8267
  }[];
8104
- readonly updatedAt: Date | null;
8105
8268
  readonly subtotal: number;
8106
8269
  readonly paidAt: Date | null;
8107
8270
  readonly totalAmount: number;
@@ -8120,6 +8283,7 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
8120
8283
  readonly externalId: string | null;
8121
8284
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
8122
8285
  readonly memo: string | null;
8286
+ readonly updatedAt: Date | null;
8123
8287
  readonly customer: {
8124
8288
  readonly id: string;
8125
8289
  readonly externalId: string | null;
@@ -8144,15 +8308,31 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
8144
8308
  readonly memo: string | null;
8145
8309
  readonly description: string | null;
8146
8310
  readonly invoiceId: string;
8147
- readonly product: string | null;
8148
8311
  readonly subtotal: number;
8149
8312
  readonly quantity: import("effect/BigDecimal").BigDecimal;
8150
8313
  readonly unitPrice: number;
8151
8314
  readonly discountAmount: number;
8152
8315
  readonly salesTaxTotal: number;
8153
8316
  readonly totalAmount: number;
8317
+ readonly transactionTags: readonly {
8318
+ readonly value: string;
8319
+ readonly id: string;
8320
+ readonly _local?: {
8321
+ readonly isOptimistic: boolean;
8322
+ } | undefined;
8323
+ readonly key: string;
8324
+ readonly createdAt: Date;
8325
+ readonly updatedAt: Date;
8326
+ readonly deletedAt?: Date | undefined;
8327
+ }[];
8328
+ readonly accountIdentifier: {
8329
+ readonly type: "StableName";
8330
+ readonly stableName: string;
8331
+ } | {
8332
+ readonly id: string;
8333
+ readonly type: "AccountId";
8334
+ } | null;
8154
8335
  }[];
8155
- readonly updatedAt: Date | null;
8156
8336
  readonly subtotal: number;
8157
8337
  readonly paidAt: Date | null;
8158
8338
  readonly totalAmount: number;
@@ -8178,7 +8358,8 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
8178
8358
  declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvoicePayment' {
8179
8359
  import type { Key } from 'swr';
8180
8360
  import { type SWRMutationResponse } from 'swr/mutation';
8181
- import { InvoiceStatus, type Invoice, type InvoicePayment, type UpsertDedicatedInvoicePaymentSchema } from '@layerfi/components/features/invoices/invoiceSchemas';
8361
+ import { InvoiceStatus, type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
8362
+ import { type InvoicePayment, type UpsertDedicatedInvoicePaymentSchema } from '@layerfi/components/features/invoices/invoicePaymentSchemas';
8182
8363
  import { Schema } from 'effect';
8183
8364
  export enum UpsertDedicatedInvoicePaymentMode {
8184
8365
  Create = "Create",
@@ -8244,6 +8425,7 @@ declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvo
8244
8425
  id: string;
8245
8426
  externalId: string | null;
8246
8427
  memo: string | null;
8428
+ updatedAt: Date | null;
8247
8429
  customer: {
8248
8430
  readonly id: string;
8249
8431
  readonly externalId: string | null;
@@ -8268,15 +8450,31 @@ declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvo
8268
8450
  readonly memo: string | null;
8269
8451
  readonly description: string | null;
8270
8452
  readonly invoiceId: string;
8271
- readonly product: string | null;
8272
8453
  readonly subtotal: number;
8273
8454
  readonly quantity: import("effect/BigDecimal").BigDecimal;
8274
8455
  readonly unitPrice: number;
8275
8456
  readonly discountAmount: number;
8276
8457
  readonly salesTaxTotal: number;
8277
8458
  readonly totalAmount: number;
8278
- }[];
8279
- updatedAt: Date | null;
8459
+ readonly transactionTags: readonly {
8460
+ readonly value: string;
8461
+ readonly id: string;
8462
+ readonly _local?: {
8463
+ readonly isOptimistic: boolean;
8464
+ } | undefined;
8465
+ readonly key: string;
8466
+ readonly createdAt: Date;
8467
+ readonly updatedAt: Date;
8468
+ readonly deletedAt?: Date | undefined;
8469
+ }[];
8470
+ readonly accountIdentifier: {
8471
+ readonly type: "StableName";
8472
+ readonly stableName: string;
8473
+ } | {
8474
+ readonly id: string;
8475
+ readonly type: "AccountId";
8476
+ } | null;
8477
+ }[];
8280
8478
  subtotal: number;
8281
8479
  paidAt: Date | null;
8282
8480
  totalAmount: number;
@@ -8342,26 +8540,60 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
8342
8540
  readonly memo: string | null;
8343
8541
  readonly description: string | null;
8344
8542
  readonly invoiceId: string;
8345
- readonly product: string | null;
8346
8543
  readonly subtotal: number;
8347
8544
  readonly quantity: import("effect/BigDecimal").BigDecimal;
8348
8545
  readonly unitPrice: number;
8349
8546
  readonly discountAmount: number;
8350
8547
  readonly salesTaxTotal: number;
8351
8548
  readonly totalAmount: number;
8549
+ readonly transactionTags: readonly {
8550
+ readonly value: string;
8551
+ readonly id: string;
8552
+ readonly _local?: {
8553
+ readonly isOptimistic: boolean;
8554
+ } | undefined;
8555
+ readonly key: string;
8556
+ readonly createdAt: Date;
8557
+ readonly updatedAt: Date;
8558
+ readonly deletedAt?: Date | undefined;
8559
+ }[];
8560
+ readonly accountIdentifier: {
8561
+ readonly type: "StableName";
8562
+ readonly stableName: string;
8563
+ } | {
8564
+ readonly id: string;
8565
+ readonly type: "AccountId";
8566
+ } | null;
8352
8567
  }[], "line_items", ":", readonly {
8353
8568
  readonly id: string;
8354
8569
  readonly external_id: string | null;
8355
8570
  readonly memo: string | null;
8356
8571
  readonly description: string | null;
8357
8572
  readonly invoice_id: string;
8358
- readonly product: string | null;
8359
8573
  readonly subtotal: number;
8360
8574
  readonly quantity: string;
8361
8575
  readonly unit_price: number;
8362
8576
  readonly discount_amount: number;
8363
8577
  readonly sales_taxes_total: number;
8364
8578
  readonly total_amount: number;
8579
+ readonly transaction_tags: readonly {
8580
+ readonly value: string;
8581
+ readonly id: string;
8582
+ readonly key: string;
8583
+ readonly created_at: string;
8584
+ readonly updated_at: string;
8585
+ readonly _local?: {
8586
+ readonly isOptimistic: boolean;
8587
+ } | undefined;
8588
+ readonly deleted_at?: string | undefined;
8589
+ }[];
8590
+ readonly account_identifier: {
8591
+ readonly type: "StableName";
8592
+ readonly stable_name: string;
8593
+ } | {
8594
+ readonly id: string;
8595
+ readonly type: "AccountId";
8596
+ } | null;
8365
8597
  }[], false, never>;
8366
8598
  subtotal: typeof Schema.Number;
8367
8599
  additionalDiscount: Schema.PropertySignature<":", number, "additional_discount", ":", number, false, never>;
@@ -8384,6 +8616,7 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
8384
8616
  readonly externalId: string | null;
8385
8617
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
8386
8618
  readonly memo: string | null;
8619
+ readonly updatedAt: Date | null;
8387
8620
  readonly customer: {
8388
8621
  readonly id: string;
8389
8622
  readonly externalId: string | null;
@@ -8408,15 +8641,31 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
8408
8641
  readonly memo: string | null;
8409
8642
  readonly description: string | null;
8410
8643
  readonly invoiceId: string;
8411
- readonly product: string | null;
8412
8644
  readonly subtotal: number;
8413
8645
  readonly quantity: import("effect/BigDecimal").BigDecimal;
8414
8646
  readonly unitPrice: number;
8415
8647
  readonly discountAmount: number;
8416
8648
  readonly salesTaxTotal: number;
8417
8649
  readonly totalAmount: number;
8650
+ readonly transactionTags: readonly {
8651
+ readonly value: string;
8652
+ readonly id: string;
8653
+ readonly _local?: {
8654
+ readonly isOptimistic: boolean;
8655
+ } | undefined;
8656
+ readonly key: string;
8657
+ readonly createdAt: Date;
8658
+ readonly updatedAt: Date;
8659
+ readonly deletedAt?: Date | undefined;
8660
+ }[];
8661
+ readonly accountIdentifier: {
8662
+ readonly type: "StableName";
8663
+ readonly stableName: string;
8664
+ } | {
8665
+ readonly id: string;
8666
+ readonly type: "AccountId";
8667
+ } | null;
8418
8668
  }[];
8419
- readonly updatedAt: Date | null;
8420
8669
  readonly subtotal: number;
8421
8670
  readonly paidAt: Date | null;
8422
8671
  readonly totalAmount: number;
@@ -8435,6 +8684,7 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
8435
8684
  readonly externalId: string | null;
8436
8685
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
8437
8686
  readonly memo: string | null;
8687
+ readonly updatedAt: Date | null;
8438
8688
  readonly customer: {
8439
8689
  readonly id: string;
8440
8690
  readonly externalId: string | null;
@@ -8459,15 +8709,31 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
8459
8709
  readonly memo: string | null;
8460
8710
  readonly description: string | null;
8461
8711
  readonly invoiceId: string;
8462
- readonly product: string | null;
8463
8712
  readonly subtotal: number;
8464
8713
  readonly quantity: import("effect/BigDecimal").BigDecimal;
8465
8714
  readonly unitPrice: number;
8466
8715
  readonly discountAmount: number;
8467
8716
  readonly salesTaxTotal: number;
8468
8717
  readonly totalAmount: number;
8718
+ readonly transactionTags: readonly {
8719
+ readonly value: string;
8720
+ readonly id: string;
8721
+ readonly _local?: {
8722
+ readonly isOptimistic: boolean;
8723
+ } | undefined;
8724
+ readonly key: string;
8725
+ readonly createdAt: Date;
8726
+ readonly updatedAt: Date;
8727
+ readonly deletedAt?: Date | undefined;
8728
+ }[];
8729
+ readonly accountIdentifier: {
8730
+ readonly type: "StableName";
8731
+ readonly stableName: string;
8732
+ } | {
8733
+ readonly id: string;
8734
+ readonly type: "AccountId";
8735
+ } | null;
8469
8736
  }[];
8470
- readonly updatedAt: Date | null;
8471
8737
  readonly subtotal: number;
8472
8738
  readonly paidAt: Date | null;
8473
8739
  readonly totalAmount: number;
@@ -8482,9 +8748,19 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
8482
8748
  }, unknown, Key, {
8483
8749
  readonly line_items: readonly {
8484
8750
  readonly description: string;
8485
- readonly product: string;
8486
8751
  readonly quantity: string;
8487
8752
  readonly unit_price: number;
8753
+ readonly tags?: readonly {
8754
+ readonly value: string;
8755
+ readonly key: string;
8756
+ }[] | undefined;
8757
+ readonly account_identifier?: {
8758
+ readonly type: "StableName";
8759
+ readonly stable_name: string;
8760
+ } | {
8761
+ readonly id: string;
8762
+ readonly type: "AccountId";
8763
+ } | undefined;
8488
8764
  readonly sales_taxes?: readonly {
8489
8765
  readonly amount: number;
8490
8766
  }[] | undefined;
@@ -8556,26 +8832,60 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
8556
8832
  readonly memo: string | null;
8557
8833
  readonly description: string | null;
8558
8834
  readonly invoiceId: string;
8559
- readonly product: string | null;
8560
8835
  readonly subtotal: number;
8561
8836
  readonly quantity: import("effect/BigDecimal").BigDecimal;
8562
8837
  readonly unitPrice: number;
8563
8838
  readonly discountAmount: number;
8564
8839
  readonly salesTaxTotal: number;
8565
8840
  readonly totalAmount: number;
8841
+ readonly transactionTags: readonly {
8842
+ readonly value: string;
8843
+ readonly id: string;
8844
+ readonly _local?: {
8845
+ readonly isOptimistic: boolean;
8846
+ } | undefined;
8847
+ readonly key: string;
8848
+ readonly createdAt: Date;
8849
+ readonly updatedAt: Date;
8850
+ readonly deletedAt?: Date | undefined;
8851
+ }[];
8852
+ readonly accountIdentifier: {
8853
+ readonly type: "StableName";
8854
+ readonly stableName: string;
8855
+ } | {
8856
+ readonly id: string;
8857
+ readonly type: "AccountId";
8858
+ } | null;
8566
8859
  }[], "line_items", ":", readonly {
8567
8860
  readonly id: string;
8568
8861
  readonly external_id: string | null;
8569
8862
  readonly memo: string | null;
8570
8863
  readonly description: string | null;
8571
8864
  readonly invoice_id: string;
8572
- readonly product: string | null;
8573
8865
  readonly subtotal: number;
8574
8866
  readonly quantity: string;
8575
8867
  readonly unit_price: number;
8576
8868
  readonly discount_amount: number;
8577
8869
  readonly sales_taxes_total: number;
8578
8870
  readonly total_amount: number;
8871
+ readonly transaction_tags: readonly {
8872
+ readonly value: string;
8873
+ readonly id: string;
8874
+ readonly key: string;
8875
+ readonly created_at: string;
8876
+ readonly updated_at: string;
8877
+ readonly _local?: {
8878
+ readonly isOptimistic: boolean;
8879
+ } | undefined;
8880
+ readonly deleted_at?: string | undefined;
8881
+ }[];
8882
+ readonly account_identifier: {
8883
+ readonly type: "StableName";
8884
+ readonly stable_name: string;
8885
+ } | {
8886
+ readonly id: string;
8887
+ readonly type: "AccountId";
8888
+ } | null;
8579
8889
  }[], false, never>;
8580
8890
  subtotal: typeof Schema.Number;
8581
8891
  additionalDiscount: Schema.PropertySignature<":", number, "additional_discount", ":", number, false, never>;
@@ -8598,6 +8908,7 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
8598
8908
  readonly externalId: string | null;
8599
8909
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
8600
8910
  readonly memo: string | null;
8911
+ readonly updatedAt: Date | null;
8601
8912
  readonly customer: {
8602
8913
  readonly id: string;
8603
8914
  readonly externalId: string | null;
@@ -8622,15 +8933,31 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
8622
8933
  readonly memo: string | null;
8623
8934
  readonly description: string | null;
8624
8935
  readonly invoiceId: string;
8625
- readonly product: string | null;
8626
8936
  readonly subtotal: number;
8627
8937
  readonly quantity: import("effect/BigDecimal").BigDecimal;
8628
8938
  readonly unitPrice: number;
8629
8939
  readonly discountAmount: number;
8630
8940
  readonly salesTaxTotal: number;
8631
8941
  readonly totalAmount: number;
8942
+ readonly transactionTags: readonly {
8943
+ readonly value: string;
8944
+ readonly id: string;
8945
+ readonly _local?: {
8946
+ readonly isOptimistic: boolean;
8947
+ } | undefined;
8948
+ readonly key: string;
8949
+ readonly createdAt: Date;
8950
+ readonly updatedAt: Date;
8951
+ readonly deletedAt?: Date | undefined;
8952
+ }[];
8953
+ readonly accountIdentifier: {
8954
+ readonly type: "StableName";
8955
+ readonly stableName: string;
8956
+ } | {
8957
+ readonly id: string;
8958
+ readonly type: "AccountId";
8959
+ } | null;
8632
8960
  }[];
8633
- readonly updatedAt: Date | null;
8634
8961
  readonly subtotal: number;
8635
8962
  readonly paidAt: Date | null;
8636
8963
  readonly totalAmount: number;
@@ -8649,6 +8976,7 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
8649
8976
  readonly externalId: string | null;
8650
8977
  readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
8651
8978
  readonly memo: string | null;
8979
+ readonly updatedAt: Date | null;
8652
8980
  readonly customer: {
8653
8981
  readonly id: string;
8654
8982
  readonly externalId: string | null;
@@ -8673,15 +9001,31 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
8673
9001
  readonly memo: string | null;
8674
9002
  readonly description: string | null;
8675
9003
  readonly invoiceId: string;
8676
- readonly product: string | null;
8677
9004
  readonly subtotal: number;
8678
9005
  readonly quantity: import("effect/BigDecimal").BigDecimal;
8679
9006
  readonly unitPrice: number;
8680
9007
  readonly discountAmount: number;
8681
9008
  readonly salesTaxTotal: number;
8682
9009
  readonly totalAmount: number;
9010
+ readonly transactionTags: readonly {
9011
+ readonly value: string;
9012
+ readonly id: string;
9013
+ readonly _local?: {
9014
+ readonly isOptimistic: boolean;
9015
+ } | undefined;
9016
+ readonly key: string;
9017
+ readonly createdAt: Date;
9018
+ readonly updatedAt: Date;
9019
+ readonly deletedAt?: Date | undefined;
9020
+ }[];
9021
+ readonly accountIdentifier: {
9022
+ readonly type: "StableName";
9023
+ readonly stableName: string;
9024
+ } | {
9025
+ readonly id: string;
9026
+ readonly type: "AccountId";
9027
+ } | null;
8683
9028
  }[];
8684
- readonly updatedAt: Date | null;
8685
9029
  readonly subtotal: number;
8686
9030
  readonly paidAt: Date | null;
8687
9031
  readonly totalAmount: number;
@@ -8794,6 +9138,34 @@ declare module '@layerfi/components/features/invoices/customerRefundSchemas' {
8794
9138
  }>;
8795
9139
  export type CustomerRefund = typeof CustomerRefundSchema.Type;
8796
9140
 
9141
+ }
9142
+ declare module '@layerfi/components/features/invoices/invoicePaymentSchemas' {
9143
+ import { Schema } from 'effect';
9144
+ export const UpsertDedicatedInvoicePaymentSchema: Schema.Struct<{
9145
+ amount: typeof Schema.Number;
9146
+ method: Schema.Enums<typeof import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod>;
9147
+ paidAt: Schema.PropertySignature<":", Date, "paid_at", ":", string, false, never>;
9148
+ referenceNumber: Schema.PropertySignature<"?:", string | undefined, "reference_number", "?:", string | undefined, false, never>;
9149
+ memo: Schema.optional<typeof Schema.String>;
9150
+ }>;
9151
+ export type UpsertDedicatedInvoicePayment = typeof UpsertDedicatedInvoicePaymentSchema.Type;
9152
+ export const DedicatedInvoicePaymentFormSchema: Schema.Struct<{
9153
+ amount: typeof Schema.BigDecimal;
9154
+ method: Schema.NullOr<Schema.Enums<typeof import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod>>;
9155
+ paidAt: Schema.NullOr<Schema.declare<import("@internationalized/date").ZonedDateTime, import("@internationalized/date").ZonedDateTime, readonly [], never>>;
9156
+ referenceNumber: typeof Schema.String;
9157
+ memo: typeof Schema.String;
9158
+ }>;
9159
+ export type DedicatedInvoicePaymentForm = typeof DedicatedInvoicePaymentFormSchema.Type;
9160
+ export const InvoicePaymentSchema: Schema.Struct<{
9161
+ amount: typeof Schema.Number;
9162
+ method: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod, import("../../components/PaymentMethod/schemas").PaymentMethod, never>>;
9163
+ at: Schema.propertySignature<typeof Schema.Date>;
9164
+ referenceNumber: Schema.PropertySignature<":", string | null, "reference_number", ":", string | null, false, never>;
9165
+ memo: Schema.NullOr<typeof Schema.String>;
9166
+ }>;
9167
+ export type InvoicePayment = typeof InvoicePaymentSchema.Type;
9168
+
8797
9169
  }
8798
9170
  declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8799
9171
  import { Schema } from 'effect';
@@ -8813,7 +9185,6 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8813
9185
  externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
8814
9186
  invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
8815
9187
  description: Schema.NullOr<typeof Schema.String>;
8816
- product: Schema.NullOr<typeof Schema.String>;
8817
9188
  unitPrice: Schema.PropertySignature<":", number, "unit_price", ":", number, false, never>;
8818
9189
  quantity: typeof Schema.BigDecimal;
8819
9190
  subtotal: typeof Schema.Number;
@@ -8821,6 +9192,40 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8821
9192
  salesTaxTotal: Schema.PropertySignature<":", number, "sales_taxes_total", ":", number, false, never>;
8822
9193
  totalAmount: Schema.PropertySignature<":", number, "total_amount", ":", number, false, never>;
8823
9194
  memo: Schema.NullOr<typeof Schema.String>;
9195
+ transactionTags: Schema.PropertySignature<":", readonly {
9196
+ readonly value: string;
9197
+ readonly id: string;
9198
+ readonly _local?: {
9199
+ readonly isOptimistic: boolean;
9200
+ } | undefined;
9201
+ readonly key: string;
9202
+ readonly createdAt: Date;
9203
+ readonly updatedAt: Date;
9204
+ readonly deletedAt?: Date | undefined;
9205
+ }[], "transaction_tags", ":", readonly {
9206
+ readonly value: string;
9207
+ readonly id: string;
9208
+ readonly key: string;
9209
+ readonly created_at: string;
9210
+ readonly updated_at: string;
9211
+ readonly _local?: {
9212
+ readonly isOptimistic: boolean;
9213
+ } | undefined;
9214
+ readonly deleted_at?: string | undefined;
9215
+ }[], false, never>;
9216
+ accountIdentifier: Schema.PropertySignature<":", {
9217
+ readonly type: "StableName";
9218
+ readonly stableName: string;
9219
+ } | {
9220
+ readonly id: string;
9221
+ readonly type: "AccountId";
9222
+ } | null, "account_identifier", ":", {
9223
+ readonly type: "StableName";
9224
+ readonly stable_name: string;
9225
+ } | {
9226
+ readonly id: string;
9227
+ readonly type: "AccountId";
9228
+ } | null, false, never>;
8824
9229
  }>;
8825
9230
  export type InvoiceLineItem = typeof InvoiceLineItemSchema.Type;
8826
9231
  export const InvoiceSchema: Schema.Struct<{
@@ -8855,26 +9260,60 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8855
9260
  readonly memo: string | null;
8856
9261
  readonly description: string | null;
8857
9262
  readonly invoiceId: string;
8858
- readonly product: string | null;
8859
9263
  readonly subtotal: number;
8860
9264
  readonly quantity: import("effect/BigDecimal").BigDecimal;
8861
9265
  readonly unitPrice: number;
8862
9266
  readonly discountAmount: number;
8863
9267
  readonly salesTaxTotal: number;
8864
9268
  readonly totalAmount: number;
9269
+ readonly transactionTags: readonly {
9270
+ readonly value: string;
9271
+ readonly id: string;
9272
+ readonly _local?: {
9273
+ readonly isOptimistic: boolean;
9274
+ } | undefined;
9275
+ readonly key: string;
9276
+ readonly createdAt: Date;
9277
+ readonly updatedAt: Date;
9278
+ readonly deletedAt?: Date | undefined;
9279
+ }[];
9280
+ readonly accountIdentifier: {
9281
+ readonly type: "StableName";
9282
+ readonly stableName: string;
9283
+ } | {
9284
+ readonly id: string;
9285
+ readonly type: "AccountId";
9286
+ } | null;
8865
9287
  }[], "line_items", ":", readonly {
8866
9288
  readonly id: string;
8867
9289
  readonly external_id: string | null;
8868
9290
  readonly memo: string | null;
8869
9291
  readonly description: string | null;
8870
9292
  readonly invoice_id: string;
8871
- readonly product: string | null;
8872
9293
  readonly subtotal: number;
8873
9294
  readonly quantity: string;
8874
9295
  readonly unit_price: number;
8875
9296
  readonly discount_amount: number;
8876
9297
  readonly sales_taxes_total: number;
8877
9298
  readonly total_amount: number;
9299
+ readonly transaction_tags: readonly {
9300
+ readonly value: string;
9301
+ readonly id: string;
9302
+ readonly key: string;
9303
+ readonly created_at: string;
9304
+ readonly updated_at: string;
9305
+ readonly _local?: {
9306
+ readonly isOptimistic: boolean;
9307
+ } | undefined;
9308
+ readonly deleted_at?: string | undefined;
9309
+ }[];
9310
+ readonly account_identifier: {
9311
+ readonly type: "StableName";
9312
+ readonly stable_name: string;
9313
+ } | {
9314
+ readonly id: string;
9315
+ readonly type: "AccountId";
9316
+ } | null;
8878
9317
  }[], false, never>;
8879
9318
  subtotal: typeof Schema.Number;
8880
9319
  additionalDiscount: Schema.PropertySignature<":", number, "additional_discount", ":", number, false, never>;
@@ -8891,7 +9330,6 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8891
9330
  }>;
8892
9331
  export const UpsertInvoiceLineItemSchema: Schema.Struct<{
8893
9332
  description: typeof Schema.String;
8894
- product: typeof Schema.String;
8895
9333
  unitPrice: Schema.PropertySignature<":", number, "unit_price", ":", number, false, never>;
8896
9334
  quantity: typeof Schema.BigDecimal;
8897
9335
  salesTaxes: Schema.PropertySignature<"?:", readonly {
@@ -8899,6 +9337,23 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8899
9337
  }[] | undefined, "sales_taxes", "?:", readonly {
8900
9338
  readonly amount: number;
8901
9339
  }[] | undefined, false, never>;
9340
+ accountIdentifier: Schema.PropertySignature<"?:", {
9341
+ readonly type: "StableName";
9342
+ readonly stableName: string;
9343
+ } | {
9344
+ readonly id: string;
9345
+ readonly type: "AccountId";
9346
+ } | undefined, "account_identifier", "?:", {
9347
+ readonly type: "StableName";
9348
+ readonly stable_name: string;
9349
+ } | {
9350
+ readonly id: string;
9351
+ readonly type: "AccountId";
9352
+ } | undefined, false, never>;
9353
+ tags: Schema.optional<Schema.Array$<Schema.Struct<{
9354
+ key: typeof Schema.NonEmptyTrimmedString;
9355
+ value: typeof Schema.NonEmptyTrimmedString;
9356
+ }>>>;
8902
9357
  }>;
8903
9358
  export type UpsertInvoiceLineItem = typeof UpsertInvoiceLineItemSchema.Type;
8904
9359
  export const UpsertInvoiceSchema: Schema.Struct<{
@@ -8909,17 +9364,37 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8909
9364
  memo: Schema.optional<typeof Schema.String>;
8910
9365
  lineItems: Schema.PropertySignature<":", readonly {
8911
9366
  readonly description: string;
8912
- readonly product: string;
9367
+ readonly tags?: readonly {
9368
+ readonly value: string;
9369
+ readonly key: string;
9370
+ }[] | undefined;
8913
9371
  readonly quantity: import("effect/BigDecimal").BigDecimal;
8914
9372
  readonly unitPrice: number;
9373
+ readonly accountIdentifier?: {
9374
+ readonly type: "StableName";
9375
+ readonly stableName: string;
9376
+ } | {
9377
+ readonly id: string;
9378
+ readonly type: "AccountId";
9379
+ } | undefined;
8915
9380
  readonly salesTaxes?: readonly {
8916
9381
  readonly amount: number;
8917
9382
  }[] | undefined;
8918
9383
  }[], "line_items", ":", readonly {
8919
9384
  readonly description: string;
8920
- readonly product: string;
8921
9385
  readonly quantity: string;
8922
9386
  readonly unit_price: number;
9387
+ readonly tags?: readonly {
9388
+ readonly value: string;
9389
+ readonly key: string;
9390
+ }[] | undefined;
9391
+ readonly account_identifier?: {
9392
+ readonly type: "StableName";
9393
+ readonly stable_name: string;
9394
+ } | {
9395
+ readonly id: string;
9396
+ readonly type: "AccountId";
9397
+ } | undefined;
8923
9398
  readonly sales_taxes?: readonly {
8924
9399
  readonly amount: number;
8925
9400
  }[] | undefined;
@@ -8929,19 +9404,47 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8929
9404
  export type UpsertInvoice = typeof UpsertInvoiceSchema.Type;
8930
9405
  export const InvoiceFormLineItemSchema: Schema.Struct<{
8931
9406
  description: typeof Schema.String;
8932
- product: typeof Schema.String;
8933
9407
  unitPrice: typeof Schema.BigDecimal;
8934
9408
  quantity: typeof Schema.BigDecimal;
8935
9409
  amount: typeof Schema.BigDecimal;
8936
9410
  isTaxable: typeof Schema.Boolean;
9411
+ accountIdentifier: Schema.NullOr<Schema.Union<[Schema.Struct<{
9412
+ type: Schema.Literal<["StableName"]>;
9413
+ stableName: Schema.PropertySignature<":", string, "stable_name", ":", string, false, never>;
9414
+ }>, Schema.Struct<{
9415
+ type: Schema.Literal<["AccountId"]>;
9416
+ id: typeof Schema.String;
9417
+ }>]>>;
9418
+ tags: Schema.Array$<Schema.Data<Schema.Struct<{
9419
+ id: typeof Schema.UUID;
9420
+ dimensionLabel: typeof Schema.NonEmptyTrimmedString;
9421
+ valueLabel: typeof Schema.NonEmptyTrimmedString;
9422
+ _local: Schema.Struct<{
9423
+ isOptimistic: typeof Schema.Boolean;
9424
+ }>;
9425
+ }>>>;
8937
9426
  }>;
8938
9427
  export type InvoiceFormLineItem = typeof InvoiceFormLineItemSchema.Type;
8939
9428
  export const InvoiceFormLineItemEquivalence: import("effect/Equivalence").Equivalence<{
8940
9429
  readonly amount: import("effect/BigDecimal").BigDecimal;
8941
9430
  readonly description: string;
8942
- readonly product: string;
9431
+ readonly tags: readonly {
9432
+ readonly id: string;
9433
+ readonly _local: {
9434
+ readonly isOptimistic: boolean;
9435
+ };
9436
+ readonly dimensionLabel: string;
9437
+ readonly valueLabel: string;
9438
+ }[];
8943
9439
  readonly quantity: import("effect/BigDecimal").BigDecimal;
8944
9440
  readonly unitPrice: import("effect/BigDecimal").BigDecimal;
9441
+ readonly accountIdentifier: {
9442
+ readonly type: "StableName";
9443
+ readonly stableName: string;
9444
+ } | {
9445
+ readonly id: string;
9446
+ readonly type: "AccountId";
9447
+ } | null;
8945
9448
  readonly isTaxable: boolean;
8946
9449
  }>;
8947
9450
  export const InvoiceFormSchema: Schema.Struct<{
@@ -8968,11 +9471,25 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8968
9471
  address: typeof Schema.String;
8969
9472
  lineItems: Schema.Array$<Schema.Struct<{
8970
9473
  description: typeof Schema.String;
8971
- product: typeof Schema.String;
8972
9474
  unitPrice: typeof Schema.BigDecimal;
8973
9475
  quantity: typeof Schema.BigDecimal;
8974
9476
  amount: typeof Schema.BigDecimal;
8975
9477
  isTaxable: typeof Schema.Boolean;
9478
+ accountIdentifier: Schema.NullOr<Schema.Union<[Schema.Struct<{
9479
+ type: Schema.Literal<["StableName"]>;
9480
+ stableName: Schema.PropertySignature<":", string, "stable_name", ":", string, false, never>;
9481
+ }>, Schema.Struct<{
9482
+ type: Schema.Literal<["AccountId"]>;
9483
+ id: typeof Schema.String;
9484
+ }>]>>;
9485
+ tags: Schema.Array$<Schema.Data<Schema.Struct<{
9486
+ id: typeof Schema.UUID;
9487
+ dimensionLabel: typeof Schema.NonEmptyTrimmedString;
9488
+ valueLabel: typeof Schema.NonEmptyTrimmedString;
9489
+ _local: Schema.Struct<{
9490
+ isOptimistic: typeof Schema.Boolean;
9491
+ }>;
9492
+ }>>>;
8976
9493
  }>>;
8977
9494
  discountRate: typeof Schema.BigDecimal;
8978
9495
  taxRate: typeof Schema.BigDecimal;
@@ -8995,30 +9512,6 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8995
9512
  }, false, never>;
8996
9513
  }>;
8997
9514
  export type InvoiceSummaryStatsResponse = typeof InvoiceSummaryStatsResponseSchema.Type;
8998
- export const UpsertDedicatedInvoicePaymentSchema: Schema.Struct<{
8999
- amount: typeof Schema.Number;
9000
- method: Schema.Enums<typeof import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod>;
9001
- paidAt: Schema.PropertySignature<":", Date, "paid_at", ":", string, false, never>;
9002
- referenceNumber: Schema.PropertySignature<"?:", string | undefined, "reference_number", "?:", string | undefined, false, never>;
9003
- memo: Schema.optional<typeof Schema.String>;
9004
- }>;
9005
- export type UpsertDedicatedInvoicePayment = typeof UpsertDedicatedInvoicePaymentSchema.Type;
9006
- export const DedicatedInvoicePaymentFormSchema: Schema.Struct<{
9007
- amount: typeof Schema.BigDecimal;
9008
- method: Schema.NullOr<Schema.Enums<typeof import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod>>;
9009
- paidAt: Schema.NullOr<Schema.declare<import("@internationalized/date").ZonedDateTime, import("@internationalized/date").ZonedDateTime, readonly [], never>>;
9010
- referenceNumber: typeof Schema.String;
9011
- memo: typeof Schema.String;
9012
- }>;
9013
- export type DedicatedInvoicePaymentForm = typeof DedicatedInvoicePaymentFormSchema.Type;
9014
- export const InvoicePaymentSchema: Schema.Struct<{
9015
- amount: typeof Schema.Number;
9016
- method: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod, import("../../components/PaymentMethod/schemas").PaymentMethod, never>>;
9017
- at: Schema.propertySignature<typeof Schema.Date>;
9018
- referenceNumber: Schema.PropertySignature<":", string | null, "reference_number", ":", string | null, false, never>;
9019
- memo: Schema.NullOr<typeof Schema.String>;
9020
- }>;
9021
- export type InvoicePayment = typeof InvoicePaymentSchema.Type;
9022
9515
 
9023
9516
  }
9024
9517
  declare module '@layerfi/components/features/invoices/invoiceWriteoffSchemas' {
@@ -9177,9 +9670,10 @@ declare module '@layerfi/components/features/ledger/entries/api/useListLedgerEnt
9177
9670
  show_total_count?: boolean;
9178
9671
  };
9179
9672
  export function useListLedgerEntries({ sort_by, sort_order, limit, show_total_count, }?: UseListLedgerEntriesOptions): import("swr/infinite").SWRInfiniteResponse<ListLedgerEntriesReturn, any>;
9180
- export function useLedgerEntriesInvalidator(): {
9673
+ export function useLedgerEntriesCacheActions(): {
9181
9674
  invalidateLedgerEntries: () => Promise<undefined[]>;
9182
9675
  debouncedInvalidateLedgerEntries: import("lodash").DebouncedFunc<() => Promise<undefined[]>>;
9676
+ forceReloadLedgerEntries: () => Promise<undefined[]>;
9183
9677
  };
9184
9678
  export function useLedgerEntriesOptimisticUpdater(): {
9185
9679
  optimisticallyUpdateLedgerEntries: (transformJournalEntry: (entry: JournalEntry) => JournalEntry) => Promise<undefined[]>;
@@ -9217,6 +9711,35 @@ declare module '@layerfi/components/features/tags/api/useCreateTagValueDefinitio
9217
9711
  label: string;
9218
9712
  }>;
9219
9713
 
9714
+ }
9715
+ declare module '@layerfi/components/features/tags/api/useTagDimensionByKey' {
9716
+ import { type SWRResponse } from 'swr';
9717
+ import { type TagDimension } from '@layerfi/components/features/tags/tagSchemas';
9718
+ export const TAG_DIMENSION_BY_KEY_TAG_KEY = "#tag-dimension-by-key";
9719
+ class TagDimensionByKeySWRResponse {
9720
+ private swrResponse;
9721
+ constructor(swrResponse: SWRResponse<TagDimension>);
9722
+ get data(): {
9723
+ readonly id: string;
9724
+ readonly key: string;
9725
+ readonly strictness: "BALANCING" | "NON_BALANCING";
9726
+ readonly definedValues: readonly {
9727
+ readonly value: string;
9728
+ readonly id: string;
9729
+ }[];
9730
+ } | undefined;
9731
+ get isLoading(): boolean;
9732
+ get isValidating(): boolean;
9733
+ get isError(): boolean;
9734
+ }
9735
+ type UseTagDimensionByKeyParameters = {
9736
+ isEnabled?: boolean;
9737
+ dimensionKey: string;
9738
+ };
9739
+ export function useTagDimensionByKey({ isEnabled, dimensionKey }: UseTagDimensionByKeyParameters): TagDimensionByKeySWRResponse;
9740
+ export function usePreloadTagDimensionByKey(parameters: UseTagDimensionByKeyParameters): void;
9741
+ export {};
9742
+
9220
9743
  }
9221
9744
  declare module '@layerfi/components/features/tags/api/useTagDimensions' {
9222
9745
  import { type SWRResponse } from 'swr';
@@ -9257,9 +9780,64 @@ declare module '@layerfi/components/features/tags/api/useTagDimensions' {
9257
9780
  export function usePreloadTagDimensions(parameters?: UseTagDimensionsParameters): void;
9258
9781
  export {};
9259
9782
 
9783
+ }
9784
+ declare module '@layerfi/components/features/tags/components/TagDimensionCombobox' {
9785
+ import { type Tag } from '@layerfi/components/features/tags/tagSchemas';
9786
+ type TagDimensionComboboxProps = {
9787
+ dimensionKey: string;
9788
+ value: Tag | null;
9789
+ onValueChange: (tags: Tag | null) => void;
9790
+ isReadOnly?: boolean;
9791
+ showLabel?: boolean;
9792
+ };
9793
+ export const TagDimensionCombobox: ({ dimensionKey, value, onValueChange, isReadOnly, showLabel }: TagDimensionComboboxProps) => import("react/jsx-runtime").JSX.Element;
9794
+ export {};
9795
+
9260
9796
  }
9261
9797
  declare module '@layerfi/components/features/tags/components/TagSelector' {
9798
+ import type { Tag as TagType, TagValue } from '@layerfi/components/features/tags/tagSchemas';
9799
+ type TagSelectorProps = {
9800
+ selectedTags: ReadonlyArray<TagType>;
9801
+ onAddTag: (tagValue: TagValue) => void;
9802
+ onRemoveTag: (tag: TagType) => void;
9803
+ isReadOnly?: boolean;
9804
+ };
9805
+ export function TagSelector({ selectedTags, onAddTag, onRemoveTag, isReadOnly, }: TagSelectorProps): import("react/jsx-runtime").JSX.Element | null;
9806
+ export {};
9807
+
9808
+ }
9809
+ declare module '@layerfi/components/features/tags/tagSchemas' {
9262
9810
  import { Schema } from 'effect';
9811
+ export const TagDimensionStrictnessSchema: Schema.Literal<["BALANCING", "NON_BALANCING"]>;
9812
+ export const TagValueDefinitionSchema: Schema.Struct<{
9813
+ id: typeof Schema.UUID;
9814
+ value: typeof Schema.NonEmptyTrimmedString;
9815
+ }>;
9816
+ export type TagValueDefinition = typeof TagValueDefinitionSchema.Type;
9817
+ export const TagKeyValueSchema: Schema.Struct<{
9818
+ key: typeof Schema.NonEmptyTrimmedString;
9819
+ value: typeof Schema.NonEmptyTrimmedString;
9820
+ }>;
9821
+ export const makeTagKeyValue: (i: {
9822
+ readonly value: string;
9823
+ readonly key: string;
9824
+ }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
9825
+ readonly value: string;
9826
+ readonly key: string;
9827
+ };
9828
+ export const TagDimensionSchema: Schema.Struct<{
9829
+ id: typeof Schema.UUID;
9830
+ key: typeof Schema.NonEmptyTrimmedString;
9831
+ strictness: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.Literal<["BALANCING", "NON_BALANCING"]>>;
9832
+ definedValues: Schema.PropertySignature<":", readonly {
9833
+ readonly value: string;
9834
+ readonly id: string;
9835
+ }[], "defined_values", ":", readonly {
9836
+ readonly value: string;
9837
+ readonly id: string;
9838
+ }[], false, never>;
9839
+ }>;
9840
+ export type TagDimension = typeof TagDimensionSchema.Type;
9263
9841
  const TagValueSchema: Schema.Data<Schema.Struct<{
9264
9842
  dimensionId: typeof Schema.UUID;
9265
9843
  dimensionLabel: typeof Schema.NonEmptyTrimmedString;
@@ -9278,7 +9856,7 @@ declare module '@layerfi/components/features/tags/components/TagSelector' {
9278
9856
  readonly valueLabel: string;
9279
9857
  };
9280
9858
  export type TagValue = typeof TagValueSchema.Type;
9281
- const TagSchema: Schema.Data<Schema.Struct<{
9859
+ export const TagSchema: Schema.Data<Schema.Struct<{
9282
9860
  id: typeof Schema.UUID;
9283
9861
  dimensionLabel: typeof Schema.NonEmptyTrimmedString;
9284
9862
  valueLabel: typeof Schema.NonEmptyTrimmedString;
@@ -9302,35 +9880,32 @@ declare module '@layerfi/components/features/tags/components/TagSelector' {
9302
9880
  readonly valueLabel: string;
9303
9881
  };
9304
9882
  export type Tag = typeof TagSchema.Type;
9305
- type TagSelectorProps = {
9306
- selectedTags: ReadonlyArray<Tag>;
9307
- onAddTag: (tagValue: TagValue) => void;
9308
- onRemoveTag: (tag: Tag) => void;
9309
- isReadOnly?: boolean;
9310
- };
9311
- export function TagSelector({ selectedTags, onAddTag, onRemoveTag, isReadOnly, }: TagSelectorProps): import("react/jsx-runtime").JSX.Element | null;
9312
- export {};
9313
-
9314
- }
9315
- declare module '@layerfi/components/features/tags/tagSchemas' {
9316
- import { Schema } from 'effect';
9317
- export const TagDimensionStrictnessSchema: Schema.Literal<["BALANCING", "NON_BALANCING"]>;
9318
- export const TagValueDefinitionSchema: Schema.Struct<{
9319
- id: typeof Schema.UUID;
9320
- value: typeof Schema.NonEmptyTrimmedString;
9321
- }>;
9322
- export const TagDimensionSchema: Schema.Struct<{
9883
+ export const TransactionTagSchema: Schema.Struct<{
9323
9884
  id: typeof Schema.UUID;
9324
9885
  key: typeof Schema.NonEmptyTrimmedString;
9325
- strictness: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.Literal<["BALANCING", "NON_BALANCING"]>>;
9326
- definedValues: Schema.PropertySignature<":", readonly {
9327
- readonly value: string;
9328
- readonly id: string;
9329
- }[], "defined_values", ":", readonly {
9330
- readonly value: string;
9331
- readonly id: string;
9332
- }[], false, never>;
9886
+ value: typeof Schema.NonEmptyTrimmedString;
9887
+ createdAt: Schema.PropertySignature<":", Date, "created_at", ":", string, false, never>;
9888
+ updatedAt: Schema.PropertySignature<":", Date, "updated_at", ":", string, false, never>;
9889
+ deletedAt: Schema.PropertySignature<"?:", Date | undefined, "deleted_at", "?:", string | undefined, false, never>;
9890
+ _local: Schema.optional<Schema.Struct<{
9891
+ isOptimistic: typeof Schema.Boolean;
9892
+ }>>;
9333
9893
  }>;
9894
+ export type TransactionTag = typeof TransactionTagSchema.Type;
9895
+ export type TransactionTagEncoded = typeof TransactionTagSchema.Encoded;
9896
+ export const makeTagKeyValueFromTag: ({ dimensionLabel, valueLabel }: Tag) => {
9897
+ readonly value: string;
9898
+ readonly key: string;
9899
+ };
9900
+ export const makeTagFromTransactionTag: ({ id, key, value, _local }: TransactionTag) => {
9901
+ readonly id: string;
9902
+ readonly _local: {
9903
+ readonly isOptimistic: boolean;
9904
+ };
9905
+ readonly dimensionLabel: string;
9906
+ readonly valueLabel: string;
9907
+ };
9908
+ export {};
9334
9909
 
9335
9910
  }
9336
9911
  declare module '@layerfi/components/features/tags/useFlattenedTagValues' {
@@ -9720,12 +10295,25 @@ declare module '@layerfi/components/hooks/businessPersonnel/useUpdateBusinessPer
9720
10295
 
9721
10296
  }
9722
10297
  declare module '@layerfi/components/hooks/categories/useCategories' {
9723
- import { type CategoriesListMode } from '@layerfi/components/api/layer/categories';
10298
+ import { Category } from '@layerfi/components/types';
10299
+ import type { CategoriesListMode } from '@layerfi/components/types/categories';
9724
10300
  export const CATEGORIES_TAG_KEY = "#categories";
10301
+ export const getCategories: (baseUrl: string, accessToken: string | undefined, options?: {
10302
+ params?: {
10303
+ businessId: string;
10304
+ mode?: CategoriesListMode;
10305
+ } | undefined;
10306
+ } | undefined) => () => Promise<{
10307
+ data: {
10308
+ type: "Category_List";
10309
+ categories: Category[];
10310
+ };
10311
+ }>;
9725
10312
  type UseCategoriesOptions = {
9726
10313
  mode?: CategoriesListMode;
9727
10314
  };
9728
- export function useCategories({ mode }?: UseCategoriesOptions): import("swr").SWRResponse<import("../../types").Category[], any, any>;
10315
+ export function useCategories({ mode }?: UseCategoriesOptions): import("swr").SWRResponse<Category[], any, any>;
10316
+ export function usePreloadCategories(options?: UseCategoriesOptions): void;
9729
10317
  export {};
9730
10318
 
9731
10319
  }
@@ -9894,6 +10482,32 @@ declare module '@layerfi/components/hooks/search/useDebouncedSearchQuery' {
9894
10482
  };
9895
10483
  export {};
9896
10484
 
10485
+ }
10486
+ declare module '@layerfi/components/hooks/useAccountingConfiguration/useAccountingConfiguration' {
10487
+ import { AccountingConfigurationSchemaType } from '@layerfi/components/schemas/accountingConfiguration';
10488
+ import { type SWRResponse } from 'swr';
10489
+ export const ACCOUNTING_CONFIGURATION_TAG_KEY = "#accounting-configuration";
10490
+ class AccountingConfigurationSWRResponse {
10491
+ private swrResponse;
10492
+ constructor(swrResponse: SWRResponse<AccountingConfigurationSchemaType>);
10493
+ get data(): {
10494
+ readonly id: string;
10495
+ readonly enableAccountNumbers: boolean;
10496
+ } | undefined;
10497
+ get isLoading(): boolean;
10498
+ get isValidating(): boolean;
10499
+ get isError(): boolean;
10500
+ get mutate(): import("swr").KeyedMutator<{
10501
+ readonly id: string;
10502
+ readonly enableAccountNumbers: boolean;
10503
+ }>;
10504
+ }
10505
+ type GetAccountingConfigurationParams = {
10506
+ businessId: string;
10507
+ };
10508
+ export function useAccountingConfiguration({ businessId }: GetAccountingConfigurationParams): AccountingConfigurationSWRResponse;
10509
+ export {};
10510
+
9897
10511
  }
9898
10512
  declare module '@layerfi/components/hooks/useAuth' {
9899
10513
  export function useAuth(): import("swr").SWRResponse<{
@@ -10136,8 +10750,8 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/index' {
10136
10750
  }
10137
10751
  declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts' {
10138
10752
  import { FormError, DateRange, NewAccount } from '@layerfi/components/types';
10139
- import { LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
10140
10753
  import { BaseSelectOption } from '@layerfi/components/types/general';
10754
+ import { NestedLedgerAccountType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
10141
10755
  export interface ChartOfAccountsForm {
10142
10756
  action: 'new' | 'edit';
10143
10757
  accountId?: string;
@@ -10145,6 +10759,7 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts'
10145
10759
  parent?: BaseSelectOption;
10146
10760
  stable_name?: string;
10147
10761
  name?: string;
10762
+ accountNumber?: string;
10148
10763
  type?: BaseSelectOption;
10149
10764
  subType?: BaseSelectOption;
10150
10765
  normality?: BaseSelectOption;
@@ -10156,15 +10771,32 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts'
10156
10771
  endDate?: Date;
10157
10772
  withDates?: boolean;
10158
10773
  };
10159
- export const flattenAccounts: (accounts: LedgerAccountBalance[]) => LedgerAccountBalance[];
10774
+ export const flattenAccounts: (accounts: readonly NestedLedgerAccountType[]) => NestedLedgerAccountType[];
10160
10775
  export const useChartOfAccounts: ({ withDates, startDate: initialStartDate, endDate: initialEndDate }?: Props) => {
10161
- data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances | undefined;
10776
+ data: {
10777
+ readonly accounts: readonly {
10778
+ readonly name: string;
10779
+ readonly stableName: string | null;
10780
+ readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
10781
+ readonly accountType: {
10782
+ readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
10783
+ readonly displayName: string;
10784
+ };
10785
+ readonly accountSubtype: {
10786
+ readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountSubtype;
10787
+ readonly displayName: string;
10788
+ };
10789
+ readonly accountId: string;
10790
+ readonly accountNumber: string | null;
10791
+ readonly balance: number;
10792
+ readonly isDeletable: boolean | null;
10793
+ readonly subAccounts: readonly import("@layerfi/components/schemas/generalLedger/ledgerAccount").NestedLedgerAccount[];
10794
+ }[];
10795
+ } | undefined;
10162
10796
  isLoading: boolean;
10163
10797
  isValidating: boolean;
10164
- error: any;
10165
- refetch: () => Promise<{
10166
- data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances;
10167
- } | undefined>;
10798
+ isError: boolean;
10799
+ refetch: () => Promise<void>;
10168
10800
  create: (newAccount: NewAccount) => Promise<void>;
10169
10801
  form: ChartOfAccountsForm | undefined;
10170
10802
  sendingForm: boolean;
@@ -10189,7 +10821,21 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/useCreateChildAccou
10189
10821
  type NewChildAccountWithParentAccountId = NewChildAccount & {
10190
10822
  accountId: string;
10191
10823
  };
10192
- export function useCreateChildAccount(): import("swr/mutation").SWRMutationResponse<import("../../types/chart_of_accounts").Account, any, () => {
10824
+ export function useCreateChildAccount(): import("swr/mutation").SWRMutationResponse<{
10825
+ readonly name: string;
10826
+ readonly stable_name: string | null;
10827
+ readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
10828
+ readonly account_type: {
10829
+ readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
10830
+ readonly display_name: string;
10831
+ };
10832
+ readonly account_subtype: {
10833
+ readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountSubtype;
10834
+ readonly display_name: string;
10835
+ };
10836
+ readonly id: string;
10837
+ readonly account_number: string | null;
10838
+ }, any, () => {
10193
10839
  readonly accessToken: string;
10194
10840
  readonly apiUrl: string;
10195
10841
  readonly businessId: string;
@@ -10267,10 +10913,11 @@ declare module '@layerfi/components/hooks/useJournal/index' {
10267
10913
  }
10268
10914
  declare module '@layerfi/components/hooks/useJournal/useJournal' {
10269
10915
  import { Layer } from '@layerfi/components/api/layer';
10270
- import { Direction, FormError, FormErrorWithId } from '@layerfi/components/types';
10271
- import { LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
10916
+ import { FormError, FormErrorWithId } from '@layerfi/components/types';
10272
10917
  import { BaseSelectOption } from '@layerfi/components/types/general';
10273
10918
  import { JournalEntry, NewApiJournalEntry, NewFormJournalEntry } from '@layerfi/components/types/journal';
10919
+ import { LedgerEntryDirection } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
10920
+ import { LedgerAccountBalance } from '@layerfi/components/types/journal';
10274
10921
  type UseJournal = () => {
10275
10922
  data?: ReadonlyArray<JournalEntry>;
10276
10923
  isLoading?: boolean;
@@ -10292,7 +10939,7 @@ declare module '@layerfi/components/hooks/useJournal/useJournal' {
10292
10939
  form?: JournalFormTypes;
10293
10940
  apiError?: string;
10294
10941
  setForm: (form?: JournalFormTypes) => void;
10295
- addEntryLine: (direction: Direction) => void;
10942
+ addEntryLine: (direction: LedgerEntryDirection) => void;
10296
10943
  removeEntryLine: (index: number) => void;
10297
10944
  reverseEntry: (entryId: string) => ReturnType<typeof Layer.reverseJournalEntry>;
10298
10945
  hasMore: boolean;
@@ -10306,6 +10953,7 @@ declare module '@layerfi/components/hooks/useJournal/useJournal' {
10306
10953
  lineItems: FormErrorWithId[];
10307
10954
  } | undefined;
10308
10955
  }
10956
+ export const flattenAccounts: (accounts: LedgerAccountBalance[]) => LedgerAccountBalance[];
10309
10957
  export const useJournal: UseJournal;
10310
10958
  export {};
10311
10959
 
@@ -10338,6 +10986,65 @@ declare module '@layerfi/components/hooks/useLedgerAccounts/useLedgerAccounts' {
10338
10986
  export const useLedgerAccounts: UseLedgerAccounts;
10339
10987
  export {};
10340
10988
 
10989
+ }
10990
+ declare module '@layerfi/components/hooks/useLedgerBalances/useLedgerBalances' {
10991
+ import { LedgerBalancesSchemaType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
10992
+ import { type SWRResponse } from 'swr';
10993
+ export const LEDGER_BALANCES_TAG_KEY = "#ledger-balances";
10994
+ class LedgerBalancesSWRResponse {
10995
+ private swrResponse;
10996
+ constructor(swrResponse: SWRResponse<LedgerBalancesSchemaType>);
10997
+ get data(): {
10998
+ readonly accounts: readonly {
10999
+ readonly name: string;
11000
+ readonly stableName: string | null;
11001
+ readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
11002
+ readonly accountType: {
11003
+ readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
11004
+ readonly displayName: string;
11005
+ };
11006
+ readonly accountSubtype: {
11007
+ readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountSubtype;
11008
+ readonly displayName: string;
11009
+ };
11010
+ readonly accountId: string;
11011
+ readonly accountNumber: string | null;
11012
+ readonly balance: number;
11013
+ readonly isDeletable: boolean | null;
11014
+ readonly subAccounts: readonly import("@layerfi/components/schemas/generalLedger/ledgerAccount").NestedLedgerAccount[];
11015
+ }[];
11016
+ } | undefined;
11017
+ get isLoading(): boolean;
11018
+ get isValidating(): boolean;
11019
+ get isError(): boolean;
11020
+ get mutate(): import("swr").KeyedMutator<{
11021
+ readonly accounts: readonly {
11022
+ readonly name: string;
11023
+ readonly stableName: string | null;
11024
+ readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
11025
+ readonly accountType: {
11026
+ readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
11027
+ readonly displayName: string;
11028
+ };
11029
+ readonly accountSubtype: {
11030
+ readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountSubtype;
11031
+ readonly displayName: string;
11032
+ };
11033
+ readonly accountId: string;
11034
+ readonly accountNumber: string | null;
11035
+ readonly balance: number;
11036
+ readonly isDeletable: boolean | null;
11037
+ readonly subAccounts: readonly import("@layerfi/components/schemas/generalLedger/ledgerAccount").NestedLedgerAccount[];
11038
+ }[];
11039
+ }>;
11040
+ }
11041
+ export function useLedgerBalances(withDates?: boolean, startDate?: Date, endDate?: Date): LedgerBalancesSWRResponse;
11042
+ export function useLedgerBalancesCacheActions(): {
11043
+ invalidateLedgerBalances: () => Promise<undefined[]>;
11044
+ forceReloadLedgerBalances: () => Promise<undefined[]>;
11045
+ };
11046
+ export {};
11047
+
10341
11048
  }
10342
11049
  declare module '@layerfi/components/hooks/useLinkedAccounts/index' {
10343
11050
  export { useLinkedAccounts } from '@layerfi/components/hooks/useLinkedAccounts/useLinkedAccounts';
@@ -11223,15 +11930,15 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
11223
11930
  }>;
11224
11931
  costOfGoodsSold: Schema.PropertySignature<":", {
11225
11932
  readonly value: number;
11226
- readonly name: string;
11227
11933
  readonly displayName: string;
11934
+ readonly name: string;
11228
11935
  readonly isContra: boolean;
11229
11936
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11230
11937
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11231
11938
  }, "cost_of_goods_sold", ":", {
11232
11939
  readonly value: number;
11233
- readonly name: string;
11234
11940
  readonly display_name: string;
11941
+ readonly name: string;
11235
11942
  readonly is_contra: boolean;
11236
11943
  readonly line_items: readonly import("@layerfi/components/utils/schema/utils").LineItemEncoded[];
11237
11944
  readonly percent_delta?: string | undefined;
@@ -11254,75 +11961,75 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
11254
11961
  }>;
11255
11962
  customLineItems: Schema.PropertySignature<":", {
11256
11963
  readonly value: number;
11257
- readonly name: string;
11258
11964
  readonly displayName: string;
11965
+ readonly name: string;
11259
11966
  readonly isContra: boolean;
11260
11967
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11261
11968
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11262
11969
  } | null, "custom_line_items", ":", {
11263
11970
  readonly value: number;
11264
- readonly name: string;
11265
11971
  readonly display_name: string;
11972
+ readonly name: string;
11266
11973
  readonly is_contra: boolean;
11267
11974
  readonly line_items: readonly import("@layerfi/components/utils/schema/utils").LineItemEncoded[];
11268
11975
  readonly percent_delta?: string | undefined;
11269
11976
  } | null, false, never>;
11270
11977
  otherOutflows: Schema.PropertySignature<":", {
11271
11978
  readonly value: number;
11272
- readonly name: string;
11273
11979
  readonly displayName: string;
11980
+ readonly name: string;
11274
11981
  readonly isContra: boolean;
11275
11982
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11276
11983
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11277
11984
  } | null, "other_outflows", ":", {
11278
11985
  readonly value: number;
11279
- readonly name: string;
11280
11986
  readonly display_name: string;
11987
+ readonly name: string;
11281
11988
  readonly is_contra: boolean;
11282
11989
  readonly line_items: readonly import("@layerfi/components/utils/schema/utils").LineItemEncoded[];
11283
11990
  readonly percent_delta?: string | undefined;
11284
11991
  } | null, false, never>;
11285
11992
  uncategorizedOutflows: Schema.PropertySignature<"?:", {
11286
11993
  readonly value: number;
11287
- readonly name: string;
11288
11994
  readonly displayName: string;
11995
+ readonly name: string;
11289
11996
  readonly isContra: boolean;
11290
11997
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11291
11998
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11292
11999
  } | undefined, "uncategorized_outflows", "?:", {
11293
12000
  readonly value: number;
11294
- readonly name: string;
11295
12001
  readonly display_name: string;
12002
+ readonly name: string;
11296
12003
  readonly is_contra: boolean;
11297
12004
  readonly line_items: readonly import("@layerfi/components/utils/schema/utils").LineItemEncoded[];
11298
12005
  readonly percent_delta?: string | undefined;
11299
12006
  } | undefined, false, never>;
11300
12007
  uncategorizedInflows: Schema.PropertySignature<"?:", {
11301
12008
  readonly value: number;
11302
- readonly name: string;
11303
12009
  readonly displayName: string;
12010
+ readonly name: string;
11304
12011
  readonly isContra: boolean;
11305
12012
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11306
12013
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11307
12014
  } | undefined, "uncategorized_inflows", "?:", {
11308
12015
  readonly value: number;
11309
- readonly name: string;
11310
12016
  readonly display_name: string;
12017
+ readonly name: string;
11311
12018
  readonly is_contra: boolean;
11312
12019
  readonly line_items: readonly import("@layerfi/components/utils/schema/utils").LineItemEncoded[];
11313
12020
  readonly percent_delta?: string | undefined;
11314
12021
  } | undefined, false, never>;
11315
12022
  personalExpenses: Schema.PropertySignature<":", {
11316
12023
  readonly value: number;
11317
- readonly name: string;
11318
12024
  readonly displayName: string;
12025
+ readonly name: string;
11319
12026
  readonly isContra: boolean;
11320
12027
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11321
12028
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11322
12029
  } | null, "personal_expenses", ":", {
11323
12030
  readonly value: number;
11324
- readonly name: string;
11325
12031
  readonly display_name: string;
12032
+ readonly name: string;
11326
12033
  readonly is_contra: boolean;
11327
12034
  readonly line_items: readonly import("@layerfi/components/utils/schema/utils").LineItemEncoded[];
11328
12035
  readonly percent_delta?: string | undefined;
@@ -11357,16 +12064,16 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
11357
12064
  readonly endDate: Date;
11358
12065
  readonly income: {
11359
12066
  readonly value: number;
11360
- readonly name: string;
11361
12067
  readonly displayName: string;
12068
+ readonly name: string;
11362
12069
  readonly isContra: boolean;
11363
12070
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11364
12071
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11365
12072
  };
11366
12073
  readonly costOfGoodsSold: {
11367
12074
  readonly value: number;
11368
- readonly name: string;
11369
12075
  readonly displayName: string;
12076
+ readonly name: string;
11370
12077
  readonly isContra: boolean;
11371
12078
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11372
12079
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -11375,8 +12082,8 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
11375
12082
  readonly profitBeforeTaxes: number;
11376
12083
  readonly taxes: {
11377
12084
  readonly value: number;
11378
- readonly name: string;
11379
12085
  readonly displayName: string;
12086
+ readonly name: string;
11380
12087
  readonly isContra: boolean;
11381
12088
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11382
12089
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -11385,16 +12092,16 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
11385
12092
  readonly fullyCategorized: boolean;
11386
12093
  readonly uncategorizedInflows?: {
11387
12094
  readonly value: number;
11388
- readonly name: string;
11389
12095
  readonly displayName: string;
12096
+ readonly name: string;
11390
12097
  readonly isContra: boolean;
11391
12098
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11392
12099
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11393
12100
  } | undefined;
11394
12101
  readonly uncategorizedOutflows?: {
11395
12102
  readonly value: number;
11396
- readonly name: string;
11397
12103
  readonly displayName: string;
12104
+ readonly name: string;
11398
12105
  readonly isContra: boolean;
11399
12106
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11400
12107
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -11404,32 +12111,32 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
11404
12111
  readonly netProfitPercentDelta: import("effect/BigDecimal").BigDecimal | undefined;
11405
12112
  readonly expenses: {
11406
12113
  readonly value: number;
11407
- readonly name: string;
11408
12114
  readonly displayName: string;
12115
+ readonly name: string;
11409
12116
  readonly isContra: boolean;
11410
12117
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11411
12118
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11412
12119
  };
11413
12120
  readonly customLineItems: {
11414
12121
  readonly value: number;
11415
- readonly name: string;
11416
12122
  readonly displayName: string;
12123
+ readonly name: string;
11417
12124
  readonly isContra: boolean;
11418
12125
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11419
12126
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11420
12127
  } | null;
11421
12128
  readonly otherOutflows: {
11422
12129
  readonly value: number;
11423
- readonly name: string;
11424
12130
  readonly displayName: string;
12131
+ readonly name: string;
11425
12132
  readonly isContra: boolean;
11426
12133
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11427
12134
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11428
12135
  } | null;
11429
12136
  readonly personalExpenses: {
11430
12137
  readonly value: number;
11431
- readonly name: string;
11432
12138
  readonly displayName: string;
12139
+ readonly name: string;
11433
12140
  readonly isContra: boolean;
11434
12141
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11435
12142
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -11504,8 +12211,8 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
11504
12211
  readonly account: {
11505
12212
  readonly id: string;
11506
12213
  readonly name: string;
11507
- readonly normality: string;
11508
12214
  readonly stableName: string;
12215
+ readonly normality: string;
11509
12216
  readonly accountType: {
11510
12217
  readonly value: string;
11511
12218
  readonly displayName: string;
@@ -11912,16 +12619,16 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
11912
12619
  readonly endDate: Date;
11913
12620
  readonly income: {
11914
12621
  readonly value: number;
11915
- readonly name: string;
11916
12622
  readonly displayName: string;
12623
+ readonly name: string;
11917
12624
  readonly isContra: boolean;
11918
12625
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11919
12626
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11920
12627
  };
11921
12628
  readonly costOfGoodsSold: {
11922
12629
  readonly value: number;
11923
- readonly name: string;
11924
12630
  readonly displayName: string;
12631
+ readonly name: string;
11925
12632
  readonly isContra: boolean;
11926
12633
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11927
12634
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -11930,8 +12637,8 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
11930
12637
  readonly profitBeforeTaxes: number;
11931
12638
  readonly taxes: {
11932
12639
  readonly value: number;
11933
- readonly name: string;
11934
12640
  readonly displayName: string;
12641
+ readonly name: string;
11935
12642
  readonly isContra: boolean;
11936
12643
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11937
12644
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -11940,16 +12647,16 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
11940
12647
  readonly fullyCategorized: boolean;
11941
12648
  readonly uncategorizedInflows?: {
11942
12649
  readonly value: number;
11943
- readonly name: string;
11944
12650
  readonly displayName: string;
12651
+ readonly name: string;
11945
12652
  readonly isContra: boolean;
11946
12653
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11947
12654
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11948
12655
  } | undefined;
11949
12656
  readonly uncategorizedOutflows?: {
11950
12657
  readonly value: number;
11951
- readonly name: string;
11952
12658
  readonly displayName: string;
12659
+ readonly name: string;
11953
12660
  readonly isContra: boolean;
11954
12661
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11955
12662
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -11959,32 +12666,32 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
11959
12666
  readonly netProfitPercentDelta: import("effect/BigDecimal").BigDecimal | undefined;
11960
12667
  readonly expenses: {
11961
12668
  readonly value: number;
11962
- readonly name: string;
11963
12669
  readonly displayName: string;
12670
+ readonly name: string;
11964
12671
  readonly isContra: boolean;
11965
12672
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11966
12673
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11967
12674
  };
11968
12675
  readonly customLineItems: {
11969
12676
  readonly value: number;
11970
- readonly name: string;
11971
12677
  readonly displayName: string;
12678
+ readonly name: string;
11972
12679
  readonly isContra: boolean;
11973
12680
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11974
12681
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11975
12682
  } | null;
11976
12683
  readonly otherOutflows: {
11977
12684
  readonly value: number;
11978
- readonly name: string;
11979
12685
  readonly displayName: string;
12686
+ readonly name: string;
11980
12687
  readonly isContra: boolean;
11981
12688
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11982
12689
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11983
12690
  } | null;
11984
12691
  readonly personalExpenses: {
11985
12692
  readonly value: number;
11986
- readonly name: string;
11987
12693
  readonly displayName: string;
12694
+ readonly name: string;
11988
12695
  readonly isContra: boolean;
11989
12696
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
11990
12697
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -11999,16 +12706,16 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
11999
12706
  readonly endDate: Date;
12000
12707
  readonly income: {
12001
12708
  readonly value: number;
12002
- readonly name: string;
12003
12709
  readonly displayName: string;
12710
+ readonly name: string;
12004
12711
  readonly isContra: boolean;
12005
12712
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
12006
12713
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
12007
12714
  };
12008
12715
  readonly costOfGoodsSold: {
12009
12716
  readonly value: number;
12010
- readonly name: string;
12011
12717
  readonly displayName: string;
12718
+ readonly name: string;
12012
12719
  readonly isContra: boolean;
12013
12720
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
12014
12721
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -12017,8 +12724,8 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
12017
12724
  readonly profitBeforeTaxes: number;
12018
12725
  readonly taxes: {
12019
12726
  readonly value: number;
12020
- readonly name: string;
12021
12727
  readonly displayName: string;
12728
+ readonly name: string;
12022
12729
  readonly isContra: boolean;
12023
12730
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
12024
12731
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -12027,16 +12734,16 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
12027
12734
  readonly fullyCategorized: boolean;
12028
12735
  readonly uncategorizedInflows?: {
12029
12736
  readonly value: number;
12030
- readonly name: string;
12031
12737
  readonly displayName: string;
12738
+ readonly name: string;
12032
12739
  readonly isContra: boolean;
12033
12740
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
12034
12741
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
12035
12742
  } | undefined;
12036
12743
  readonly uncategorizedOutflows?: {
12037
12744
  readonly value: number;
12038
- readonly name: string;
12039
12745
  readonly displayName: string;
12746
+ readonly name: string;
12040
12747
  readonly isContra: boolean;
12041
12748
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
12042
12749
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -12046,32 +12753,32 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
12046
12753
  readonly netProfitPercentDelta: import("effect/BigDecimal").BigDecimal | undefined;
12047
12754
  readonly expenses: {
12048
12755
  readonly value: number;
12049
- readonly name: string;
12050
12756
  readonly displayName: string;
12757
+ readonly name: string;
12051
12758
  readonly isContra: boolean;
12052
12759
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
12053
12760
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
12054
12761
  };
12055
12762
  readonly customLineItems: {
12056
12763
  readonly value: number;
12057
- readonly name: string;
12058
12764
  readonly displayName: string;
12765
+ readonly name: string;
12059
12766
  readonly isContra: boolean;
12060
12767
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
12061
12768
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
12062
12769
  } | null;
12063
12770
  readonly otherOutflows: {
12064
12771
  readonly value: number;
12065
- readonly name: string;
12066
12772
  readonly displayName: string;
12773
+ readonly name: string;
12067
12774
  readonly isContra: boolean;
12068
12775
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
12069
12776
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
12070
12777
  } | null;
12071
12778
  readonly personalExpenses: {
12072
12779
  readonly value: number;
12073
- readonly name: string;
12074
12780
  readonly displayName: string;
12781
+ readonly name: string;
12075
12782
  readonly isContra: boolean;
12076
12783
  readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
12077
12784
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
@@ -12749,7 +13456,7 @@ declare module '@layerfi/components/index' {
12749
13456
  export { unstable_BillsView } from '@layerfi/components/views/Bills';
12750
13457
  export { Reports } from '@layerfi/components/views/Reports/index';
12751
13458
  export { ProfitAndLossView } from '@layerfi/components/components/ProfitAndLossView/index';
12752
- export { unstable_Invoices } from '@layerfi/components/components/Invoices/Invoices';
13459
+ export { Invoices } from '@layerfi/components/components/Invoices/Invoices';
12753
13460
  export { useLayerContext } from '@layerfi/components/contexts/LayerContext/index';
12754
13461
  export { useBankTransactionsContext } from '@layerfi/components/contexts/BankTransactionsContext/index';
12755
13462
  export { BankTransactionsProvider } from '@layerfi/components/providers/BankTransactionsProvider/index';
@@ -13128,6 +13835,55 @@ declare module '@layerfi/components/providers/ReportsModeStoreProvider/ReportsMo
13128
13835
  declare module '@layerfi/components/public/styles/publicClassname' {
13129
13836
  export const PUBLIC_CLASSNAME = "Layer__Public";
13130
13837
 
13838
+ }
13839
+ declare module '@layerfi/components/schemas/accountIdentifier' {
13840
+ import { Schema } from 'effect';
13841
+ export const AccountIdentifierSchema: Schema.Union<[Schema.Struct<{
13842
+ type: Schema.Literal<["StableName"]>;
13843
+ stableName: Schema.PropertySignature<":", string, "stable_name", ":", string, false, never>;
13844
+ }>, Schema.Struct<{
13845
+ type: Schema.Literal<["AccountId"]>;
13846
+ id: typeof Schema.String;
13847
+ }>]>;
13848
+ export type AccountIdentifier = typeof AccountIdentifierSchema.Type;
13849
+ export type AccountIdentifierEncoded = typeof AccountIdentifierSchema.Encoded;
13850
+ export const makeStableName: (stableName: string) => {
13851
+ readonly type: "StableName";
13852
+ readonly stableName: string;
13853
+ };
13854
+ export const makeAccountId: (id: string) => {
13855
+ readonly id: string;
13856
+ readonly type: "AccountId";
13857
+ };
13858
+ export const AccountIdentifierEquivalence: import("effect/Equivalence").Equivalence<{
13859
+ readonly type: "StableName";
13860
+ readonly stableName: string;
13861
+ } | {
13862
+ readonly id: string;
13863
+ readonly type: "AccountId";
13864
+ }>;
13865
+
13866
+ }
13867
+ declare module '@layerfi/components/schemas/accountingConfiguration' {
13868
+ import { Schema } from 'effect';
13869
+ export enum ReportingBasis {
13870
+ Accrual = "ACCRUAL",
13871
+ Cash = "CASH",
13872
+ DeprecatedCash = "DEPRECATED_CASH",
13873
+ MoneyMovementOnly = "MONEY_MOVEMENT_ONLY"
13874
+ }
13875
+ export const ReportingBasisSchema: Schema.Enums<typeof ReportingBasis>;
13876
+ export enum AccountingConfigurationCategoryListMode {
13877
+ AllAccounts = "ALL_ACCOUNTS",
13878
+ RevenuesAndExpenses = "REVENUES_AND_EXPENSES"
13879
+ }
13880
+ export const CategoryListModeSchema: Schema.Enums<typeof AccountingConfigurationCategoryListMode>;
13881
+ export const AccountingConfigurationSchema: Schema.Struct<{
13882
+ id: typeof Schema.UUID;
13883
+ enableAccountNumbers: Schema.PropertySignature<":", boolean, "enable_account_numbers", ":", boolean, false, never>;
13884
+ }>;
13885
+ export type AccountingConfigurationSchemaType = typeof AccountingConfigurationSchema.Type;
13886
+
13131
13887
  }
13132
13888
  declare module '@layerfi/components/schemas/customer' {
13133
13889
  import { Schema } from 'effect';
@@ -13301,21 +14057,6 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
13301
14057
  value: Schema.Enums<typeof LedgerAccountSubtype>;
13302
14058
  displayName: Schema.PropertySignature<":", string, "display_name", ":", string, false, never>;
13303
14059
  }>;
13304
- export const AccountIdSchema: Schema.Struct<{
13305
- type: Schema.Literal<["AccountId"]>;
13306
- id: typeof Schema.String;
13307
- }>;
13308
- export const AccountStableNameSchema: Schema.Struct<{
13309
- type: Schema.Literal<["StableName"]>;
13310
- stableName: Schema.PropertySignature<":", string, "stable_name", ":", string, false, never>;
13311
- }>;
13312
- export const AccountIdentifierSchema: Schema.Union<[Schema.Struct<{
13313
- type: Schema.Literal<["AccountId"]>;
13314
- id: typeof Schema.String;
13315
- }>, Schema.Struct<{
13316
- type: Schema.Literal<["StableName"]>;
13317
- stableName: Schema.PropertySignature<":", string, "stable_name", ":", string, false, never>;
13318
- }>]>;
13319
14060
  export const LedgerAccountSchema: Schema.Struct<{
13320
14061
  id: typeof Schema.String;
13321
14062
  name: typeof Schema.String;
@@ -13336,12 +14077,12 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
13336
14077
  readonly display_name: string;
13337
14078
  }, false, never>;
13338
14079
  }>;
13339
- export type AccountIdentifier = typeof AccountIdentifierSchema.Type;
13340
14080
  export type LedgerAccount = typeof LedgerAccountSchema.Type;
13341
14081
  const nestedLedgerAccountFields: {
13342
14082
  accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
13343
14083
  name: typeof Schema.String;
13344
14084
  stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
14085
+ accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
13345
14086
  normality: Schema.Enums<typeof LedgerEntryDirection>;
13346
14087
  accountType: Schema.PropertySignature<":", {
13347
14088
  readonly value: LedgerAccountType;
@@ -13371,6 +14112,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
13371
14112
  accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
13372
14113
  name: typeof Schema.String;
13373
14114
  stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
14115
+ accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
13374
14116
  normality: Schema.Enums<typeof LedgerEntryDirection>;
13375
14117
  accountType: Schema.PropertySignature<":", {
13376
14118
  readonly value: LedgerAccountType;
@@ -13393,6 +14135,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
13393
14135
  accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
13394
14136
  name: typeof Schema.String;
13395
14137
  stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
14138
+ accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
13396
14139
  normality: Schema.Enums<typeof LedgerEntryDirection>;
13397
14140
  accountType: Schema.PropertySignature<":", {
13398
14141
  readonly value: LedgerAccountType;
@@ -13415,11 +14158,33 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
13415
14158
  export interface NestedChartAccountEncoded extends Schema.Struct.Encoded<typeof nestedChartAccountFields> {
13416
14159
  readonly sub_accounts: ReadonlyArray<NestedChartAccountEncoded>;
13417
14160
  }
14161
+ export const SingleChartAccountSchema: Schema.Struct<{
14162
+ accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
14163
+ name: typeof Schema.String;
14164
+ stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
14165
+ accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
14166
+ normality: Schema.Enums<typeof LedgerEntryDirection>;
14167
+ accountType: Schema.PropertySignature<":", {
14168
+ readonly value: LedgerAccountType;
14169
+ readonly displayName: string;
14170
+ }, "account_type", ":", {
14171
+ readonly value: LedgerAccountType;
14172
+ readonly display_name: string;
14173
+ }, false, never>;
14174
+ accountSubtype: Schema.PropertySignature<":", {
14175
+ readonly value: LedgerAccountSubtype;
14176
+ readonly displayName: string;
14177
+ }, "account_subtype", ":", {
14178
+ readonly value: LedgerAccountSubtype;
14179
+ readonly display_name: string;
14180
+ }, false, never>;
14181
+ }>;
13418
14182
  export const NestedChartAccountSchema: Schema.Struct<{
13419
14183
  subAccounts: Schema.PropertySignature<":", readonly NestedChartAccount[], "sub_accounts", ":", readonly NestedChartAccountEncoded[], false, never>;
13420
14184
  accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
13421
14185
  name: typeof Schema.String;
13422
14186
  stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
14187
+ accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
13423
14188
  normality: Schema.Enums<typeof LedgerEntryDirection>;
13424
14189
  accountType: Schema.PropertySignature<":", {
13425
14190
  readonly value: LedgerAccountType;
@@ -13438,12 +14203,15 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
13438
14203
  }>;
13439
14204
  export type NestedLedgerAccountType = typeof NestedLedgerAccountSchema.Type;
13440
14205
  export type NestedChartAccountType = typeof NestedChartAccountSchema.Type;
14206
+ export type SingleChartAccountType = typeof SingleChartAccountSchema.Type;
14207
+ export type SingleChartAccountEncodedType = typeof SingleChartAccountSchema.Encoded;
13441
14208
  export const ChartOfAccountsSchema: Schema.Struct<{
13442
14209
  accounts: Schema.Array$<Schema.Struct<{
13443
14210
  subAccounts: Schema.PropertySignature<":", readonly NestedChartAccount[], "sub_accounts", ":", readonly NestedChartAccountEncoded[], false, never>;
13444
14211
  accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
13445
14212
  name: typeof Schema.String;
13446
14213
  stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
14214
+ accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
13447
14215
  normality: Schema.Enums<typeof LedgerEntryDirection>;
13448
14216
  accountType: Schema.PropertySignature<":", {
13449
14217
  readonly value: LedgerAccountType;
@@ -13467,6 +14235,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
13467
14235
  accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
13468
14236
  name: typeof Schema.String;
13469
14237
  stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
14238
+ accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
13470
14239
  normality: Schema.Enums<typeof LedgerEntryDirection>;
13471
14240
  accountType: Schema.PropertySignature<":", {
13472
14241
  readonly value: LedgerAccountType;
@@ -13486,6 +14255,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
13486
14255
  isDeletable: Schema.PropertySignature<":", boolean | null, "is_deletable", ":", boolean | null, false, never>;
13487
14256
  }>>;
13488
14257
  }>;
14258
+ export type LedgerBalancesSchemaType = typeof LedgerBalancesSchema.Type;
13489
14259
  export {};
13490
14260
 
13491
14261
  }
@@ -13987,8 +14757,8 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
13987
14757
  readonly account: {
13988
14758
  readonly id: string;
13989
14759
  readonly name: string;
13990
- readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
13991
14760
  readonly stableName: string | null;
14761
+ readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
13992
14762
  readonly accountType: {
13993
14763
  readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
13994
14764
  readonly displayName: string;
@@ -14036,8 +14806,8 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
14036
14806
  readonly account: {
14037
14807
  readonly id: string;
14038
14808
  readonly name: string;
14039
- readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
14040
14809
  readonly stable_name: string | null;
14810
+ readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
14041
14811
  readonly account_type: {
14042
14812
  readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
14043
14813
  readonly display_name: string;
@@ -14420,6 +15190,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
14420
15190
  accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
14421
15191
  name: typeof Schema.String;
14422
15192
  stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
15193
+ accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
14423
15194
  normality: Schema.Enums<typeof import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection>;
14424
15195
  accountType: Schema.PropertySignature<":", {
14425
15196
  readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
@@ -14484,8 +15255,8 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
14484
15255
  readonly account: {
14485
15256
  readonly id: string;
14486
15257
  readonly name: string;
14487
- readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
14488
15258
  readonly stableName: string | null;
15259
+ readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
14489
15260
  readonly accountType: {
14490
15261
  readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
14491
15262
  readonly displayName: string;
@@ -14533,8 +15304,8 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
14533
15304
  readonly account: {
14534
15305
  readonly id: string;
14535
15306
  readonly name: string;
14536
- readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
14537
15307
  readonly stable_name: string | null;
15308
+ readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
14538
15309
  readonly account_type: {
14539
15310
  readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
14540
15311
  readonly display_name: string;
@@ -16640,7 +17411,7 @@ declare module '@layerfi/components/types/bank_transactions' {
16640
17411
  import { MatchDetailsType } from '@layerfi/components/schemas/match';
16641
17412
  import { Categorization, CategorizationStatus, Category } from '@layerfi/components/types/categories';
16642
17413
  import { S3PresignedUrl } from '@layerfi/components/types/general';
16643
- import type { TransactionTag } from '@layerfi/components/types/tags';
17414
+ import type { TransactionTagEncoded } from '@layerfi/components/features/tags/tagSchemas';
16644
17415
  export enum Direction {
16645
17416
  CREDIT = "CREDIT",
16646
17417
  DEBIT = "DEBIT"
@@ -16685,7 +17456,7 @@ declare module '@layerfi/components/types/bank_transactions' {
16685
17456
  suggested_matches?: SuggestedMatch[];
16686
17457
  match?: BankTransactionMatch;
16687
17458
  document_ids: string[];
16688
- transaction_tags: ReadonlyArray<TransactionTag>;
17459
+ transaction_tags: ReadonlyArray<TransactionTagEncoded>;
16689
17460
  customer: typeof CustomerSchema.Encoded | null;
16690
17461
  vendor: typeof VendorSchema.Encoded | null;
16691
17462
  }
@@ -16711,7 +17482,7 @@ declare module '@layerfi/components/types/bank_transactions' {
16711
17482
 
16712
17483
  }
16713
17484
  declare module '@layerfi/components/types/bills' {
16714
- import { TransactionTag } from '@layerfi/components/types/tags';
17485
+ import type { TransactionTagEncoded } from '@layerfi/components/features/tags/tagSchemas';
16715
17486
  import { Vendor } from '@layerfi/components/types/vendors';
16716
17487
  const UNPAID_STATUS_MAP: {
16717
17488
  readonly SENT: "SENT";
@@ -16754,7 +17525,7 @@ declare module '@layerfi/components/types/bills' {
16754
17525
  subtotal: number;
16755
17526
  terms: BillTerm;
16756
17527
  total_amount: number;
16757
- transaction_tags: TransactionTag[];
17528
+ transaction_tags: TransactionTagEncoded[];
16758
17529
  type: 'Bill';
16759
17530
  updated_at: string;
16760
17531
  voided_at: string | null;
@@ -16782,7 +17553,7 @@ declare module '@layerfi/components/types/bills' {
16782
17553
  bill_id: string;
16783
17554
  payment_id: string;
16784
17555
  amount: number;
16785
- transaction_tags: TransactionTag[];
17556
+ transaction_tags: TransactionTagEncoded[];
16786
17557
  };
16787
17558
  export type SalesTax = {
16788
17559
  amount: number;
@@ -16855,6 +17626,12 @@ declare module '@layerfi/components/types/business' {
16855
17626
 
16856
17627
  }
16857
17628
  declare module '@layerfi/components/types/categories' {
17629
+ export enum CategoriesListMode {
17630
+ All = "ALL",
17631
+ Expenses = "EXPENSES",
17632
+ Revenue = "REVENUE",
17633
+ Default = "DEFAULT"
17634
+ }
16858
17635
  export enum CategorizationStatus {
16859
17636
  PENDING = "PENDING",
16860
17637
  READY_FOR_INPUT = "READY_FOR_INPUT",
@@ -16884,6 +17661,9 @@ declare module '@layerfi/components/types/categories' {
16884
17661
  id: string;
16885
17662
  } & BaseCategory;
16886
17663
  export type Category = AccountNestedCategory | OptionalAccountNestedCategory | ExclusionNestedCategory;
17664
+ export function isAccountNestedCategory(v: Category): v is AccountNestedCategory;
17665
+ export function isOptionalAccountNestedCategory(v: Category): v is OptionalAccountNestedCategory;
17666
+ export function isExclusionNestedCategory(v: Category): v is ExclusionNestedCategory;
16887
17667
  export enum CategorizationType {
16888
17668
  AUTO = "AUTO",
16889
17669
  ASK_FROM_SUGGESTIONS = "ASK_FROM_SUGGESTIONS",
@@ -16927,62 +17707,13 @@ declare module '@layerfi/components/types/categories' {
16927
17707
  }
16928
17708
  declare module '@layerfi/components/types/chart_of_accounts' {
16929
17709
  import { Direction } from '@layerfi/components/types/bank_transactions';
16930
- import { Category } from '@layerfi/components/types/categories';
16931
- export interface ChartOfAccounts {
16932
- type: string;
16933
- accounts: Account[];
16934
- entries?: unknown[];
16935
- }
16936
- export interface AccountEntry {
16937
- account: Account;
16938
- amount?: number;
16939
- createdAt?: string;
16940
- direction: Direction;
16941
- entry_at?: string;
16942
- entry_id?: string;
16943
- id?: string;
16944
- }
16945
- export interface Account {
16946
- id: string;
16947
- number: number;
16948
- pnlCategory?: Category;
16949
- headerForPnlCategory?: Category;
16950
- name: string;
16951
- accountStableName?: string;
16952
- description?: string;
16953
- scheduleCLine?: string;
16954
- scheduleCLineDescription?: string;
16955
- sub_accounts?: Account[];
16956
- hidePnl: boolean;
16957
- showInPnlIfEmpty: boolean;
16958
- normality: Direction;
16959
- balance: number;
16960
- selfOnlyBalance: number;
16961
- entries?: AccountEntry[];
16962
- }
16963
- export type ChartWithBalances = {
16964
- accounts: LedgerAccountBalance[];
16965
- };
16966
- export type ApiAccountType = {
16967
- value: string;
16968
- display_name: string;
16969
- };
16970
- export type LedgerAccountBalance = {
16971
- id: string;
16972
- name: string;
16973
- stable_name: string;
16974
- account_type: ApiAccountType;
16975
- account_subtype?: ApiAccountType;
16976
- normality: Direction;
16977
- balance: number;
16978
- is_deletable: boolean;
16979
- sub_accounts: LedgerAccountBalance[];
16980
- };
16981
- export type AugmentedLedgerAccountBalance = LedgerAccountBalance & {
17710
+ import { NestedLedgerAccountType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
17711
+ export type AugmentedLedgerAccountBalance = NestedLedgerAccountType & {
16982
17712
  isMatching?: true;
16983
17713
  };
16984
17714
  export type NewAccount = {
16985
17715
  name: string;
17716
+ account_number?: string;
16986
17717
  normality: Direction;
16987
17718
  parent_id?: {
16988
17719
  type: 'AccountId';
@@ -16997,6 +17728,7 @@ declare module '@layerfi/components/types/chart_of_accounts' {
16997
17728
  stable_name: string;
16998
17729
  };
16999
17730
  name: string;
17731
+ account_number?: string;
17000
17732
  normality: Direction;
17001
17733
  parent_id?: {
17002
17734
  type: 'AccountId';
@@ -17017,7 +17749,7 @@ declare module '@layerfi/components/types/chart_of_accounts' {
17017
17749
  Root = "Root",
17018
17750
  Parent = "Parent"
17019
17751
  }
17020
- export type LedgerAccountBalanceWithNodeType = LedgerAccountBalance & {
17752
+ export type LedgerAccountBalanceWithNodeType = NestedLedgerAccountType & {
17021
17753
  nodeType: LedgerAccountNodeType;
17022
17754
  };
17023
17755
 
@@ -17053,8 +17785,6 @@ declare module '@layerfi/components/types/general' {
17053
17785
  BUSINESS = "BUSINESS",
17054
17786
  BALANCE_SHEET = "BALANCE_SHEET",
17055
17787
  BANK_TRANSACTIONS = "BANK_TRANSACTIONS",
17056
- CHART_OF_ACCOUNTS = "CHART_OF_ACCOUNTS",
17057
- JOURNAL = "JOURNAL",
17058
17788
  BILLS = "BILLS",
17059
17789
  LEDGER_ACCOUNTS = "LEDGER_ACCOUNTS",
17060
17790
  LINKED_ACCOUNTS = "LINKED_ACCOUNTS",
@@ -17064,11 +17794,10 @@ declare module '@layerfi/components/types/general' {
17064
17794
 
17065
17795
  }
17066
17796
  declare module '@layerfi/components/types/journal' {
17797
+ import type { TransactionTagEncoded } from '@layerfi/components/features/tags/tagSchemas';
17067
17798
  import { LedgerEntrySourceType } from '@layerfi/components/schemas/generalLedger/ledgerEntrySource';
17068
- import { Account } from '@layerfi/components/types';
17069
- import { Direction } from '@layerfi/components/types/bank_transactions';
17799
+ import { LedgerEntryDirection, SingleChartAccountEncodedType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
17070
17800
  import { AccountIdentifierPayloadObject } from '@layerfi/components/types/categories';
17071
- import type { TransactionTag } from '@layerfi/components/types/tags';
17072
17801
  export interface JournalEntry {
17073
17802
  id: string;
17074
17803
  business_id: string;
@@ -17081,14 +17810,14 @@ declare module '@layerfi/components/types/journal' {
17081
17810
  reversal_id: string | null;
17082
17811
  line_items: JournalEntryLine[];
17083
17812
  source?: LedgerEntrySourceType;
17084
- transaction_tags: ReadonlyArray<TransactionTag>;
17813
+ transaction_tags: ReadonlyArray<TransactionTagEncoded>;
17085
17814
  }
17086
17815
  export interface JournalEntryLine {
17087
17816
  id: string;
17088
17817
  entry_id: string;
17089
- account: Account;
17818
+ account: SingleChartAccountEncodedType;
17090
17819
  amount: number;
17091
- direction: Direction;
17820
+ direction: LedgerEntryDirection;
17092
17821
  entry_at: string;
17093
17822
  createdAt: string;
17094
17823
  }
@@ -17101,7 +17830,7 @@ declare module '@layerfi/components/types/journal' {
17101
17830
  export type NewApiJournalEntryLineItem = {
17102
17831
  account_identifier: AccountIdentifierPayloadObject;
17103
17832
  amount: number;
17104
- direction: Direction;
17833
+ direction: LedgerEntryDirection;
17105
17834
  };
17106
17835
  export type NewFormJournalEntry = {
17107
17836
  entry_at: string;
@@ -17112,7 +17841,7 @@ declare module '@layerfi/components/types/journal' {
17112
17841
  export type JournalEntryLineItem = {
17113
17842
  account_identifier: {
17114
17843
  type: string;
17115
- stable_name: string;
17844
+ stable_name: string | null;
17116
17845
  id: string;
17117
17846
  name: string;
17118
17847
  subType: {
@@ -17121,7 +17850,23 @@ declare module '@layerfi/components/types/journal' {
17121
17850
  } | undefined;
17122
17851
  };
17123
17852
  amount: number;
17124
- direction: Direction;
17853
+ direction: LedgerEntryDirection;
17854
+ };
17855
+ export type ApiAccountType = {
17856
+ value: string;
17857
+ display_name: string;
17858
+ };
17859
+ export type LedgerAccountBalance = {
17860
+ id: string;
17861
+ name: string;
17862
+ stable_name: string;
17863
+ account_number: string | null;
17864
+ account_type: ApiAccountType;
17865
+ account_subtype?: ApiAccountType;
17866
+ normality: LedgerEntryDirection;
17867
+ balance: number;
17868
+ is_deletable: boolean;
17869
+ sub_accounts: LedgerAccountBalance[];
17125
17870
  };
17126
17871
 
17127
17872
  }
@@ -17129,6 +17874,7 @@ declare module '@layerfi/components/types/layer_context' {
17129
17874
  import { ToastProps } from '@layerfi/components/components/Toast/Toast';
17130
17875
  import { LayerError } from '@layerfi/components/models/ErrorHandler';
17131
17876
  import { EventCallbacks } from '@layerfi/components/providers/LayerProvider/LayerProvider';
17877
+ import { AccountingConfigurationSchemaType } from '@layerfi/components/schemas/accountingConfiguration';
17132
17878
  import { Business } from '@layerfi/components/types';
17133
17879
  import { DataModel } from '@layerfi/components/types/general';
17134
17880
  export type LayerContextValues = {
@@ -17141,6 +17887,7 @@ declare module '@layerfi/components/types/layer_context' {
17141
17887
  isExiting: boolean;
17142
17888
  })[];
17143
17889
  eventCallbacks?: EventCallbacks;
17890
+ accountingConfiguration?: AccountingConfigurationSchemaType;
17144
17891
  };
17145
17892
  export type LayerContextHelpers = {
17146
17893
  getColor: (shade: number) => ColorsPaletteOption | undefined;
@@ -17699,17 +18446,6 @@ declare module '@layerfi/components/types/table' {
17699
18446
 
17700
18447
  }
17701
18448
  declare module '@layerfi/components/types/tags' {
17702
- export type TransactionTag = {
17703
- id: string;
17704
- key: string;
17705
- value: string;
17706
- created_at: string;
17707
- updated_at: string;
17708
- deleted_at?: string;
17709
- _local?: {
17710
- isOptimistic: boolean;
17711
- };
17712
- };
17713
18449
  export type TagFilterInput = {
17714
18450
  tagKey: string;
17715
18451
  tagValues: string[];
@@ -17836,7 +18572,7 @@ declare module '@layerfi/components/types' {
17836
18572
  export { StatementOfCashFlow } from '@layerfi/components/types/statement_of_cash_flow';
17837
18573
  export { Direction, BankTransaction, DisplayState, SuggestedMatch, BankTransactionMatch, } from '@layerfi/components/types/bank_transactions';
17838
18574
  export { CategorizationStatus, Category, CategorizationType, AutoCategorization, SuggestedCategorization, SingleCategoryUpdate, SplitCategoryUpdate, CategoryUpdate, } from '@layerfi/components/types/categories';
17839
- export { ChartOfAccounts, Account, NewAccount, EditAccount, NewChildAccount, } from '@layerfi/components/types/chart_of_accounts';
18575
+ export { NewAccount, EditAccount, NewChildAccount, } from '@layerfi/components/types/chart_of_accounts';
17840
18576
  export { LedgerAccountLineItems as LedgerAccounts, LedgerAccountLineItem, LedgerAccountsAccount, LedgerAccountsEntry, } from '@layerfi/components/types/ledger_accounts';
17841
18577
  export { SortDirection } from '@layerfi/components/types/general';
17842
18578
  export { Business } from '@layerfi/components/types/business';
@@ -18080,10 +18816,6 @@ declare module '@layerfi/components/utils/format' {
18080
18816
  declare module '@layerfi/components/utils/helpers' {
18081
18817
  export const range: (start: number, end: number) => number[];
18082
18818
  export const sleep: (time: number) => Promise<unknown>;
18083
- /**
18084
- * Convert the account name into stable_name
18085
- */
18086
- export const convertToStableName: (name: string) => string;
18087
18819
 
18088
18820
  }
18089
18821
  declare module '@layerfi/components/utils/journal' {