@layerfi/components 0.1.107-alpha.2 → 0.1.108-alpha

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
@@ -1546,13 +1546,13 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactions
1546
1546
  filters?: BankTransactionFilters;
1547
1547
  hideHeader?: boolean;
1548
1548
  stringOverrides?: BankTransactionsStringOverrides;
1549
- convertToInAppLink?: (details: LinkingMetadata) => ReactNode;
1549
+ renderInAppLink?: (details: LinkingMetadata) => ReactNode;
1550
1550
  }
1551
1551
  export interface BankTransactionsWithErrorProps extends BankTransactionsProps {
1552
1552
  onError?: (error: LayerError) => void;
1553
1553
  showTags?: boolean;
1554
1554
  }
1555
- export const BankTransactions: ({ onError, showTags, showCustomerVendor, monthlyView, applyGlobalDateRange, mode, convertToInAppLink: convertToInAppLink, ...props }: BankTransactionsWithErrorProps) => import("react/jsx-runtime").JSX.Element;
1555
+ export const BankTransactions: ({ onError, showTags, showCustomerVendor, monthlyView, applyGlobalDateRange, mode, renderInAppLink, ...props }: BankTransactionsWithErrorProps) => import("react/jsx-runtime").JSX.Element;
1556
1556
 
1557
1557
  }
1558
1558
  declare module '@layerfi/components/components/BankTransactions/BankTransactionsHeader' {
@@ -1658,17 +1658,20 @@ declare module '@layerfi/components/components/BankTransactionsTable/BankTransac
1658
1658
  }
1659
1659
  declare module '@layerfi/components/components/BaseConfirmationModal/BaseConfirmationModal' {
1660
1660
  import { ModalProps } from '@layerfi/components/components/ui/Modal/Modal';
1661
+ import { type ReactNode } from 'react';
1661
1662
  import { Awaitable } from '@layerfi/components/types/utility/promises';
1662
1663
  export type BaseConfirmationModalProps = Pick<ModalProps, 'isOpen' | 'onOpenChange'> & {
1663
1664
  title: string;
1664
- description: string;
1665
+ description?: string;
1666
+ content?: ReactNode;
1665
1667
  onConfirm: () => Awaitable<void>;
1666
1668
  confirmLabel?: string;
1667
1669
  retryLabel?: string;
1668
1670
  cancelLabel?: string;
1669
1671
  errorText?: string;
1672
+ closeOnConfirm?: boolean;
1670
1673
  };
1671
- export function BaseConfirmationModal({ isOpen, onOpenChange, title, description, onConfirm, confirmLabel, retryLabel, cancelLabel, errorText, }: BaseConfirmationModalProps): import("react/jsx-runtime").JSX.Element;
1674
+ export function BaseConfirmationModal({ isOpen, onOpenChange, title, description, content, onConfirm, confirmLabel, retryLabel, cancelLabel, errorText, closeOnConfirm, }: BaseConfirmationModalProps): import("react/jsx-runtime").JSX.Element;
1672
1675
 
1673
1676
  }
1674
1677
  declare module '@layerfi/components/components/BaseDetailView/BaseDetailView' {
@@ -2223,7 +2226,7 @@ declare module '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts'
2223
2226
  showAddAccountButton?: boolean;
2224
2227
  templateAccountsEditable?: boolean;
2225
2228
  showReversalEntries?: boolean;
2226
- getInAppLink?: (source: LinkingMetadata) => ReactNode | undefined;
2229
+ renderInAppLink?: (source: LinkingMetadata) => ReactNode;
2227
2230
  }
2228
2231
  export const ChartOfAccounts: (props: ChartOfAccountsProps) => import("react/jsx-runtime").JSX.Element;
2229
2232
 
@@ -3265,6 +3268,14 @@ declare module '@layerfi/components/components/Integrations/IntegrationsQuickboo
3265
3268
  declare module '@layerfi/components/components/Invoices/InvoiceDetail/InvoiceDetail' {
3266
3269
  export const InvoiceDetail: () => import("react/jsx-runtime").JSX.Element;
3267
3270
 
3271
+ }
3272
+ declare module '@layerfi/components/components/Invoices/InvoiceDetail/InvoiceDetailHeaderMenu' {
3273
+ type InvoiceDetailHeaderMenuProps = {
3274
+ onEditInvoice: () => void;
3275
+ };
3276
+ export const InvoiceDetailHeaderMenu: ({ onEditInvoice }: InvoiceDetailHeaderMenuProps) => import("react/jsx-runtime").JSX.Element | null;
3277
+ export {};
3278
+
3268
3279
  }
3269
3280
  declare module '@layerfi/components/components/Invoices/InvoiceForm/InvoiceForm' {
3270
3281
  import React from 'react';
@@ -3450,67 +3461,171 @@ declare module '@layerfi/components/components/Invoices/InvoicePaymentForm/useIn
3450
3461
  readonly amount: import("effect/BigDecimal").BigDecimal;
3451
3462
  readonly referenceNumber: string;
3452
3463
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3453
- readonly paidAt: import("@internationalized/date").ZonedDateTime;
3464
+ readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3454
3465
  }, import("@tanstack/react-form").FormValidateOrFn<{
3455
3466
  readonly memo: string;
3456
3467
  readonly amount: import("effect/BigDecimal").BigDecimal;
3457
3468
  readonly referenceNumber: string;
3458
3469
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3459
- readonly paidAt: import("@internationalized/date").ZonedDateTime;
3470
+ readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3460
3471
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3461
3472
  readonly memo: string;
3462
3473
  readonly amount: import("effect/BigDecimal").BigDecimal;
3463
3474
  readonly referenceNumber: string;
3464
3475
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3465
- readonly paidAt: import("@internationalized/date").ZonedDateTime;
3476
+ readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3466
3477
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3467
3478
  readonly memo: string;
3468
3479
  readonly amount: import("effect/BigDecimal").BigDecimal;
3469
3480
  readonly referenceNumber: string;
3470
3481
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3471
- readonly paidAt: import("@internationalized/date").ZonedDateTime;
3482
+ readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3472
3483
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3473
3484
  readonly memo: string;
3474
3485
  readonly amount: import("effect/BigDecimal").BigDecimal;
3475
3486
  readonly referenceNumber: string;
3476
3487
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3477
- readonly paidAt: import("@internationalized/date").ZonedDateTime;
3488
+ readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3478
3489
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3479
3490
  readonly memo: string;
3480
3491
  readonly amount: import("effect/BigDecimal").BigDecimal;
3481
3492
  readonly referenceNumber: string;
3482
3493
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3483
- readonly paidAt: import("@internationalized/date").ZonedDateTime;
3494
+ readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3484
3495
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3485
3496
  readonly memo: string;
3486
3497
  readonly amount: import("effect/BigDecimal").BigDecimal;
3487
3498
  readonly referenceNumber: string;
3488
3499
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3489
- readonly paidAt: import("@internationalized/date").ZonedDateTime;
3500
+ readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3490
3501
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3491
3502
  readonly memo: string;
3492
3503
  readonly amount: import("effect/BigDecimal").BigDecimal;
3493
3504
  readonly referenceNumber: string;
3494
3505
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3495
- readonly paidAt: import("@internationalized/date").ZonedDateTime;
3506
+ readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3496
3507
  }>, import("@tanstack/react-form").FormValidateOrFn<{
3497
3508
  readonly memo: string;
3498
3509
  readonly amount: import("effect/BigDecimal").BigDecimal;
3499
3510
  readonly referenceNumber: string;
3500
3511
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3501
- readonly paidAt: import("@internationalized/date").ZonedDateTime;
3512
+ readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3502
3513
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3503
3514
  readonly memo: string;
3504
3515
  readonly amount: import("effect/BigDecimal").BigDecimal;
3505
3516
  readonly referenceNumber: string;
3506
3517
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3507
- readonly paidAt: import("@internationalized/date").ZonedDateTime;
3518
+ readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3508
3519
  }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3509
3520
  readonly memo: string;
3510
3521
  readonly amount: import("effect/BigDecimal").BigDecimal;
3511
3522
  readonly referenceNumber: string;
