@layerfi/components 0.1.102-alpha.4 → 0.1.102-alpha.6

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
@@ -8,6 +8,10 @@ declare module '@layerfi/components/api/layer/authenticated_http' {
8
8
  params?: Params;
9
9
  body?: Body;
10
10
  }) => Promise<Return>;
11
+ export const patch: <Return extends Record<string, unknown> = Record<string, unknown>, Body extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
12
+ params?: Params;
13
+ body?: Body;
14
+ }) => Promise<Return>;
11
15
  export const post: <Return extends Record<string, unknown> = Record<string, unknown>, Body extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
12
16
  params?: Params;
13
17
  body?: Body;
@@ -323,11 +327,6 @@ declare module '@layerfi/components/api/layer/chart_of_accounts' {
323
327
  declare module '@layerfi/components/api/layer/journal' {
324
328
  import { S3PresignedUrl } from '@layerfi/components/types/general';
325
329
  import { JournalEntry } from '@layerfi/components/types/journal';
326
- export const getJournal: (baseUrl: string, accessToken: string | undefined, options?: {
327
- params?: Record<string, string | undefined> | undefined;
328
- } | undefined) => () => Promise<{
329
- data: JournalEntry[];
330
- }>;
331
330
  export const createJournalEntries: (baseUrl: string, accessToken: string | undefined, options?: {
332
331
  params?: Record<string, string | undefined> | undefined;
333
332
  body?: Record<string, unknown> | undefined;
@@ -844,11 +843,6 @@ declare module '@layerfi/components/api/layer' {
844
843
  data?: import("@layerfi/components/types/general").S3PresignedUrl;
845
844
  error?: unknown;
846
845
  }>;
847
- getJournal: (baseUrl: string, accessToken: string | undefined, options?: {
848
- params?: Record<string, string | undefined> | undefined;
849
- } | undefined) => () => Promise<{
850
- data: import("@layerfi/components/types").JournalEntry[];
851
- }>;
852
846
  getJournalEntriesCSV: (baseUrl: string, accessToken: string | undefined, options?: {
853
847
  params?: Record<string, string | undefined> | undefined;
854
848
  } | undefined) => () => Promise<{
@@ -1562,6 +1556,7 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactions
1562
1556
  showDescriptions?: boolean;
1563
1557
  showReceiptUploads?: boolean;
1564
1558
  showTooltips?: boolean;
1559
+ showUploadOptions?: boolean;
1565
1560
  monthlyView?: boolean;
1566
1561
  categorizeView?: boolean;
1567
1562
  mobileComponent?: MobileComponentType;
@@ -1595,12 +1590,13 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactions
1595
1590
  isSyncing?: boolean;
1596
1591
  setDateRange?: (value: DateRange) => void;
1597
1592
  stringOverrides?: BankTransactionsHeaderStringOverrides;
1593
+ withUploadMenu?: boolean;
1598
1594
  }
1599
1595
  export interface BankTransactionsHeaderStringOverrides {
1600
1596
  header?: string;
1601
1597
  downloadButton?: string;
1602
1598
  }
1603
- export const BankTransactionsHeader: ({ shiftStickyHeader, asWidget, categorizedOnly, categorizeView, display, onCategorizationDisplayChange, mobileComponent, withDatePicker, listView, dateRange, setDateRange, stringOverrides, isSyncing, }: BankTransactionsHeaderProps) => import("react/jsx-runtime").JSX.Element;
1599
+ export const BankTransactionsHeader: ({ shiftStickyHeader, asWidget, categorizedOnly, categorizeView, display, onCategorizationDisplayChange, mobileComponent, withDatePicker, listView, dateRange, setDateRange, stringOverrides, isSyncing, withUploadMenu, }: BankTransactionsHeaderProps) => import("react/jsx-runtime").JSX.Element;
1604
1600
 
1605
1601
  }
1606
1602
  declare module '@layerfi/components/components/BankTransactions/BankTransactionsTableEmptyState' {
@@ -1614,6 +1610,17 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactions
1614
1610
  export function BankTransactionsTableEmptyStates({ hasVisibleTransactions, isCategorizationMode, isError, isFiltered, isLoadingWithoutData, }: BankTransactionsTableEmptyStatesProps): import("react/jsx-runtime").JSX.Element | null;
1615
1611
  export {};
1616
1612
 
1613
+ }
1614
+ declare module '@layerfi/components/components/BankTransactions/BankTransactionsUploadMenu' {
1615
+ export const BankTransactionsUploadMenu: () => import("react/jsx-runtime").JSX.Element;
1616
+
1617
+ }
1618
+ declare module '@layerfi/components/components/BankTransactions/BankTransactionsUploadModal/BankTransactionsUploadModal' {
1619
+ import { ModalProps } from '@layerfi/components/components/ui/Modal/Modal';
1620
+ type BankTransactionsUploadModalProps = Pick<ModalProps, 'isOpen' | 'onOpenChange'>;
1621
+ export function BankTransactionsUploadModal({ isOpen, onOpenChange }: BankTransactionsUploadModalProps): import("react/jsx-runtime").JSX.Element;
1622
+ export {};
1623
+
1617
1624
  }
1618
1625
  declare module '@layerfi/components/components/BankTransactions/constants' {
1619
1626
  import { CategorizationStatus } from '@layerfi/components/types';
@@ -1669,6 +1676,21 @@ declare module '@layerfi/components/components/BankTransactionsTable/BankTransac
1669
1676
  export const BankTransactionsTable: ({ categorizeView, editable, isLoading, bankTransactions, containerWidth, removeTransaction, showDescriptions, showReceiptUploads, showTooltips, stringOverrides, isSyncing, page, lastPage, onRefresh, }: BankTransactionsTableProps) => import("react/jsx-runtime").JSX.Element;
1670
1677
  export {};
1671
1678
 
1679
+ }
1680
+ declare module '@layerfi/components/components/BaseConfirmationModal/BaseConfirmationModal' {
1681
+ import { ModalProps } from '@layerfi/components/components/ui/Modal/Modal';
1682
+ import { Awaitable } from '@layerfi/components/types/utility/promises';
1683
+ export type BaseConfirmationModalProps = Pick<ModalProps, 'isOpen' | 'onOpenChange'> & {
1684
+ title: string;
1685
+ description: string;
1686
+ onConfirm: () => Awaitable<void>;
1687
+ confirmLabel?: string;
1688
+ retryLabel?: string;
1689
+ cancelLabel?: string;
1690
+ errorText?: string;
1691
+ };
1692
+ export function BaseConfirmationModal({ isOpen, onOpenChange, title, description, onConfirm, confirmLabel, retryLabel, cancelLabel, errorText, }: BaseConfirmationModalProps): import("react/jsx-runtime").JSX.Element;
1693
+
1672
1694
  }
1673
1695
  declare module '@layerfi/components/components/Bills/BillSummary' {
1674
1696
  import type { Bill } from '@layerfi/components/types';
@@ -1978,7 +2000,7 @@ declare module '@layerfi/components/components/Button/CloseButton' {
1978
2000
 
1979
2001
  }
1980
2002
  declare module '@layerfi/components/components/Button/DownloadButton' {
1981
- import { ButtonProps } from '@layerfi/components/components/Button/Button';
2003
+ import { ButtonProps, ButtonVariant } from '@layerfi/components/components/Button/Button';
1982
2004
  interface DownloadButtonProps {
1983
2005
  onClick?: () => void | Promise<void>;
1984
2006
  iconOnly?: boolean;
@@ -1988,8 +2010,9 @@ declare module '@layerfi/components/components/Button/DownloadButton' {
1988
2010
  retryText?: string;
1989
2011
  errorText?: string;
1990
2012
  tooltip?: ButtonProps['tooltip'];
2013
+ variant?: ButtonVariant;
1991
2014
  }
1992
- export const DownloadButton: ({ iconOnly, onClick, isDownloading, requestFailed, tooltip, text, retryText, errorText, }: DownloadButtonProps) => import("react/jsx-runtime").JSX.Element;
2015
+ export const DownloadButton: ({ iconOnly, onClick, isDownloading, requestFailed, tooltip, text, retryText, errorText, variant, }: DownloadButtonProps) => import("react/jsx-runtime").JSX.Element;
1993
2016
  export {};
1994
2017
 
1995
2018
  }
@@ -2405,8 +2428,9 @@ declare module '@layerfi/components/components/Container/index' {
2405
2428
  declare module '@layerfi/components/components/CsvUpload/CopyTemplateHeadersButtonGroup' {
2406
2429
  interface CopyTemplateHeadersButtonGroupProps {
2407
2430
  headers: Record<string, string>;
2431
+ className?: string;
2408
2432
  }
2409
- export const CopyTemplateHeadersButtonGroup: ({ headers }: CopyTemplateHeadersButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
2433
+ export const CopyTemplateHeadersButtonGroup: ({ headers, className }: CopyTemplateHeadersButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
2410
2434
  export {};
2411
2435
 
2412
2436
  }
@@ -3525,6 +3549,16 @@ declare module '@layerfi/components/components/LinkedAccounts/OpeningBalanceModa
3525
3549
  } | undefined, never>;
3526
3550
  export {};
3527
3551
 
3552
+ }
3553
+ declare module '@layerfi/components/components/LinkedAccounts/UnlinkAccountConfirmationModal/UnlinkAccountConfirmationModal' {
3554
+ import { ModalProps } from '@layerfi/components/components/ui/Modal/Modal';
3555
+ import type { LinkedAccount } from '@layerfi/components/types/linked_accounts';
3556
+ type UnlinkAccountConfirmationModalProps = Pick<ModalProps, 'isOpen' | 'onOpenChange'> & {
3557
+ account: LinkedAccount;
3558
+ };
3559
+ export function UnlinkAccountConfirmationModal({ isOpen, onOpenChange, account }: UnlinkAccountConfirmationModalProps): import("react/jsx-runtime").JSX.Element;
3560
+ export {};
3561
+
3528
3562
  }
3529
3563
  declare module '@layerfi/components/components/LinkedAccounts/index' {
3530
3564
  export { LinkedAccounts } from '@layerfi/components/components/LinkedAccounts/LinkedAccounts';
@@ -4148,42 +4182,6 @@ declare module '@layerfi/components/components/ProgressSteps/ProgressSteps' {
4148
4182
  declare module '@layerfi/components/components/ProjectProfitability/ProjectSelector' {
4149
4183
  export function ProjectSelector(): import("react/jsx-runtime").JSX.Element;
4150
4184
 
4151
- }
4152
- declare module '@layerfi/components/components/RadioButtonGroup/RadioButton' {
4153
- import type { ChangeEvent } from 'react';
4154
- type Props = {
4155
- checked: boolean;
4156
- label: string;
4157
- name: string;
4158
- onChange: (event: ChangeEvent<HTMLInputElement>) => void;
4159
- value: string;
4160
- disabled?: boolean;
4161
- size: 'small' | 'large';
4162
- };
4163
- export const RadioButton: ({ checked, label, name, onChange, value, disabled, size, }: Props) => import("react/jsx-runtime").JSX.Element;
4164
- export {};
4165
-
4166
- }
4167
- declare module '@layerfi/components/components/RadioButtonGroup/RadioButtonGroup' {
4168
- export type RadioButtonLabel = {
4169
- label: string;
4170
- value: string;
4171
- disabled?: boolean;
4172
- };
4173
- type Props = {
4174
- name: string;
4175
- size?: 'small' | 'large';
4176
- buttons: RadioButtonLabel[];
4177
- selected?: RadioButtonLabel['value'];
4178
- onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
4179
- };
4180
- export const RadioButtonGroup: ({ name, size, buttons, onChange, selected, }: Props) => import("react/jsx-runtime").JSX.Element;
4181
- export {};
4182
-
4183
- }
4184
- declare module '@layerfi/components/components/RadioButtonGroup/index' {
4185
- export { RadioButtonGroup } from '@layerfi/components/components/RadioButtonGroup/RadioButtonGroup';
4186
-
4187
4185
  }
4188
4186
  declare module '@layerfi/components/components/SelectVendor/SelectVendor' {
4189
4187
 
@@ -5008,12 +5006,14 @@ declare module '@layerfi/components/components/domain/transactions/searchField/T
5008
5006
  }
5009
5007
  declare module '@layerfi/components/components/ui/Button/Button' {
5010
5008
  import { type ButtonProps } from 'react-aria-components';
5011
- type ButtonVariant = 'solid' | 'ghost';
5012
- type ButtonSize = 'sm' | 'md' | 'lg';
5009
+ type ButtonVariant = 'solid' | 'ghost' | 'outlined';
5010
+ type ButtonSize = 'md';
5013
5011
  const Button: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "className"> & {
5014
5012
  icon?: true;
5013
+ inset?: true;
5015
5014
  size?: ButtonSize;
5016
5015
  variant?: ButtonVariant;
5016
+ persistentBorder?: boolean;
5017
5017
  } & import("react").RefAttributes<HTMLButtonElement>>;
5018
5018
  export { Button };
5019
5019
 
@@ -5045,7 +5045,7 @@ declare module '@layerfi/components/components/ui/DropdownMenu/DropdownMenu' {
5045
5045
  };
5046
5046
  slotProps?: {
5047
5047
  Dialog?: {
5048
- width?: number;
5048
+ width?: number | string;
5049
5049
  };
5050
5050
  };
5051
5051
  }>;
@@ -5067,11 +5067,19 @@ declare module '@layerfi/components/components/ui/Input/Input' {
5067
5067
  import { type ComponentProps } from 'react';
5068
5068
  import { Input as ReactAriaInput } from 'react-aria-components';
5069
5069
  type InputProps = Omit<ComponentProps<typeof ReactAriaInput>, 'className'> & {
5070
- placement?: 'first-within-group';
5070
+ inset?: true;
5071
+ placement?: 'first';
5071
5072
  };
5072
5073
  export const Input: import("react").ForwardRefExoticComponent<Omit<InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
5073
5074
  export {};
5074
5075
 
5076
+ }
5077
+ declare module '@layerfi/components/components/ui/Input/InputGroup' {
5078
+ import { type GroupProps as ReactAriaGroupProps } from 'react-aria-components';
5079
+ export const InputGroup: import("react").ForwardRefExoticComponent<ReactAriaGroupProps & {
5080
+ actionCount?: 1 | 2;
5081
+ } & import("react").RefAttributes<HTMLDivElement>>;
5082
+
5075
5083
  }
5076
5084
  declare module '@layerfi/components/components/ui/ListBox/ListBox' {
5077
5085
  import { type ForwardedRef, type Ref } from 'react';
@@ -5089,7 +5097,7 @@ declare module '@layerfi/components/components/ui/ListBox/ListBox' {
5089
5097
  export const ListBoxSectionHeader: import("react").ForwardRefExoticComponent<Omit<Omit<Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "id" | "slot"> & {
5090
5098
  nonAria?: true;
5091
5099
  } & {
5092
- align?: "center";
5100
+ align?: "center" | "right";
5093
5101
  ellipsis?: true;
5094
5102
  noWrap?: true;
5095
5103
  pb?: import("@layerfi/components/components/ui/sharedUITypes").Spacing;
@@ -5139,29 +5147,36 @@ declare module '@layerfi/components/components/ui/Modal/Modal' {
5139
5147
  const Dialog: import("react").ForwardRefExoticComponent<Omit<DialogProps, "className"> & import("react").RefAttributes<HTMLElement>>;
5140
5148
  type AllowedModalOverlayProps = Pick<ComponentProps<typeof ModalOverlay>, 'isOpen' | 'onOpenChange'>;
5141
5149
  type AllowedInternalModalProps = Pick<ComponentProps<typeof InternalModal>, 'flexBlock' | 'size'>;
5142
- type AllowedDialogProps = Pick<ComponentProps<typeof Dialog>, 'children'>;
5150
+ type AllowedDialogProps = Pick<ComponentProps<typeof Dialog>, 'children' | 'role' | 'aria-label'>;
5143
5151
  export type ModalProps = AllowedModalOverlayProps & AllowedInternalModalProps & AllowedDialogProps;
5144
- export function Modal({ isOpen, size, flexBlock, onOpenChange, children, }: ModalProps): import("react/jsx-runtime").JSX.Element;
5152
+ export function Modal({ isOpen, size, flexBlock, onOpenChange, children, 'aria-label': ariaLabel, role, }: ModalProps): import("react/jsx-runtime").JSX.Element;
5145
5153
  export {};
5146
5154
 
5147
5155
  }
5148
5156
  declare module '@layerfi/components/components/ui/Modal/ModalSlots' {
5149
- import { type PropsWithChildren } from 'react';
5150
- type ModalContextBarProps = {
5157
+ import { type PropsWithChildren, type ReactElement } from 'react';
5158
+ type ModalCloseButtonProps = {
5151
5159
  onClose?: () => void;
5160
+ positionAbsolute?: boolean;
5152
5161
  };
5153
- export function ModalContextBar({ onClose }: ModalContextBarProps): import("react/jsx-runtime").JSX.Element;
5162
+ export const ModalCloseButton: ({ onClose, positionAbsolute }: ModalCloseButtonProps) => import("react/jsx-runtime").JSX.Element;
5163
+ type ModalTitleWithCloseProps = {
5164
+ heading: ReactElement;
5165
+ onClose?: () => void;
5166
+ };
5167
+ export const ModalTitleWithClose: import("react").ForwardRefExoticComponent<ModalTitleWithCloseProps & import("react").RefAttributes<HTMLDivElement>>;
5154
5168
  export const ModalHeading: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("react-aria-components").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>, "className"> & {
5155
5169
  align?: "center";
5156
5170
  pbe?: import("@layerfi/components/components/ui/sharedUITypes").Spacing;
5157
- size?: "2xs" | "xs" | "sm" | "lg";
5171
+ pie?: import("@layerfi/components/components/ui/sharedUITypes").Spacing;
5172
+ size?: "2xs" | "xs" | "sm" | "lg" | "xl";
5158
5173
  variant?: "subtle";
5159
5174
  weight?: "normal" | "bold";
5160
5175
  }, "ref"> & import("react").RefAttributes<HTMLHeadingElement>, "slot" | "level">, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
5161
5176
  export const ModalDescription: import("react").ForwardRefExoticComponent<Omit<Omit<Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "id" | "slot"> & {
5162
5177
  nonAria?: true;
5163
5178
  } & {
5164
- align?: "center";
5179
+ align?: "center" | "right";
5165
5180
  ellipsis?: true;
5166
5181
  noWrap?: true;
5167
5182
  pb?: import("@layerfi/components/components/ui/sharedUITypes").Spacing;
@@ -5206,7 +5221,7 @@ declare module '@layerfi/components/components/ui/SearchField/MinimalSearchField
5206
5221
  }
5207
5222
  declare module '@layerfi/components/components/ui/Square/Square' {
5208
5223
  type SquareProps = {
5209
- size?: 'sm';
5224
+ inset?: true;
5210
5225
  };
5211
5226
  export const Square: import("react").ForwardRefExoticComponent<SquareProps & {
5212
5227
  children?: import("react").ReactNode | undefined;
@@ -5288,7 +5303,8 @@ declare module '@layerfi/components/components/ui/Typography/Heading' {
5288
5303
  type HeadingDataProps = {
5289
5304
  align?: 'center';
5290
5305
  pbe?: Spacing;
5291
- size?: '2xs' | 'xs' | 'sm' | 'lg';
5306
+ pie?: Spacing;
5307
+ size?: '2xs' | 'xs' | 'sm' | 'lg' | 'xl';
5292
5308
  variant?: 'subtle';
5293
5309
  weight?: 'normal' | 'bold';
5294
5310
  };
@@ -5308,7 +5324,7 @@ declare module '@layerfi/components/components/ui/Typography/MoneyText' {
5308
5324
  declare module '@layerfi/components/components/ui/Typography/Text' {
5309
5325
  import type { Spacing } from '@layerfi/components/components/ui/sharedUITypes';
5310
5326
  type TextStyleProps = {
5311
- align?: 'center';
5327
+ align?: 'center' | 'right';
5312
5328
  ellipsis?: true;
5313
5329
  noWrap?: true;
5314
5330
  pb?: Spacing;
@@ -5719,7 +5735,7 @@ declare module '@layerfi/components/contexts/JournalContext/JournalContext' {
5719
5735
  import { useJournal } from '@layerfi/components/hooks/useJournal/index';
5720
5736
  export type JournalContextType = ReturnType<typeof useJournal>;
5721
5737
  export const JournalContext: import("react").Context<{
5722
- data?: import("@layerfi/components/types").JournalEntry[];
5738
+ data?: ReadonlyArray<import("@layerfi/components/types").JournalEntry>;
5723
5739
  isLoading?: boolean;
5724
5740
  isLoadingEntry?: boolean;
5725
5741
  isValidating?: boolean;
@@ -5807,7 +5823,7 @@ declare module '@layerfi/components/contexts/LinkedAccountsContext/LinkedAccount
5807
5823
  updateConnectionStatus: () => void;
5808
5824
  refetchAccounts: () => import("@layerfi/components/types/utility/promises").Awaitable<void>;
5809
5825
  syncAccounts: () => void;
5810
- unlinkAccount: (source: import("@layerfi/components/types/linked_accounts").AccountSource, accountId: string) => void;
5826
+ unlinkAccount: (source: import("@layerfi/components/types/linked_accounts").AccountSource, userCreated: boolean, accountId: string) => void;
5811
5827
  confirmAccount: (source: import("@layerfi/components/types/linked_accounts").AccountSource, accountId: string) => void;
5812
5828
  excludeAccount: (source: import("@layerfi/components/types/linked_accounts").AccountSource, accountId: string) => void;
5813
5829
  accountsToAddOpeningBalanceInModal: import("@layerfi/components/types/linked_accounts").LinkedAccount[];
@@ -5910,13 +5926,54 @@ declare module '@layerfi/components/contexts/VendorsContext' {
5910
5926
  export {};
5911
5927
 
5912
5928
  }
5913
- declare module '@layerfi/components/features/bankTransactions/[bankTransactionId]/components/BankTransactionTagsAndMemo' {
5929
+ declare module '@layerfi/components/features/bankTransactions/[bankTransactionId]/components/BankTransactionFormFields' {
5914
5930
  import type { BankTransaction } from '@layerfi/components/types';
5915
- type BankTransactionTagsAndMemoProps = {
5916
- bankTransaction: Pick<BankTransaction, 'id' | 'transaction_tags'>;
5931
+ type BankTransactionFormFieldProps = {
5932
+ bankTransaction: Pick<BankTransaction, 'id' | 'transaction_tags' | 'customer' | 'vendor'>;
5917
5933
  showDescriptions?: boolean;
5918
5934
  };
5919
- export function BankTransactionTagsAndMemo({ bankTransaction, showDescriptions, }: BankTransactionTagsAndMemoProps): import("react/jsx-runtime").JSX.Element | null;
5935
+ export function BankTransactionFormFields({ bankTransaction, showDescriptions, }: BankTransactionFormFieldProps): import("react/jsx-runtime").JSX.Element | null;
5936
+ export {};
5937
+
5938
+ }
5939
+ declare module '@layerfi/components/features/bankTransactions/[bankTransactionId]/customerVendor/components/BankTransactionCustomerVendorSelector' {
5940
+ import type { BankTransaction } from '@layerfi/components/types';
5941
+ type BankTransactionCustomerVendorSelectorProps = {
5942
+ bankTransaction: Pick<BankTransaction, 'id' | 'customer' | 'vendor'>;
5943
+ };
5944
+ export function BankTransactionCustomerVendorSelector({ bankTransaction, }: BankTransactionCustomerVendorSelectorProps): import("react/jsx-runtime").JSX.Element;
5945
+ export {};
5946
+
5947
+ }
5948
+ declare module '@layerfi/components/features/bankTransactions/[bankTransactionId]/customerVendor/components/BankTransactionCustomerVendorVisibilityProvider' {
5949
+ import { type PropsWithChildren } from 'react';
5950
+ export function useBankTransactionCustomerVendorVisibility(): {
5951
+ showCustomerVendor: boolean;
5952
+ };
5953
+ type BankTransactionCustomerVendorVisibilityProviderProps = PropsWithChildren<{
5954
+ showCustomerVendor: boolean;
5955
+ }>;
5956
+ export function BankTransactionCustomerVendorVisibilityProvider({ children, showCustomerVendor, }: BankTransactionCustomerVendorVisibilityProviderProps): import("react/jsx-runtime").JSX.Element;
5957
+ export {};
5958
+
5959
+ }
5960
+ declare module '@layerfi/components/features/bankTransactions/[bankTransactionId]/metadata/api/useSetMetadataOnBankTransaction' {
5961
+ import { type VendorSchema } from '@layerfi/components/features/vendors/vendorsSchemas';
5962
+ import { type CustomerSchema } from '@layerfi/components/features/customers/customersSchemas';
5963
+ type SetMetadataOnBankTransactionArg = {
5964
+ vendor: typeof VendorSchema.Type | null;
5965
+ customer: typeof CustomerSchema.Type | null;
5966
+ };
5967
+ type UseSetMetadataOnBankTransactionParameters = {
5968
+ bankTransactionId: string;
5969
+ };
5970
+ export function useSetMetadataOnBankTransaction({ bankTransactionId, }: UseSetMetadataOnBankTransactionParameters): import("swr/mutation").SWRMutationResponse<Record<string, never>, any, () => {
5971
+ readonly accessToken: string;
5972
+ readonly apiUrl: string;
5973
+ readonly businessId: string;
5974
+ readonly bankTransactionId: string;
5975
+ readonly tags: readonly ["#set-metadata-on-bank-transaction"];
5976
+ } | undefined, SetMetadataOnBankTransactionArg>;
5920
5977
  export {};
5921
5978
 
5922
5979
  }
@@ -5975,6 +6032,110 @@ declare module '@layerfi/components/features/bankTransactions/[bankTransactionId
5975
6032
  export function BankTransactionTagVisibilityProvider({ children, showTags, }: BankTransactionTagVisibilityProviderProps): import("react/jsx-runtime").JSX.Element;
5976
6033
  export {};
5977
6034
 
6035
+ }
6036
+ declare module '@layerfi/components/features/customerVendor/components/CustomerVendorSelector' {
6037
+ import type { CustomerVendorSchema } from '@layerfi/components/features/customerVendor/customerVendorSchemas';
6038
+ type CustomerVendor = typeof CustomerVendorSchema.Type;
6039
+ type CustomerVendorSelectorProps = {
6040
+ selectedCustomerVendor: CustomerVendor | null;
6041
+ onSelectedCustomerVendorChange: (customerVendor: CustomerVendor | null) => void;
6042
+ isMutating?: boolean;
6043
+ isReadOnly?: boolean;
6044
+ };
6045
+ export function CustomerVendorSelector({ selectedCustomerVendor, onSelectedCustomerVendorChange, isMutating, isReadOnly, }: CustomerVendorSelectorProps): import("react/jsx-runtime").JSX.Element | null;
6046
+ export {};
6047
+
6048
+ }
6049
+ declare module '@layerfi/components/features/customerVendor/customerVendorSchemas' {
6050
+ import { Schema } from 'effect';
6051
+ export const CustomerVendorTypeSchema: Schema.Literal<["CUSTOMER", "VENDOR"]>;
6052
+ export const CustomerVendorSchema: Schema.Union<[Schema.Struct<{
6053
+ customerVendorType: Schema.Literal<["CUSTOMER"]>;
6054
+ id: typeof Schema.UUID;
6055
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
6056
+ individualName: Schema.PropertySignature<":", string | null, "individual_name", ":", string | null, false, never>;
6057
+ companyName: Schema.PropertySignature<":", string | null, "company_name", ":", string | null, false, never>;
6058
+ email: Schema.NullOr<typeof Schema.String>;
6059
+ mobilePhone: Schema.PropertySignature<":", string | null, "mobile_phone", ":", string | null, false, never>;
6060
+ officePhone: Schema.PropertySignature<":", string | null, "office_phone", ":", string | null, false, never>;
6061
+ status: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<"ACTIVE" | "ARCHIVED", "ACTIVE" | "ARCHIVED", never>>;
6062
+ memo: Schema.NullOr<typeof Schema.String>;
6063
+ _local: Schema.optional<Schema.Struct<{
6064
+ isOptimistic: typeof Schema.Boolean;
6065
+ }>>;
6066
+ }>, Schema.Struct<{
6067
+ customerVendorType: Schema.Literal<["VENDOR"]>;
6068
+ id: typeof Schema.UUID;
6069
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
6070
+ individualName: Schema.PropertySignature<":", string | null, "individual_name", ":", string | null, false, never>;
6071
+ companyName: Schema.PropertySignature<":", string | null, "company_name", ":", string | null, false, never>;
6072
+ email: Schema.NullOr<typeof Schema.String>;
6073
+ mobilePhone: Schema.PropertySignature<":", string | null, "mobile_phone", ":", string | null, false, never>;
6074
+ officePhone: Schema.PropertySignature<":", string | null, "office_phone", ":", string | null, false, never>;
6075
+ status: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<"ACTIVE" | "ARCHIVED", "ACTIVE" | "ARCHIVED", never>>;
6076
+ memo: Schema.NullOr<typeof Schema.String>;
6077
+ _local: Schema.optional<Schema.Struct<{
6078
+ isOptimistic: typeof Schema.Boolean;
6079
+ }>>;
6080
+ }>]>;
6081
+ export const decodeCustomerVendor: (i: {
6082
+ readonly id: string;
6083
+ readonly external_id: string | null;
6084
+ readonly individual_name: string | null;
6085
+ readonly company_name: string | null;
6086
+ readonly email: string | null;
6087
+ readonly mobile_phone: string | null;
6088
+ readonly office_phone: string | null;
6089
+ readonly status: string;
6090
+ readonly memo: string | null;
6091
+ readonly customerVendorType: "CUSTOMER";
6092
+ readonly _local?: {
6093
+ readonly isOptimistic: boolean;
6094
+ } | undefined;
6095
+ } | {
6096
+ readonly id: string;
6097
+ readonly external_id: string | null;
6098
+ readonly individual_name: string | null;
6099
+ readonly company_name: string | null;
6100
+ readonly email: string | null;
6101
+ readonly mobile_phone: string | null;
6102
+ readonly office_phone: string | null;
6103
+ readonly status: string;
6104
+ readonly memo: string | null;
6105
+ readonly customerVendorType: "VENDOR";
6106
+ readonly _local?: {
6107
+ readonly isOptimistic: boolean;
6108
+ } | undefined;
6109
+ }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
6110
+ readonly id: string;
6111
+ readonly externalId: string | null;
6112
+ readonly individualName: string | null;
6113
+ readonly companyName: string | null;
6114
+ readonly email: string | null;
6115
+ readonly mobilePhone: string | null;
6116
+ readonly officePhone: string | null;
6117
+ readonly status: "ACTIVE" | "ARCHIVED";
6118
+ readonly memo: string | null;
6119
+ readonly _local?: {
6120
+ readonly isOptimistic: boolean;
6121
+ } | undefined;
6122
+ readonly customerVendorType: "CUSTOMER";
6123
+ } | {
6124
+ readonly id: string;
6125
+ readonly externalId: string | null;
6126
+ readonly individualName: string | null;
6127
+ readonly companyName: string | null;
6128
+ readonly email: string | null;
6129
+ readonly mobilePhone: string | null;
6130
+ readonly officePhone: string | null;
6131
+ readonly status: "ACTIVE" | "ARCHIVED";
6132
+ readonly memo: string | null;
6133
+ readonly _local?: {
6134
+ readonly isOptimistic: boolean;
6135
+ } | undefined;
6136
+ readonly customerVendorType: "VENDOR";
6137
+ };
6138
+
5978
6139
  }
5979
6140
  declare module '@layerfi/components/features/customers/api/useListCustomers' {
5980
6141
  import { type SWRInfiniteResponse } from 'swr/infinite';
@@ -5990,6 +6151,9 @@ declare module '@layerfi/components/features/customers/api/useListCustomers' {
5990
6151
  officePhone: Schema.PropertySignature<":", string | null, "office_phone", ":", string | null, false, never>;
5991
6152
  status: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<"ACTIVE" | "ARCHIVED", "ACTIVE" | "ARCHIVED", never>>;
5992
6153
  memo: Schema.NullOr<typeof Schema.String>;
6154
+ _local: Schema.optional<Schema.Struct<{
6155
+ isOptimistic: typeof Schema.Boolean;
6156
+ }>>;
5993
6157
  }>>;
5994
6158
  meta: Schema.Struct<{
5995
6159
  pagination: Schema.Struct<{
@@ -6006,14 +6170,17 @@ declare module '@layerfi/components/features/customers/api/useListCustomers' {
6006
6170
  get data(): {
6007
6171
  readonly data: readonly {
6008
6172
  readonly id: string;
6009
- readonly memo: string | null;
6010
- readonly status: "ACTIVE" | "ARCHIVED";
6011
- readonly email: string | null;
6012
6173
  readonly externalId: string | null;
6013
6174
  readonly individualName: string | null;
6014
6175
  readonly companyName: string | null;
6176
+ readonly email: string | null;
6015
6177
  readonly mobilePhone: string | null;
6016
6178
  readonly officePhone: string | null;
6179
+ readonly status: "ACTIVE" | "ARCHIVED";
6180
+ readonly memo: string | null;
6181
+ readonly _local?: {
6182
+ readonly isOptimistic: boolean;
6183
+ } | undefined;
6017
6184
  }[];
6018
6185
  readonly meta: {
6019
6186
  readonly pagination: {
@@ -6026,7 +6193,12 @@ declare module '@layerfi/components/features/customers/api/useListCustomers' {
6026
6193
  get isValidating(): boolean;
6027
6194
  get isError(): boolean;
6028
6195
  }
6029
- export function useListCustomers(): ListCustomersSWRResponse;
6196
+ type UseListCustomersParams = {
6197
+ query?: string;
6198
+ isEnabled?: boolean;
6199
+ };
6200
+ export function useListCustomers({ query, isEnabled }?: UseListCustomersParams): ListCustomersSWRResponse;
6201
+ export function usePreloadCustomers(parameters?: UseListCustomersParams): void;
6030
6202
  export {};
6031
6203
 
6032
6204
  }
@@ -6042,12 +6214,131 @@ declare module '@layerfi/components/features/customers/customersSchemas' {
6042
6214
  officePhone: Schema.PropertySignature<":", string | null, "office_phone", ":", string | null, false, never>;
6043
6215
  status: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<"ACTIVE" | "ARCHIVED", "ACTIVE" | "ARCHIVED", never>>;
6044
6216
  memo: Schema.NullOr<typeof Schema.String>;
6217
+ _local: Schema.optional<Schema.Struct<{
6218
+ isOptimistic: typeof Schema.Boolean;
6219
+ }>>;
6220
+ }>;
6221
+ export const encodeCustomer: (a: {
6222
+ readonly id: string;
6223
+ readonly externalId: string | null;
6224
+ readonly individualName: string | null;
6225
+ readonly companyName: string | null;
6226
+ readonly email: string | null;
6227
+ readonly mobilePhone: string | null;
6228
+ readonly officePhone: string | null;
6229
+ readonly status: "ACTIVE" | "ARCHIVED";
6230
+ readonly memo: string | null;
6231
+ readonly _local?: {
6232
+ readonly isOptimistic: boolean;
6233
+ } | undefined;
6234
+ }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
6235
+ readonly id: string;
6236
+ readonly external_id: string | null;
6237
+ readonly individual_name: string | null;
6238
+ readonly company_name: string | null;
6239
+ readonly email: string | null;
6240
+ readonly mobile_phone: string | null;
6241
+ readonly office_phone: string | null;
6242
+ readonly status: string;
6243
+ readonly memo: string | null;
6244
+ readonly _local?: {
6245
+ readonly isOptimistic: boolean;
6246
+ } | undefined;
6247
+ };
6248
+
6249
+ }
6250
+ declare module '@layerfi/components/features/ledger/entries/[ledgerEntryId]/tags/api/useRemoveTagFromLedgerEntry' {
6251
+ type RemoveTagFromLedgerEntryArg = {
6252
+ tagId: string;
6253
+ };
6254
+ type RemoveTagFromLedgerEntryOptions = {
6255
+ ledgerEntryId: string;
6256
+ };
6257
+ export function useRemoveTagFromLedgerEntry({ ledgerEntryId }: RemoveTagFromLedgerEntryOptions): import("swr/mutation").SWRMutationResponse<Record<string, never>, any, () => {
6258
+ readonly accessToken: string;
6259
+ readonly apiUrl: string;
6260
+ readonly businessId: string;
6261
+ readonly ledgerEntryId: string;
6262
+ readonly tags: readonly ["#remove-tag-from-ledger-entry"];
6263
+ } | undefined, RemoveTagFromLedgerEntryArg>;
6264
+ export {};
6265
+
6266
+ }
6267
+ declare module '@layerfi/components/features/ledger/entries/[ledgerEntryId]/tags/api/useTagLedgerEntry' {
6268
+ type TagLedgerEntryArg = {
6269
+ key: string;
6270
+ value: string;
6271
+ };
6272
+ type TagLedgerEntryOptions = {
6273
+ ledgerEntryId: string;
6274
+ };
6275
+ export function useTagLedgerEntry({ ledgerEntryId }: TagLedgerEntryOptions): import("swr/mutation").SWRMutationResponse<Record<string, never>, any, () => {
6276
+ readonly accessToken: string;
6277
+ readonly apiUrl: string;
6278
+ readonly businessId: string;
6279
+ readonly ledgerEntryId: string;
6280
+ readonly tags: readonly ["#tag-ledger-entry"];
6281
+ } | undefined, TagLedgerEntryArg>;
6282
+ export {};
6283
+
6284
+ }
6285
+ declare module '@layerfi/components/features/ledger/entries/api/useListLedgerEntries' {
6286
+ import type { JournalEntry } from '@layerfi/components/types';
6287
+ export const LIST_LEDGER_ENTRIES_TAG_KEY = "#list-ledger-entries";
6288
+ type ListLedgerEntriesReturn = {
6289
+ data: ReadonlyArray<JournalEntry>;
6290
+ };
6291
+ export const listLedgerEntries: (baseUrl: string, accessToken: string | undefined, options?: {
6292
+ params?: {
6293
+ businessId: string;
6294
+ } | undefined;
6295
+ } | undefined) => () => Promise<ListLedgerEntriesReturn>;
6296
+ export function useListLedgerEntries(): import("swr").SWRResponse<readonly JournalEntry[], any, any>;
6297
+ export function useLedgerEntriesInvalidator(): {
6298
+ invalidateLedgerEntries: () => Promise<undefined[]>;
6299
+ debouncedInvalidateLedgerEntries: import("lodash").DebouncedFunc<() => Promise<undefined[]>>;
6300
+ };
6301
+ export function useLedgerEntriesOptimisticUpdater(): {
6302
+ optimisticallyUpdateLedgerEntries: (transformJournalEntry: (entry: JournalEntry) => JournalEntry) => Promise<undefined[]>;
6303
+ };
6304
+ export {};
6305
+
6306
+ }
6307
+ declare module '@layerfi/components/features/tags/api/useCreateTagDimension' {
6308
+ import { TagDimensionSchema } from '@layerfi/components/features/tags/tagSchemas';
6309
+ export function useCreateTagDimension(): import("swr/mutation").SWRMutationResponse<{
6310
+ data: typeof TagDimensionSchema.Encoded;
6311
+ }, any, () => {
6312
+ readonly accessToken: string;
6313
+ readonly apiUrl: string;
6314
+ readonly businessId: string;
6315
+ readonly tags: readonly ["#create-tag-dimension"];
6316
+ } | undefined, {
6317
+ readonly key: string;
6318
+ readonly strictness: "BALANCING" | "NON_BALANCING";
6319
+ readonly definedValues: readonly string[];
6320
+ }>;
6321
+
6322
+ }
6323
+ declare module '@layerfi/components/features/tags/api/useCreateTagValueDefinition' {
6324
+ import { type TagValueDefinitionSchema } from '@layerfi/components/features/tags/tagSchemas';
6325
+ export function useCreateTagDimension(): import("swr/mutation").SWRMutationResponse<{
6326
+ data: typeof TagValueDefinitionSchema.Encoded;
6327
+ }, any, () => {
6328
+ readonly accessToken: string;
6329
+ readonly apiUrl: string;
6330
+ readonly businessId: string;
6331
+ readonly tags: readonly ["#create-tag-value-definition"];
6332
+ } | undefined, {
6333
+ dimensionId: string;
6334
+ label: string;
6045
6335
  }>;
6046
6336
 
6047
6337
  }
6048
6338
  declare module '@layerfi/components/features/tags/api/useTagDimensions' {
6049
6339
  import { type SWRResponse } from 'swr';
6050
6340
  import { Schema } from 'effect';
6341
+ export const TAG_DIMENSIONS_TAG_KEY = "#tag-dimensions";
6051
6342
  const TagDimensionsListSchema: Schema.Array$<Schema.Struct<{
6052
6343
  id: typeof Schema.UUID;
6053
6344
  key: typeof Schema.NonEmptyTrimmedString;
@@ -6114,18 +6405,18 @@ declare module '@layerfi/components/features/tags/components/TagSelector' {
6114
6405
  }>>;
6115
6406
  export const makeTag: (i: {
6116
6407
  readonly id: string;
6117
- readonly dimensionLabel: string;
6118
- readonly valueLabel: string;
6119
6408
  readonly _local: {
6120
6409
  readonly isOptimistic: boolean;
6121
6410
  };
6122
- }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
6123
- readonly id: string;
6124
6411
  readonly dimensionLabel: string;
6125
6412
  readonly valueLabel: string;
6413
+ }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
6414
+ readonly id: string;
6126
6415
  readonly _local: {
6127
6416
  readonly isOptimistic: boolean;
6128
6417
  };
6418
+ readonly dimensionLabel: string;
6419
+ readonly valueLabel: string;
6129
6420
  };
6130
6421
  export type Tag = typeof TagSchema.Type;
6131
6422
  type TagSelectorProps = {
@@ -6140,6 +6431,11 @@ declare module '@layerfi/components/features/tags/components/TagSelector' {
6140
6431
  }
6141
6432
  declare module '@layerfi/components/features/tags/tagSchemas' {
6142
6433
  import { Schema } from 'effect';
6434
+ export const TagDimensionStrictnessSchema: Schema.Literal<["BALANCING", "NON_BALANCING"]>;
6435
+ export const TagValueDefinitionSchema: Schema.Struct<{
6436
+ id: typeof Schema.UUID;
6437
+ value: typeof Schema.NonEmptyTrimmedString;
6438
+ }>;
6143
6439
  export const TagDimensionSchema: Schema.Struct<{
6144
6440
  id: typeof Schema.UUID;
6145
6441
  key: typeof Schema.NonEmptyTrimmedString;
@@ -6178,6 +6474,9 @@ declare module '@layerfi/components/features/vendors/api/useListVendors' {
6178
6474
  officePhone: Schema.PropertySignature<":", string | null, "office_phone", ":", string | null, false, never>;
6179
6475
  status: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<"ACTIVE" | "ARCHIVED", "ACTIVE" | "ARCHIVED", never>>;
6180
6476
  memo: Schema.NullOr<typeof Schema.String>;
6477
+ _local: Schema.optional<Schema.Struct<{
6478
+ isOptimistic: typeof Schema.Boolean;
6479
+ }>>;
6181
6480
  }>>;
6182
6481
  meta: Schema.Struct<{
6183
6482
  pagination: Schema.Struct<{
@@ -6194,14 +6493,17 @@ declare module '@layerfi/components/features/vendors/api/useListVendors' {
6194
6493
  get data(): {
6195
6494
  readonly data: readonly {
6196
6495
  readonly id: string;
6197
- readonly memo: string | null;
6198
- readonly status: "ACTIVE" | "ARCHIVED";
6199
- readonly email: string | null;
6200
6496
  readonly externalId: string | null;
6201
6497
  readonly individualName: string | null;
6202
6498
  readonly companyName: string | null;
6499
+ readonly email: string | null;
6203
6500
  readonly mobilePhone: string | null;
6204
6501
  readonly officePhone: string | null;
6502
+ readonly status: "ACTIVE" | "ARCHIVED";
6503
+ readonly memo: string | null;
6504
+ readonly _local?: {
6505
+ readonly isOptimistic: boolean;
6506
+ } | undefined;
6205
6507
  }[];
6206
6508
  readonly meta: {
6207
6509
  readonly pagination: {
@@ -6214,7 +6516,12 @@ declare module '@layerfi/components/features/vendors/api/useListVendors' {
6214
6516
  get isValidating(): boolean;
6215
6517
  get isError(): boolean;
6216
6518
  }
6217
- export function useListVendors(): ListVendorsSWRResponse;
6519
+ type UseListVendorsParameters = {
6520
+ query?: string;
6521
+ isEnabled?: boolean;
6522
+ };
6523
+ export function useListVendors({ query, isEnabled }?: UseListVendorsParameters): ListVendorsSWRResponse;
6524
+ export function usePreloadVendors(parameters?: UseListVendorsParameters): void;
6218
6525
  export {};
6219
6526
 
6220
6527
  }
@@ -6230,7 +6537,37 @@ declare module '@layerfi/components/features/vendors/vendorsSchemas' {
6230
6537
  officePhone: Schema.PropertySignature<":", string | null, "office_phone", ":", string | null, false, never>;
6231
6538
  status: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<"ACTIVE" | "ARCHIVED", "ACTIVE" | "ARCHIVED", never>>;
6232
6539
  memo: Schema.NullOr<typeof Schema.String>;
6540
+ _local: Schema.optional<Schema.Struct<{
6541
+ isOptimistic: typeof Schema.Boolean;
6542
+ }>>;
6233
6543
  }>;
6544
+ export const encodeVendor: (a: {
6545
+ readonly id: string;
6546
+ readonly externalId: string | null;
6547
+ readonly individualName: string | null;
6548
+ readonly companyName: string | null;
6549
+ readonly email: string | null;
6550
+ readonly mobilePhone: string | null;
6551
+ readonly officePhone: string | null;
6552
+ readonly status: "ACTIVE" | "ARCHIVED";
6553
+ readonly memo: string | null;
6554
+ readonly _local?: {
6555
+ readonly isOptimistic: boolean;
6556
+ } | undefined;
6557
+ }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
6558
+ readonly id: string;
6559
+ readonly external_id: string | null;
6560
+ readonly individual_name: string | null;
6561
+ readonly company_name: string | null;
6562
+ readonly email: string | null;
6563
+ readonly mobile_phone: string | null;
6564
+ readonly office_phone: string | null;
6565
+ readonly status: string;
6566
+ readonly memo: string | null;
6567
+ readonly _local?: {
6568
+ readonly isOptimistic: boolean;
6569
+ } | undefined;
6570
+ };
6234
6571
 
6235
6572
  }
6236
6573
  declare module '@layerfi/components/hooks/array/usePaginatedList' {
@@ -6577,6 +6914,7 @@ declare module '@layerfi/components/hooks/customAccounts/types' {
6577
6914
  updated_at: string | null;
6578
6915
  archived_at: string | null;
6579
6916
  ledger_account_id: string;
6917
+ user_created: boolean;
6580
6918
  };
6581
6919
  export type CustomAccount = Pick<RawCustomAccount, 'id'> & {
6582
6920
  externalId: RawCustomAccount['external_id'];
@@ -6589,6 +6927,7 @@ declare module '@layerfi/components/hooks/customAccounts/types' {
6589
6927
  updatedAt: RawCustomAccount['updated_at'];
6590
6928
  archivedAt: RawCustomAccount['archived_at'];
6591
6929
  ledgerAccountId: RawCustomAccount['ledger_account_id'];
6930
+ userCreated: RawCustomAccount['user_created'];
6592
6931
  };
6593
6932
  export const mapRawCustomAccountToCustomAccount: (raw: RawCustomAccount) => CustomAccount;
6594
6933
  export type RawCustomTransaction = {
@@ -6607,7 +6946,7 @@ declare module '@layerfi/components/hooks/customAccounts/types' {
6607
6946
  }
6608
6947
  declare module '@layerfi/components/hooks/customAccounts/useCreateCustomAccount' {
6609
6948
  import { type RawCustomAccount } from '@layerfi/components/hooks/customAccounts/types';
6610
- type CreateCustomAccountBody = Pick<RawCustomAccount, 'account_name' | 'account_type' | 'account_subtype' | 'institution_name' | 'external_id' | 'mask'>;
6949
+ type CreateCustomAccountBody = Pick<RawCustomAccount, 'account_name' | 'account_type' | 'account_subtype' | 'institution_name' | 'external_id' | 'mask' | 'user_created'>;
6611
6950
  export function useCreateCustomAccount(): import("swr/mutation").SWRMutationResponse<import("./types").CustomAccount, any, () => {
6612
6951
  readonly accessToken: string;
6613
6952
  readonly apiUrl: string;
@@ -6674,12 +7013,28 @@ declare module '@layerfi/components/hooks/customAccounts/useCustomAccountParseCs
6674
7013
  }
6675
7014
  declare module '@layerfi/components/hooks/customAccounts/useCustomAccounts' {
6676
7015
  export const CUSTOM_ACCOUNTS_TAG_KEY = "#custom-accounts";
6677
- export function useCustomAccounts(): import("swr").SWRResponse<import("./types").CustomAccount[], any, any>;
7016
+ type useCustomAccountsParams = {
7017
+ userCreated?: boolean;
7018
+ };
7019
+ export function useCustomAccounts({ userCreated }?: useCustomAccountsParams): import("swr").SWRResponse<import("./types").CustomAccount[], any, any>;
7020
+ export {};
6678
7021
 
6679
7022
  }
6680
7023
  declare module '@layerfi/components/hooks/ref/useStopClickEventsRef' {
6681
7024
  export function useStopClickEventsRefCallback(): (element: HTMLElement | null) => void;
6682
7025
 
7026
+ }
7027
+ declare module '@layerfi/components/hooks/search/useDebouncedSearchQuery' {
7028
+ type UseDebouncedSearchQueryOptions = {
7029
+ initialInputState: string | (() => string);
7030
+ };
7031
+ export function useDebouncedSearchInput({ initialInputState, }: UseDebouncedSearchQueryOptions): {
7032
+ inputValue: string;
7033
+ searchQuery: string;
7034
+ handleInputChange: (value: string) => void;
7035
+ };
7036
+ export {};
7037
+
6683
7038
  }
6684
7039
  declare module '@layerfi/components/hooks/useAuth' {
6685
7040
  export function useAuth(): import("swr").SWRResponse<{
@@ -6774,6 +7129,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/useBankTransaction
6774
7129
  export function useBankTransactions({ categorized, descriptionFilter, direction, startDate, endDate, tagFilterQueryString, }: UseBankTransactionsOptions): import("swr/infinite").SWRInfiniteResponse<GetBankTransactionsReturn, any>;
6775
7130
  export function useBankTransactionsInvalidator(): {
6776
7131
  invalidateBankTransactions: () => Promise<undefined[]>;
7132
+ debouncedInvalidateBankTransactions: import("lodash").DebouncedFunc<() => Promise<undefined[]>>;
6777
7133
  };
6778
7134
  export function useBankTransactionsOptimisticUpdater(): {
6779
7135
  optimisticallyUpdateBankTransactions: (transformTransaction: (txn: BankTransaction) => BankTransaction) => Promise<undefined[]>;
@@ -7054,7 +7410,7 @@ declare module '@layerfi/components/hooks/useJournal/useJournal' {
7054
7410
  import { BaseSelectOption } from '@layerfi/components/types/general';
7055
7411
  import { JournalEntry, NewApiJournalEntry, NewFormJournalEntry } from '@layerfi/components/types/journal';
7056
7412
  type UseJournal = () => {
7057
- data?: JournalEntry[];
7413
+ data?: ReadonlyArray<JournalEntry>;
7058
7414
  isLoading?: boolean;
7059
7415
  isLoadingEntry?: boolean;
7060
7416
  isValidating?: boolean;
@@ -7142,7 +7498,7 @@ declare module '@layerfi/components/hooks/useLinkedAccounts/useLinkedAccounts' {
7142
7498
  updateConnectionStatus: () => void;
7143
7499
  refetchAccounts: () => Awaitable<void>;
7144
7500
  syncAccounts: () => void;
7145
- unlinkAccount: (source: AccountSource, accountId: string) => void;
7501
+ unlinkAccount: (source: AccountSource, userCreated: boolean, accountId: string) => void;
7146
7502
  confirmAccount: (source: AccountSource, accountId: string) => void;
7147
7503
  excludeAccount: (source: AccountSource, accountId: string) => void;
7148
7504
  accountsToAddOpeningBalanceInModal: LinkedAccount[];
@@ -7834,7 +8190,6 @@ declare module '@layerfi/components/index' {
7834
8190
  export { LayerProvider } from '@layerfi/components/providers/LayerProvider/index';
7835
8191
  export { Onboarding } from '@layerfi/components/components/Onboarding/index';
7836
8192
  export { LinkedAccounts } from '@layerfi/components/components/LinkedAccounts/index';
7837
- export { UploadTransactions as unstable_UploadTransactions } from '@layerfi/components/components/UploadTransactions/UploadTransactions';
7838
8193
  export { BankTransactions } from '@layerfi/components/components/BankTransactions/BankTransactions';
7839
8194
  export { Integrations } from '@layerfi/components/components/Integrations/Integrations';
7840
8195
  export { ProfitAndLoss } from '@layerfi/components/components/ProfitAndLoss/index';
@@ -8198,6 +8553,8 @@ declare module '@layerfi/components/types/balance_sheet' {
8198
8553
 
8199
8554
  }
8200
8555
  declare module '@layerfi/components/types/bank_transactions' {
8556
+ import type { CustomerSchema } from '@layerfi/components/features/customers/customersSchemas';
8557
+ import type { VendorSchema } from '@layerfi/components/features/vendors/vendorsSchemas';
8201
8558
  import { Categorization, CategorizationStatus, Category } from '@layerfi/components/types/categories';
8202
8559
  import { S3PresignedUrl } from '@layerfi/components/types/general';
8203
8560
  import type { TransactionTag } from '@layerfi/components/types/tags';
@@ -8246,6 +8603,8 @@ declare module '@layerfi/components/types/bank_transactions' {
8246
8603
  match?: BankTransactionMatch;
8247
8604
  document_ids: string[];
8248
8605
  transaction_tags: ReadonlyArray<TransactionTag>;
8606
+ customer: typeof CustomerSchema.Encoded | null;
8607
+ vendor: typeof VendorSchema.Encoded | null;
8249
8608
  }
8250
8609
  export interface SuggestedMatch {
8251
8610
  id: string;
@@ -8626,11 +8985,11 @@ declare module '@layerfi/components/types/journal' {
8626
8985
  import { Direction } from '@layerfi/components/types/bank_transactions';
8627
8986
  import { AccountIdentifierPayloadObject } from '@layerfi/components/types/categories';
8628
8987
  import { LedgerEntrySource } from '@layerfi/components/types/ledger_accounts';
8988
+ import type { TransactionTag } from '@layerfi/components/types/tags';
8629
8989
  export interface JournalEntry {
8630
8990
  id: string;
8631
8991
  business_id: string;
8632
8992
  ledger_id: string;
8633
- agent: string;
8634
8993
  entry_type: string;
8635
8994
  entry_number: number;
8636
8995
  date: string;
@@ -8639,6 +8998,7 @@ declare module '@layerfi/components/types/journal' {
8639
8998
  reversal_id: string | null;
8640
8999
  line_items: JournalEntryLine[];
8641
9000
  source?: LedgerEntrySource;
9001
+ transaction_tags: ReadonlyArray<TransactionTag>;
8642
9002
  }
8643
9003
  export interface JournalEntryLine {
8644
9004
  id: string;
@@ -8809,7 +9169,6 @@ declare module '@layerfi/components/types/ledger_accounts' {
8809
9169
  import { BankTransaction, Direction } from '@layerfi/components/types/bank_transactions';
8810
9170
  export type LedgerAccountLineItems = LedgerAccountLineItem[];
8811
9171
  export interface LedgerAccountsEntry {
8812
- agent?: string;
8813
9172
  business_id: string;
8814
9173
  date: string;
8815
9174
  entry_at: string;
@@ -8819,7 +9178,6 @@ declare module '@layerfi/components/types/ledger_accounts' {
8819
9178
  invoice?: Record<string, string>;
8820
9179
  ledger_id: string;
8821
9180
  line_items: LedgerAccountLineItem[];
8822
- manual_entry?: boolean;
8823
9181
  reversal_id?: string;
8824
9182
  reversal_of_id?: string;
8825
9183
  type: string;
@@ -8964,6 +9322,7 @@ declare module '@layerfi/components/types/linked_accounts' {
8964
9322
  connection_external_id?: string;
8965
9323
  connection_needs_repair_as_of: string | null;
8966
9324
  is_syncing: boolean;
9325
+ user_created: boolean;
8967
9326
  };
8968
9327
  export type LinkedAccounts = {
8969
9328
  type: string;
@@ -9754,10 +10113,10 @@ declare module '@layerfi/components/utils/switch/assertUnreachable' {
9754
10113
  }
9755
10114
  declare module '@layerfi/components/utils/swr/defaultSWRConfig' {
9756
10115
  export const DEFAULT_SWR_CONFIG: {
9757
- readonly refreshInterval: 0;
10116
+ readonly refreshInterval: number;
10117
+ readonly revalidateIfStale: true;
9758
10118
  readonly revalidateOnFocus: false;
9759
10119
  readonly revalidateOnReconnect: false;
9760
- readonly revalidateIfStale: false;
9761
10120
  };
9762
10121
 
9763
10122
  }
@@ -9868,6 +10227,7 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/Ban
9868
10227
  showTags?: boolean;
9869
10228
  showTooltips?: boolean;
9870
10229
  showUnlinkItem?: boolean;
10230
+ showUploadOptions?: boolean;
9871
10231
  /**
9872
10232
  * @deprecated `mode` can be inferred from the bookkeeping configuration of a business
9873
10233
  */
@@ -9875,7 +10235,7 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/Ban
9875
10235
  mobileComponent?: MobileComponentType;
9876
10236
  stringOverrides?: BankTransactionsWithLinkedAccountsStringOverrides;
9877
10237
  }
9878
- export const BankTransactionsWithLinkedAccounts: ({ title, showTitle, elevatedLinkedAccounts, mode, showBreakConnection, showDescriptions, showLedgerBalance, showReceiptUploads, showTags, showTooltips, showUnlinkItem, mobileComponent, stringOverrides, }: BankTransactionsWithLinkedAccountsProps) => import("react/jsx-runtime").JSX.Element;
10238
+ export const BankTransactionsWithLinkedAccounts: ({ title, showTitle, elevatedLinkedAccounts, mode, showBreakConnection, showDescriptions, showLedgerBalance, showReceiptUploads, showTags, showTooltips, showUnlinkItem, showUploadOptions, mobileComponent, stringOverrides, }: BankTransactionsWithLinkedAccountsProps) => import("react/jsx-runtime").JSX.Element;
9879
10239
  export {};
9880
10240
 
9881
10241
  }