@layerfi/components 0.1.108-alpha → 0.1.108-alpha.1
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/cjs/index.cjs +2664 -2477
- package/dist/esm/index.mjs +2350 -2163
- package/dist/index.css +81 -114
- package/dist/index.d.ts +249 -29
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2798,21 +2798,6 @@ declare module '@layerfi/components/components/DetailReportBreadcrumb/DetailRepo
|
|
|
2798
2798
|
}
|
|
2799
2799
|
export const DetailReportBreadcrumb: ({ breadcrumbs, subtitle, onBreadcrumbClick, }: DetailReportBreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
|
|
2800
2800
|
|
|
2801
|
-
}
|
|
2802
|
-
declare module '@layerfi/components/components/DetailReportHeader/DetailReportHeader' {
|
|
2803
|
-
import { ReactNode } from 'react';
|
|
2804
|
-
export interface DetailReportHeaderProps {
|
|
2805
|
-
title: ReactNode;
|
|
2806
|
-
onClose: () => void;
|
|
2807
|
-
className?: string;
|
|
2808
|
-
}
|
|
2809
|
-
export const DetailReportHeader: ({ title, onClose, className, }: DetailReportHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
2810
|
-
|
|
2811
|
-
}
|
|
2812
|
-
declare module '@layerfi/components/components/DetailReportHeader/index' {
|
|
2813
|
-
export { DetailReportHeader } from '@layerfi/components/components/DetailReportHeader/DetailReportHeader';
|
|
2814
|
-
export type { DetailReportHeaderProps } from '@layerfi/components/components/DetailReportHeader/DetailReportHeader';
|
|
2815
|
-
|
|
2816
2801
|
}
|
|
2817
2802
|
declare module '@layerfi/components/components/DetailsList/DetailsList' {
|
|
2818
2803
|
import { ReactNode } from 'react';
|
|
@@ -3720,12 +3705,12 @@ declare module '@layerfi/components/components/Invoices/Modal/InvoiceRefundModal
|
|
|
3720
3705
|
}
|
|
3721
3706
|
declare module '@layerfi/components/components/Invoices/Modal/InvoiceResetModal' {
|
|
3722
3707
|
import { ModalProps } from '@layerfi/components/components/ui/Modal/Modal';
|
|
3723
|
-
import type
|
|
3708
|
+
import { type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
|
|
3724
3709
|
type InvoiceResetModalProps = Pick<ModalProps, 'isOpen' | 'onOpenChange'> & {
|
|
3725
|
-
|
|
3710
|
+
invoice: Invoice;
|
|
3726
3711
|
onSuccess: (invoice: Invoice) => void;
|
|
3727
3712
|
};
|
|
3728
|
-
export function InvoiceResetModal({ isOpen, onOpenChange,
|
|
3713
|
+
export function InvoiceResetModal({ isOpen, onOpenChange, invoice, onSuccess }: InvoiceResetModalProps): import("react/jsx-runtime").JSX.Element;
|
|
3729
3714
|
export {};
|
|
3730
3715
|
|
|
3731
3716
|
}
|
|
@@ -4677,6 +4662,19 @@ declare module '@layerfi/components/components/ProfitAndLossDetailReport/ProfitA
|
|
|
4677
4662
|
}
|
|
4678
4663
|
export const ProfitAndLossDetailReport: ({ lineItemName, breadcrumbPath, onClose, onBreadcrumbClick, stringOverrides, }: ProfitAndLossDetailReportProps) => import("react/jsx-runtime").JSX.Element;
|
|
4679
4664
|
|
|
4665
|
+
}
|
|
4666
|
+
declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/DetailReportModal' {
|
|
4667
|
+
import { type ProfitAndLossDetailReportProps } from '@layerfi/components/components/ProfitAndLossDetailReport/ProfitAndLossDetailReport';
|
|
4668
|
+
import { type SelectedLineItem } from '@layerfi/components/components/ProfitAndLossReport/ProfitAndLossReport';
|
|
4669
|
+
export interface DetailReportModalProps {
|
|
4670
|
+
isOpen: boolean;
|
|
4671
|
+
onOpenChange: (isOpen: boolean) => void;
|
|
4672
|
+
selectedItem: SelectedLineItem | null;
|
|
4673
|
+
onBreadcrumbClick?: (lineItemName: string) => void;
|
|
4674
|
+
stringOverrides?: ProfitAndLossDetailReportProps['stringOverrides'];
|
|
4675
|
+
}
|
|
4676
|
+
export function DetailReportModal({ isOpen, onOpenChange, selectedItem, onBreadcrumbClick, stringOverrides, }: DetailReportModalProps): import("react/jsx-runtime").JSX.Element;
|
|
4677
|
+
|
|
4680
4678
|
}
|
|
4681
4679
|
declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/DetailedChart' {
|
|
4682
4680
|
import { SidebarScope } from '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss';
|
|
@@ -4714,13 +4712,14 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Detai
|
|
|
4714
4712
|
sortBy: (scope: Scope, field: string, direction?: SortDirection) => void;
|
|
4715
4713
|
chartColorsList?: string[];
|
|
4716
4714
|
stringOverrides?: DetailedTableStringOverrides;
|
|
4715
|
+
onValueClick?: (item: PnlChartLineItem) => void;
|
|
4717
4716
|
}
|
|
4718
4717
|
export interface TypeColorMapping {
|
|
4719
4718
|
color: string;
|
|
4720
4719
|
opacity: number;
|
|
4721
4720
|
}
|
|
4722
4721
|
export const mapTypesToColors: (data: PnlChartLineItem[], colorList?: string[]) => TypeColorMapping[];
|
|
4723
|
-
export const DetailedTable: ({ filteredData, sidebarScope, filters, sortBy, hoveredItem, setHoveredItem, chartColorsList, stringOverrides, }: DetailedTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
4722
|
+
export const DetailedTable: ({ filteredData, sidebarScope, filters, sortBy, hoveredItem, setHoveredItem, chartColorsList, stringOverrides, onValueClick, }: DetailedTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
4724
4723
|
|
|
4725
4724
|
}
|
|
4726
4725
|
declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Filters' {
|
|
@@ -4738,8 +4737,10 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Filte
|
|
|
4738
4737
|
declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts' {
|
|
4739
4738
|
import { SidebarScope } from '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss';
|
|
4740
4739
|
import { DetailedTableStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/DetailedTable';
|
|
4740
|
+
import type { ProfitAndLossDetailReportProps } from '@layerfi/components/components/ProfitAndLossDetailReport/ProfitAndLossDetailReport';
|
|
4741
4741
|
export interface ProfitAndLossDetailedChartsStringOverrides {
|
|
4742
4742
|
detailedTableStringOverrides?: DetailedTableStringOverrides;
|
|
4743
|
+
detailReportStringOverrides?: ProfitAndLossDetailReportProps['stringOverrides'];
|
|
4743
4744
|
}
|
|
4744
4745
|
export const ProfitAndLossDetailedCharts: ({ scope, hideClose, showDatePicker, chartColorsList, stringOverrides, }: {
|
|
4745
4746
|
scope?: SidebarScope;
|
|
@@ -4796,6 +4797,7 @@ declare module '@layerfi/components/components/ProfitAndLossReport/ProfitAndLoss
|
|
|
4796
4797
|
import { View as ViewType } from '@layerfi/components/types/general';
|
|
4797
4798
|
import { ReportsStringOverrides } from '@layerfi/components/views/Reports/Reports';
|
|
4798
4799
|
import type { TimeRangePickerConfig } from '@layerfi/components/views/Reports/reportTypes';
|
|
4800
|
+
import { BreadcrumbItem } from '@layerfi/components/components/DetailReportBreadcrumb/DetailReportBreadcrumb';
|
|
4799
4801
|
import { LinkingMetadata } from '@layerfi/components/contexts/InAppLinkContext';
|
|
4800
4802
|
type ViewBreakpoint = ViewType | undefined;
|
|
4801
4803
|
export type ProfitAndLossReportProps = {
|
|
@@ -4803,6 +4805,10 @@ declare module '@layerfi/components/components/ProfitAndLossReport/ProfitAndLoss
|
|
|
4803
4805
|
view?: ViewBreakpoint;
|
|
4804
4806
|
renderInAppLink?: (source: LinkingMetadata) => ReactNode;
|
|
4805
4807
|
} & TimeRangePickerConfig;
|
|
4808
|
+
export type SelectedLineItem = {
|
|
4809
|
+
lineItemName: string;
|
|
4810
|
+
breadcrumbPath: BreadcrumbItem[];
|
|
4811
|
+
};
|
|
4806
4812
|
export const ProfitAndLossReport: ({ stringOverrides, allowedDatePickerModes, datePickerMode, defaultDatePickerMode, customDateRanges, csvMoneyFormat, view, renderInAppLink, }: ProfitAndLossReportProps) => import("react/jsx-runtime").JSX.Element;
|
|
4807
4813
|
export {};
|
|
4808
4814
|
|
|
@@ -5306,16 +5312,19 @@ declare module '@layerfi/components/components/Tasks/TasksList' {
|
|
|
5306
5312
|
pageSize?: number;
|
|
5307
5313
|
mobile?: boolean;
|
|
5308
5314
|
};
|
|
5309
|
-
export
|
|
5315
|
+
export const TasksList: ({ pageSize, mobile }: TasksListProps) => import("react/jsx-runtime").JSX.Element;
|
|
5310
5316
|
export {};
|
|
5311
5317
|
|
|
5312
5318
|
}
|
|
5313
5319
|
declare module '@layerfi/components/components/Tasks/TasksListItem' {
|
|
5314
5320
|
import { type UserVisibleTask } from '@layerfi/components/utils/bookkeeping/tasks/bookkeepingTasksFilters';
|
|
5315
|
-
|
|
5321
|
+
type TasksListItemProps = {
|
|
5316
5322
|
task: UserVisibleTask;
|
|
5317
5323
|
defaultOpen: boolean;
|
|
5318
|
-
|
|
5324
|
+
onExpandTask?: (isOpen: boolean) => void;
|
|
5325
|
+
};
|
|
5326
|
+
export const TasksListItem: import("react").ForwardRefExoticComponent<TasksListItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5327
|
+
export {};
|
|
5319
5328
|
|
|
5320
5329
|
}
|
|
5321
5330
|
declare module '@layerfi/components/components/Tasks/TasksListMobile' {
|
|
@@ -6035,7 +6044,7 @@ declare module '@layerfi/components/components/ui/Meter/Meter' {
|
|
|
6035
6044
|
declare module '@layerfi/components/components/ui/Modal/Modal' {
|
|
6036
6045
|
import { type ComponentProps } from 'react';
|
|
6037
6046
|
import { type DialogProps, type ModalOverlayProps } from 'react-aria-components';
|
|
6038
|
-
type ModalSize = 'md' | 'lg';
|
|
6047
|
+
type ModalSize = 'md' | 'lg' | 'xl';
|
|
6039
6048
|
type ModalVariant = 'center' | 'drawer' | 'mobile-drawer';
|
|
6040
6049
|
const ModalOverlay: import("react").ForwardRefExoticComponent<Omit<ModalOverlayProps, "className"> & {
|
|
6041
6050
|
variant: ModalVariant;
|
|
@@ -7348,8 +7357,9 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7348
7357
|
type ListInvoicesBaseParams = {
|
|
7349
7358
|
businessId: string;
|
|
7350
7359
|
};
|
|
7351
|
-
type ListInvoicesFilterParams = {
|
|
7360
|
+
export type ListInvoicesFilterParams = {
|
|
7352
7361
|
status?: ReadonlyArray<InvoiceStatus>;
|
|
7362
|
+
query?: string;
|
|
7353
7363
|
dueAtStart?: Date;
|
|
7354
7364
|
dueAtEnd?: Date;
|
|
7355
7365
|
};
|
|
@@ -7672,7 +7682,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7672
7682
|
};
|
|
7673
7683
|
};
|
|
7674
7684
|
}>;
|
|
7675
|
-
export function useListInvoices({ status, dueAtStart, dueAtEnd, sortBy, sortOrder, limit, showTotalCount, }?: ListInvoicesOptions): ListInvoicesSWRResponse;
|
|
7685
|
+
export function useListInvoices({ status, query, dueAtStart, dueAtEnd, sortBy, sortOrder, limit, showTotalCount, }?: ListInvoicesOptions): ListInvoicesSWRResponse;
|
|
7676
7686
|
export function useInvoicesGlobalCacheActions(): {
|
|
7677
7687
|
patchInvoiceByKey: (updatedInvoice: Invoice) => Promise<({
|
|
7678
7688
|
readonly data: readonly {
|
|
@@ -7971,6 +7981,191 @@ declare module '@layerfi/components/features/invoices/api/useRefundInvoice' {
|
|
|
7971
7981
|
export const useRefundInvoice: ({ invoiceId }: UseRefundInvoiceProps) => RefundInvoiceSWRResponse;
|
|
7972
7982
|
export {};
|
|
7973
7983
|
|
|
7984
|
+
}
|
|
7985
|
+
declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
|
|
7986
|
+
import type { Key } from 'swr';
|
|
7987
|
+
import { type SWRMutationResponse } from 'swr/mutation';
|
|
7988
|
+
import { Schema } from 'effect';
|
|
7989
|
+
const ResetInvoiceReturnSchema: Schema.Struct<{
|
|
7990
|
+
data: Schema.Struct<{
|
|
7991
|
+
id: typeof Schema.UUID;
|
|
7992
|
+
businessId: Schema.PropertySignature<":", string, "business_id", ":", string, false, never>;
|
|
7993
|
+
externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
|
|
7994
|
+
status: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus, import("../invoiceSchemas").InvoiceStatus, never>>;
|
|
7995
|
+
sentAt: Schema.PropertySignature<":", Date | null, "sent_at", ":", string | null, false, never>;
|
|
7996
|
+
dueAt: Schema.PropertySignature<":", Date | null, "due_at", ":", string | null, false, never>;
|
|
7997
|
+
paidAt: Schema.PropertySignature<":", Date | null, "paid_at", ":", string | null, false, never>;
|
|
7998
|
+
voidedAt: Schema.PropertySignature<":", Date | null, "voided_at", ":", string | null, false, never>;
|
|
7999
|
+
invoiceNumber: Schema.PropertySignature<":", string | null, "invoice_number", ":", string | null, false, never>;
|
|
8000
|
+
recipientName: Schema.PropertySignature<":", string | null, "recipient_name", ":", string | null, false, never>;
|
|
8001
|
+
customer: Schema.NullOr<Schema.Struct<{
|
|
8002
|
+
id: typeof Schema.UUID;
|
|
8003
|
+
externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
|
|
8004
|
+
individualName: Schema.PropertySignature<":", string | null, "individual_name", ":", string | null, false, never>;
|
|
8005
|
+
companyName: Schema.PropertySignature<":", string | null, "company_name", ":", string | null, false, never>;
|
|
8006
|
+
email: Schema.NullOr<typeof Schema.String>;
|
|
8007
|
+
mobilePhone: Schema.PropertySignature<":", string | null, "mobile_phone", ":", string | null, false, never>;
|
|
8008
|
+
officePhone: Schema.PropertySignature<":", string | null, "office_phone", ":", string | null, false, never>;
|
|
8009
|
+
addressString: Schema.PropertySignature<":", string | null, "address_string", ":", string | null, false, never>;
|
|
8010
|
+
status: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<"ACTIVE" | "ARCHIVED", "ACTIVE" | "ARCHIVED", never>>;
|
|
8011
|
+
memo: Schema.NullOr<typeof Schema.String>;
|
|
8012
|
+
_local: Schema.optional<Schema.Struct<{
|
|
8013
|
+
isOptimistic: typeof Schema.Boolean;
|
|
8014
|
+
}>>;
|
|
8015
|
+
}>>;
|
|
8016
|
+
lineItems: Schema.PropertySignature<":", readonly {
|
|
8017
|
+
readonly id: string;
|
|
8018
|
+
readonly externalId: string | null;
|
|
8019
|
+
readonly memo: string | null;
|
|
8020
|
+
readonly description: string | null;
|
|
8021
|
+
readonly invoiceId: string;
|
|
8022
|
+
readonly product: string | null;
|
|
8023
|
+
readonly subtotal: number;
|
|
8024
|
+
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8025
|
+
readonly unitPrice: number;
|
|
8026
|
+
readonly discountAmount: number;
|
|
8027
|
+
readonly salesTaxTotal: number;
|
|
8028
|
+
readonly totalAmount: number;
|
|
8029
|
+
}[], "line_items", ":", readonly {
|
|
8030
|
+
readonly id: string;
|
|
8031
|
+
readonly external_id: string | null;
|
|
8032
|
+
readonly memo: string | null;
|
|
8033
|
+
readonly description: string | null;
|
|
8034
|
+
readonly invoice_id: string;
|
|
8035
|
+
readonly product: string | null;
|
|
8036
|
+
readonly subtotal: number;
|
|
8037
|
+
readonly quantity: string;
|
|
8038
|
+
readonly unit_price: number;
|
|
8039
|
+
readonly discount_amount: number;
|
|
8040
|
+
readonly sales_taxes_total: number;
|
|
8041
|
+
readonly total_amount: number;
|
|
8042
|
+
}[], false, never>;
|
|
8043
|
+
subtotal: typeof Schema.Number;
|
|
8044
|
+
additionalDiscount: Schema.PropertySignature<":", number, "additional_discount", ":", number, false, never>;
|
|
8045
|
+
additionalSalesTaxesTotal: Schema.PropertySignature<":", number, "additional_sales_taxes_total", ":", number, false, never>;
|
|
8046
|
+
totalAmount: Schema.PropertySignature<":", number, "total_amount", ":", number, false, never>;
|
|
8047
|
+
outstandingBalance: Schema.PropertySignature<":", number, "outstanding_balance", ":", number, false, never>;
|
|
8048
|
+
importedAt: Schema.PropertySignature<":", Date, "imported_at", ":", string, false, never>;
|
|
8049
|
+
updatedAt: Schema.PropertySignature<":", Date | null, "updated_at", ":", string | null, false, never>;
|
|
8050
|
+
memo: Schema.NullOr<typeof Schema.String>;
|
|
8051
|
+
}>;
|
|
8052
|
+
}>;
|
|
8053
|
+
type ResetInvoiceReturn = typeof ResetInvoiceReturnSchema.Type;
|
|
8054
|
+
type ResetInvoiceSWRMutationResponse = SWRMutationResponse<ResetInvoiceReturn, unknown, Key, never>;
|
|
8055
|
+
class ResetInvoiceSWRResponse {
|
|
8056
|
+
private swrResponse;
|
|
8057
|
+
constructor(swrResponse: ResetInvoiceSWRMutationResponse);
|
|
8058
|
+
get data(): {
|
|
8059
|
+
readonly data: {
|
|
8060
|
+
readonly id: string;
|
|
8061
|
+
readonly externalId: string | null;
|
|
8062
|
+
readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
|
|
8063
|
+
readonly memo: string | null;
|
|
8064
|
+
readonly customer: {
|
|
8065
|
+
readonly id: string;
|
|
8066
|
+
readonly externalId: string | null;
|
|
8067
|
+
readonly individualName: string | null;
|
|
8068
|
+
readonly companyName: string | null;
|
|
8069
|
+
readonly email: string | null;
|
|
8070
|
+
readonly mobilePhone: string | null;
|
|
8071
|
+
readonly officePhone: string | null;
|
|
8072
|
+
readonly addressString: string | null;
|
|
8073
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
8074
|
+
readonly memo: string | null;
|
|
8075
|
+
readonly _local?: {
|
|
8076
|
+
readonly isOptimistic: boolean;
|
|
8077
|
+
} | undefined;
|
|
8078
|
+
} | null;
|
|
8079
|
+
readonly invoiceNumber: string | null;
|
|
8080
|
+
readonly recipientName: string | null;
|
|
8081
|
+
readonly businessId: string;
|
|
8082
|
+
readonly lineItems: readonly {
|
|
8083
|
+
readonly id: string;
|
|
8084
|
+
readonly externalId: string | null;
|
|
8085
|
+
readonly memo: string | null;
|
|
8086
|
+
readonly description: string | null;
|
|
8087
|
+
readonly invoiceId: string;
|
|
8088
|
+
readonly product: string | null;
|
|
8089
|
+
readonly subtotal: number;
|
|
8090
|
+
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8091
|
+
readonly unitPrice: number;
|
|
8092
|
+
readonly discountAmount: number;
|
|
8093
|
+
readonly salesTaxTotal: number;
|
|
8094
|
+
readonly totalAmount: number;
|
|
8095
|
+
}[];
|
|
8096
|
+
readonly updatedAt: Date | null;
|
|
8097
|
+
readonly subtotal: number;
|
|
8098
|
+
readonly paidAt: Date | null;
|
|
8099
|
+
readonly totalAmount: number;
|
|
8100
|
+
readonly sentAt: Date | null;
|
|
8101
|
+
readonly dueAt: Date | null;
|
|
8102
|
+
readonly voidedAt: Date | null;
|
|
8103
|
+
readonly additionalDiscount: number;
|
|
8104
|
+
readonly additionalSalesTaxesTotal: number;
|
|
8105
|
+
readonly outstandingBalance: number;
|
|
8106
|
+
readonly importedAt: Date;
|
|
8107
|
+
};
|
|
8108
|
+
} | undefined;
|
|
8109
|
+
get trigger(): import("swr/mutation").TriggerWithoutArgs<{
|
|
8110
|
+
readonly data: {
|
|
8111
|
+
readonly id: string;
|
|
8112
|
+
readonly externalId: string | null;
|
|
8113
|
+
readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
|
|
8114
|
+
readonly memo: string | null;
|
|
8115
|
+
readonly customer: {
|
|
8116
|
+
readonly id: string;
|
|
8117
|
+
readonly externalId: string | null;
|
|
8118
|
+
readonly individualName: string | null;
|
|
8119
|
+
readonly companyName: string | null;
|
|
8120
|
+
readonly email: string | null;
|
|
8121
|
+
readonly mobilePhone: string | null;
|
|
8122
|
+
readonly officePhone: string | null;
|
|
8123
|
+
readonly addressString: string | null;
|
|
8124
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
8125
|
+
readonly memo: string | null;
|
|
8126
|
+
readonly _local?: {
|
|
8127
|
+
readonly isOptimistic: boolean;
|
|
8128
|
+
} | undefined;
|
|
8129
|
+
} | null;
|
|
8130
|
+
readonly invoiceNumber: string | null;
|
|
8131
|
+
readonly recipientName: string | null;
|
|
8132
|
+
readonly businessId: string;
|
|
8133
|
+
readonly lineItems: readonly {
|
|
8134
|
+
readonly id: string;
|
|
8135
|
+
readonly externalId: string | null;
|
|
8136
|
+
readonly memo: string | null;
|
|
8137
|
+
readonly description: string | null;
|
|
8138
|
+
readonly invoiceId: string;
|
|
8139
|
+
readonly product: string | null;
|
|
8140
|
+
readonly subtotal: number;
|
|
8141
|
+
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8142
|
+
readonly unitPrice: number;
|
|
8143
|
+
readonly discountAmount: number;
|
|
8144
|
+
readonly salesTaxTotal: number;
|
|
8145
|
+
readonly totalAmount: number;
|
|
8146
|
+
}[];
|
|
8147
|
+
readonly updatedAt: Date | null;
|
|
8148
|
+
readonly subtotal: number;
|
|
8149
|
+
readonly paidAt: Date | null;
|
|
8150
|
+
readonly totalAmount: number;
|
|
8151
|
+
readonly sentAt: Date | null;
|
|
8152
|
+
readonly dueAt: Date | null;
|
|
8153
|
+
readonly voidedAt: Date | null;
|
|
8154
|
+
readonly additionalDiscount: number;
|
|
8155
|
+
readonly additionalSalesTaxesTotal: number;
|
|
8156
|
+
readonly outstandingBalance: number;
|
|
8157
|
+
readonly importedAt: Date;
|
|
8158
|
+
};
|
|
8159
|
+
}, unknown, Key, never>;
|
|
8160
|
+
get isMutating(): boolean;
|
|
8161
|
+
get isError(): boolean;
|
|
8162
|
+
}
|
|
8163
|
+
type UseResetInvoiceProps = {
|
|
8164
|
+
invoiceId: string;
|
|
8165
|
+
};
|
|
8166
|
+
export const useResetInvoice: ({ invoiceId }: UseResetInvoiceProps) => ResetInvoiceSWRResponse;
|
|
8167
|
+
export {};
|
|
8168
|
+
|
|
7974
8169
|
}
|
|
7975
8170
|
declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvoicePayment' {
|
|
7976
8171
|
import type { Key } from 'swr';
|
|
@@ -10177,6 +10372,15 @@ declare module '@layerfi/components/hooks/useLinkedAccounts/useListExternalAccou
|
|
|
10177
10372
|
export const EXTERNAL_ACCOUNTS_TAG_KEY = "#external-accounts";
|
|
10178
10373
|
export function useListExternalAccounts(): import("swr").SWRResponse<import("../../types/linked_accounts").LinkedAccount[], any, any>;
|
|
10179
10374
|
|
|
10375
|
+
}
|
|
10376
|
+
declare module '@layerfi/components/hooks/useMediaQuery' {
|
|
10377
|
+
/**
|
|
10378
|
+
* Hook to track media query matches
|
|
10379
|
+
* @param query - CSS media query string (e.g., '(max-width: 768px)')
|
|
10380
|
+
* @returns boolean indicating if the media query matches
|
|
10381
|
+
*/
|
|
10382
|
+
export function useMediaQuery(query: string): boolean;
|
|
10383
|
+
|
|
10180
10384
|
}
|
|
10181
10385
|
declare module '@layerfi/components/hooks/usePaginationRange/usePaginationRange' {
|
|
10182
10386
|
export enum Dots {
|
|
@@ -12065,6 +12269,21 @@ declare module '@layerfi/components/hooks/useReceipts/useReceipts' {
|
|
|
12065
12269
|
export const useReceipts: UseReceipts;
|
|
12066
12270
|
export {};
|
|
12067
12271
|
|
|
12272
|
+
}
|
|
12273
|
+
declare module '@layerfi/components/hooks/useResponsiveColumnVisibility' {
|
|
12274
|
+
import type { VisibilityState } from '@tanstack/react-table';
|
|
12275
|
+
export interface ResponsiveColumnConfig {
|
|
12276
|
+
/** Columns to show on mobile (max-width: 768px) */
|
|
12277
|
+
mobileColumns: string[];
|
|
12278
|
+
/** Columns to show on desktop (min-width: 769px) */
|
|
12279
|
+
desktopColumns: string[];
|
|
12280
|
+
}
|
|
12281
|
+
/**
|
|
12282
|
+
* Hook to manage responsive column visibility for tables
|
|
12283
|
+
* Returns a columnVisibility state object that can be passed to TanStack Table
|
|
12284
|
+
*/
|
|
12285
|
+
export function useResponsiveColumnVisibility(config: ResponsiveColumnConfig): VisibilityState;
|
|
12286
|
+
|
|
12068
12287
|
}
|
|
12069
12288
|
declare module '@layerfi/components/hooks/useStatementOfCashFlow/useStatementOfCashFlow' {
|
|
12070
12289
|
export function useStatementOfCashFlow({ startDate, endDate, }: {
|
|
@@ -12764,8 +12983,9 @@ declare module '@layerfi/components/providers/InvoiceStore/InvoiceStoreProvider'
|
|
|
12764
12983
|
import type { Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
|
|
12765
12984
|
import { type InvoiceStatusOption } from '@layerfi/components/components/Invoices/InvoiceTable/InvoiceTable';
|
|
12766
12985
|
import type { InvoiceFormMode } from '@layerfi/components/components/Invoices/InvoiceForm/InvoiceForm';
|
|
12767
|
-
type
|
|
12986
|
+
export type InvoiceTableFilters = {
|
|
12768
12987
|
status: InvoiceStatusOption;
|
|
12988
|
+
query: string;
|
|
12769
12989
|
};
|
|
12770
12990
|
export enum InvoiceRoute {
|
|
12771
12991
|
Table = "Table",
|
|
@@ -12780,9 +13000,9 @@ declare module '@layerfi/components/providers/InvoiceStore/InvoiceStoreProvider'
|
|
|
12780
13000
|
type InvoiceRouteState = InvoiceDetailRouteState | InvoiceTableRouteState;
|
|
12781
13001
|
export function useInvoiceRouteState(): InvoiceRouteState;
|
|
12782
13002
|
export function useInvoiceDetail(): InvoiceFormMode;
|
|
12783
|
-
export function
|
|
12784
|
-
|
|
12785
|
-
|
|
13003
|
+
export function useInvoiceTableFilters(): {
|
|
13004
|
+
tableFilters: InvoiceTableFilters;
|
|
13005
|
+
setTableFilters: (patchFilters: Partial<InvoiceTableFilters>) => void;
|
|
12786
13006
|
};
|
|
12787
13007
|
export function useInvoiceNavigation(): {
|
|
12788
13008
|
toCreateInvoice: () => void;
|