3512
3523
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3513
- readonly paidAt: import("@internationalized/date").ZonedDateTime;
3524
+ readonly paidAt: import("@internationalized/date").ZonedDateTime | null;
3525
+ }>, unknown, {
3526
+ readonly BaseFormTextField: typeof import("@layerfi/components/features/forms/components/BaseFormTextField").BaseFormTextField;
3527
+ readonly FormBigDecimalField: typeof import("@layerfi/components/features/forms/components/FormBigDecimalField").FormBigDecimalField;
3528
+ readonly FormCheckboxField: typeof import("@layerfi/components/features/forms/components/FormCheckboxField").FormCheckboxField;
3529
+ readonly FormDateField: typeof import("@layerfi/components/features/forms/components/FormDateField").FormDateField;
3530
+ readonly FormTextAreaField: typeof import("@layerfi/components/features/forms/components/FormTextAreaField").FormTextAreaField;
3531
+ readonly FormTextField: typeof import("@layerfi/components/features/forms/components/FormTextField").FormTextField;
3532
+ }, {}>;
3533
+ submitError: string | undefined;
3534
+ };
3535
+ export {};
3536
+
3537
+ }
3538
+ declare module '@layerfi/components/components/Invoices/InvoiceRefundForm/InvoiceRefundForm' {
3539
+ import React from 'react';
3540
+ import type { Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
3541
+ import type { CustomerRefund } from '@layerfi/components/features/invoices/customerRefundSchemas';
3542
+ export type InvoiceRefundFormProps = {
3543
+ onSuccess: (refund: CustomerRefund) => void;
3544
+ invoice: Invoice;
3545
+ };
3546
+ export const InvoiceRefundForm: React.ForwardRefExoticComponent<InvoiceRefundFormProps & React.RefAttributes<unknown>>;
3547
+
3548
+ }
3549
+ declare module '@layerfi/components/components/Invoices/InvoiceRefundForm/formUtils' {
3550
+ import { type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
3551
+ import type { InvoiceRefundForm } from '@layerfi/components/components/Invoices/InvoiceRefundForm/invoiceRefundFormSchemas';
3552
+ export const getInvoiceRefundFormDefaultValues: (invoice: Invoice) => InvoiceRefundForm;
3553
+ export const validateInvoiceRefundForm: ({ invoiceRefund, invoice }: {
3554
+ invoiceRefund: InvoiceRefundForm;
3555
+ invoice: Invoice;
3556
+ }) => ({
3557
+ completedAt: string;
3558
+ method?: undefined;
3559
+ } | {
3560
+ method: string;
3561
+ completedAt?: undefined;
3562
+ })[] | null;
3563
+ export const convertInvoiceRefundFormToParams: (form: InvoiceRefundForm) => unknown;
3564
+
3565
+ }
3566
+ declare module '@layerfi/components/components/Invoices/InvoiceRefundForm/invoiceRefundFormSchemas' {
3567
+ import { Schema } from 'effect';
3568
+ export const InvoiceRefundFormSchema: Schema.Struct<{
3569
+ amount: typeof Schema.BigDecimal;
3570
+ method: Schema.NullOr<Schema.Enums<typeof import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod>>;
3571
+ completedAt: Schema.NullOr<Schema.declare<import("@internationalized/date").ZonedDateTime, import("@internationalized/date").ZonedDateTime, readonly [], never>>;
3572
+ }>;
3573
+ export type InvoiceRefundForm = typeof InvoiceRefundFormSchema.Type;
3574
+
3575
+ }
3576
+ declare module '@layerfi/components/components/Invoices/InvoiceRefundForm/useInvoiceRefundForm' {
3577
+ import { type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
3578
+ import { type CustomerRefund } from '@layerfi/components/features/invoices/customerRefundSchemas';
3579
+ type onSuccessFn = (refund: CustomerRefund) => void;
3580
+ type UseInvoiceRefundFormProps = {
3581
+ onSuccess: onSuccessFn;
3582
+ invoice: Invoice;
3583
+ };
3584
+ export const useInvoiceRefundForm: ({ onSuccess, invoice }: UseInvoiceRefundFormProps) => {
3585
+ form: import("@tanstack/react-form").AppFieldExtendedReactFormApi<{
3586
+ readonly amount: import("effect/BigDecimal").BigDecimal;
3587
+ readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3588
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3589
+ }, import("@tanstack/react-form").FormValidateOrFn<{
3590
+ readonly amount: import("effect/BigDecimal").BigDecimal;
3591
+ readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3592
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3593
+ }>, import("@tanstack/react-form").FormValidateOrFn<{
3594
+ readonly amount: import("effect/BigDecimal").BigDecimal;
3595
+ readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3596
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3597
+ }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3598
+ readonly amount: import("effect/BigDecimal").BigDecimal;
3599
+ readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3600
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3601
+ }>, import("@tanstack/react-form").FormValidateOrFn<{
3602
+ readonly amount: import("effect/BigDecimal").BigDecimal;
3603
+ readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3604
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3605
+ }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3606
+ readonly amount: import("effect/BigDecimal").BigDecimal;
3607
+ readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3608
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3609
+ }>, import("@tanstack/react-form").FormValidateOrFn<{
3610
+ readonly amount: import("effect/BigDecimal").BigDecimal;
3611
+ readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3612
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3613
+ }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3614
+ readonly amount: import("effect/BigDecimal").BigDecimal;
3615
+ readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3616
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3617
+ }>, import("@tanstack/react-form").FormValidateOrFn<{
3618
+ readonly amount: import("effect/BigDecimal").BigDecimal;
3619
+ readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3620
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3621
+ }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3622
+ readonly amount: import("effect/BigDecimal").BigDecimal;
3623
+ readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3624
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3625
+ }>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
3626
+ readonly amount: import("effect/BigDecimal").BigDecimal;
3627
+ readonly completedAt: import("@internationalized/date").ZonedDateTime | null;
3628
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod | null;
3514
3629
  }>, unknown, {
3515
3630
  readonly BaseFormTextField: typeof import("@layerfi/components/features/forms/components/BaseFormTextField").BaseFormTextField;
3516
3631
  readonly FormBigDecimalField: typeof import("@layerfi/components/features/forms/components/FormBigDecimalField").FormBigDecimalField;
@@ -3544,7 +3659,8 @@ declare module '@layerfi/components/components/Invoices/InvoiceTable/InvoiceTabl
3544
3659
  Sent = "Sent",
3545
3660
  Paid = "Paid",
3546
3661
  WrittenOff = "Written Off",
3547
- Voided = "Voided"
3662
+ Voided = "Voided",
3663
+ Refunded = "Refunded"
3548
3664
  }
3549
3665
  export type InvoiceStatusOption = {
3550
3666
  label: string;
@@ -3590,6 +3706,50 @@ declare module '@layerfi/components/components/Invoices/Invoices' {
3590
3706
  export const unstable_Invoices: ({ showTitle, stringOverrides }: InvoicesProps) => import("react/jsx-runtime").JSX.Element;
3591
3707
  export {};
3592
3708
 
3709
+ }
3710
+ declare module '@layerfi/components/components/Invoices/Modal/InvoiceRefundModal' {
3711
+ import { ModalProps } from '@layerfi/components/components/ui/Modal/Modal';
3712
+ import type { Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
3713
+ type InvoiceRefundModalProps = Pick<ModalProps, 'isOpen' | 'onOpenChange'> & {
3714
+ invoice: Invoice;
3715
+ onSuccess: (invoice: Invoice) => void;
3716
+ };
3717
+ export function InvoiceRefundModal({ isOpen, onOpenChange, invoice, onSuccess }: InvoiceRefundModalProps): import("react/jsx-runtime").JSX.Element;
3718
+ export {};
3719
+
3720
+ }
3721
+ declare module '@layerfi/components/components/Invoices/Modal/InvoiceResetModal' {
3722
+ import { ModalProps } from '@layerfi/components/components/ui/Modal/Modal';
3723
+ import type { Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
3724
+ type InvoiceResetModalProps = Pick<ModalProps, 'isOpen' | 'onOpenChange'> & {
3725
+ invoiceId: string;
3726
+ onSuccess: (invoice: Invoice) => void;
3727
+ };
3728
+ export function InvoiceResetModal({ isOpen, onOpenChange, invoiceId: _invoiceId }: InvoiceResetModalProps): import("react/jsx-runtime").JSX.Element;
3729
+ export {};
3730
+
3731
+ }
3732
+ declare module '@layerfi/components/components/Invoices/Modal/InvoiceVoidModal' {
3733
+ import { ModalProps } from '@layerfi/components/components/ui/Modal/Modal';
3734
+ import type { Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
3735
+ type InvoiceVoidModalProps = Pick<ModalProps, 'isOpen' | 'onOpenChange'> & {
3736
+ invoiceId: string;
3737
+ onSuccess: (invoice: Invoice) => void;
3738
+ };
3739
+ export function InvoiceVoidModal({ isOpen, onOpenChange, invoiceId, onSuccess }: InvoiceVoidModalProps): import("react/jsx-runtime").JSX.Element;
3740
+ export {};
3741
+
3742
+ }
3743
+ declare module '@layerfi/components/components/Invoices/Modal/InvoiceWriteoffModal' {
3744
+ import { ModalProps } from '@layerfi/components/components/ui/Modal/Modal';
3745
+ import type { Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
3746
+ type InvoiceWriteoffModalProps = Pick<ModalProps, 'isOpen' | 'onOpenChange'> & {
3747
+ invoice: Invoice;
3748
+ onSuccess: (invoice: Invoice) => void;
3749
+ };
3750
+ export function InvoiceWriteoffModal({ isOpen, onOpenChange, invoice, onSuccess }: InvoiceWriteoffModalProps): import("react/jsx-runtime").JSX.Element;
3751
+ export {};
3752
+
3593
3753
  }
3594
3754
  declare module '@layerfi/components/components/Journal/Journal' {
3595
3755
  import { JournalTableStringOverrides } from '@layerfi/components/components/JournalTable/JournalTableWithPanel';
@@ -3607,7 +3767,7 @@ declare module '@layerfi/components/components/Journal/Journal' {
3607
3767
  asWidget?: boolean;
3608
3768
  config?: JournalConfig;
3609
3769
  stringOverrides?: JournalStringOverrides;
3610
- convertToInAppLink?: (source: LinkingMetadata) => ReactNode | undefined;
3770
+ renderInAppLink?: (source: LinkingMetadata) => ReactNode;
3611
3771
  }
3612
3772
  export const JOURNAL_CONFIG: JournalConfig;
3613
3773
  export const Journal: (props: JournalProps) => import("react/jsx-runtime").JSX.Element;
@@ -4427,7 +4587,7 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
4427
4587
  stringOverrides?: import("@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts").ProfitAndLossDetailedChartsStringOverrides;
4428
4588
  }) => import("react/jsx-runtime").JSX.Element;
4429
4589
  Header: ({ text, className, headingClassName, withDatePicker, withStatus, }: import("@layerfi/components/components/ProfitAndLossHeader/ProfitAndLossHeader").ProfitAndLossHeaderProps) => import("react/jsx-runtime").JSX.Element;
4430
- Report: ({ stringOverrides, allowedDatePickerModes, datePickerMode, defaultDatePickerMode, customDateRanges, csvMoneyFormat, view, }: import("@layerfi/components/components/ProfitAndLossReport/ProfitAndLossReport").ProfitAndLossReportProps) => import("react/jsx-runtime").JSX.Element;
4590
+ Report: ({ stringOverrides, allowedDatePickerModes, datePickerMode, defaultDatePickerMode, customDateRanges, csvMoneyFormat, view, renderInAppLink, }: import("@layerfi/components/components/ProfitAndLossReport/ProfitAndLossReport").ProfitAndLossReportProps) => import("react/jsx-runtime").JSX.Element;
4431
4591
  DownloadButton: ({ stringOverrides, useComparisonPnl, moneyFormat, view, }: import("@layerfi/components/components/ProfitAndLossDownloadButton/ProfitAndLossDownloadButton").ProfitAndLossDownloadButtonProps) => import("react/jsx-runtime").JSX.Element;
4432
4592
  };
4433
4593
  export { ProfitAndLoss };
@@ -4632,15 +4792,18 @@ declare module '@layerfi/components/components/ProfitAndLossHeader/index' {
4632
4792
 
4633
4793
  }
4634
4794
  declare module '@layerfi/components/components/ProfitAndLossReport/ProfitAndLossReport' {
4795
+ import { ReactNode } from 'react';
4635
4796
  import { View as ViewType } from '@layerfi/components/types/general';
4636
4797
  import { ReportsStringOverrides } from '@layerfi/components/views/Reports/Reports';
4637
4798
  import type { TimeRangePickerConfig } from '@layerfi/components/views/Reports/reportTypes';
4799
+ import { LinkingMetadata } from '@layerfi/components/contexts/InAppLinkContext';
4638
4800
  type ViewBreakpoint = ViewType | undefined;
4639
4801
  export type ProfitAndLossReportProps = {
4640
4802
  stringOverrides?: ReportsStringOverrides;
4641
4803
  view?: ViewBreakpoint;
4804
+ renderInAppLink?: (source: LinkingMetadata) => ReactNode;
4642
4805
  } & TimeRangePickerConfig;
4643
- export const ProfitAndLossReport: ({ stringOverrides, allowedDatePickerModes, datePickerMode, defaultDatePickerMode, customDateRanges, csvMoneyFormat, view, }: ProfitAndLossReportProps) => import("react/jsx-runtime").JSX.Element;
4806
+ export const ProfitAndLossReport: ({ stringOverrides, allowedDatePickerModes, datePickerMode, defaultDatePickerMode, customDateRanges, csvMoneyFormat, view, renderInAppLink, }: ProfitAndLossReportProps) => import("react/jsx-runtime").JSX.Element;
4644
4807
  export {};
4645
4808
 
4646
4809
  }
@@ -5754,7 +5917,7 @@ declare module '@layerfi/components/components/ui/Date/Date' {
5754
5917
 
5755
5918
  }
5756
5919
  declare module '@layerfi/components/components/ui/DropdownMenu/DropdownMenu' {
5757
- import React, { PropsWithChildren } from 'react';
5920
+ import React, { type PropsWithChildren } from 'react';
5758
5921
  type DropdownMenuProps = PropsWithChildren<{
5759
5922
  className?: string;
5760
5923
  ariaLabel?: string;
@@ -5766,18 +5929,15 @@ declare module '@layerfi/components/components/ui/DropdownMenu/DropdownMenu' {
5766
5929
  width?: number | string;
5767
5930
  };
5768
5931
  };
5932
+ variant?: 'compact';
5769
5933
  }>;
5770
5934
  type MenuItemProps = PropsWithChildren<{
5771
5935
  isDisabled?: boolean;
5772
5936
  onClick?: () => void;
5773
5937
  }>;
5774
- export const Heading: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
5775
- export const Separator: () => import("react/jsx-runtime").JSX.Element;
5776
5938
  export const MenuItem: ({ children, onClick, isDisabled }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
5777
- export const MenuList: ({ children }: {
5778
- children: React.ReactNode | React.ReactNode[];
5779
- }) => import("react/jsx-runtime").JSX.Element;
5780
- export const DropdownMenu: ({ children, ariaLabel, slots, slotProps }: DropdownMenuProps) => import("react/jsx-runtime").JSX.Element;
5939
+ export const MenuList: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
5940
+ export const DropdownMenu: ({ children, ariaLabel, variant, slots, slotProps }: DropdownMenuProps) => import("react/jsx-runtime").JSX.Element;
5781
5941
  export {};
5782
5942
 
5783
5943
  }
@@ -6548,14 +6708,14 @@ declare module '@layerfi/components/contexts/InAppLinkContext' {
6548
6708
  relatedEntityLinkingMetadata?: RelatedEntityLinkingMetadata[];
6549
6709
  }
6550
6710
  export interface InAppLinkContextType {
6551
- convertToInAppLink?: (source: LinkingMetadata) => ReactNode | undefined;
6711
+ renderInAppLink?: (source: LinkingMetadata) => ReactNode;
6552
6712
  }
6553
6713
  export interface InAppLinkProviderProps {
6554
- convertToInAppLink?: (source: LinkingMetadata) => ReactNode | undefined;
6714
+ renderInAppLink?: (source: LinkingMetadata) => ReactNode;
6555
6715
  children: ReactNode;
6556
6716
  }
6557
6717
  export const useInAppLinkContext: () => InAppLinkContextType;
6558
- export const InAppLinkProvider: ({ convertToInAppLink, children, }: InAppLinkProviderProps) => import("react/jsx-runtime").JSX.Element;
6718
+ export const InAppLinkProvider: ({ renderInAppLink, children, }: InAppLinkProviderProps) => import("react/jsx-runtime").JSX.Element;
6559
6719
 
6560
6720
  }
6561
6721
  declare module '@layerfi/components/contexts/JournalContext/JournalContext' {
@@ -7748,6 +7908,69 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
7748
7908
  };
7749
7909
  export {};
7750
7910
 
7911
+ }
7912
+ declare module '@layerfi/components/features/invoices/api/useRefundInvoice' {
7913
+ import type { Key } from 'swr';
7914
+ import { type SWRMutationResponse } from 'swr/mutation';
7915
+ import { Schema } from 'effect';
7916
+ import { CreateCustomerRefundSchema } from '@layerfi/components/features/invoices/customerRefundSchemas';
7917
+ import { type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
7918
+ const RefundInvoiceReturnSchema: Schema.Struct<{
7919
+ data: Schema.Struct<{
7920
+ externalId: Schema.PropertySignature<":", string | undefined, "external_id", ":", string | undefined, false, never>;
7921
+ refundedAmount: Schema.PropertySignature<":", number, "refunded_amount", ":", number, false, never>;
7922
+ status: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<import("@layerfi/components/features/invoices/customerRefundSchemas").CustomerRefundStatus, import("../customerRefundSchemas").CustomerRefundStatus, never>>;
7923
+ completedAt: Schema.PropertySignature<":", Date, "completed_at", ":", string, false, never>;
7924
+ isDedicated: Schema.PropertySignature<":", boolean, "is_dedicated", ":", boolean, false, never>;
7925
+ referenceNumber: Schema.PropertySignature<":", string | null, "reference_number", ":", string | null, false, never>;
7926
+ memo: Schema.NullOr<typeof Schema.String>;
7927
+ }>;
7928
+ }>;
7929
+ type RefundInvoiceBody = typeof CreateCustomerRefundSchema.Encoded;
7930
+ type RefundInvoiceReturn = typeof RefundInvoiceReturnSchema.Type;
7931
+ type RefundInvoiceSWRMutationResponse = SWRMutationResponse<RefundInvoiceReturn, unknown, Key, RefundInvoiceBody>;
7932
+ class RefundInvoiceSWRResponse {
7933
+ private swrResponse;
7934
+ constructor(swrResponse: RefundInvoiceSWRMutationResponse);
7935
+ get data(): {
7936
+ readonly data: {
7937
+ readonly externalId: string | undefined;
7938
+ readonly status: import("@layerfi/components/features/invoices/customerRefundSchemas").CustomerRefundStatus;
7939
+ readonly memo: string | null;
7940
+ readonly referenceNumber: string | null;
7941
+ readonly completedAt: Date;
7942
+ readonly refundedAmount: number;
7943
+ readonly isDedicated: boolean;
7944
+ };
7945
+ } | undefined;
7946
+ get trigger(): import("swr/mutation").TriggerWithArgs<{
7947
+ readonly data: {
7948
+ readonly externalId: string | undefined;
7949
+ readonly status: import("@layerfi/components/features/invoices/customerRefundSchemas").CustomerRefundStatus;
7950
+ readonly memo: string | null;
7951
+ readonly referenceNumber: string | null;
7952
+ readonly completedAt: Date;
7953
+ readonly refundedAmount: number;
7954
+ readonly isDedicated: boolean;
7955
+ };
7956
+ }, unknown, Key, {
7957
+ readonly completed_at: string;
7958
+ readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod;
7959
+ readonly external_id?: string | undefined;
7960
+ readonly memo?: string | undefined;
7961
+ readonly reference_number?: string | undefined;
7962
+ readonly refunded_amount?: number | undefined;
7963
+ }>;
7964
+ get isMutating(): boolean;
7965
+ get isError(): boolean;
7966
+ }
7967
+ export const updateInvoiceWithRefund: (invoice: Invoice) => Invoice;
7968
+ type UseRefundInvoiceProps = {
7969
+ invoiceId: string;
7970
+ };
7971
+ export const useRefundInvoice: ({ invoiceId }: UseRefundInvoiceProps) => RefundInvoiceSWRResponse;
7972
+ export {};
7973
+
7751
7974
  }
7752
7975
  declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvoicePayment' {
7753
7976
  import type { Key } from 'swr';
@@ -7793,9 +8016,9 @@ declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvo
7793
8016
  }, unknown, Key, {
7794
8017
  readonly amount: number;
7795
8018
  readonly method: import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod;
8019
+ readonly paid_at: string;
7796
8020
  readonly memo?: string | undefined;
7797
8021
  readonly reference_number?: string | undefined;
7798
- readonly paid_at?: string | undefined;
7799
8022
  }>;
7800
8023
  get isMutating(): boolean;
7801
8024
  get isError(): boolean;
@@ -8054,21 +8277,21 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
8054
8277
  readonly importedAt: Date;
8055
8278
  };
8056
8279
  }, unknown, Key, {
8057
- readonly memo: string | null;
8058
- readonly invoice_number: string | undefined;
8059
8280
  readonly line_items: readonly {
8060
8281
  readonly description: string;
8061
8282
  readonly product: string;
8062
8283
  readonly quantity: string;
8063
8284
  readonly unit_price: number;
8064
- readonly sales_taxes: readonly {
8285
+ readonly sales_taxes?: readonly {
8065
8286
  readonly amount: number;
8066
8287
  }[] | undefined;
8067
8288
  }[];
8068
8289
  readonly sent_at: string;
8069
8290
  readonly due_at: string;
8070
- readonly additional_discount: number | undefined;
8071
8291
  readonly customer_id: string;
8292
+ readonly memo?: string | undefined;
8293
+ readonly invoice_number?: string | undefined;
8294
+ readonly additional_discount?: number | undefined;
8072
8295
  }>;
8073
8296
  get isMutating(): boolean;
8074
8297
  get isError(): boolean;
@@ -8092,6 +8315,282 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
8092
8315
  export const useUpsertInvoice: (props: UseUpsertInvoiceProps) => UpsertInvoiceSWRResponse;
8093
8316
  export {};
8094
8317
 
8318
+ }
8319
+ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
8320
+ import type { Key } from 'swr';
8321
+ import { type SWRMutationResponse } from 'swr/mutation';
8322
+ import { Schema } from 'effect';
8323
+ const VoidInvoiceReturnSchema: Schema.Struct<{
8324
+ data: Schema.Struct<{
8325
+ id: typeof Schema.UUID;
8326
+ businessId: Schema.PropertySignature<":", string, "business_id", ":", string, false, never>;
8327
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
8328
+ status: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus, import("../invoiceSchemas").InvoiceStatus, never>>;
8329
+ sentAt: Schema.PropertySignature<":", Date | null, "sent_at", ":", string | null, false, never>;
8330
+ dueAt: Schema.PropertySignature<":", Date | null, "due_at", ":", string | null, false, never>;
8331
+ paidAt: Schema.PropertySignature<":", Date | null, "paid_at", ":", string | null, false, never>;
8332
+ voidedAt: Schema.PropertySignature<":", Date | null, "voided_at", ":", string | null, false, never>;
8333
+ invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
8334
+ recipientName: Schema.PropertySignature<":", string | null, "recipient_name", ":", string | null, false, never>;
8335
+ customer: Schema.NullOr<Schema.Struct<{
8336
+ id: typeof Schema.UUID;
8337
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
8338
+ individualName: Schema.PropertySignature<":", string | null, "individual_name", ":", string | null, false, never>;
8339
+ companyName: Schema.PropertySignature<":", string | null, "company_name", ":", string | null, false, never>;
8340
+ email: Schema.NullOr<typeof Schema.String>;
8341
+ mobilePhone: Schema.PropertySignature<":", string | null, "mobile_phone", ":", string | null, false, never>;
8342
+ officePhone: Schema.PropertySignature<":", string | null, "office_phone", ":", string | null, false, never>;
8343
+ addressString: Schema.PropertySignature<":", string | null, "address_string", ":", string | null, false, never>;
8344
+ status: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<"ACTIVE" | "ARCHIVED", "ACTIVE" | "ARCHIVED", never>>;
8345
+ memo: Schema.NullOr<typeof Schema.String>;
8346
+ _local: Schema.optional<Schema.Struct<{
8347
+ isOptimistic: typeof Schema.Boolean;
8348
+ }>>;
8349
+ }>>;
8350
+ lineItems: Schema.PropertySignature<":", readonly {
8351
+ readonly id: string;
8352
+ readonly externalId: string | null;
8353
+ readonly memo: string | null;
8354
+ readonly description: string | null;
8355
+ readonly invoiceId: string;
8356
+ readonly product: string | null;
8357
+ readonly subtotal: number;
8358
+ readonly quantity: import("effect/BigDecimal").BigDecimal;
8359
+ readonly unitPrice: number;
8360
+ readonly discountAmount: number;
8361
+ readonly salesTaxTotal: number;
8362
+ readonly totalAmount: number;
8363
+ }[], "line_items", ":", readonly {
8364
+ readonly id: string;
8365
+ readonly external_id: string | null;
8366
+ readonly memo: string | null;
8367
+ readonly description: string | null;
8368
+ readonly invoice_id: string;
8369
+ readonly product: string | null;
8370
+ readonly subtotal: number;
8371
+ readonly quantity: string;
8372
+ readonly unit_price: number;
8373
+ readonly discount_amount: number;
8374
+ readonly sales_taxes_total: number;
8375
+ readonly total_amount: number;
8376
+ }[], false, never>;
8377
+ subtotal: typeof Schema.Number;
8378
+ additionalDiscount: Schema.PropertySignature<":", number, "additional_discount", ":", number, false, never>;
8379
+ additionalSalesTaxesTotal: Schema.PropertySignature<":", number, "additional_sales_taxes_total", ":", number, false, never>;
8380
+ totalAmount: Schema.PropertySignature<":", number, "total_amount", ":", number, false, never>;
8381
+ outstandingBalance: Schema.PropertySignature<":", number, "outstanding_balance", ":", number, false, never>;
8382
+ importedAt: Schema.PropertySignature<":", Date, "imported_at", ":", string, false, never>;
8383
+ updatedAt: Schema.PropertySignature<":", Date | null, "updated_at", ":", string | null, false, never>;
8384
+ memo: Schema.NullOr<typeof Schema.String>;
8385
+ }>;
8386
+ }>;
8387
+ type VoidInvoiceReturn = typeof VoidInvoiceReturnSchema.Type;
8388
+ type VoidInvoiceSWRMutationResponse = SWRMutationResponse<VoidInvoiceReturn, unknown, Key, never>;
8389
+ class VoidInvoiceSWRResponse {
8390
+ private swrResponse;
8391
+ constructor(swrResponse: VoidInvoiceSWRMutationResponse);
8392
+ get data(): {
8393
+ readonly data: {
8394
+ readonly id: string;
8395
+ readonly externalId: string | null;
8396
+ readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
8397
+ readonly memo: string | null;
8398
+ readonly customer: {
8399
+ readonly id: string;
8400
+ readonly externalId: string | null;
8401
+ readonly individualName: string | null;
8402
+ readonly companyName: string | null;
8403
+ readonly email: string | null;
8404
+ readonly mobilePhone: string | null;
8405
+ readonly officePhone: string | null;
8406
+ readonly addressString: string | null;
8407
+ readonly status: "ACTIVE" | "ARCHIVED";
8408
+ readonly memo: string | null;
8409
+ readonly _local?: {
8410
+ readonly isOptimistic: boolean;
8411
+ } | undefined;
8412
+ } | null;
8413
+ readonly invoiceNumber: string | null;
8414
+ readonly recipientName: string | null;
8415
+ readonly businessId: string;
8416
+ readonly lineItems: readonly {
8417
+ readonly id: string;
8418
+ readonly externalId: string | null;
8419
+ readonly memo: string | null;
8420
+ readonly description: string | null;
8421
+ readonly invoiceId: string;
8422
+ readonly product: string | null;
8423
+ readonly subtotal: number;
8424
+ readonly quantity: import("effect/BigDecimal").BigDecimal;
8425
+ readonly unitPrice: number;
8426
+ readonly discountAmount: number;
8427
+ readonly salesTaxTotal: number;
8428
+ readonly totalAmount: number;
8429
+ }[];
8430
+ readonly updatedAt: Date | null;
8431
+ readonly subtotal: number;
8432
+ readonly paidAt: Date | null;
8433
+ readonly totalAmount: number;
8434
+ readonly sentAt: Date | null;
8435
+ readonly dueAt: Date | null;
8436
+ readonly voidedAt: Date | null;
8437
+ readonly additionalDiscount: number;
8438
+ readonly additionalSalesTaxesTotal: number;
8439
+ readonly outstandingBalance: number;
8440
+ readonly importedAt: Date;
8441
+ };
8442
+ } | undefined;
8443
+ get trigger(): import("swr/mutation").TriggerWithoutArgs<{
8444
+ readonly data: {
8445
+ readonly id: string;
8446
+ readonly externalId: string | null;
8447
+ readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
8448
+ readonly memo: string | null;
8449
+ readonly customer: {
8450
+ readonly id: string;
8451
+ readonly externalId: string | null;
8452
+ readonly individualName: string | null;
8453
+ readonly companyName: string | null;
8454
+ readonly email: string | null;
8455
+ readonly mobilePhone: string | null;
8456
+ readonly officePhone: string | null;
8457
+ readonly addressString: string | null;
8458
+ readonly status: "ACTIVE" | "ARCHIVED";
8459
+ readonly memo: string | null;
8460
+ readonly _local?: {
8461
+ readonly isOptimistic: boolean;
8462
+ } | undefined;
8463
+ } | null;
8464
+ readonly invoiceNumber: string | null;
8465
+ readonly recipientName: string | null;
8466
+ readonly businessId: string;
8467
+ readonly lineItems: readonly {
8468
+ readonly id: string;
8469
+ readonly externalId: string | null;
8470
+ readonly memo: string | null;
8471
+ readonly description: string | null;
8472
+ readonly invoiceId: string;
8473
+ readonly product: string | null;
8474
+ readonly subtotal: number;
8475
+ readonly quantity: import("effect/BigDecimal").BigDecimal;
8476
+ readonly unitPrice: number;
8477
+ readonly discountAmount: number;
8478
+ readonly salesTaxTotal: number;
8479
+ readonly totalAmount: number;
8480
+ }[];
8481
+ readonly updatedAt: Date | null;
8482
+ readonly subtotal: number;
8483
+ readonly paidAt: Date | null;
8484
+ readonly totalAmount: number;
8485
+ readonly sentAt: Date | null;
8486
+ readonly dueAt: Date | null;
8487
+ readonly voidedAt: Date | null;
8488
+ readonly additionalDiscount: number;
8489
+ readonly additionalSalesTaxesTotal: number;
8490
+ readonly outstandingBalance: number;
8491
+ readonly importedAt: Date;
8492
+ };
8493
+ }, unknown, Key, never>;
8494
+ get isMutating(): boolean;
8495
+ get isError(): boolean;
8496
+ }
8497
+ type UseVoidInvoiceProps = {
8498
+ invoiceId: string;
8499
+ };
8500
+ export const useVoidInvoice: ({ invoiceId }: UseVoidInvoiceProps) => VoidInvoiceSWRResponse;
8501
+ export {};
8502
+
8503
+ }
8504
+ declare module '@layerfi/components/features/invoices/api/useWriteoffInvoice' {
8505
+ import { Schema } from 'effect';
8506
+ import type { Key } from 'swr';
8507
+ import { type SWRMutationResponse } from 'swr/mutation';
8508
+ import { type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
8509
+ import { type CreateInvoiceWriteoff } from '@layerfi/components/features/invoices/invoiceWriteoffSchemas';
8510
+ const WriteoffInvoiceReturnSchema: Schema.Struct<{
8511
+ data: Schema.Struct<{
8512
+ invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
8513
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
8514
+ amount: typeof Schema.Number;
8515
+ writeOffMode: Schema.PropertySignature<":", import("@layerfi/components/features/invoices/invoiceWriteoffSchemas").InvoiceWriteoffMode, "write_off_mode", ":", string, false, never>;
8516
+ writeOffAt: Schema.PropertySignature<":", Date, "write_off_at", ":", string, false, never>;
8517
+ referenceNumber: Schema.PropertySignature<":", string | null, "reference_number", ":", string | null, false, never>;
8518
+ memo: Schema.NullOr<typeof Schema.String>;
8519
+ }>;
8520
+ }>;
8521
+ type WriteoffInvoiceReturn = typeof WriteoffInvoiceReturnSchema.Type;
8522
+ type WriteoffInvoiceSWRMutationResponse = SWRMutationResponse<WriteoffInvoiceReturn, unknown, Key, CreateInvoiceWriteoff>;
8523
+ class WriteoffInvoiceSWRResponse {
8524
+ private swrResponse;
8525
+ constructor(swrResponse: WriteoffInvoiceSWRMutationResponse);
8526
+ get data(): {
8527
+ readonly data: {
8528
+ readonly externalId: string | null;
8529
+ readonly memo: string | null;
8530
+ readonly amount: number;
8531
+ readonly referenceNumber: string | null;
8532
+ readonly invoiceId: string;
8533
+ readonly writeOffMode: import("@layerfi/components/features/invoices/invoiceWriteoffSchemas").InvoiceWriteoffMode;
8534
+ readonly writeOffAt: Date;
8535
+ };
8536
+ } | undefined;
8537
+ get trigger(): import("swr/mutation").TriggerWithArgs<{
8538
+ readonly data: {
8539
+ readonly externalId: string | null;
8540
+ readonly memo: string | null;
8541
+ readonly amount: number;
8542
+ readonly referenceNumber: string | null;
8543
+ readonly invoiceId: string;
8544
+ readonly writeOffMode: import("@layerfi/components/features/invoices/invoiceWriteoffSchemas").InvoiceWriteoffMode;
8545
+ readonly writeOffAt: Date;
8546
+ };
8547
+ }, unknown, Key, {
8548
+ readonly externalId?: string | undefined;
8549
+ readonly memo?: string | undefined;
8550
+ readonly amount: number;
8551
+ readonly referenceNumber?: string | undefined;
8552
+ readonly writeOffMode?: import("@layerfi/components/features/invoices/invoiceWriteoffSchemas").InvoiceWriteoffMode | undefined;
8553
+ readonly writeOffAt: Date;
8554
+ }>;
8555
+ get isMutating(): boolean;
8556
+ get isError(): boolean;
8557
+ }
8558
+ export const updateInvoiceWithWriteoff: (invoice: Invoice) => Invoice;
8559
+ type UseWriteoffInvoiceProps = {
8560
+ invoiceId: string;
8561
+ };
8562
+ export const useWriteoffInvoice: ({ invoiceId }: UseWriteoffInvoiceProps) => WriteoffInvoiceSWRResponse;
8563
+ export {};
8564
+
8565
+ }
8566
+ declare module '@layerfi/components/features/invoices/customerRefundSchemas' {
8567
+ import { Schema } from 'effect';
8568
+ export enum CustomerRefundStatus {
8569
+ Paid = "PAID",
8570
+ PartiallyPaid = "PARTIALLY_PAID",
8571
+ Sent = "SENT"
8572
+ }
8573
+ export const TransformedCustomerRefundStatusSchema: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<CustomerRefundStatus, CustomerRefundStatus, never>>;
8574
+ export const CreateCustomerRefundSchema: Schema.Struct<{
8575
+ externalId: Schema.PropertySignature<"?:", string | undefined, "external_id", "?:", string | undefined, false, never>;
8576
+ refundedAmount: Schema.PropertySignature<"?:", number | undefined, "refunded_amount", "?:", number | undefined, false, never>;
8577
+ completedAt: Schema.PropertySignature<":", Date, "completed_at", ":", string, false, never>;
8578
+ method: Schema.Enums<typeof import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod>;
8579
+ referenceNumber: Schema.PropertySignature<"?:", string | undefined, "reference_number", "?:", string | undefined, false, never>;
8580
+ memo: Schema.optional<typeof Schema.String>;
8581
+ }>;
8582
+ export type CreateCustomerRefund = typeof CreateCustomerRefundSchema.Type;
8583
+ export const CustomerRefundSchema: Schema.Struct<{
8584
+ externalId: Schema.PropertySignature<":", string | undefined, "external_id", ":", string | undefined, false, never>;
8585
+ refundedAmount: Schema.PropertySignature<":", number, "refunded_amount", ":", number, false, never>;
8586
+ status: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<CustomerRefundStatus, CustomerRefundStatus, never>>;
8587
+ completedAt: Schema.PropertySignature<":", Date, "completed_at", ":", string, false, never>;
8588
+ isDedicated: Schema.PropertySignature<":", boolean, "is_dedicated", ":", boolean, false, never>;
8589
+ referenceNumber: Schema.PropertySignature<":", string | null, "reference_number", ":", string | null, false, never>;
8590
+ memo: Schema.NullOr<typeof Schema.String>;
8591
+ }>;
8592
+ export type CustomerRefund = typeof CustomerRefundSchema.Type;
8593
+
8095
8594
  }
8096
8595
  declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8097
8596
  import { Schema } from 'effect';
@@ -8102,7 +8601,8 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8102
8601
  WrittenOff = "WRITTEN_OFF",
8103
8602
  PartiallyWrittenOff = "PARTIALLY_WRITTEN_OFF",
8104
8603
  PartiallyPaid = "PARTIALLY_PAID",
8105
- Sent = "SENT"
8604
+ Sent = "SENT",
8605
+ Refunded = "REFUNDED"
8106
8606
  }
8107
8607
  export const TransformedInvoiceStatusSchema: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<InvoiceStatus, InvoiceStatus, never>>;
8108
8608
  export const InvoiceLineItemSchema: Schema.Struct<{
@@ -8191,9 +8691,9 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8191
8691
  product: typeof Schema.String;
8192
8692
  unitPrice: Schema.PropertySignature<":", number, "unit_price", ":", number, false, never>;
8193
8693
  quantity: typeof Schema.BigDecimal;
8194
- salesTaxes: Schema.PropertySignature<":", readonly {
8694
+ salesTaxes: Schema.PropertySignature<"?:", readonly {
8195
8695
  readonly amount: number;
8196
- }[] | undefined, "sales_taxes", ":", readonly {
8696
+ }[] | undefined, "sales_taxes", "?:", readonly {
8197
8697
  readonly amount: number;
8198
8698
  }[] | undefined, false, never>;
8199
8699
  }>;
@@ -8201,15 +8701,15 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8201
8701
  export const UpsertInvoiceSchema: Schema.Struct<{
8202
8702
  sentAt: Schema.PropertySignature<":", Date, "sent_at", ":", string, false, never>;
8203
8703
  dueAt: Schema.PropertySignature<":", Date, "due_at", ":", string, false, never>;
8204
- invoiceNumber: Schema.PropertySignature<":", string | undefined, "invoice_number", ":", string | undefined, false, never>;
8704
+ invoiceNumber: Schema.PropertySignature<"?:", string | undefined, "invoice_number", "?:", string | undefined, false, never>;
8205
8705
  customerId: Schema.PropertySignature<":", string, "customer_id", ":", string, false, never>;
8206
- memo: Schema.NullOr<typeof Schema.String>;
8706
+ memo: Schema.optional<typeof Schema.String>;
8207
8707
  lineItems: Schema.PropertySignature<":", readonly {
8208
8708
  readonly description: string;
8209
8709
  readonly product: string;
8210
8710
  readonly quantity: import("effect/BigDecimal").BigDecimal;
8211
8711
  readonly unitPrice: number;
8212
- readonly salesTaxes: readonly {
8712
+ readonly salesTaxes?: readonly {
8213
8713
  readonly amount: number;
8214
8714
  }[] | undefined;
8215
8715
  }[], "line_items", ":", readonly {
@@ -8217,11 +8717,11 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8217
8717
  readonly product: string;
8218
8718
  readonly quantity: string;
8219
8719
  readonly unit_price: number;
8220
- readonly sales_taxes: readonly {
8720
+ readonly sales_taxes?: readonly {
8221
8721
  readonly amount: number;
8222
8722
  }[] | undefined;
8223
8723
  }[], false, never>;
8224
- additionalDiscount: Schema.PropertySignature<":", number | undefined, "additional_discount", ":", number | undefined, false, never>;
8724
+ additionalDiscount: Schema.PropertySignature<"?:", number | undefined, "additional_discount", "?:", number | undefined, false, never>;
8225
8725
  }>;
8226
8726
  export type UpsertInvoice = typeof UpsertInvoiceSchema.Type;
8227
8727
  export const InvoiceFormLineItemSchema: Schema.Struct<{
@@ -8295,7 +8795,7 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8295
8795
  export const UpsertDedicatedInvoicePaymentSchema: Schema.Struct<{
8296
8796
  amount: typeof Schema.Number;
8297
8797
  method: Schema.Enums<typeof import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod>;
8298
- paidAt: Schema.PropertySignature<"?:", Date | undefined, "paid_at", "?:", string | undefined, false, never>;
8798
+ paidAt: Schema.PropertySignature<":", Date, "paid_at", ":", string, false, never>;
8299
8799
  referenceNumber: Schema.PropertySignature<"?:", string | undefined, "reference_number", "?:", string | undefined, false, never>;
8300
8800
  memo: Schema.optional<typeof Schema.String>;
8301
8801
  }>;
@@ -8303,7 +8803,7 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8303
8803
  export const DedicatedInvoicePaymentFormSchema: Schema.Struct<{
8304
8804
  amount: typeof Schema.BigDecimal;
8305
8805
  method: Schema.NullOr<Schema.Enums<typeof import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod>>;
8306
- paidAt: Schema.declare<import("@internationalized/date").ZonedDateTime, import("@internationalized/date").ZonedDateTime, readonly [], never>;
8806
+ paidAt: Schema.NullOr<Schema.declare<import("@internationalized/date").ZonedDateTime, import("@internationalized/date").ZonedDateTime, readonly [], never>>;
8307
8807
  referenceNumber: typeof Schema.String;
8308
8808
  memo: typeof Schema.String;
8309
8809
  }>;
@@ -8317,6 +8817,34 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
8317
8817
  }>;
8318
8818
  export type InvoicePayment = typeof InvoicePaymentSchema.Type;
8319
8819
 
8820
+ }
8821
+ declare module '@layerfi/components/features/invoices/invoiceWriteoffSchemas' {
8822
+ import { Schema } from 'effect';
8823
+ export enum InvoiceWriteoffMode {
8824
+ Expense = "EXPENSE",
8825
+ RevenueReversal = "REVENUE_REVERSAL"
8826
+ }
8827
+ export const TransformedInvoiceWriteoffModeSchema: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<InvoiceWriteoffMode, InvoiceWriteoffMode, never>>;
8828
+ export const CreateInvoiceWriteoffSchema: Schema.Struct<{
8829
+ externalId: Schema.PropertySignature<"?:", string | undefined, "external_id", "?:", string | undefined, false, never>;
8830
+ amount: typeof Schema.Number;
8831
+ writeOffMode: Schema.PropertySignature<"?:", InvoiceWriteoffMode | undefined, "write_off_mode", "?:", InvoiceWriteoffMode | undefined, false, never>;
8832
+ writeOffAt: Schema.PropertySignature<":", Date, "write_off_at", ":", string, false, never>;
8833
+ referenceNumber: Schema.PropertySignature<"?:", string | undefined, "reference_number", "?:", string | undefined, false, never>;
8834
+ memo: Schema.optional<typeof Schema.String>;
8835
+ }>;
8836
+ export type CreateInvoiceWriteoff = typeof CreateInvoiceWriteoffSchema.Type;
8837
+ export const InvoiceWriteoffSchema: Schema.Struct<{
8838
+ invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
8839
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
8840
+ amount: typeof Schema.Number;
8841
+ writeOffMode: Schema.PropertySignature<":", InvoiceWriteoffMode, "write_off_mode", ":", string, false, never>;
8842
+ writeOffAt: Schema.PropertySignature<":", Date, "write_off_at", ":", string, false, never>;
8843
+ referenceNumber: Schema.PropertySignature<":", string | null, "reference_number", ":", string | null, false, never>;
8844
+ memo: Schema.NullOr<typeof Schema.String>;
8845
+ }>;
8846
+ export type InvoiceWriteoff = typeof InvoiceWriteoffSchema.Type;
8847
+
8320
8848
  }
8321
8849
  declare module '@layerfi/components/features/ledger/accounts/[ledgerAccountId]/api/useDeleteLedgerAccount' {
8322
8850
  export function useDeleteAccountFromLedger(): import("swr/mutation").SWRMutationResponse<Record<string, never>, any, () => {
@@ -9703,12 +10231,12 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
9703
10231
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
9704
10232
  type: Schema.Literal<["Transaction_Ledger_Entry_Source"]>;
9705
10233
  transactionId: Schema.PropertySignature<":", string, "transaction_id", ":", string, false, never>;
9706
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
10234
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
9707
10235
  accountName: Schema.PropertySignature<"?:", string | undefined, "account_name", "?:", string | undefined, false, never>;
9708
10236
  date: typeof Schema.String;
9709
10237
  amount: typeof Schema.Number;
9710
10238
  direction: Schema.Enums<typeof Direction>;
9711
- counterparty: Schema.optional<typeof Schema.String>;
10239
+ counterparty: Schema.optional<Schema.NullOr<typeof Schema.String>>;
9712
10240
  description: Schema.optional<typeof Schema.String>;
9713
10241
  memo: Schema.optional<Schema.NullOr<typeof Schema.String>>;
9714
10242
  metadata: Schema.optional<Schema.NullOr<typeof Schema.Unknown>>;
@@ -9718,9 +10246,9 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
9718
10246
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
9719
10247
  type: Schema.Literal<["Invoice_Ledger_Entry_Source"]>;
9720
10248
  invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
9721
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
10249
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
9722
10250
  invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
9723
- recipientName: Schema.PropertySignature<":", string, "recipient_name", ":", string, false, never>;
10251
+ recipientName: Schema.PropertySignature<":", string | null, "recipient_name", ":", string | null, false, never>;
9724
10252
  customerDescription: Schema.PropertySignature<"?:", string | undefined, "customer_description", "?:", string | undefined, false, never>;
9725
10253
  date: typeof Schema.String;
9726
10254
  amount: typeof Schema.Number;
@@ -9741,7 +10269,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
9741
10269
  displayDescription: Schema.PropertySignature<":", string, "display_description", ":", string, false, never>;
9742
10270
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
9743
10271
  type: Schema.Literal<["Invoice_Payment_Ledger_Entry_Source"]>;
9744
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
10272
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
9745
10273
  invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
9746
10274
  invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
9747
10275
  amount: typeof Schema.Number;
@@ -9821,7 +10349,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
9821
10349
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
9822
10350
  type: Schema.Literal<["Payout_Ledger_Entry_Source"]>;
9823
10351
  payoutId: Schema.PropertySignature<":", string, "payout_id", ":", string, false, never>;
9824
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
10352
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
9825
10353
  paidOutAmount: Schema.PropertySignature<":", number, "paid_out_amount", ":", number, false, never>;
9826
10354
  processor: Schema.optional<Schema.NullOr<typeof Schema.String>>;
9827
10355
  completedAt: Schema.PropertySignature<":", string, "completed_at", ":", string, false, never>;
@@ -10075,12 +10603,12 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
10075
10603
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
10076
10604
  type: Schema.Literal<["Transaction_Ledger_Entry_Source"]>;
10077
10605
  transactionId: Schema.PropertySignature<":", string, "transaction_id", ":", string, false, never>;
10078
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
10606
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
10079
10607
  accountName: Schema.PropertySignature<"?:", string | undefined, "account_name", "?:", string | undefined, false, never>;
10080
10608
  date: typeof Schema.String;
10081
10609
  amount: typeof Schema.Number;
10082
10610
  direction: Schema.Enums<typeof Direction>;
10083
- counterparty: Schema.optional<typeof Schema.String>;
10611
+ counterparty: Schema.optional<Schema.NullOr<typeof Schema.String>>;
10084
10612
  description: Schema.optional<typeof Schema.String>;
10085
10613
  memo: Schema.optional<Schema.NullOr<typeof Schema.String>>;
10086
10614
  metadata: Schema.optional<Schema.NullOr<typeof Schema.Unknown>>;
@@ -10090,9 +10618,9 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
10090
10618
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
10091
10619
  type: Schema.Literal<["Invoice_Ledger_Entry_Source"]>;
10092
10620
  invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
10093
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
10621
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
10094
10622
  invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
10095
- recipientName: Schema.PropertySignature<":", string, "recipient_name", ":", string, false, never>;
10623
+ recipientName: Schema.PropertySignature<":", string | null, "recipient_name", ":", string | null, false, never>;
10096
10624
  customerDescription: Schema.PropertySignature<"?:", string | undefined, "customer_description", "?:", string | undefined, false, never>;
10097
10625
  date: typeof Schema.String;
10098
10626
  amount: typeof Schema.Number;
@@ -10113,7 +10641,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
10113
10641
  displayDescription: Schema.PropertySignature<":", string, "display_description", ":", string, false, never>;
10114
10642
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
10115
10643
  type: Schema.Literal<["Invoice_Payment_Ledger_Entry_Source"]>;
10116
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
10644
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
10117
10645
  invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
10118
10646
  invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
10119
10647
  amount: typeof Schema.Number;
@@ -10193,7 +10721,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
10193
10721
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
10194
10722
  type: Schema.Literal<["Payout_Ledger_Entry_Source"]>;
10195
10723
  payoutId: Schema.PropertySignature<":", string, "payout_id", ":", string, false, never>;
10196
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
10724
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
10197
10725
  paidOutAmount: Schema.PropertySignature<":", number, "paid_out_amount", ":", number, false, never>;
10198
10726
  processor: Schema.optional<Schema.NullOr<typeof Schema.String>>;
10199
10727
  completedAt: Schema.PropertySignature<":", string, "completed_at", ":", string, false, never>;
@@ -10777,7 +11305,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
10777
11305
  readonly date: string;
10778
11306
  readonly source?: {
10779
11307
  readonly type: "Transaction_Ledger_Entry_Source";
10780
- readonly externalId: string;
11308
+ readonly externalId: string | null;
10781
11309
  readonly memo?: string | null | undefined;
10782
11310
  readonly amount: number;
10783
11311
  readonly description?: string | undefined;
@@ -10789,10 +11317,10 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
10789
11317
  readonly displayDescription: string;
10790
11318
  readonly entityName: string;
10791
11319
  readonly accountName?: string | undefined;
10792
- readonly counterparty?: string | undefined;
11320
+ readonly counterparty?: string | null | undefined;
10793
11321
  } | {
10794
11322
  readonly type: "Invoice_Ledger_Entry_Source";
10795
- readonly externalId: string;
11323
+ readonly externalId: string | null;
10796
11324
  readonly memo?: string | null | undefined;
10797
11325
  readonly amount: number;
10798
11326
  readonly referenceNumber?: string | null | undefined;
@@ -10802,7 +11330,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
10802
11330
  readonly entityName: string;
10803
11331
  readonly invoiceId: string;
10804
11332
  readonly invoiceNumber: string | null;
10805
- readonly recipientName: string;
11333
+ readonly recipientName: string | null;
10806
11334
  readonly customerDescription?: string | undefined;
10807
11335
  } | {
10808
11336
  readonly type: "Manual_Ledger_Entry_Source";
@@ -10816,7 +11344,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
10816
11344
  readonly createdBy: string;
10817
11345
  } | {
10818
11346
  readonly type: "Invoice_Payment_Ledger_Entry_Source";
10819
- readonly externalId: string;
11347
+ readonly externalId: string | null;
10820
11348
  readonly memo?: string | null | undefined;
10821
11349
  readonly amount: number;
10822
11350
  readonly referenceNumber?: string | null | undefined;
@@ -10880,7 +11408,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
10880
11408
  readonly openingBalanceId: string;
10881
11409
  } | {
10882
11410
  readonly type: "Payout_Ledger_Entry_Source";
10883
- readonly externalId: string;
11411
+ readonly externalId: string | null;
10884
11412
  readonly memo?: string | null | undefined;
10885
11413
  readonly referenceNumber?: string | null | undefined;
10886
11414
  readonly metadata?: unknown;
@@ -12798,12 +13326,12 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
12798
13326
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
12799
13327
  type: Schema.Literal<["Transaction_Ledger_Entry_Source"]>;
12800
13328
  transactionId: Schema.PropertySignature<":", string, "transaction_id", ":", string, false, never>;
12801
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
13329
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
12802
13330
  accountName: Schema.PropertySignature<"?:", string | undefined, "account_name", "?:", string | undefined, false, never>;
12803
13331
  date: typeof Schema.String;
12804
13332
  amount: typeof Schema.Number;
12805
13333
  direction: Schema.Enums<typeof import("@layerfi/components/index").Direction>;
12806
- counterparty: Schema.optional<typeof Schema.String>;
13334
+ counterparty: Schema.optional<Schema.NullOr<typeof Schema.String>>;
12807
13335
  description: Schema.optional<typeof Schema.String>;
12808
13336
  memo: Schema.optional<Schema.NullOr<typeof Schema.String>>;
12809
13337
  metadata: Schema.optional<Schema.NullOr<typeof Schema.Unknown>>;
@@ -12813,9 +13341,9 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
12813
13341
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
12814
13342
  type: Schema.Literal<["Invoice_Ledger_Entry_Source"]>;
12815
13343
  invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
12816
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
13344
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
12817
13345
  invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
12818
- recipientName: Schema.PropertySignature<":", string, "recipient_name", ":", string, false, never>;
13346
+ recipientName: Schema.PropertySignature<":", string | null, "recipient_name", ":", string | null, false, never>;
12819
13347
  customerDescription: Schema.PropertySignature<"?:", string | undefined, "customer_description", "?:", string | undefined, false, never>;
12820
13348
  date: typeof Schema.String;
12821
13349
  amount: typeof Schema.Number;
@@ -12836,7 +13364,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
12836
13364
  displayDescription: Schema.PropertySignature<":", string, "display_description", ":", string, false, never>;
12837
13365
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
12838
13366
  type: Schema.Literal<["Invoice_Payment_Ledger_Entry_Source"]>;
12839
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
13367
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
12840
13368
  invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
12841
13369
  invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
12842
13370
  amount: typeof Schema.Number;
@@ -12916,7 +13444,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
12916
13444
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
12917
13445
  type: Schema.Literal<["Payout_Ledger_Entry_Source"]>;
12918
13446
  payoutId: Schema.PropertySignature<":", string, "payout_id", ":", string, false, never>;
12919
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
13447
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
12920
13448
  paidOutAmount: Schema.PropertySignature<":", number, "paid_out_amount", ":", number, false, never>;
12921
13449
  processor: Schema.optional<Schema.NullOr<typeof Schema.String>>;
12922
13450
  completedAt: Schema.PropertySignature<":", string, "completed_at", ":", string, false, never>;
@@ -13328,12 +13856,12 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
13328
13856
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
13329
13857
  type: Schema.Literal<["Transaction_Ledger_Entry_Source"]>;
13330
13858
  transactionId: Schema.PropertySignature<":", string, "transaction_id", ":", string, false, never>;
13331
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
13859
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
13332
13860
  accountName: Schema.PropertySignature<"?:", string | undefined, "account_name", "?:", string | undefined, false, never>;
13333
13861
  date: typeof Schema.String;
13334
13862
  amount: typeof Schema.Number;
13335
13863
  direction: Schema.Enums<typeof import("@layerfi/components/index").Direction>;
13336
- counterparty: Schema.optional<typeof Schema.String>;
13864
+ counterparty: Schema.optional<Schema.NullOr<typeof Schema.String>>;
13337
13865
  description: Schema.optional<typeof Schema.String>;
13338
13866
  memo: Schema.optional<Schema.NullOr<typeof Schema.String>>;
13339
13867
  metadata: Schema.optional<Schema.NullOr<typeof Schema.Unknown>>;
@@ -13343,9 +13871,9 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
13343
13871
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
13344
13872
  type: Schema.Literal<["Invoice_Ledger_Entry_Source"]>;
13345
13873
  invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
13346
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
13874
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
13347
13875
  invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
13348
- recipientName: Schema.PropertySignature<":", string, "recipient_name", ":", string, false, never>;
13876
+ recipientName: Schema.PropertySignature<":", string | null, "recipient_name", ":", string | null, false, never>;
13349
13877
  customerDescription: Schema.PropertySignature<"?:", string | undefined, "customer_description", "?:", string | undefined, false, never>;
13350
13878
  date: typeof Schema.String;
13351
13879
  amount: typeof Schema.Number;
@@ -13366,7 +13894,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
13366
13894
  displayDescription: Schema.PropertySignature<":", string, "display_description", ":", string, false, never>;
13367
13895
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
13368
13896
  type: Schema.Literal<["Invoice_Payment_Ledger_Entry_Source"]>;
13369
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
13897
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
13370
13898
  invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
13371
13899
  invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
13372
13900
  amount: typeof Schema.Number;
@@ -13446,7 +13974,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
13446
13974
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
13447
13975
  type: Schema.Literal<["Payout_Ledger_Entry_Source"]>;
13448
13976
  payoutId: Schema.PropertySignature<":", string, "payout_id", ":", string, false, never>;
13449
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
13977
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
13450
13978
  paidOutAmount: Schema.PropertySignature<":", number, "paid_out_amount", ":", number, false, never>;
13451
13979
  processor: Schema.optional<Schema.NullOr<typeof Schema.String>>;
13452
13980
  completedAt: Schema.PropertySignature<":", string, "completed_at", ":", string, false, never>;
@@ -13825,12 +14353,12 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
13825
14353
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
13826
14354
  type: Schema.Literal<["Transaction_Ledger_Entry_Source"]>;
13827
14355
  transactionId: Schema.PropertySignature<":", string, "transaction_id", ":", string, false, never>;
13828
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
14356
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
13829
14357
  accountName: Schema.PropertySignature<"?:", string | undefined, "account_name", "?:", string | undefined, false, never>;
13830
14358
  date: typeof Schema.String;
13831
14359
  amount: typeof Schema.Number;
13832
14360
  direction: Schema.Enums<typeof import("@layerfi/components/index").Direction>;
13833
- counterparty: Schema.optional<typeof Schema.String>;
14361
+ counterparty: Schema.optional<Schema.NullOr<typeof Schema.String>>;
13834
14362
  description: Schema.optional<typeof Schema.String>;
13835
14363
  memo: Schema.optional<Schema.NullOr<typeof Schema.String>>;
13836
14364
  metadata: Schema.optional<Schema.NullOr<typeof Schema.Unknown>>;
@@ -13840,9 +14368,9 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
13840
14368
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
13841
14369
  type: Schema.Literal<["Invoice_Ledger_Entry_Source"]>;
13842
14370
  invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
13843
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
14371
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
13844
14372
  invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
13845
- recipientName: Schema.PropertySignature<":", string, "recipient_name", ":", string, false, never>;
14373
+ recipientName: Schema.PropertySignature<":", string | null, "recipient_name", ":", string | null, false, never>;
13846
14374
  customerDescription: Schema.PropertySignature<"?:", string | undefined, "customer_description", "?:", string | undefined, false, never>;
13847
14375
  date: typeof Schema.String;
13848
14376
  amount: typeof Schema.Number;
@@ -13863,7 +14391,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
13863
14391
  displayDescription: Schema.PropertySignature<":", string, "display_description", ":", string, false, never>;
13864
14392
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
13865
14393
  type: Schema.Literal<["Invoice_Payment_Ledger_Entry_Source"]>;
13866
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
14394
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
13867
14395
  invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
13868
14396
  invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
13869
14397
  amount: typeof Schema.Number;
@@ -13943,7 +14471,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
13943
14471
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
13944
14472
  type: Schema.Literal<["Payout_Ledger_Entry_Source"]>;
13945
14473
  payoutId: Schema.PropertySignature<":", string, "payout_id", ":", string, false, never>;
13946
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
14474
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
13947
14475
  paidOutAmount: Schema.PropertySignature<":", number, "paid_out_amount", ":", number, false, never>;
13948
14476
  processor: Schema.optional<Schema.NullOr<typeof Schema.String>>;
13949
14477
  completedAt: Schema.PropertySignature<":", string, "completed_at", ":", string, false, never>;
@@ -14172,12 +14700,12 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
14172
14700
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
14173
14701
  type: Schema.Literal<["Transaction_Ledger_Entry_Source"]>;
14174
14702
  transactionId: Schema.PropertySignature<":", string, "transaction_id", ":", string, false, never>;
14175
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
14703
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
14176
14704
  accountName: Schema.PropertySignature<"?:", string | undefined, "account_name", "?:", string | undefined, false, never>;
14177
14705
  date: typeof Schema.String;
14178
14706
  amount: typeof Schema.Number;
14179
14707
  direction: Schema.Enums<typeof Direction>;
14180
- counterparty: Schema.optional<typeof Schema.String>;
14708
+ counterparty: Schema.optional<Schema.NullOr<typeof Schema.String>>;
14181
14709
  description: Schema.optional<typeof Schema.String>;
14182
14710
  memo: Schema.optional<Schema.NullOr<typeof Schema.String>>;
14183
14711
  metadata: Schema.optional<Schema.NullOr<typeof Schema.Unknown>>;
@@ -14188,9 +14716,9 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
14188
14716
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
14189
14717
  type: Schema.Literal<["Invoice_Ledger_Entry_Source"]>;
14190
14718
  invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
14191
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
14719
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
14192
14720
  invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
14193
- recipientName: Schema.PropertySignature<":", string, "recipient_name", ":", string, false, never>;
14721
+ recipientName: Schema.PropertySignature<":", string | null, "recipient_name", ":", string | null, false, never>;
14194
14722
  customerDescription: Schema.PropertySignature<"?:", string | undefined, "customer_description", "?:", string | undefined, false, never>;
14195
14723
  date: typeof Schema.String;
14196
14724
  amount: typeof Schema.Number;
@@ -14213,7 +14741,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
14213
14741
  displayDescription: Schema.PropertySignature<":", string, "display_description", ":", string, false, never>;
14214
14742
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
14215
14743
  type: Schema.Literal<["Invoice_Payment_Ledger_Entry_Source"]>;
14216
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
14744
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
14217
14745
  invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
14218
14746
  invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
14219
14747
  amount: typeof Schema.Number;
@@ -14297,7 +14825,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
14297
14825
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
14298
14826
  type: Schema.Literal<["Payout_Ledger_Entry_Source"]>;
14299
14827
  payoutId: Schema.PropertySignature<":", string, "payout_id", ":", string, false, never>;
14300
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
14828
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
14301
14829
  paidOutAmount: Schema.PropertySignature<":", number, "paid_out_amount", ":", number, false, never>;
14302
14830
  processor: Schema.optional<Schema.NullOr<typeof Schema.String>>;
14303
14831
  completedAt: Schema.PropertySignature<":", string, "completed_at", ":", string, false, never>;
@@ -14520,12 +15048,12 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
14520
15048
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
14521
15049
  type: Schema.Literal<["Transaction_Ledger_Entry_Source"]>;
14522
15050
  transactionId: Schema.PropertySignature<":", string, "transaction_id", ":", string, false, never>;
14523
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
15051
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
14524
15052
  accountName: Schema.PropertySignature<"?:", string | undefined, "account_name", "?:", string | undefined, false, never>;
14525
15053
  date: typeof Schema.String;
14526
15054
  amount: typeof Schema.Number;
14527
15055
  direction: Schema.Enums<typeof Direction>;
14528
- counterparty: Schema.optional<typeof Schema.String>;
15056
+ counterparty: Schema.optional<Schema.NullOr<typeof Schema.String>>;
14529
15057
  description: Schema.optional<typeof Schema.String>;
14530
15058
  memo: Schema.optional<Schema.NullOr<typeof Schema.String>>;
14531
15059
  metadata: Schema.optional<Schema.NullOr<typeof Schema.Unknown>>;
@@ -14535,9 +15063,9 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
14535
15063
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
14536
15064
  type: Schema.Literal<["Invoice_Ledger_Entry_Source"]>;
14537
15065
  invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
14538
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
15066
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
14539
15067
  invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
14540
- recipientName: Schema.PropertySignature<":", string, "recipient_name", ":", string, false, never>;
15068
+ recipientName: Schema.PropertySignature<":", string | null, "recipient_name", ":", string | null, false, never>;
14541
15069
  customerDescription: Schema.PropertySignature<"?:", string | undefined, "customer_description", "?:", string | undefined, false, never>;
14542
15070
  date: typeof Schema.String;
14543
15071
  amount: typeof Schema.Number;
@@ -14558,7 +15086,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
14558
15086
  displayDescription: Schema.PropertySignature<":", string, "display_description", ":", string, false, never>;
14559
15087
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
14560
15088
  type: Schema.Literal<["Invoice_Payment_Ledger_Entry_Source"]>;
14561
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
15089
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
14562
15090
  invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
14563
15091
  invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
14564
15092
  amount: typeof Schema.Number;
@@ -14638,7 +15166,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
14638
15166
  entityName: Schema.PropertySignature<":", string, "entity_name", ":", string, false, never>;
14639
15167
  type: Schema.Literal<["Payout_Ledger_Entry_Source"]>;
14640
15168
  payoutId: Schema.PropertySignature<":", string, "payout_id", ":", string, false, never>;
14641
- externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
15169
+ externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
14642
15170
  paidOutAmount: Schema.PropertySignature<":", number, "paid_out_amount", ":", number, false, never>;
14643
15171
  processor: Schema.optional<Schema.NullOr<typeof Schema.String>>;
14644
15172
  completedAt: Schema.PropertySignature<":", string, "completed_at", ":", string, false, never>;
@@ -14847,7 +15375,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
14847
15375
  }>]>;
14848
15376
  export const decodeLedgerEntrySource: (data: unknown) => {
14849
15377
  readonly type: "Transaction_Ledger_Entry_Source";
14850
- readonly externalId: string;
15378
+ readonly externalId: string | null;
14851
15379
  readonly memo?: string | null | undefined;
14852
15380
  readonly amount: number;
14853
15381
  readonly description?: string | undefined;
@@ -14859,10 +15387,10 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
14859
15387
  readonly displayDescription: string;
14860
15388
  readonly entityName: string;
14861
15389
  readonly accountName?: string | undefined;
14862
- readonly counterparty?: string | undefined;
15390
+ readonly counterparty?: string | null | undefined;
14863
15391
  } | {
14864
15392
  readonly type: "Invoice_Ledger_Entry_Source";
14865
- readonly externalId: string;
15393
+ readonly externalId: string | null;
14866
15394
  readonly memo?: string | null | undefined;
14867
15395
  readonly amount: number;
14868
15396
  readonly referenceNumber?: string | null | undefined;
@@ -14872,7 +15400,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
14872
15400
  readonly entityName: string;
14873
15401
  readonly invoiceId: string;
14874
15402
  readonly invoiceNumber: string | null;
14875
- readonly recipientName: string;
15403
+ readonly recipientName: string | null;
14876
15404
  readonly customerDescription?: string | undefined;
14877
15405
  } | {
14878
15406
  readonly type: "Manual_Ledger_Entry_Source";
@@ -14886,7 +15414,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
14886
15414
  readonly createdBy: string;
14887
15415
  } | {
14888
15416
  readonly type: "Invoice_Payment_Ledger_Entry_Source";
14889
- readonly externalId: string;
15417
+ readonly externalId: string | null;
14890
15418
  readonly memo?: string | null | undefined;
14891
15419
  readonly amount: number;
14892
15420
  readonly referenceNumber?: string | null | undefined;
@@ -14950,7 +15478,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntrySource' {
14950
15478
  readonly openingBalanceId: string;
14951
15479
  } | {
14952
15480
  readonly type: "Payout_Ledger_Entry_Source";
14953
- readonly externalId: string;
15481
+ readonly externalId: string | null;
14954
15482
  readonly memo?: string | null | undefined;
14955
15483
  readonly referenceNumber?: string | null | undefined;
14956
15484
  readonly metadata?: unknown;
@@ -17589,9 +18117,9 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/Ban
17589
18117
  mode?: BankTransactionsMode;
17590
18118
  mobileComponent?: MobileComponentType;
17591
18119
  stringOverrides?: BankTransactionsWithLinkedAccountsStringOverrides;
17592
- convertToInAppLink?: (details: LinkingMetadata) => ReactNode;
18120
+ renderInAppLink?: (details: LinkingMetadata) => ReactNode;
17593
18121
  }
17594
- export const BankTransactionsWithLinkedAccounts: ({ title, showTitle, elevatedLinkedAccounts, mode, showBreakConnection, showCustomerVendor, showDescriptions, showLedgerBalance, showReceiptUploads, showTags, showTooltips, showUnlinkItem, showUploadOptions, mobileComponent, stringOverrides, convertToInAppLink, }: BankTransactionsWithLinkedAccountsProps) => import("react/jsx-runtime").JSX.Element;
18122
+ export const BankTransactionsWithLinkedAccounts: ({ title, showTitle, elevatedLinkedAccounts, mode, showBreakConnection, showCustomerVendor, showDescriptions, showLedgerBalance, showReceiptUploads, showTags, showTooltips, showUnlinkItem, showUploadOptions, mobileComponent, stringOverrides, renderInAppLink, }: BankTransactionsWithLinkedAccountsProps) => import("react/jsx-runtime").JSX.Element;
17595
18123
  export {};
17596
18124
 
17597
18125
  }
@@ -17686,9 +18214,9 @@ declare module '@layerfi/components/views/GeneralLedger/GeneralLedger' {
17686
18214
  showTitle?: boolean;
17687
18215
  stringOverrides?: GeneralLedgerStringOverrides;
17688
18216
  chartOfAccountsOptions?: ChartOfAccountsOptions;
17689
- convertToInAppLink?: (source: LinkingMetadata) => ReactNode | undefined;
18217
+ renderInAppLink?: (source: LinkingMetadata) => ReactNode;
17690
18218
  }
17691
- export const GeneralLedgerView: ({ title, showTitle, stringOverrides, chartOfAccountsOptions, convertToInAppLink: convertToInAppLink, }: GeneralLedgerProps) => import("react/jsx-runtime").JSX.Element;
18219
+ export const GeneralLedgerView: ({ title, showTitle, stringOverrides, chartOfAccountsOptions, renderInAppLink, }: GeneralLedgerProps) => import("react/jsx-runtime").JSX.Element;
17692
18220
 
17693
18221
  }
17694
18222
  declare module '@layerfi/components/views/GeneralLedger/index' {
@@ -17721,6 +18249,7 @@ declare module '@layerfi/components/views/ProjectProfitability/index' {
17721
18249
 
17722
18250
  }
17723
18251
  declare module '@layerfi/components/views/Reports/Reports' {
18252
+ import { ReactNode } from 'react';
17724
18253
  import { BalanceSheetStringOverrides } from '@layerfi/components/components/BalanceSheet/BalanceSheet';
17725
18254
  import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
17726
18255
  import { PnLDownloadButtonStringOverrides } from '@layerfi/components/components/ProfitAndLossDownloadButton/index';
@@ -17729,6 +18258,7 @@ declare module '@layerfi/components/views/Reports/Reports' {
17729
18258
  import { View as ViewType } from '@layerfi/components/types/general';
17730
18259
  import type { TimeRangePickerConfig } from '@layerfi/components/views/Reports/reportTypes';
17731
18260
  import { ProfitAndLossCompareConfig } from '@layerfi/components/types/profit_and_loss';
18261
+ import { LinkingMetadata } from '@layerfi/components/contexts/InAppLinkContext';
17732
18262
  type ViewBreakpoint = ViewType | undefined;
17733
18263
  export interface ReportsStringOverrides {
17734
18264
  title?: string;
@@ -17748,6 +18278,7 @@ declare module '@layerfi/components/views/Reports/Reports' {
17748
18278
  comparisonConfig?: ProfitAndLossCompareConfig;
17749
18279
  profitAndLossConfig?: TimeRangePickerConfig;
17750
18280
  statementOfCashFlowConfig?: TimeRangePickerConfig;
18281
+ renderInAppLink?: (source: LinkingMetadata) => ReactNode;
17751
18282
  }
17752
18283
  type ReportType = 'profitAndLoss' | 'balanceSheet' | 'statementOfCashFlow';
17753
18284
  export interface ReportsPanelProps {
@@ -17756,8 +18287,9 @@ declare module '@layerfi/components/views/Reports/Reports' {
17756
18287
  profitAndLossConfig?: TimeRangePickerConfig;
17757
18288
  statementOfCashFlowConfig?: TimeRangePickerConfig;
17758
18289
  view: ViewBreakpoint;
18290
+ renderInAppLink?: (source: LinkingMetadata) => ReactNode;
17759
18291
  }
17760
- export const Reports: ({ title, showTitle, stringOverrides, enabledReports, comparisonConfig, profitAndLossConfig, statementOfCashFlowConfig, }: ReportsProps) => import("react/jsx-runtime").JSX.Element;
18292
+ export const Reports: ({ title, showTitle, stringOverrides, enabledReports, comparisonConfig, profitAndLossConfig, statementOfCashFlowConfig, renderInAppLink, }: ReportsProps) => import("react/jsx-runtime").JSX.Element;
17761
18293
  export {};
17762
18294
 
17763
18295
  }