@layerfi/components 0.1.108-alpha.1 → 0.1.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +5112 -4574
- package/dist/esm/index.mjs +5021 -4483
- package/dist/index.css +130 -250
- package/dist/index.d.ts +1163 -422
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -257,55 +257,29 @@ declare module '@layerfi/components/api/layer/businessPersonnel/updateBusinessPe
|
|
|
257
257
|
data: BusinessPersonnel;
|
|
258
258
|
}>;
|
|
259
259
|
|
|
260
|
-
}
|
|
261
|
-
declare module '@layerfi/components/api/layer/categories' {
|
|
262
|
-
import { Category } from '@layerfi/components/types';
|
|
263
|
-
export type CategoriesListMode = 'ALL' | 'EXPENSES' | 'DEFAULT';
|
|
264
|
-
export const getCategories: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
265
|
-
params?: {
|
|
266
|
-
businessId: string;
|
|
267
|
-
mode?: CategoriesListMode;
|
|
268
|
-
} | undefined;
|
|
269
|
-
} | undefined) => () => Promise<{
|
|
270
|
-
data: {
|
|
271
|
-
type: "Category_List";
|
|
272
|
-
categories: Category[];
|
|
273
|
-
};
|
|
274
|
-
}>;
|
|
275
|
-
|
|
276
260
|
}
|
|
277
261
|
declare module '@layerfi/components/api/layer/chart_of_accounts' {
|
|
278
|
-
import {
|
|
279
|
-
import {
|
|
262
|
+
import { SingleChartAccountEncodedType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
|
|
263
|
+
import { NewAccount, EditAccount, NewChildAccount, LedgerAccountsEntry } from '@layerfi/components/types';
|
|
280
264
|
import { S3PresignedUrl } from '@layerfi/components/types/general';
|
|
281
265
|
import { LedgerAccountLineItems } from '@layerfi/components/types/ledger_accounts';
|
|
282
|
-
export const getChartOfAccounts: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
283
|
-
params?: Record<string, string | undefined> | undefined;
|
|
284
|
-
} | undefined) => () => Promise<{
|
|
285
|
-
data: ChartOfAccounts;
|
|
286
|
-
}>;
|
|
287
|
-
export const getLedgerAccountBalances: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
288
|
-
params?: Record<string, string | undefined> | undefined;
|
|
289
|
-
} | undefined) => () => Promise<{
|
|
290
|
-
data: ChartWithBalances;
|
|
291
|
-
}>;
|
|
292
266
|
export const createAccount: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
293
267
|
params?: Record<string, string | undefined> | undefined;
|
|
294
268
|
body?: NewAccount | undefined;
|
|
295
269
|
} | undefined) => Promise<{
|
|
296
|
-
data:
|
|
270
|
+
data: SingleChartAccountEncodedType;
|
|
297
271
|
}>;
|
|
298
272
|
export const updateAccount: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
299
273
|
params?: Record<string, string | undefined> | undefined;
|
|
300
274
|
body?: EditAccount | undefined;
|
|
301
275
|
} | undefined) => Promise<{
|
|
302
|
-
data:
|
|
276
|
+
data: SingleChartAccountEncodedType;
|
|
303
277
|
}>;
|
|
304
278
|
export const createChildAccount: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
305
279
|
params?: Record<string, string | undefined> | undefined;
|
|
306
280
|
body?: NewChildAccount | undefined;
|
|
307
281
|
} | undefined) => Promise<{
|
|
308
|
-
data:
|
|
282
|
+
data: SingleChartAccountEncodedType;
|
|
309
283
|
}>;
|
|
310
284
|
export const getLedgerAccountsLines: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
311
285
|
params?: Record<string, string | undefined> | undefined;
|
|
@@ -636,19 +610,19 @@ declare module '@layerfi/components/api/layer' {
|
|
|
636
610
|
params?: Record<string, string | undefined> | undefined;
|
|
637
611
|
body?: import("@layerfi/components/types").NewAccount | undefined;
|
|
638
612
|
} | undefined) => Promise<{
|
|
639
|
-
data: import("@layerfi/components/
|
|
613
|
+
data: import("@layerfi/components/schemas/generalLedger/ledgerAccount").SingleChartAccountEncodedType;
|
|
640
614
|
}>;
|
|
641
615
|
updateAccount: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
642
616
|
params?: Record<string, string | undefined> | undefined;
|
|
643
617
|
body?: import("@layerfi/components/types").EditAccount | undefined;
|
|
644
618
|
} | undefined) => Promise<{
|
|
645
|
-
data: import("@layerfi/components/
|
|
619
|
+
data: import("@layerfi/components/schemas/generalLedger/ledgerAccount").SingleChartAccountEncodedType;
|
|
646
620
|
}>;
|
|
647
621
|
createChildAccount: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
648
622
|
params?: Record<string, string | undefined> | undefined;
|
|
649
623
|
body?: import("@layerfi/components/types").NewChildAccount | undefined;
|
|
650
624
|
} | undefined) => Promise<{
|
|
651
|
-
data: import("@layerfi/components/
|
|
625
|
+
data: import("@layerfi/components/schemas/generalLedger/ledgerAccount").SingleChartAccountEncodedType;
|
|
652
626
|
}>;
|
|
653
627
|
getBalanceSheet: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
654
628
|
params?: {
|
|
@@ -746,27 +720,6 @@ declare module '@layerfi/components/api/layer' {
|
|
|
746
720
|
} | undefined) => Promise<{
|
|
747
721
|
data: import("@layerfi/components/types/bills").BillPayment;
|
|
748
722
|
}>;
|
|
749
|
-
getCategories: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
750
|
-
params?: {
|
|
751
|
-
businessId: string;
|
|
752
|
-
mode?: import("@layerfi/components/api/layer/categories").CategoriesListMode;
|
|
753
|
-
} | undefined;
|
|
754
|
-
} | undefined) => () => Promise<{
|
|
755
|
-
data: {
|
|
756
|
-
type: "Category_List";
|
|
757
|
-
categories: import("@layerfi/components/types").Category[];
|
|
758
|
-
};
|
|
759
|
-
}>;
|
|
760
|
-
getChartOfAccounts: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
761
|
-
params?: Record<string, string | undefined> | undefined;
|
|
762
|
-
} | undefined) => () => Promise<{
|
|
763
|
-
data: import("@layerfi/components/types").ChartOfAccounts;
|
|
764
|
-
}>;
|
|
765
|
-
getLedgerAccountBalances: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
766
|
-
params?: Record<string, string | undefined> | undefined;
|
|
767
|
-
} | undefined) => () => Promise<{
|
|
768
|
-
data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances;
|
|
769
|
-
}>;
|
|
770
723
|
getLedgerAccountBalancesCSV: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
771
724
|
params?: Record<string, string | undefined> | undefined;
|
|
772
725
|
} | undefined) => () => Promise<{
|
|
@@ -1889,14 +1842,6 @@ declare module '@layerfi/components/components/BookkeepingStatus/BookkeepingStat
|
|
|
1889
1842
|
export const BookkeepingStatusDescription: ({ monthNumber, status, incompleteTasksCount }: BookkeepingStatusDescriptionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
1890
1843
|
export {};
|
|
1891
1844
|
|
|
1892
|
-
}
|
|
1893
|
-
declare module '@layerfi/components/components/BookkeepingStatus/BookkeepingStatusPanelNotification' {
|
|
1894
|
-
type BookkeepingStatusPanelNotificationProps = {
|
|
1895
|
-
onClick?: () => void;
|
|
1896
|
-
};
|
|
1897
|
-
export const BookkeepingStatusPanelNotification: ({ onClick }: BookkeepingStatusPanelNotificationProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
1898
|
-
export {};
|
|
1899
|
-
|
|
1900
1845
|
}
|
|
1901
1846
|
declare module '@layerfi/components/components/BookkeepingStatus/utils' {
|
|
1902
1847
|
import { ReactNode } from 'react';
|
|
@@ -2009,15 +1954,6 @@ declare module '@layerfi/components/components/Button/DownloadButton' {
|
|
|
2009
1954
|
export const DownloadButton: ({ iconOnly, onClick, isDownloading, requestFailed, tooltip, text, retryText, errorText, variant, }: DownloadButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
2010
1955
|
export {};
|
|
2011
1956
|
|
|
2012
|
-
}
|
|
2013
|
-
declare module '@layerfi/components/components/Button/ExpandButton' {
|
|
2014
|
-
import { ButtonHTMLAttributes } from 'react';
|
|
2015
|
-
type ExpandButtonProps = {
|
|
2016
|
-
collapsed?: boolean;
|
|
2017
|
-
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'>;
|
|
2018
|
-
export const ExpandButton: ({ className, collapsed, ...props }: ExpandButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
2019
|
-
export {};
|
|
2020
|
-
|
|
2021
1957
|
}
|
|
2022
1958
|
declare module '@layerfi/components/components/Button/ExpandCollapseButton' {
|
|
2023
1959
|
import { ButtonVariant } from '@layerfi/components/components/Button/Button';
|
|
@@ -2125,7 +2061,6 @@ declare module '@layerfi/components/components/Button/index' {
|
|
|
2125
2061
|
export { TextButton } from '@layerfi/components/components/Button/TextButton';
|
|
2126
2062
|
export { BackButton } from '@layerfi/components/components/Button/BackButton';
|
|
2127
2063
|
export { CloseButton } from '@layerfi/components/components/Button/CloseButton';
|
|
2128
|
-
export { ExpandButton } from '@layerfi/components/components/Button/ExpandButton';
|
|
2129
2064
|
export { SwitchButton } from '@layerfi/components/components/Button/SwitchButton';
|
|
2130
2065
|
export { Link } from '@layerfi/components/components/Button/Link';
|
|
2131
2066
|
export { DownloadButton } from '@layerfi/components/components/Button/DownloadButton';
|
|
@@ -2163,7 +2098,8 @@ declare module '@layerfi/components/components/CategorySelect/CategorySelect' {
|
|
|
2163
2098
|
export enum OptionActionType {
|
|
2164
2099
|
CATEGORY = "category",
|
|
2165
2100
|
MATCH = "match",
|
|
2166
|
-
HIDDEN = "hidden"
|
|
2101
|
+
HIDDEN = "hidden",
|
|
2102
|
+
SUGGESTIONS_LOADING = "suggestions loading"
|
|
2167
2103
|
}
|
|
2168
2104
|
export interface CategoryOptionPayload {
|
|
2169
2105
|
id: string;
|
|
@@ -2281,6 +2217,7 @@ declare module '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccoun
|
|
|
2281
2217
|
saveButton?: string;
|
|
2282
2218
|
parentLabel?: string;
|
|
2283
2219
|
nameLabel?: string;
|
|
2220
|
+
accountNumberLabel?: string;
|
|
2284
2221
|
typeLabel?: string;
|
|
2285
2222
|
subTypeLabel?: string;
|
|
2286
2223
|
normalityLabel?: string;
|
|
@@ -2310,9 +2247,9 @@ declare module '@layerfi/components/components/ChartOfAccountsForm/index' {
|
|
|
2310
2247
|
|
|
2311
2248
|
}
|
|
2312
2249
|
declare module '@layerfi/components/components/ChartOfAccountsForm/useParentOptions' {
|
|
2313
|
-
import { ChartWithBalances } from '@layerfi/components/types/chart_of_accounts';
|
|
2314
2250
|
import { BaseSelectOption } from '@layerfi/components/types/general';
|
|
2315
|
-
|
|
2251
|
+
import { LedgerBalancesSchemaType } from '@layerfi/src/schemas/generalLedger/ledgerAccount/index';
|
|
2252
|
+
export const useParentOptions: (data?: LedgerBalancesSchemaType) => BaseSelectOption[];
|
|
2316
2253
|
|
|
2317
2254
|
}
|
|
2318
2255
|
declare module '@layerfi/components/components/ChartOfAccountsSidebar/ChartOfAccountsSidebar' {
|
|
@@ -2329,24 +2266,22 @@ declare module '@layerfi/components/components/ChartOfAccountsSidebar/index' {
|
|
|
2329
2266
|
|
|
2330
2267
|
}
|
|
2331
2268
|
declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTable' {
|
|
2332
|
-
import { ChartWithBalances } from '@layerfi/components/types/chart_of_accounts';
|
|
2333
2269
|
import { View } from '@layerfi/components/types/general';
|
|
2334
2270
|
import { ChartOfAccountsTableStringOverrides, ExpandActionState } from '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTableWithPanel';
|
|
2335
|
-
|
|
2271
|
+
import { LedgerBalancesSchemaType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
|
|
2272
|
+
export const ChartOfAccountsTable: ({ view, stringOverrides, data, searchQuery, expandAll, templateAccountsEditable, }: {
|
|
2336
2273
|
view: View;
|
|
2337
|
-
data:
|
|
2274
|
+
data: LedgerBalancesSchemaType;
|
|
2338
2275
|
searchQuery: string;
|
|
2339
2276
|
stringOverrides?: ChartOfAccountsTableStringOverrides;
|
|
2340
|
-
error?: unknown;
|
|
2341
2277
|
expandAll?: ExpandActionState;
|
|
2342
2278
|
templateAccountsEditable?: boolean;
|
|
2343
2279
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
2344
|
-
export const ChartOfAccountsTableContent: ({ stringOverrides, data, searchQuery,
|
|
2280
|
+
export const ChartOfAccountsTableContent: ({ stringOverrides, data, searchQuery, expandAll, templateAccountsEditable, }: {
|
|
2345
2281
|
view: View;
|
|
2346
|
-
data:
|
|
2282
|
+
data: LedgerBalancesSchemaType;
|
|
2347
2283
|
searchQuery: string;
|
|
2348
2284
|
stringOverrides?: ChartOfAccountsTableStringOverrides;
|
|
2349
|
-
error?: unknown;
|
|
2350
2285
|
expandAll?: ExpandActionState;
|
|
2351
2286
|
templateAccountsEditable: boolean;
|
|
2352
2287
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2362,6 +2297,7 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccou
|
|
|
2362
2297
|
addAccountButtonText?: string;
|
|
2363
2298
|
csvDownloadButtonText?: string;
|
|
2364
2299
|
nameColumnHeader?: string;
|
|
2300
|
+
numberColumnHeader?: string;
|
|
2365
2301
|
typeColumnHeader?: string;
|
|
2366
2302
|
balanceColumnHeader?: string;
|
|
2367
2303
|
subtypeColumnHeader?: string;
|
|
@@ -2442,9 +2378,10 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/utils/types'
|
|
|
2442
2378
|
|
|
2443
2379
|
}
|
|
2444
2380
|
declare module '@layerfi/components/components/ChartOfAccountsTable/utils/utils' {
|
|
2445
|
-
import type { AugmentedLedgerAccountBalance
|
|
2446
|
-
|
|
2447
|
-
export const
|
|
2381
|
+
import type { AugmentedLedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
|
|
2382
|
+
import { NestedLedgerAccountType } from '@layerfi/src/schemas/generalLedger/ledgerAccount/index';
|
|
2383
|
+
export const sortAccountsRecursive: (accounts: NestedLedgerAccountType[]) => NestedLedgerAccountType[];
|
|
2384
|
+
export const filterAccounts: (accounts: NestedLedgerAccountType[], query: string) => AugmentedLedgerAccountBalance[];
|
|
2448
2385
|
export const getMatchedTextIndices: ({ text, query, isMatching, }: {
|
|
2449
2386
|
text: string;
|
|
2450
2387
|
query: string;
|
|
@@ -3104,19 +3041,6 @@ declare module '@layerfi/components/components/Input/InputGroup' {
|
|
|
3104
3041
|
}
|
|
3105
3042
|
export const InputGroup: ({ label, name, className, inline, children, }: InputGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
3106
3043
|
|
|
3107
|
-
}
|
|
3108
|
-
declare module '@layerfi/components/components/Input/InputWithBadge' {
|
|
3109
|
-
import { HTMLProps } from 'react';
|
|
3110
|
-
import { BadgeVariant } from '@layerfi/components/components/Badge/index';
|
|
3111
|
-
export interface InputWithBadgeProps extends HTMLProps<HTMLInputElement> {
|
|
3112
|
-
isInvalid?: boolean;
|
|
3113
|
-
errorMessage?: string;
|
|
3114
|
-
leftText?: string;
|
|
3115
|
-
variant?: BadgeVariant;
|
|
3116
|
-
badge: React.ReactNode;
|
|
3117
|
-
}
|
|
3118
|
-
export const InputWithBadge: ({ className, isInvalid, errorMessage, leftText, badge, variant, ...props }: InputWithBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
3119
|
-
|
|
3120
3044
|
}
|
|
3121
3045
|
declare module '@layerfi/components/components/Input/MultiSelect' {
|
|
3122
3046
|
import { GroupBase, MultiValue, OptionsOrGroups, StylesConfig } from 'react-select';
|
|
@@ -3197,7 +3121,6 @@ declare module '@layerfi/components/components/Input/index' {
|
|
|
3197
3121
|
export { InputGroup } from '@layerfi/components/components/Input/InputGroup';
|
|
3198
3122
|
export { FileInput } from '@layerfi/components/components/Input/FileInput';
|
|
3199
3123
|
export { Select } from '@layerfi/components/components/Input/Select';
|
|
3200
|
-
export { InputWithBadge } from '@layerfi/components/components/Input/InputWithBadge';
|
|
3201
3124
|
export { MultiSelect } from '@layerfi/components/components/Input/MultiSelect';
|
|
3202
3125
|
|
|
3203
3126
|
}
|
|
@@ -3263,10 +3186,18 @@ declare module '@layerfi/components/components/Invoices/InvoiceDetail/InvoiceDet
|
|
|
3263
3186
|
|
|
3264
3187
|
}
|
|
3265
3188
|
declare module '@layerfi/components/components/Invoices/InvoiceForm/InvoiceForm' {
|
|
3266
|
-
import React from 'react';
|
|
3267
|
-
import type { Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
|
|
3189
|
+
import React, { type PropsWithChildren } from 'react';
|
|
3190
|
+
import type { Invoice, InvoiceForm as InvoiceFormType } from '@layerfi/components/features/invoices/invoiceSchemas';
|
|
3268
3191
|
import { UpsertInvoiceMode } from '@layerfi/components/features/invoices/api/useUpsertInvoice';
|
|
3269
3192
|
import { type InvoiceFormState } from '@layerfi/components/components/Invoices/InvoiceForm/formUtils';
|
|
3193
|
+
import type { AppForm } from '@layerfi/components/features/forms/hooks/useForm';
|
|
3194
|
+
type InvoiceFormLineItemRowProps = PropsWithChildren<{
|
|
3195
|
+
form: AppForm<InvoiceFormType>;
|
|
3196
|
+
index: number;
|
|
3197
|
+
isReadOnly: boolean;
|
|
3198
|
+
onDeleteLine: () => void;
|
|
3199
|
+
}>;
|
|
3200
|
+
export const InvoiceFormLineItemRow: ({ form, index, isReadOnly, onDeleteLine }: InvoiceFormLineItemRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
3270
3201
|
export type InvoiceFormMode = {
|
|
3271
3202
|
mode: UpsertInvoiceMode.Update;
|
|
3272
3203
|
invoice: Invoice;
|
|
@@ -3279,16 +3210,21 @@ declare module '@layerfi/components/components/Invoices/InvoiceForm/InvoiceForm'
|
|
|
3279
3210
|
onChangeFormState?: (formState: InvoiceFormState) => void;
|
|
3280
3211
|
};
|
|
3281
3212
|
export const InvoiceForm: React.ForwardRefExoticComponent<InvoiceFormProps & React.RefAttributes<unknown>>;
|
|
3213
|
+
export {};
|
|
3282
3214
|
|
|
3283
3215
|
}
|
|
3284
3216
|
declare module '@layerfi/components/components/Invoices/InvoiceForm/formUtils' {
|
|
3285
3217
|
import { type Invoice, type InvoiceForm, type InvoiceFormLineItem } from '@layerfi/components/features/invoices/invoiceSchemas';
|
|
3218
|
+
import { type Tag } from '@layerfi/components/features/tags/tagSchemas';
|
|
3219
|
+
export const INVOICE_MECE_TAG_DIMENSION = "Job";
|
|
3286
3220
|
export type InvoiceFormState = {
|
|
3287
3221
|
isDirty: boolean;
|
|
3288
3222
|
isSubmitting: boolean;
|
|
3289
3223
|
};
|
|
3290
3224
|
export const EMPTY_LINE_ITEM: InvoiceFormLineItem;
|
|
3291
3225
|
export const getInvoiceFormDefaultValues: () => InvoiceForm;
|
|
3226
|
+
export const getAdditionalTags: (tags: readonly Tag[]) => Tag[];
|
|
3227
|
+
export const getSelectedTag: (tags: readonly Tag[]) => Tag | null;
|
|
3292
3228
|
export const getInvoiceFormInitialValues: (invoice: Invoice) => InvoiceForm;
|
|
3293
3229
|
export const validateInvoiceForm: ({ value: invoice }: {
|
|
3294
3230
|
value: InvoiceForm;
|
|
@@ -3394,7 +3330,8 @@ declare module '@layerfi/components/components/Invoices/InvoiceOverview/InvoiceO
|
|
|
3394
3330
|
|
|
3395
3331
|
}
|
|
3396
3332
|
declare module '@layerfi/components/components/Invoices/InvoicePaymentForm/InvoicePaymentForm' {
|
|
3397
|
-
import type { Invoice
|
|
3333
|
+
import type { Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
|
|
3334
|
+
import type { InvoicePayment } from '@layerfi/components/features/invoices/invoicePaymentSchemas';
|
|
3398
3335
|
import type { UpsertDedicatedInvoicePaymentMode } from '@layerfi/components/features/invoices/api/useUpsertDedicatedInvoicePayment';
|
|
3399
3336
|
export type InvoicePaymentFormMode = {
|
|
3400
3337
|
mode: UpsertDedicatedInvoicePaymentMode.Update;
|
|
@@ -3412,7 +3349,8 @@ declare module '@layerfi/components/components/Invoices/InvoicePaymentForm/Invoi
|
|
|
3412
3349
|
|
|
3413
3350
|
}
|
|
3414
3351
|
declare module '@layerfi/components/components/Invoices/InvoicePaymentForm/formUtils' {
|
|
3415
|
-
import { type
|
|
3352
|
+
import { type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
|
|
3353
|
+
import { type DedicatedInvoicePaymentForm } from '@layerfi/components/features/invoices/invoicePaymentSchemas';
|
|
3416
3354
|
export const getInvoicePaymentFormDefaultValues: (invoice: Invoice) => DedicatedInvoicePaymentForm;
|
|
3417
3355
|
export const validateInvoicePaymentForm: ({ invoicePayment, invoice }: {
|
|
3418
3356
|
invoicePayment: DedicatedInvoicePaymentForm;
|
|
@@ -3434,7 +3372,8 @@ declare module '@layerfi/components/components/Invoices/InvoicePaymentForm/formU
|
|
|
3434
3372
|
|
|
3435
3373
|
}
|
|
3436
3374
|
declare module '@layerfi/components/components/Invoices/InvoicePaymentForm/useInvoicePaymentForm' {
|
|
3437
|
-
import { type
|
|
3375
|
+
import { type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
|
|
3376
|
+
import { type InvoicePayment } from '@layerfi/components/features/invoices/invoicePaymentSchemas';
|
|
3438
3377
|
type onSuccessFn = (invoicePayment: InvoicePayment) => void;
|
|
3439
3378
|
type UseInvoicePaymentFormProps = {
|
|
3440
3379
|
onSuccess: onSuccessFn;
|
|
@@ -3688,7 +3627,7 @@ declare module '@layerfi/components/components/Invoices/Invoices' {
|
|
|
3688
3627
|
showTitle?: boolean;
|
|
3689
3628
|
stringOverrides?: InvoicesStringOverrides;
|
|
3690
3629
|
}
|
|
3691
|
-
export const
|
|
3630
|
+
export const Invoices: ({ showTitle, stringOverrides }: InvoicesProps) => import("react/jsx-runtime").JSX.Element;
|
|
3692
3631
|
export {};
|
|
3693
3632
|
|
|
3694
3633
|
}
|
|
@@ -3815,13 +3754,14 @@ declare module '@layerfi/components/components/JournalForm/JournalForm' {
|
|
|
3815
3754
|
|
|
3816
3755
|
}
|
|
3817
3756
|
declare module '@layerfi/components/components/JournalForm/JournalFormEntryLines' {
|
|
3818
|
-
import {
|
|
3819
|
-
import { LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
|
|
3757
|
+
import { LedgerAccountBalance } from '@layerfi/components/types/journal';
|
|
3820
3758
|
import { BaseSelectOption } from '@layerfi/components/types/general';
|
|
3821
3759
|
import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
|
|
3760
|
+
import { JournalEntryLineItem } from '@layerfi/components/types/journal';
|
|
3761
|
+
import { LedgerEntryDirection } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
|
|
3822
3762
|
export const JournalFormEntryLines: ({ entrylineItems, addEntryLine, removeEntryLine, changeFormData, sendingForm, config, }: {
|
|
3823
3763
|
entrylineItems: JournalEntryLineItem[];
|
|
3824
|
-
addEntryLine: (direction:
|
|
3764
|
+
addEntryLine: (direction: LedgerEntryDirection) => void;
|
|
3825
3765
|
removeEntryLine: (index: number) => void;
|
|
3826
3766
|
changeFormData: (name: string, value: string | BaseSelectOption | number | undefined, lineItemIndex: number, accounts?: LedgerAccountBalance[]) => void;
|
|
3827
3767
|
sendingForm: boolean;
|
|
@@ -3870,6 +3810,7 @@ declare module '@layerfi/components/components/JournalTable/JournalTableWithPane
|
|
|
3870
3810
|
idColumnHeader?: string;
|
|
3871
3811
|
dateColumnHeader?: string;
|
|
3872
3812
|
transactionColumnHeader?: string;
|
|
3813
|
+
accountNumberColumnHeader?: string;
|
|
3873
3814
|
accountColumnHeader?: string;
|
|
3874
3815
|
debitColumnHeader?: string;
|
|
3875
3816
|
creditColumnHeader?: string;
|
|
@@ -3930,6 +3871,21 @@ declare module '@layerfi/components/components/LedgerAccount/LedgerAccountRow' {
|
|
|
3930
3871
|
declare module '@layerfi/components/components/LedgerAccount/index' {
|
|
3931
3872
|
export { LedgerAccount } from '@layerfi/components/components/LedgerAccount/LedgerAccountIndex';
|
|
3932
3873
|
|
|
3874
|
+
}
|
|
3875
|
+
declare module '@layerfi/components/components/LedgerAccountCombobox/LedgerAccountCombobox' {
|
|
3876
|
+
import { type CategoriesListMode } from '@layerfi/components/types/categories';
|
|
3877
|
+
import { type AccountIdentifier } from '@layerfi/components/schemas/accountIdentifier';
|
|
3878
|
+
type LedgerAccountComboboxProps = {
|
|
3879
|
+
label: string;
|
|
3880
|
+
value: AccountIdentifier | null;
|
|
3881
|
+
onValueChange: (value: AccountIdentifier | null) => void;
|
|
3882
|
+
mode?: CategoriesListMode;
|
|
3883
|
+
isReadOnly?: boolean;
|
|
3884
|
+
showLabel?: boolean;
|
|
3885
|
+
};
|
|
3886
|
+
export const LedgerAccountCombobox: ({ label, value, mode, onValueChange, isReadOnly, showLabel }: LedgerAccountComboboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
3887
|
+
export {};
|
|
3888
|
+
|
|
3933
3889
|
}
|
|
3934
3890
|
declare module '@layerfi/components/components/LedgerAccountEntryDetails/LedgerAccountEntryDetails' {
|
|
3935
3891
|
import { LedgerEntrySourceType } from '@layerfi/components/schemas/generalLedger/ledgerEntrySource';
|
|
@@ -4341,20 +4297,6 @@ declare module '@layerfi/components/components/PaymentMethod/schemas' {
|
|
|
4341
4297
|
export const PaymentMethodSchema: Schema.Enums<typeof PaymentMethod>;
|
|
4342
4298
|
export const TransformedPaymentMethodSchema: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<PaymentMethod, PaymentMethod, never>>;
|
|
4343
4299
|
|
|
4344
|
-
}
|
|
4345
|
-
declare module '@layerfi/components/components/PeriodPicker/PeriodPicker' {
|
|
4346
|
-
export type PeriodPickerOption = 'month' | 'quarter' | 'year' | '2_months' | '3_months' | '6_months' | '12_months' | '2_quarters' | '3_quarters' | '4_quarters' | '8_quarters' | '2_years' | '3_years';
|
|
4347
|
-
interface PeriodPickerProps {
|
|
4348
|
-
onSelect: (option: {
|
|
4349
|
-
key: PeriodPickerOption;
|
|
4350
|
-
start_date: string;
|
|
4351
|
-
end_date: string;
|
|
4352
|
-
}) => void;
|
|
4353
|
-
defaultValue?: PeriodPickerOption;
|
|
4354
|
-
}
|
|
4355
|
-
export const PeriodPicker: ({ onSelect, defaultValue }: PeriodPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
4356
|
-
export {};
|
|
4357
|
-
|
|
4358
4300
|
}
|
|
4359
4301
|
declare module '@layerfi/components/components/PlatformOnboarding/Container/LinkAccountsListContainer' {
|
|
4360
4302
|
import type { PropsWithChildren } from 'react';
|
|
@@ -4443,16 +4385,16 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
|
4443
4385
|
readonly endDate: Date;
|
|
4444
4386
|
readonly income: {
|
|
4445
4387
|
readonly value: number;
|
|
4446
|
-
readonly name: string;
|
|
4447
4388
|
readonly displayName: string;
|
|
4389
|
+
readonly name: string;
|
|
4448
4390
|
readonly isContra: boolean;
|
|
4449
4391
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
4450
4392
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
4451
4393
|
};
|
|
4452
4394
|
readonly costOfGoodsSold: {
|
|
4453
4395
|
readonly value: number;
|
|
4454
|
-
readonly name: string;
|
|
4455
4396
|
readonly displayName: string;
|
|
4397
|
+
readonly name: string;
|
|
4456
4398
|
readonly isContra: boolean;
|
|
4457
4399
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
4458
4400
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
@@ -4461,8 +4403,8 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
|
4461
4403
|
readonly profitBeforeTaxes: number;
|
|
4462
4404
|
readonly taxes: {
|
|
4463
4405
|
readonly value: number;
|
|
4464
|
-
readonly name: string;
|
|
4465
4406
|
readonly displayName: string;
|
|
4407
|
+
readonly name: string;
|
|
4466
4408
|
readonly isContra: boolean;
|
|
4467
4409
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
4468
4410
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
@@ -4471,16 +4413,16 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
|
4471
4413
|
readonly fullyCategorized: boolean;
|
|
4472
4414
|
readonly uncategorizedInflows?: {
|
|
4473
4415
|
readonly value: number;
|
|
4474
|
-
readonly name: string;
|
|
4475
4416
|
readonly displayName: string;
|
|
4417
|
+
readonly name: string;
|
|
4476
4418
|
readonly isContra: boolean;
|
|
4477
4419
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
4478
4420
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
4479
4421
|
} | undefined;
|
|
4480
4422
|
readonly uncategorizedOutflows?: {
|
|
4481
4423
|
readonly value: number;
|
|
4482
|
-
readonly name: string;
|
|
4483
4424
|
readonly displayName: string;
|
|
4425
|
+
readonly name: string;
|
|
4484
4426
|
readonly isContra: boolean;
|
|
4485
4427
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
4486
4428
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
@@ -4490,32 +4432,32 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
|
4490
4432
|
readonly netProfitPercentDelta: import("effect/BigDecimal").BigDecimal | undefined;
|
|
4491
4433
|
readonly expenses: {
|
|
4492
4434
|
readonly value: number;
|
|
4493
|
-
readonly name: string;
|
|
4494
4435
|
readonly displayName: string;
|
|
4436
|
+
readonly name: string;
|
|
4495
4437
|
readonly isContra: boolean;
|
|
4496
4438
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
4497
4439
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
4498
4440
|
};
|
|
4499
4441
|
readonly customLineItems: {
|
|
4500
4442
|
readonly value: number;
|
|
4501
|
-
readonly name: string;
|
|
4502
4443
|
readonly displayName: string;
|
|
4444
|
+
readonly name: string;
|
|
4503
4445
|
readonly isContra: boolean;
|
|
4504
4446
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
4505
4447
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
4506
4448
|
} | null;
|
|
4507
4449
|
readonly otherOutflows: {
|
|
4508
4450
|
readonly value: number;
|
|
4509
|
-
readonly name: string;
|
|
4510
4451
|
readonly displayName: string;
|
|
4452
|
+
readonly name: string;
|
|
4511
4453
|
readonly isContra: boolean;
|
|
4512
4454
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
4513
4455
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
4514
4456
|
} | null;
|
|
4515
4457
|
readonly personalExpenses: {
|
|
4516
4458
|
readonly value: number;
|
|
4517
|
-
readonly name: string;
|
|
4518
4459
|
readonly displayName: string;
|
|
4460
|
+
readonly name: string;
|
|
4519
4461
|
readonly isContra: boolean;
|
|
4520
4462
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
4521
4463
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
@@ -4965,10 +4907,6 @@ declare module '@layerfi/components/components/ProgressSteps/ProgressSteps' {
|
|
|
4965
4907
|
};
|
|
4966
4908
|
export const ProgressSteps: ({ steps, currentStep }: ProgressStepsProps) => import("react/jsx-runtime").JSX.Element;
|
|
4967
4909
|
|
|
4968
|
-
}
|
|
4969
|
-
declare module '@layerfi/components/components/ProjectProfitability/ProjectSelector' {
|
|
4970
|
-
export function ProjectSelector(): import("react/jsx-runtime").JSX.Element;
|
|
4971
|
-
|
|
4972
4910
|
}
|
|
4973
4911
|
declare module '@layerfi/components/components/SearchField/SearchField' {
|
|
4974
4912
|
export type SearchFieldProps = {
|
|
@@ -4979,9 +4917,6 @@ declare module '@layerfi/components/components/SearchField/SearchField' {
|
|
|
4979
4917
|
};
|
|
4980
4918
|
export function SearchField({ slot, label, ...restProps }: SearchFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
4981
4919
|
|
|
4982
|
-
}
|
|
4983
|
-
declare module '@layerfi/components/components/SelectVendor/SelectVendor' {
|
|
4984
|
-
|
|
4985
4920
|
}
|
|
4986
4921
|
declare module '@layerfi/components/components/Separator/Separator' {
|
|
4987
4922
|
import { Spacing } from '@layerfi/components/components/ui/sharedUITypes';
|
|
@@ -4992,17 +4927,6 @@ declare module '@layerfi/components/components/Separator/Separator' {
|
|
|
4992
4927
|
export const Separator: ({ mbs, mbe }: SeparatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
4993
4928
|
export {};
|
|
4994
4929
|
|
|
4995
|
-
}
|
|
4996
|
-
declare module '@layerfi/components/components/SkeletonBalanceSheetRow/SkeletonBalanceSheetRow' {
|
|
4997
|
-
import { PropsWithChildren } from 'react';
|
|
4998
|
-
type Props = PropsWithChildren;
|
|
4999
|
-
export const SkeletonBalanceSheetRow: ({ children }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
5000
|
-
export {};
|
|
5001
|
-
|
|
5002
|
-
}
|
|
5003
|
-
declare module '@layerfi/components/components/SkeletonBalanceSheetRow/index' {
|
|
5004
|
-
export { SkeletonBalanceSheetRow } from '@layerfi/components/components/SkeletonBalanceSheetRow/SkeletonBalanceSheetRow';
|
|
5005
|
-
|
|
5006
4930
|
}
|
|
5007
4931
|
declare module '@layerfi/components/components/SkeletonLoader/SkeletonLoader' {
|
|
5008
4932
|
import type { PropsWithChildren } from 'react';
|
|
@@ -6084,14 +6008,15 @@ declare module '@layerfi/components/components/ui/Modal/ModalSlots' {
|
|
|
6084
6008
|
onClose?: () => void;
|
|
6085
6009
|
};
|
|
6086
6010
|
export const ModalTitleWithClose: import("react").ForwardRefExoticComponent<ModalTitleWithCloseProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6087
|
-
export const ModalHeading: import("react").ForwardRefExoticComponent<Omit<Omit<
|
|
6011
|
+
export const ModalHeading: import("react").ForwardRefExoticComponent<Omit<Omit<import("react-aria-components").HeadingProps & {
|
|
6088
6012
|
align?: "center";
|
|
6089
6013
|
pbe?: import("@layerfi/components/components/ui/sharedUITypes").Spacing;
|
|
6090
6014
|
pie?: import("@layerfi/components/components/ui/sharedUITypes").Spacing;
|
|
6091
6015
|
size?: "2xs" | "xs" | "sm" | "lg" | "xl";
|
|
6092
6016
|
variant?: "subtle";
|
|
6093
6017
|
weight?: "normal" | "bold";
|
|
6094
|
-
|
|
6018
|
+
ellipsis?: true;
|
|
6019
|
+
} & import("react").RefAttributes<HTMLHeadingElement>, "slot" | "level">, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
6095
6020
|
export const ModalDescription: import("react").ForwardRefExoticComponent<Omit<Omit<Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "id" | "slot"> & {
|
|
6096
6021
|
nonAria?: true;
|
|
6097
6022
|
} & import("@layerfi/components/components/ui/Typography/Text").TextStyleProps & {
|
|
@@ -6240,6 +6165,7 @@ declare module '@layerfi/components/components/ui/TagGroup/TagGroup' {
|
|
|
6240
6165
|
|
|
6241
6166
|
}
|
|
6242
6167
|
declare module '@layerfi/components/components/ui/Typography/Heading' {
|
|
6168
|
+
import { HeadingProps as ReactAriaHeadingProps } from 'react-aria-components';
|
|
6243
6169
|
import type { Spacing } from '@layerfi/components/components/ui/sharedUITypes';
|
|
6244
6170
|
type HeadingDataProps = {
|
|
6245
6171
|
align?: 'center';
|
|
@@ -6248,8 +6174,9 @@ declare module '@layerfi/components/components/ui/Typography/Heading' {
|
|
|
6248
6174
|
size?: '2xs' | 'xs' | 'sm' | 'lg' | 'xl';
|
|
6249
6175
|
variant?: 'subtle';
|
|
6250
6176
|
weight?: 'normal' | 'bold';
|
|
6177
|
+
ellipsis?: true;
|
|
6251
6178
|
};
|
|
6252
|
-
const Heading: import("react").ForwardRefExoticComponent<
|
|
6179
|
+
const Heading: import("react").ForwardRefExoticComponent<ReactAriaHeadingProps & HeadingDataProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
6253
6180
|
export { Heading };
|
|
6254
6181
|
|
|
6255
6182
|
}
|
|
@@ -6646,13 +6573,30 @@ declare module '@layerfi/components/contexts/ChartOfAccountsContext/ChartOfAccou
|
|
|
6646
6573
|
import { useChartOfAccounts } from '@layerfi/components/hooks/useChartOfAccounts/index';
|
|
6647
6574
|
export type ChartOfAccountsContextType = ReturnType<typeof useChartOfAccounts>;
|
|
6648
6575
|
export const ChartOfAccountsContext: import("react").Context<{
|
|
6649
|
-
data:
|
|
6576
|
+
data: {
|
|
6577
|
+
readonly accounts: readonly {
|
|
6578
|
+
readonly name: string;
|
|
6579
|
+
readonly stableName: string | null;
|
|
6580
|
+
readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
|
|
6581
|
+
readonly accountType: {
|
|
6582
|
+
readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
|
|
6583
|
+
readonly displayName: string;
|
|
6584
|
+
};
|
|
6585
|
+
readonly accountSubtype: {
|
|
6586
|
+
readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountSubtype;
|
|
6587
|
+
readonly displayName: string;
|
|
6588
|
+
};
|
|
6589
|
+
readonly accountId: string;
|
|
6590
|
+
readonly accountNumber: string | null;
|
|
6591
|
+
readonly balance: number;
|
|
6592
|
+
readonly isDeletable: boolean | null;
|
|
6593
|
+
readonly subAccounts: readonly import("@layerfi/components/schemas/generalLedger/ledgerAccount").NestedLedgerAccount[];
|
|
6594
|
+
}[];
|
|
6595
|
+
} | undefined;
|
|
6650
6596
|
isLoading: boolean;
|
|
6651
6597
|
isValidating: boolean;
|
|
6652
|
-
|
|
6653
|
-
refetch: () => Promise<
|
|
6654
|
-
data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances;
|
|
6655
|
-
} | undefined>;
|
|
6598
|
+
isError: boolean;
|
|
6599
|
+
refetch: () => Promise<void>;
|
|
6656
6600
|
create: (newAccount: import("@layerfi/components/types").NewAccount) => Promise<void>;
|
|
6657
6601
|
form: import("@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts").ChartOfAccountsForm | undefined;
|
|
6658
6602
|
sendingForm: boolean;
|
|
@@ -6743,7 +6687,7 @@ declare module '@layerfi/components/contexts/JournalContext/JournalContext' {
|
|
|
6743
6687
|
setSelectedEntryId: (id?: string) => void;
|
|
6744
6688
|
closeSelectedEntry: () => void;
|
|
6745
6689
|
create: (newJournalEntry: import("@layerfi/components/types/journal").NewApiJournalEntry) => void;
|
|
6746
|
-
changeFormData: (name: string, value: string | import("@layerfi/components/types/general").BaseSelectOption | undefined | number, lineItemIndex?: number, accounts?: import("../../types/
|
|
6690
|
+
changeFormData: (name: string, value: string | import("@layerfi/components/types/general").BaseSelectOption | undefined | number, lineItemIndex?: number, accounts?: import("../../types/journal").LedgerAccountBalance[]) => void;
|
|
6747
6691
|
submitForm: () => void;
|
|
6748
6692
|
cancelForm: () => void;
|
|
6749
6693
|
addEntry: () => void;
|
|
@@ -6751,7 +6695,7 @@ declare module '@layerfi/components/contexts/JournalContext/JournalContext' {
|
|
|
6751
6695
|
form?: import("@layerfi/components/hooks/useJournal/useJournal").JournalFormTypes;
|
|
6752
6696
|
apiError?: string;
|
|
6753
6697
|
setForm: (form?: import("@layerfi/components/hooks/useJournal/useJournal").JournalFormTypes) => void;
|
|
6754
|
-
addEntryLine: (direction: import("@layerfi/components/
|
|
6698
|
+
addEntryLine: (direction: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection) => void;
|
|
6755
6699
|
removeEntryLine: (index: number) => void;
|
|
6756
6700
|
reverseEntry: (entryId: string) => ReturnType<(baseUrl: string, accessToken: string | undefined, options?: {
|
|
6757
6701
|
params?: Record<string, string | undefined> | undefined;
|
|
@@ -7221,6 +7165,11 @@ declare module '@layerfi/components/features/customers/components/CustomerSelect
|
|
|
7221
7165
|
export function CustomerSelector({ selectedCustomer, onSelectedCustomerChange, placeholder, isReadOnly, inline, className, }: CustomerSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
7222
7166
|
export {};
|
|
7223
7167
|
|
|
7168
|
+
}
|
|
7169
|
+
declare module '@layerfi/components/features/customers/util' {
|
|
7170
|
+
import type { Customer } from '@layerfi/components/schemas/customer';
|
|
7171
|
+
export function getCustomerName(customer?: Customer | null): string;
|
|
7172
|
+
|
|
7224
7173
|
}
|
|
7225
7174
|
declare module '@layerfi/components/features/forms/components/BaseFormTextField' {
|
|
7226
7175
|
import type { PropsWithChildren } from 'react';
|
|
@@ -7305,6 +7254,7 @@ declare module '@layerfi/components/features/forms/hooks/useForm' {
|
|
|
7305
7254
|
readonly FormTextAreaField: typeof FormTextAreaField;
|
|
7306
7255
|
readonly FormTextField: typeof FormTextField;
|
|
7307
7256
|
}, {}>;
|
|
7257
|
+
export type AppForm<T extends Record<string, unknown>> = ReturnType<typeof useAppForm<T>>;
|
|
7308
7258
|
export function useForm<T extends Record<string, unknown>>(props: FormOptions<T, FormValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormAsyncValidateOrFn<T>, unknown>): import("@tanstack/react-form").ReactFormExtendedApi<T, FormValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormValidateOrFn<T>, FormAsyncValidateOrFn<T>, FormAsyncValidateOrFn<T>, unknown>;
|
|
7309
7259
|
|
|
7310
7260
|
}
|
|
@@ -7401,26 +7351,60 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7401
7351
|
readonly memo: string | null;
|
|
7402
7352
|
readonly description: string | null;
|
|
7403
7353
|
readonly invoiceId: string;
|
|
7404
|
-
readonly product: string | null;
|
|
7405
7354
|
readonly subtotal: number;
|
|
7406
7355
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
7407
7356
|
readonly unitPrice: number;
|
|
7408
7357
|
readonly discountAmount: number;
|
|
7409
7358
|
readonly salesTaxTotal: number;
|
|
7410
7359
|
readonly totalAmount: number;
|
|
7360
|
+
readonly transactionTags: readonly {
|
|
7361
|
+
readonly value: string;
|
|
7362
|
+
readonly id: string;
|
|
7363
|
+
readonly _local?: {
|
|
7364
|
+
readonly isOptimistic: boolean;
|
|
7365
|
+
} | undefined;
|
|
7366
|
+
readonly key: string;
|
|
7367
|
+
readonly createdAt: Date;
|
|
7368
|
+
readonly updatedAt: Date;
|
|
7369
|
+
readonly deletedAt?: Date | undefined;
|
|
7370
|
+
}[];
|
|
7371
|
+
readonly accountIdentifier: {
|
|
7372
|
+
readonly type: "StableName";
|
|
7373
|
+
readonly stableName: string;
|
|
7374
|
+
} | {
|
|
7375
|
+
readonly id: string;
|
|
7376
|
+
readonly type: "AccountId";
|
|
7377
|
+
} | null;
|
|
7411
7378
|
}[], "line_items", ":", readonly {
|
|
7412
7379
|
readonly id: string;
|
|
7413
7380
|
readonly external_id: string | null;
|
|
7414
7381
|
readonly memo: string | null;
|
|
7415
7382
|
readonly description: string | null;
|
|
7416
7383
|
readonly invoice_id: string;
|
|
7417
|
-
readonly product: string | null;
|
|
7418
7384
|
readonly subtotal: number;
|
|
7419
7385
|
readonly quantity: string;
|
|
7420
7386
|
readonly unit_price: number;
|
|
7421
7387
|
readonly discount_amount: number;
|
|
7422
7388
|
readonly sales_taxes_total: number;
|
|
7423
7389
|
readonly total_amount: number;
|
|
7390
|
+
readonly transaction_tags: readonly {
|
|
7391
|
+
readonly value: string;
|
|
7392
|
+
readonly id: string;
|
|
7393
|
+
readonly key: string;
|
|
7394
|
+
readonly created_at: string;
|
|
7395
|
+
readonly updated_at: string;
|
|
7396
|
+
readonly _local?: {
|
|
7397
|
+
readonly isOptimistic: boolean;
|
|
7398
|
+
} | undefined;
|
|
7399
|
+
readonly deleted_at?: string | undefined;
|
|
7400
|
+
}[];
|
|
7401
|
+
readonly account_identifier: {
|
|
7402
|
+
readonly type: "StableName";
|
|
7403
|
+
readonly stable_name: string;
|
|
7404
|
+
} | {
|
|
7405
|
+
readonly id: string;
|
|
7406
|
+
readonly type: "AccountId";
|
|
7407
|
+
} | null;
|
|
7424
7408
|
}[], false, never>;
|
|
7425
7409
|
subtotal: typeof Schema.Number;
|
|
7426
7410
|
additionalDiscount: Schema.PropertySignature<":", number, "additional_discount", ":", number, false, never>;
|
|
@@ -7449,6 +7433,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7449
7433
|
readonly externalId: string | null;
|
|
7450
7434
|
readonly status: InvoiceStatus;
|
|
7451
7435
|
readonly memo: string | null;
|
|
7436
|
+
readonly updatedAt: Date | null;
|
|
7452
7437
|
readonly customer: {
|
|
7453
7438
|
readonly id: string;
|
|
7454
7439
|
readonly externalId: string | null;
|
|
@@ -7473,15 +7458,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7473
7458
|
readonly memo: string | null;
|
|
7474
7459
|
readonly description: string | null;
|
|
7475
7460
|
readonly invoiceId: string;
|
|
7476
|
-
readonly product: string | null;
|
|
7477
7461
|
readonly subtotal: number;
|
|
7478
7462
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
7479
7463
|
readonly unitPrice: number;
|
|
7480
7464
|
readonly discountAmount: number;
|
|
7481
7465
|
readonly salesTaxTotal: number;
|
|
7482
7466
|
readonly totalAmount: number;
|
|
7467
|
+
readonly transactionTags: readonly {
|
|
7468
|
+
readonly value: string;
|
|
7469
|
+
readonly id: string;
|
|
7470
|
+
readonly _local?: {
|
|
7471
|
+
readonly isOptimistic: boolean;
|
|
7472
|
+
} | undefined;
|
|
7473
|
+
readonly key: string;
|
|
7474
|
+
readonly createdAt: Date;
|
|
7475
|
+
readonly updatedAt: Date;
|
|
7476
|
+
readonly deletedAt?: Date | undefined;
|
|
7477
|
+
}[];
|
|
7478
|
+
readonly accountIdentifier: {
|
|
7479
|
+
readonly type: "StableName";
|
|
7480
|
+
readonly stableName: string;
|
|
7481
|
+
} | {
|
|
7482
|
+
readonly id: string;
|
|
7483
|
+
readonly type: "AccountId";
|
|
7484
|
+
} | null;
|
|
7483
7485
|
}[];
|
|
7484
|
-
readonly updatedAt: Date | null;
|
|
7485
7486
|
readonly subtotal: number;
|
|
7486
7487
|
readonly paidAt: Date | null;
|
|
7487
7488
|
readonly totalAmount: number;
|
|
@@ -7508,6 +7509,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7508
7509
|
readonly externalId: string | null;
|
|
7509
7510
|
readonly status: InvoiceStatus;
|
|
7510
7511
|
readonly memo: string | null;
|
|
7512
|
+
readonly updatedAt: Date | null;
|
|
7511
7513
|
readonly customer: {
|
|
7512
7514
|
readonly id: string;
|
|
7513
7515
|
readonly externalId: string | null;
|
|
@@ -7532,15 +7534,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7532
7534
|
readonly memo: string | null;
|
|
7533
7535
|
readonly description: string | null;
|
|
7534
7536
|
readonly invoiceId: string;
|
|
7535
|
-
readonly product: string | null;
|
|
7536
7537
|
readonly subtotal: number;
|
|
7537
7538
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
7538
7539
|
readonly unitPrice: number;
|
|
7539
7540
|
readonly discountAmount: number;
|
|
7540
7541
|
readonly salesTaxTotal: number;
|
|
7541
7542
|
readonly totalAmount: number;
|
|
7543
|
+
readonly transactionTags: readonly {
|
|
7544
|
+
readonly value: string;
|
|
7545
|
+
readonly id: string;
|
|
7546
|
+
readonly _local?: {
|
|
7547
|
+
readonly isOptimistic: boolean;
|
|
7548
|
+
} | undefined;
|
|
7549
|
+
readonly key: string;
|
|
7550
|
+
readonly createdAt: Date;
|
|
7551
|
+
readonly updatedAt: Date;
|
|
7552
|
+
readonly deletedAt?: Date | undefined;
|
|
7553
|
+
}[];
|
|
7554
|
+
readonly accountIdentifier: {
|
|
7555
|
+
readonly type: "StableName";
|
|
7556
|
+
readonly stableName: string;
|
|
7557
|
+
} | {
|
|
7558
|
+
readonly id: string;
|
|
7559
|
+
readonly type: "AccountId";
|
|
7560
|
+
} | null;
|
|
7542
7561
|
}[];
|
|
7543
|
-
readonly updatedAt: Date | null;
|
|
7544
7562
|
readonly subtotal: number;
|
|
7545
7563
|
readonly paidAt: Date | null;
|
|
7546
7564
|
readonly totalAmount: number;
|
|
@@ -7569,6 +7587,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7569
7587
|
readonly externalId: string | null;
|
|
7570
7588
|
readonly status: InvoiceStatus;
|
|
7571
7589
|
readonly memo: string | null;
|
|
7590
|
+
readonly updatedAt: Date | null;
|
|
7572
7591
|
readonly customer: {
|
|
7573
7592
|
readonly id: string;
|
|
7574
7593
|
readonly externalId: string | null;
|
|
@@ -7593,15 +7612,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7593
7612
|
readonly memo: string | null;
|
|
7594
7613
|
readonly description: string | null;
|
|
7595
7614
|
readonly invoiceId: string;
|
|
7596
|
-
readonly product: string | null;
|
|
7597
7615
|
readonly subtotal: number;
|
|
7598
7616
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
7599
7617
|
readonly unitPrice: number;
|
|
7600
7618
|
readonly discountAmount: number;
|
|
7601
7619
|
readonly salesTaxTotal: number;
|
|
7602
7620
|
readonly totalAmount: number;
|
|
7621
|
+
readonly transactionTags: readonly {
|
|
7622
|
+
readonly value: string;
|
|
7623
|
+
readonly id: string;
|
|
7624
|
+
readonly _local?: {
|
|
7625
|
+
readonly isOptimistic: boolean;
|
|
7626
|
+
} | undefined;
|
|
7627
|
+
readonly key: string;
|
|
7628
|
+
readonly createdAt: Date;
|
|
7629
|
+
readonly updatedAt: Date;
|
|
7630
|
+
readonly deletedAt?: Date | undefined;
|
|
7631
|
+
}[];
|
|
7632
|
+
readonly accountIdentifier: {
|
|
7633
|
+
readonly type: "StableName";
|
|
7634
|
+
readonly stableName: string;
|
|
7635
|
+
} | {
|
|
7636
|
+
readonly id: string;
|
|
7637
|
+
readonly type: "AccountId";
|
|
7638
|
+
} | null;
|
|
7603
7639
|
}[];
|
|
7604
|
-
readonly updatedAt: Date | null;
|
|
7605
7640
|
readonly subtotal: number;
|
|
7606
7641
|
readonly paidAt: Date | null;
|
|
7607
7642
|
readonly totalAmount: number;
|
|
@@ -7630,6 +7665,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7630
7665
|
readonly externalId: string | null;
|
|
7631
7666
|
readonly status: InvoiceStatus;
|
|
7632
7667
|
readonly memo: string | null;
|
|
7668
|
+
readonly updatedAt: Date | null;
|
|
7633
7669
|
readonly customer: {
|
|
7634
7670
|
readonly id: string;
|
|
7635
7671
|
readonly externalId: string | null;
|
|
@@ -7654,15 +7690,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7654
7690
|
readonly memo: string | null;
|
|
7655
7691
|
readonly description: string | null;
|
|
7656
7692
|
readonly invoiceId: string;
|
|
7657
|
-
readonly product: string | null;
|
|
7658
7693
|
readonly subtotal: number;
|
|
7659
7694
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
7660
7695
|
readonly unitPrice: number;
|
|
7661
7696
|
readonly discountAmount: number;
|
|
7662
7697
|
readonly salesTaxTotal: number;
|
|
7663
7698
|
readonly totalAmount: number;
|
|
7699
|
+
readonly transactionTags: readonly {
|
|
7700
|
+
readonly value: string;
|
|
7701
|
+
readonly id: string;
|
|
7702
|
+
readonly _local?: {
|
|
7703
|
+
readonly isOptimistic: boolean;
|
|
7704
|
+
} | undefined;
|
|
7705
|
+
readonly key: string;
|
|
7706
|
+
readonly createdAt: Date;
|
|
7707
|
+
readonly updatedAt: Date;
|
|
7708
|
+
readonly deletedAt?: Date | undefined;
|
|
7709
|
+
}[];
|
|
7710
|
+
readonly accountIdentifier: {
|
|
7711
|
+
readonly type: "StableName";
|
|
7712
|
+
readonly stableName: string;
|
|
7713
|
+
} | {
|
|
7714
|
+
readonly id: string;
|
|
7715
|
+
readonly type: "AccountId";
|
|
7716
|
+
} | null;
|
|
7664
7717
|
}[];
|
|
7665
|
-
readonly updatedAt: Date | null;
|
|
7666
7718
|
readonly subtotal: number;
|
|
7667
7719
|
readonly paidAt: Date | null;
|
|
7668
7720
|
readonly totalAmount: number;
|
|
@@ -7690,6 +7742,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7690
7742
|
readonly externalId: string | null;
|
|
7691
7743
|
readonly status: InvoiceStatus;
|
|
7692
7744
|
readonly memo: string | null;
|
|
7745
|
+
readonly updatedAt: Date | null;
|
|
7693
7746
|
readonly customer: {
|
|
7694
7747
|
readonly id: string;
|
|
7695
7748
|
readonly externalId: string | null;
|
|
@@ -7714,15 +7767,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7714
7767
|
readonly memo: string | null;
|
|
7715
7768
|
readonly description: string | null;
|
|
7716
7769
|
readonly invoiceId: string;
|
|
7717
|
-
readonly product: string | null;
|
|
7718
7770
|
readonly subtotal: number;
|
|
7719
7771
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
7720
7772
|
readonly unitPrice: number;
|
|
7721
7773
|
readonly discountAmount: number;
|
|
7722
7774
|
readonly salesTaxTotal: number;
|
|
7723
7775
|
readonly totalAmount: number;
|
|
7776
|
+
readonly transactionTags: readonly {
|
|
7777
|
+
readonly value: string;
|
|
7778
|
+
readonly id: string;
|
|
7779
|
+
readonly _local?: {
|
|
7780
|
+
readonly isOptimistic: boolean;
|
|
7781
|
+
} | undefined;
|
|
7782
|
+
readonly key: string;
|
|
7783
|
+
readonly createdAt: Date;
|
|
7784
|
+
readonly updatedAt: Date;
|
|
7785
|
+
readonly deletedAt?: Date | undefined;
|
|
7786
|
+
}[];
|
|
7787
|
+
readonly accountIdentifier: {
|
|
7788
|
+
readonly type: "StableName";
|
|
7789
|
+
readonly stableName: string;
|
|
7790
|
+
} | {
|
|
7791
|
+
readonly id: string;
|
|
7792
|
+
readonly type: "AccountId";
|
|
7793
|
+
} | null;
|
|
7724
7794
|
}[];
|
|
7725
|
-
readonly updatedAt: Date | null;
|
|
7726
7795
|
readonly subtotal: number;
|
|
7727
7796
|
readonly paidAt: Date | null;
|
|
7728
7797
|
readonly totalAmount: number;
|
|
@@ -7747,6 +7816,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7747
7816
|
readonly externalId: string | null;
|
|
7748
7817
|
readonly status: InvoiceStatus;
|
|
7749
7818
|
readonly memo: string | null;
|
|
7819
|
+
readonly updatedAt: Date | null;
|
|
7750
7820
|
readonly customer: {
|
|
7751
7821
|
readonly id: string;
|
|
7752
7822
|
readonly externalId: string | null;
|
|
@@ -7771,15 +7841,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7771
7841
|
readonly memo: string | null;
|
|
7772
7842
|
readonly description: string | null;
|
|
7773
7843
|
readonly invoiceId: string;
|
|
7774
|
-
readonly product: string | null;
|
|
7775
7844
|
readonly subtotal: number;
|
|
7776
7845
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
7777
7846
|
readonly unitPrice: number;
|
|
7778
7847
|
readonly discountAmount: number;
|
|
7779
7848
|
readonly salesTaxTotal: number;
|
|
7780
7849
|
readonly totalAmount: number;
|
|
7850
|
+
readonly transactionTags: readonly {
|
|
7851
|
+
readonly value: string;
|
|
7852
|
+
readonly id: string;
|
|
7853
|
+
readonly _local?: {
|
|
7854
|
+
readonly isOptimistic: boolean;
|
|
7855
|
+
} | undefined;
|
|
7856
|
+
readonly key: string;
|
|
7857
|
+
readonly createdAt: Date;
|
|
7858
|
+
readonly updatedAt: Date;
|
|
7859
|
+
readonly deletedAt?: Date | undefined;
|
|
7860
|
+
}[];
|
|
7861
|
+
readonly accountIdentifier: {
|
|
7862
|
+
readonly type: "StableName";
|
|
7863
|
+
readonly stableName: string;
|
|
7864
|
+
} | {
|
|
7865
|
+
readonly id: string;
|
|
7866
|
+
readonly type: "AccountId";
|
|
7867
|
+
} | null;
|
|
7781
7868
|
}[];
|
|
7782
|
-
readonly updatedAt: Date | null;
|
|
7783
7869
|
readonly subtotal: number;
|
|
7784
7870
|
readonly paidAt: Date | null;
|
|
7785
7871
|
readonly totalAmount: number;
|
|
@@ -7805,6 +7891,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7805
7891
|
readonly externalId: string | null;
|
|
7806
7892
|
readonly status: InvoiceStatus;
|
|
7807
7893
|
readonly memo: string | null;
|
|
7894
|
+
readonly updatedAt: Date | null;
|
|
7808
7895
|
readonly customer: {
|
|
7809
7896
|
readonly id: string;
|
|
7810
7897
|
readonly externalId: string | null;
|
|
@@ -7829,15 +7916,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7829
7916
|
readonly memo: string | null;
|
|
7830
7917
|
readonly description: string | null;
|
|
7831
7918
|
readonly invoiceId: string;
|
|
7832
|
-
readonly product: string | null;
|
|
7833
7919
|
readonly subtotal: number;
|
|
7834
7920
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
7835
7921
|
readonly unitPrice: number;
|
|
7836
7922
|
readonly discountAmount: number;
|
|
7837
7923
|
readonly salesTaxTotal: number;
|
|
7838
7924
|
readonly totalAmount: number;
|
|
7925
|
+
readonly transactionTags: readonly {
|
|
7926
|
+
readonly value: string;
|
|
7927
|
+
readonly id: string;
|
|
7928
|
+
readonly _local?: {
|
|
7929
|
+
readonly isOptimistic: boolean;
|
|
7930
|
+
} | undefined;
|
|
7931
|
+
readonly key: string;
|
|
7932
|
+
readonly createdAt: Date;
|
|
7933
|
+
readonly updatedAt: Date;
|
|
7934
|
+
readonly deletedAt?: Date | undefined;
|
|
7935
|
+
}[];
|
|
7936
|
+
readonly accountIdentifier: {
|
|
7937
|
+
readonly type: "StableName";
|
|
7938
|
+
readonly stableName: string;
|
|
7939
|
+
} | {
|
|
7940
|
+
readonly id: string;
|
|
7941
|
+
readonly type: "AccountId";
|
|
7942
|
+
} | null;
|
|
7839
7943
|
}[];
|
|
7840
|
-
readonly updatedAt: Date | null;
|
|
7841
7944
|
readonly subtotal: number;
|
|
7842
7945
|
readonly paidAt: Date | null;
|
|
7843
7946
|
readonly totalAmount: number;
|
|
@@ -7862,6 +7965,7 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7862
7965
|
readonly externalId: string | null;
|
|
7863
7966
|
readonly status: InvoiceStatus;
|
|
7864
7967
|
readonly memo: string | null;
|
|
7968
|
+
readonly updatedAt: Date | null;
|
|
7865
7969
|
readonly customer: {
|
|
7866
7970
|
readonly id: string;
|
|
7867
7971
|
readonly externalId: string | null;
|
|
@@ -7886,15 +7990,31 @@ declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
|
7886
7990
|
readonly memo: string | null;
|
|
7887
7991
|
readonly description: string | null;
|
|
7888
7992
|
readonly invoiceId: string;
|
|
7889
|
-
readonly product: string | null;
|
|
7890
7993
|
readonly subtotal: number;
|
|
7891
7994
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
7892
7995
|
readonly unitPrice: number;
|
|
7893
7996
|
readonly discountAmount: number;
|
|
7894
7997
|
readonly salesTaxTotal: number;
|
|
7895
7998
|
readonly totalAmount: number;
|
|
7999
|
+
readonly transactionTags: readonly {
|
|
8000
|
+
readonly value: string;
|
|
8001
|
+
readonly id: string;
|
|
8002
|
+
readonly _local?: {
|
|
8003
|
+
readonly isOptimistic: boolean;
|
|
8004
|
+
} | undefined;
|
|
8005
|
+
readonly key: string;
|
|
8006
|
+
readonly createdAt: Date;
|
|
8007
|
+
readonly updatedAt: Date;
|
|
8008
|
+
readonly deletedAt?: Date | undefined;
|
|
8009
|
+
}[];
|
|
8010
|
+
readonly accountIdentifier: {
|
|
8011
|
+
readonly type: "StableName";
|
|
8012
|
+
readonly stableName: string;
|
|
8013
|
+
} | {
|
|
8014
|
+
readonly id: string;
|
|
8015
|
+
readonly type: "AccountId";
|
|
8016
|
+
} | null;
|
|
7896
8017
|
}[];
|
|
7897
|
-
readonly updatedAt: Date | null;
|
|
7898
8018
|
readonly subtotal: number;
|
|
7899
8019
|
readonly paidAt: Date | null;
|
|
7900
8020
|
readonly totalAmount: number;
|
|
@@ -8019,26 +8139,60 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
|
|
|
8019
8139
|
readonly memo: string | null;
|
|
8020
8140
|
readonly description: string | null;
|
|
8021
8141
|
readonly invoiceId: string;
|
|
8022
|
-
readonly product: string | null;
|
|
8023
8142
|
readonly subtotal: number;
|
|
8024
8143
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8025
8144
|
readonly unitPrice: number;
|
|
8026
8145
|
readonly discountAmount: number;
|
|
8027
8146
|
readonly salesTaxTotal: number;
|
|
8028
8147
|
readonly totalAmount: number;
|
|
8148
|
+
readonly transactionTags: readonly {
|
|
8149
|
+
readonly value: string;
|
|
8150
|
+
readonly id: string;
|
|
8151
|
+
readonly _local?: {
|
|
8152
|
+
readonly isOptimistic: boolean;
|
|
8153
|
+
} | undefined;
|
|
8154
|
+
readonly key: string;
|
|
8155
|
+
readonly createdAt: Date;
|
|
8156
|
+
readonly updatedAt: Date;
|
|
8157
|
+
readonly deletedAt?: Date | undefined;
|
|
8158
|
+
}[];
|
|
8159
|
+
readonly accountIdentifier: {
|
|
8160
|
+
readonly type: "StableName";
|
|
8161
|
+
readonly stableName: string;
|
|
8162
|
+
} | {
|
|
8163
|
+
readonly id: string;
|
|
8164
|
+
readonly type: "AccountId";
|
|
8165
|
+
} | null;
|
|
8029
8166
|
}[], "line_items", ":", readonly {
|
|
8030
8167
|
readonly id: string;
|
|
8031
8168
|
readonly external_id: string | null;
|
|
8032
8169
|
readonly memo: string | null;
|
|
8033
8170
|
readonly description: string | null;
|
|
8034
8171
|
readonly invoice_id: string;
|
|
8035
|
-
readonly product: string | null;
|
|
8036
8172
|
readonly subtotal: number;
|
|
8037
8173
|
readonly quantity: string;
|
|
8038
8174
|
readonly unit_price: number;
|
|
8039
8175
|
readonly discount_amount: number;
|
|
8040
8176
|
readonly sales_taxes_total: number;
|
|
8041
8177
|
readonly total_amount: number;
|
|
8178
|
+
readonly transaction_tags: readonly {
|
|
8179
|
+
readonly value: string;
|
|
8180
|
+
readonly id: string;
|
|
8181
|
+
readonly key: string;
|
|
8182
|
+
readonly created_at: string;
|
|
8183
|
+
readonly updated_at: string;
|
|
8184
|
+
readonly _local?: {
|
|
8185
|
+
readonly isOptimistic: boolean;
|
|
8186
|
+
} | undefined;
|
|
8187
|
+
readonly deleted_at?: string | undefined;
|
|
8188
|
+
}[];
|
|
8189
|
+
readonly account_identifier: {
|
|
8190
|
+
readonly type: "StableName";
|
|
8191
|
+
readonly stable_name: string;
|
|
8192
|
+
} | {
|
|
8193
|
+
readonly id: string;
|
|
8194
|
+
readonly type: "AccountId";
|
|
8195
|
+
} | null;
|
|
8042
8196
|
}[], false, never>;
|
|
8043
8197
|
subtotal: typeof Schema.Number;
|
|
8044
8198
|
additionalDiscount: Schema.PropertySignature<":", number, "additional_discount", ":", number, false, never>;
|
|
@@ -8061,6 +8215,7 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
|
|
|
8061
8215
|
readonly externalId: string | null;
|
|
8062
8216
|
readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
|
|
8063
8217
|
readonly memo: string | null;
|
|
8218
|
+
readonly updatedAt: Date | null;
|
|
8064
8219
|
readonly customer: {
|
|
8065
8220
|
readonly id: string;
|
|
8066
8221
|
readonly externalId: string | null;
|
|
@@ -8085,15 +8240,31 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
|
|
|
8085
8240
|
readonly memo: string | null;
|
|
8086
8241
|
readonly description: string | null;
|
|
8087
8242
|
readonly invoiceId: string;
|
|
8088
|
-
readonly product: string | null;
|
|
8089
8243
|
readonly subtotal: number;
|
|
8090
8244
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8091
8245
|
readonly unitPrice: number;
|
|
8092
8246
|
readonly discountAmount: number;
|
|
8093
8247
|
readonly salesTaxTotal: number;
|
|
8094
8248
|
readonly totalAmount: number;
|
|
8249
|
+
readonly transactionTags: readonly {
|
|
8250
|
+
readonly value: string;
|
|
8251
|
+
readonly id: string;
|
|
8252
|
+
readonly _local?: {
|
|
8253
|
+
readonly isOptimistic: boolean;
|
|
8254
|
+
} | undefined;
|
|
8255
|
+
readonly key: string;
|
|
8256
|
+
readonly createdAt: Date;
|
|
8257
|
+
readonly updatedAt: Date;
|
|
8258
|
+
readonly deletedAt?: Date | undefined;
|
|
8259
|
+
}[];
|
|
8260
|
+
readonly accountIdentifier: {
|
|
8261
|
+
readonly type: "StableName";
|
|
8262
|
+
readonly stableName: string;
|
|
8263
|
+
} | {
|
|
8264
|
+
readonly id: string;
|
|
8265
|
+
readonly type: "AccountId";
|
|
8266
|
+
} | null;
|
|
8095
8267
|
}[];
|
|
8096
|
-
readonly updatedAt: Date | null;
|
|
8097
8268
|
readonly subtotal: number;
|
|
8098
8269
|
readonly paidAt: Date | null;
|
|
8099
8270
|
readonly totalAmount: number;
|
|
@@ -8112,6 +8283,7 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
|
|
|
8112
8283
|
readonly externalId: string | null;
|
|
8113
8284
|
readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
|
|
8114
8285
|
readonly memo: string | null;
|
|
8286
|
+
readonly updatedAt: Date | null;
|
|
8115
8287
|
readonly customer: {
|
|
8116
8288
|
readonly id: string;
|
|
8117
8289
|
readonly externalId: string | null;
|
|
@@ -8136,15 +8308,31 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
|
|
|
8136
8308
|
readonly memo: string | null;
|
|
8137
8309
|
readonly description: string | null;
|
|
8138
8310
|
readonly invoiceId: string;
|
|
8139
|
-
readonly product: string | null;
|
|
8140
8311
|
readonly subtotal: number;
|
|
8141
8312
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8142
8313
|
readonly unitPrice: number;
|
|
8143
8314
|
readonly discountAmount: number;
|
|
8144
8315
|
readonly salesTaxTotal: number;
|
|
8145
8316
|
readonly totalAmount: number;
|
|
8317
|
+
readonly transactionTags: readonly {
|
|
8318
|
+
readonly value: string;
|
|
8319
|
+
readonly id: string;
|
|
8320
|
+
readonly _local?: {
|
|
8321
|
+
readonly isOptimistic: boolean;
|
|
8322
|
+
} | undefined;
|
|
8323
|
+
readonly key: string;
|
|
8324
|
+
readonly createdAt: Date;
|
|
8325
|
+
readonly updatedAt: Date;
|
|
8326
|
+
readonly deletedAt?: Date | undefined;
|
|
8327
|
+
}[];
|
|
8328
|
+
readonly accountIdentifier: {
|
|
8329
|
+
readonly type: "StableName";
|
|
8330
|
+
readonly stableName: string;
|
|
8331
|
+
} | {
|
|
8332
|
+
readonly id: string;
|
|
8333
|
+
readonly type: "AccountId";
|
|
8334
|
+
} | null;
|
|
8146
8335
|
}[];
|
|
8147
|
-
readonly updatedAt: Date | null;
|
|
8148
8336
|
readonly subtotal: number;
|
|
8149
8337
|
readonly paidAt: Date | null;
|
|
8150
8338
|
readonly totalAmount: number;
|
|
@@ -8170,7 +8358,8 @@ declare module '@layerfi/components/features/invoices/api/useResetInvoice' {
|
|
|
8170
8358
|
declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvoicePayment' {
|
|
8171
8359
|
import type { Key } from 'swr';
|
|
8172
8360
|
import { type SWRMutationResponse } from 'swr/mutation';
|
|
8173
|
-
import { InvoiceStatus, type Invoice
|
|
8361
|
+
import { InvoiceStatus, type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
|
|
8362
|
+
import { type InvoicePayment, type UpsertDedicatedInvoicePaymentSchema } from '@layerfi/components/features/invoices/invoicePaymentSchemas';
|
|
8174
8363
|
import { Schema } from 'effect';
|
|
8175
8364
|
export enum UpsertDedicatedInvoicePaymentMode {
|
|
8176
8365
|
Create = "Create",
|
|
@@ -8236,6 +8425,7 @@ declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvo
|
|
|
8236
8425
|
id: string;
|
|
8237
8426
|
externalId: string | null;
|
|
8238
8427
|
memo: string | null;
|
|
8428
|
+
updatedAt: Date | null;
|
|
8239
8429
|
customer: {
|
|
8240
8430
|
readonly id: string;
|
|
8241
8431
|
readonly externalId: string | null;
|
|
@@ -8260,15 +8450,31 @@ declare module '@layerfi/components/features/invoices/api/useUpsertDedicatedInvo
|
|
|
8260
8450
|
readonly memo: string | null;
|
|
8261
8451
|
readonly description: string | null;
|
|
8262
8452
|
readonly invoiceId: string;
|
|
8263
|
-
readonly product: string | null;
|
|
8264
8453
|
readonly subtotal: number;
|
|
8265
8454
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8266
8455
|
readonly unitPrice: number;
|
|
8267
8456
|
readonly discountAmount: number;
|
|
8268
8457
|
readonly salesTaxTotal: number;
|
|
8269
8458
|
readonly totalAmount: number;
|
|
8459
|
+
readonly transactionTags: readonly {
|
|
8460
|
+
readonly value: string;
|
|
8461
|
+
readonly id: string;
|
|
8462
|
+
readonly _local?: {
|
|
8463
|
+
readonly isOptimistic: boolean;
|
|
8464
|
+
} | undefined;
|
|
8465
|
+
readonly key: string;
|
|
8466
|
+
readonly createdAt: Date;
|
|
8467
|
+
readonly updatedAt: Date;
|
|
8468
|
+
readonly deletedAt?: Date | undefined;
|
|
8469
|
+
}[];
|
|
8470
|
+
readonly accountIdentifier: {
|
|
8471
|
+
readonly type: "StableName";
|
|
8472
|
+
readonly stableName: string;
|
|
8473
|
+
} | {
|
|
8474
|
+
readonly id: string;
|
|
8475
|
+
readonly type: "AccountId";
|
|
8476
|
+
} | null;
|
|
8270
8477
|
}[];
|
|
8271
|
-
updatedAt: Date | null;
|
|
8272
8478
|
subtotal: number;
|
|
8273
8479
|
paidAt: Date | null;
|
|
8274
8480
|
totalAmount: number;
|
|
@@ -8334,26 +8540,60 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
|
|
|
8334
8540
|
readonly memo: string | null;
|
|
8335
8541
|
readonly description: string | null;
|
|
8336
8542
|
readonly invoiceId: string;
|
|
8337
|
-
readonly product: string | null;
|
|
8338
8543
|
readonly subtotal: number;
|
|
8339
8544
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8340
8545
|
readonly unitPrice: number;
|
|
8341
8546
|
readonly discountAmount: number;
|
|
8342
8547
|
readonly salesTaxTotal: number;
|
|
8343
8548
|
readonly totalAmount: number;
|
|
8549
|
+
readonly transactionTags: readonly {
|
|
8550
|
+
readonly value: string;
|
|
8551
|
+
readonly id: string;
|
|
8552
|
+
readonly _local?: {
|
|
8553
|
+
readonly isOptimistic: boolean;
|
|
8554
|
+
} | undefined;
|
|
8555
|
+
readonly key: string;
|
|
8556
|
+
readonly createdAt: Date;
|
|
8557
|
+
readonly updatedAt: Date;
|
|
8558
|
+
readonly deletedAt?: Date | undefined;
|
|
8559
|
+
}[];
|
|
8560
|
+
readonly accountIdentifier: {
|
|
8561
|
+
readonly type: "StableName";
|
|
8562
|
+
readonly stableName: string;
|
|
8563
|
+
} | {
|
|
8564
|
+
readonly id: string;
|
|
8565
|
+
readonly type: "AccountId";
|
|
8566
|
+
} | null;
|
|
8344
8567
|
}[], "line_items", ":", readonly {
|
|
8345
8568
|
readonly id: string;
|
|
8346
8569
|
readonly external_id: string | null;
|
|
8347
8570
|
readonly memo: string | null;
|
|
8348
8571
|
readonly description: string | null;
|
|
8349
8572
|
readonly invoice_id: string;
|
|
8350
|
-
readonly product: string | null;
|
|
8351
8573
|
readonly subtotal: number;
|
|
8352
8574
|
readonly quantity: string;
|
|
8353
8575
|
readonly unit_price: number;
|
|
8354
8576
|
readonly discount_amount: number;
|
|
8355
8577
|
readonly sales_taxes_total: number;
|
|
8356
8578
|
readonly total_amount: number;
|
|
8579
|
+
readonly transaction_tags: readonly {
|
|
8580
|
+
readonly value: string;
|
|
8581
|
+
readonly id: string;
|
|
8582
|
+
readonly key: string;
|
|
8583
|
+
readonly created_at: string;
|
|
8584
|
+
readonly updated_at: string;
|
|
8585
|
+
readonly _local?: {
|
|
8586
|
+
readonly isOptimistic: boolean;
|
|
8587
|
+
} | undefined;
|
|
8588
|
+
readonly deleted_at?: string | undefined;
|
|
8589
|
+
}[];
|
|
8590
|
+
readonly account_identifier: {
|
|
8591
|
+
readonly type: "StableName";
|
|
8592
|
+
readonly stable_name: string;
|
|
8593
|
+
} | {
|
|
8594
|
+
readonly id: string;
|
|
8595
|
+
readonly type: "AccountId";
|
|
8596
|
+
} | null;
|
|
8357
8597
|
}[], false, never>;
|
|
8358
8598
|
subtotal: typeof Schema.Number;
|
|
8359
8599
|
additionalDiscount: Schema.PropertySignature<":", number, "additional_discount", ":", number, false, never>;
|
|
@@ -8376,6 +8616,7 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
|
|
|
8376
8616
|
readonly externalId: string | null;
|
|
8377
8617
|
readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
|
|
8378
8618
|
readonly memo: string | null;
|
|
8619
|
+
readonly updatedAt: Date | null;
|
|
8379
8620
|
readonly customer: {
|
|
8380
8621
|
readonly id: string;
|
|
8381
8622
|
readonly externalId: string | null;
|
|
@@ -8400,15 +8641,31 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
|
|
|
8400
8641
|
readonly memo: string | null;
|
|
8401
8642
|
readonly description: string | null;
|
|
8402
8643
|
readonly invoiceId: string;
|
|
8403
|
-
readonly product: string | null;
|
|
8404
8644
|
readonly subtotal: number;
|
|
8405
8645
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8406
8646
|
readonly unitPrice: number;
|
|
8407
8647
|
readonly discountAmount: number;
|
|
8408
8648
|
readonly salesTaxTotal: number;
|
|
8409
8649
|
readonly totalAmount: number;
|
|
8650
|
+
readonly transactionTags: readonly {
|
|
8651
|
+
readonly value: string;
|
|
8652
|
+
readonly id: string;
|
|
8653
|
+
readonly _local?: {
|
|
8654
|
+
readonly isOptimistic: boolean;
|
|
8655
|
+
} | undefined;
|
|
8656
|
+
readonly key: string;
|
|
8657
|
+
readonly createdAt: Date;
|
|
8658
|
+
readonly updatedAt: Date;
|
|
8659
|
+
readonly deletedAt?: Date | undefined;
|
|
8660
|
+
}[];
|
|
8661
|
+
readonly accountIdentifier: {
|
|
8662
|
+
readonly type: "StableName";
|
|
8663
|
+
readonly stableName: string;
|
|
8664
|
+
} | {
|
|
8665
|
+
readonly id: string;
|
|
8666
|
+
readonly type: "AccountId";
|
|
8667
|
+
} | null;
|
|
8410
8668
|
}[];
|
|
8411
|
-
readonly updatedAt: Date | null;
|
|
8412
8669
|
readonly subtotal: number;
|
|
8413
8670
|
readonly paidAt: Date | null;
|
|
8414
8671
|
readonly totalAmount: number;
|
|
@@ -8427,6 +8684,7 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
|
|
|
8427
8684
|
readonly externalId: string | null;
|
|
8428
8685
|
readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
|
|
8429
8686
|
readonly memo: string | null;
|
|
8687
|
+
readonly updatedAt: Date | null;
|
|
8430
8688
|
readonly customer: {
|
|
8431
8689
|
readonly id: string;
|
|
8432
8690
|
readonly externalId: string | null;
|
|
@@ -8451,15 +8709,31 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
|
|
|
8451
8709
|
readonly memo: string | null;
|
|
8452
8710
|
readonly description: string | null;
|
|
8453
8711
|
readonly invoiceId: string;
|
|
8454
|
-
readonly product: string | null;
|
|
8455
8712
|
readonly subtotal: number;
|
|
8456
8713
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8457
8714
|
readonly unitPrice: number;
|
|
8458
8715
|
readonly discountAmount: number;
|
|
8459
8716
|
readonly salesTaxTotal: number;
|
|
8460
8717
|
readonly totalAmount: number;
|
|
8718
|
+
readonly transactionTags: readonly {
|
|
8719
|
+
readonly value: string;
|
|
8720
|
+
readonly id: string;
|
|
8721
|
+
readonly _local?: {
|
|
8722
|
+
readonly isOptimistic: boolean;
|
|
8723
|
+
} | undefined;
|
|
8724
|
+
readonly key: string;
|
|
8725
|
+
readonly createdAt: Date;
|
|
8726
|
+
readonly updatedAt: Date;
|
|
8727
|
+
readonly deletedAt?: Date | undefined;
|
|
8728
|
+
}[];
|
|
8729
|
+
readonly accountIdentifier: {
|
|
8730
|
+
readonly type: "StableName";
|
|
8731
|
+
readonly stableName: string;
|
|
8732
|
+
} | {
|
|
8733
|
+
readonly id: string;
|
|
8734
|
+
readonly type: "AccountId";
|
|
8735
|
+
} | null;
|
|
8461
8736
|
}[];
|
|
8462
|
-
readonly updatedAt: Date | null;
|
|
8463
8737
|
readonly subtotal: number;
|
|
8464
8738
|
readonly paidAt: Date | null;
|
|
8465
8739
|
readonly totalAmount: number;
|
|
@@ -8474,9 +8748,19 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
|
|
|
8474
8748
|
}, unknown, Key, {
|
|
8475
8749
|
readonly line_items: readonly {
|
|
8476
8750
|
readonly description: string;
|
|
8477
|
-
readonly product: string;
|
|
8478
8751
|
readonly quantity: string;
|
|
8479
8752
|
readonly unit_price: number;
|
|
8753
|
+
readonly tags?: readonly {
|
|
8754
|
+
readonly value: string;
|
|
8755
|
+
readonly key: string;
|
|
8756
|
+
}[] | undefined;
|
|
8757
|
+
readonly account_identifier?: {
|
|
8758
|
+
readonly type: "StableName";
|
|
8759
|
+
readonly stable_name: string;
|
|
8760
|
+
} | {
|
|
8761
|
+
readonly id: string;
|
|
8762
|
+
readonly type: "AccountId";
|
|
8763
|
+
} | undefined;
|
|
8480
8764
|
readonly sales_taxes?: readonly {
|
|
8481
8765
|
readonly amount: number;
|
|
8482
8766
|
}[] | undefined;
|
|
@@ -8548,26 +8832,60 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
|
|
|
8548
8832
|
readonly memo: string | null;
|
|
8549
8833
|
readonly description: string | null;
|
|
8550
8834
|
readonly invoiceId: string;
|
|
8551
|
-
readonly product: string | null;
|
|
8552
8835
|
readonly subtotal: number;
|
|
8553
8836
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8554
8837
|
readonly unitPrice: number;
|
|
8555
8838
|
readonly discountAmount: number;
|
|
8556
8839
|
readonly salesTaxTotal: number;
|
|
8557
8840
|
readonly totalAmount: number;
|
|
8841
|
+
readonly transactionTags: readonly {
|
|
8842
|
+
readonly value: string;
|
|
8843
|
+
readonly id: string;
|
|
8844
|
+
readonly _local?: {
|
|
8845
|
+
readonly isOptimistic: boolean;
|
|
8846
|
+
} | undefined;
|
|
8847
|
+
readonly key: string;
|
|
8848
|
+
readonly createdAt: Date;
|
|
8849
|
+
readonly updatedAt: Date;
|
|
8850
|
+
readonly deletedAt?: Date | undefined;
|
|
8851
|
+
}[];
|
|
8852
|
+
readonly accountIdentifier: {
|
|
8853
|
+
readonly type: "StableName";
|
|
8854
|
+
readonly stableName: string;
|
|
8855
|
+
} | {
|
|
8856
|
+
readonly id: string;
|
|
8857
|
+
readonly type: "AccountId";
|
|
8858
|
+
} | null;
|
|
8558
8859
|
}[], "line_items", ":", readonly {
|
|
8559
8860
|
readonly id: string;
|
|
8560
8861
|
readonly external_id: string | null;
|
|
8561
8862
|
readonly memo: string | null;
|
|
8562
8863
|
readonly description: string | null;
|
|
8563
8864
|
readonly invoice_id: string;
|
|
8564
|
-
readonly product: string | null;
|
|
8565
8865
|
readonly subtotal: number;
|
|
8566
8866
|
readonly quantity: string;
|
|
8567
8867
|
readonly unit_price: number;
|
|
8568
8868
|
readonly discount_amount: number;
|
|
8569
8869
|
readonly sales_taxes_total: number;
|
|
8570
8870
|
readonly total_amount: number;
|
|
8871
|
+
readonly transaction_tags: readonly {
|
|
8872
|
+
readonly value: string;
|
|
8873
|
+
readonly id: string;
|
|
8874
|
+
readonly key: string;
|
|
8875
|
+
readonly created_at: string;
|
|
8876
|
+
readonly updated_at: string;
|
|
8877
|
+
readonly _local?: {
|
|
8878
|
+
readonly isOptimistic: boolean;
|
|
8879
|
+
} | undefined;
|
|
8880
|
+
readonly deleted_at?: string | undefined;
|
|
8881
|
+
}[];
|
|
8882
|
+
readonly account_identifier: {
|
|
8883
|
+
readonly type: "StableName";
|
|
8884
|
+
readonly stable_name: string;
|
|
8885
|
+
} | {
|
|
8886
|
+
readonly id: string;
|
|
8887
|
+
readonly type: "AccountId";
|
|
8888
|
+
} | null;
|
|
8571
8889
|
}[], false, never>;
|
|
8572
8890
|
subtotal: typeof Schema.Number;
|
|
8573
8891
|
additionalDiscount: Schema.PropertySignature<":", number, "additional_discount", ":", number, false, never>;
|
|
@@ -8590,6 +8908,7 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
|
|
|
8590
8908
|
readonly externalId: string | null;
|
|
8591
8909
|
readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
|
|
8592
8910
|
readonly memo: string | null;
|
|
8911
|
+
readonly updatedAt: Date | null;
|
|
8593
8912
|
readonly customer: {
|
|
8594
8913
|
readonly id: string;
|
|
8595
8914
|
readonly externalId: string | null;
|
|
@@ -8614,15 +8933,31 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
|
|
|
8614
8933
|
readonly memo: string | null;
|
|
8615
8934
|
readonly description: string | null;
|
|
8616
8935
|
readonly invoiceId: string;
|
|
8617
|
-
readonly product: string | null;
|
|
8618
8936
|
readonly subtotal: number;
|
|
8619
8937
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8620
8938
|
readonly unitPrice: number;
|
|
8621
8939
|
readonly discountAmount: number;
|
|
8622
8940
|
readonly salesTaxTotal: number;
|
|
8623
8941
|
readonly totalAmount: number;
|
|
8942
|
+
readonly transactionTags: readonly {
|
|
8943
|
+
readonly value: string;
|
|
8944
|
+
readonly id: string;
|
|
8945
|
+
readonly _local?: {
|
|
8946
|
+
readonly isOptimistic: boolean;
|
|
8947
|
+
} | undefined;
|
|
8948
|
+
readonly key: string;
|
|
8949
|
+
readonly createdAt: Date;
|
|
8950
|
+
readonly updatedAt: Date;
|
|
8951
|
+
readonly deletedAt?: Date | undefined;
|
|
8952
|
+
}[];
|
|
8953
|
+
readonly accountIdentifier: {
|
|
8954
|
+
readonly type: "StableName";
|
|
8955
|
+
readonly stableName: string;
|
|
8956
|
+
} | {
|
|
8957
|
+
readonly id: string;
|
|
8958
|
+
readonly type: "AccountId";
|
|
8959
|
+
} | null;
|
|
8624
8960
|
}[];
|
|
8625
|
-
readonly updatedAt: Date | null;
|
|
8626
8961
|
readonly subtotal: number;
|
|
8627
8962
|
readonly paidAt: Date | null;
|
|
8628
8963
|
readonly totalAmount: number;
|
|
@@ -8641,6 +8976,7 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
|
|
|
8641
8976
|
readonly externalId: string | null;
|
|
8642
8977
|
readonly status: import("@layerfi/components/features/invoices/invoiceSchemas").InvoiceStatus;
|
|
8643
8978
|
readonly memo: string | null;
|
|
8979
|
+
readonly updatedAt: Date | null;
|
|
8644
8980
|
readonly customer: {
|
|
8645
8981
|
readonly id: string;
|
|
8646
8982
|
readonly externalId: string | null;
|
|
@@ -8665,15 +9001,31 @@ declare module '@layerfi/components/features/invoices/api/useVoidInvoice' {
|
|
|
8665
9001
|
readonly memo: string | null;
|
|
8666
9002
|
readonly description: string | null;
|
|
8667
9003
|
readonly invoiceId: string;
|
|
8668
|
-
readonly product: string | null;
|
|
8669
9004
|
readonly subtotal: number;
|
|
8670
9005
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8671
9006
|
readonly unitPrice: number;
|
|
8672
9007
|
readonly discountAmount: number;
|
|
8673
9008
|
readonly salesTaxTotal: number;
|
|
8674
9009
|
readonly totalAmount: number;
|
|
9010
|
+
readonly transactionTags: readonly {
|
|
9011
|
+
readonly value: string;
|
|
9012
|
+
readonly id: string;
|
|
9013
|
+
readonly _local?: {
|
|
9014
|
+
readonly isOptimistic: boolean;
|
|
9015
|
+
} | undefined;
|
|
9016
|
+
readonly key: string;
|
|
9017
|
+
readonly createdAt: Date;
|
|
9018
|
+
readonly updatedAt: Date;
|
|
9019
|
+
readonly deletedAt?: Date | undefined;
|
|
9020
|
+
}[];
|
|
9021
|
+
readonly accountIdentifier: {
|
|
9022
|
+
readonly type: "StableName";
|
|
9023
|
+
readonly stableName: string;
|
|
9024
|
+
} | {
|
|
9025
|
+
readonly id: string;
|
|
9026
|
+
readonly type: "AccountId";
|
|
9027
|
+
} | null;
|
|
8675
9028
|
}[];
|
|
8676
|
-
readonly updatedAt: Date | null;
|
|
8677
9029
|
readonly subtotal: number;
|
|
8678
9030
|
readonly paidAt: Date | null;
|
|
8679
9031
|
readonly totalAmount: number;
|
|
@@ -8786,6 +9138,34 @@ declare module '@layerfi/components/features/invoices/customerRefundSchemas' {
|
|
|
8786
9138
|
}>;
|
|
8787
9139
|
export type CustomerRefund = typeof CustomerRefundSchema.Type;
|
|
8788
9140
|
|
|
9141
|
+
}
|
|
9142
|
+
declare module '@layerfi/components/features/invoices/invoicePaymentSchemas' {
|
|
9143
|
+
import { Schema } from 'effect';
|
|
9144
|
+
export const UpsertDedicatedInvoicePaymentSchema: Schema.Struct<{
|
|
9145
|
+
amount: typeof Schema.Number;
|
|
9146
|
+
method: Schema.Enums<typeof import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod>;
|
|
9147
|
+
paidAt: Schema.PropertySignature<":", Date, "paid_at", ":", string, false, never>;
|
|
9148
|
+
referenceNumber: Schema.PropertySignature<"?:", string | undefined, "reference_number", "?:", string | undefined, false, never>;
|
|
9149
|
+
memo: Schema.optional<typeof Schema.String>;
|
|
9150
|
+
}>;
|
|
9151
|
+
export type UpsertDedicatedInvoicePayment = typeof UpsertDedicatedInvoicePaymentSchema.Type;
|
|
9152
|
+
export const DedicatedInvoicePaymentFormSchema: Schema.Struct<{
|
|
9153
|
+
amount: typeof Schema.BigDecimal;
|
|
9154
|
+
method: Schema.NullOr<Schema.Enums<typeof import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod>>;
|
|
9155
|
+
paidAt: Schema.NullOr<Schema.declare<import("@internationalized/date").ZonedDateTime, import("@internationalized/date").ZonedDateTime, readonly [], never>>;
|
|
9156
|
+
referenceNumber: typeof Schema.String;
|
|
9157
|
+
memo: typeof Schema.String;
|
|
9158
|
+
}>;
|
|
9159
|
+
export type DedicatedInvoicePaymentForm = typeof DedicatedInvoicePaymentFormSchema.Type;
|
|
9160
|
+
export const InvoicePaymentSchema: Schema.Struct<{
|
|
9161
|
+
amount: typeof Schema.Number;
|
|
9162
|
+
method: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod, import("../../components/PaymentMethod/schemas").PaymentMethod, never>>;
|
|
9163
|
+
at: Schema.propertySignature<typeof Schema.Date>;
|
|
9164
|
+
referenceNumber: Schema.PropertySignature<":", string | null, "reference_number", ":", string | null, false, never>;
|
|
9165
|
+
memo: Schema.NullOr<typeof Schema.String>;
|
|
9166
|
+
}>;
|
|
9167
|
+
export type InvoicePayment = typeof InvoicePaymentSchema.Type;
|
|
9168
|
+
|
|
8789
9169
|
}
|
|
8790
9170
|
declare module '@layerfi/components/features/invoices/invoiceSchemas' {
|
|
8791
9171
|
import { Schema } from 'effect';
|
|
@@ -8805,7 +9185,6 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
|
|
|
8805
9185
|
externalId: Schema.PropertySignature<":", string | null, "external_id", ":", string | null, false, never>;
|
|
8806
9186
|
invoiceId: Schema.PropertySignature<":", string, "invoice_id", ":", string, false, never>;
|
|
8807
9187
|
description: Schema.NullOr<typeof Schema.String>;
|
|
8808
|
-
product: Schema.NullOr<typeof Schema.String>;
|
|
8809
9188
|
unitPrice: Schema.PropertySignature<":", number, "unit_price", ":", number, false, never>;
|
|
8810
9189
|
quantity: typeof Schema.BigDecimal;
|
|
8811
9190
|
subtotal: typeof Schema.Number;
|
|
@@ -8813,6 +9192,40 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
|
|
|
8813
9192
|
salesTaxTotal: Schema.PropertySignature<":", number, "sales_taxes_total", ":", number, false, never>;
|
|
8814
9193
|
totalAmount: Schema.PropertySignature<":", number, "total_amount", ":", number, false, never>;
|
|
8815
9194
|
memo: Schema.NullOr<typeof Schema.String>;
|
|
9195
|
+
transactionTags: Schema.PropertySignature<":", readonly {
|
|
9196
|
+
readonly value: string;
|
|
9197
|
+
readonly id: string;
|
|
9198
|
+
readonly _local?: {
|
|
9199
|
+
readonly isOptimistic: boolean;
|
|
9200
|
+
} | undefined;
|
|
9201
|
+
readonly key: string;
|
|
9202
|
+
readonly createdAt: Date;
|
|
9203
|
+
readonly updatedAt: Date;
|
|
9204
|
+
readonly deletedAt?: Date | undefined;
|
|
9205
|
+
}[], "transaction_tags", ":", readonly {
|
|
9206
|
+
readonly value: string;
|
|
9207
|
+
readonly id: string;
|
|
9208
|
+
readonly key: string;
|
|
9209
|
+
readonly created_at: string;
|
|
9210
|
+
readonly updated_at: string;
|
|
9211
|
+
readonly _local?: {
|
|
9212
|
+
readonly isOptimistic: boolean;
|
|
9213
|
+
} | undefined;
|
|
9214
|
+
readonly deleted_at?: string | undefined;
|
|
9215
|
+
}[], false, never>;
|
|
9216
|
+
accountIdentifier: Schema.PropertySignature<":", {
|
|
9217
|
+
readonly type: "StableName";
|
|
9218
|
+
readonly stableName: string;
|
|
9219
|
+
} | {
|
|
9220
|
+
readonly id: string;
|
|
9221
|
+
readonly type: "AccountId";
|
|
9222
|
+
} | null, "account_identifier", ":", {
|
|
9223
|
+
readonly type: "StableName";
|
|
9224
|
+
readonly stable_name: string;
|
|
9225
|
+
} | {
|
|
9226
|
+
readonly id: string;
|
|
9227
|
+
readonly type: "AccountId";
|
|
9228
|
+
} | null, false, never>;
|
|
8816
9229
|
}>;
|
|
8817
9230
|
export type InvoiceLineItem = typeof InvoiceLineItemSchema.Type;
|
|
8818
9231
|
export const InvoiceSchema: Schema.Struct<{
|
|
@@ -8847,26 +9260,60 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
|
|
|
8847
9260
|
readonly memo: string | null;
|
|
8848
9261
|
readonly description: string | null;
|
|
8849
9262
|
readonly invoiceId: string;
|
|
8850
|
-
readonly product: string | null;
|
|
8851
9263
|
readonly subtotal: number;
|
|
8852
9264
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8853
9265
|
readonly unitPrice: number;
|
|
8854
9266
|
readonly discountAmount: number;
|
|
8855
9267
|
readonly salesTaxTotal: number;
|
|
8856
9268
|
readonly totalAmount: number;
|
|
9269
|
+
readonly transactionTags: readonly {
|
|
9270
|
+
readonly value: string;
|
|
9271
|
+
readonly id: string;
|
|
9272
|
+
readonly _local?: {
|
|
9273
|
+
readonly isOptimistic: boolean;
|
|
9274
|
+
} | undefined;
|
|
9275
|
+
readonly key: string;
|
|
9276
|
+
readonly createdAt: Date;
|
|
9277
|
+
readonly updatedAt: Date;
|
|
9278
|
+
readonly deletedAt?: Date | undefined;
|
|
9279
|
+
}[];
|
|
9280
|
+
readonly accountIdentifier: {
|
|
9281
|
+
readonly type: "StableName";
|
|
9282
|
+
readonly stableName: string;
|
|
9283
|
+
} | {
|
|
9284
|
+
readonly id: string;
|
|
9285
|
+
readonly type: "AccountId";
|
|
9286
|
+
} | null;
|
|
8857
9287
|
}[], "line_items", ":", readonly {
|
|
8858
9288
|
readonly id: string;
|
|
8859
9289
|
readonly external_id: string | null;
|
|
8860
9290
|
readonly memo: string | null;
|
|
8861
9291
|
readonly description: string | null;
|
|
8862
9292
|
readonly invoice_id: string;
|
|
8863
|
-
readonly product: string | null;
|
|
8864
9293
|
readonly subtotal: number;
|
|
8865
9294
|
readonly quantity: string;
|
|
8866
9295
|
readonly unit_price: number;
|
|
8867
9296
|
readonly discount_amount: number;
|
|
8868
9297
|
readonly sales_taxes_total: number;
|
|
8869
9298
|
readonly total_amount: number;
|
|
9299
|
+
readonly transaction_tags: readonly {
|
|
9300
|
+
readonly value: string;
|
|
9301
|
+
readonly id: string;
|
|
9302
|
+
readonly key: string;
|
|
9303
|
+
readonly created_at: string;
|
|
9304
|
+
readonly updated_at: string;
|
|
9305
|
+
readonly _local?: {
|
|
9306
|
+
readonly isOptimistic: boolean;
|
|
9307
|
+
} | undefined;
|
|
9308
|
+
readonly deleted_at?: string | undefined;
|
|
9309
|
+
}[];
|
|
9310
|
+
readonly account_identifier: {
|
|
9311
|
+
readonly type: "StableName";
|
|
9312
|
+
readonly stable_name: string;
|
|
9313
|
+
} | {
|
|
9314
|
+
readonly id: string;
|
|
9315
|
+
readonly type: "AccountId";
|
|
9316
|
+
} | null;
|
|
8870
9317
|
}[], false, never>;
|
|
8871
9318
|
subtotal: typeof Schema.Number;
|
|
8872
9319
|
additionalDiscount: Schema.PropertySignature<":", number, "additional_discount", ":", number, false, never>;
|
|
@@ -8883,7 +9330,6 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
|
|
|
8883
9330
|
}>;
|
|
8884
9331
|
export const UpsertInvoiceLineItemSchema: Schema.Struct<{
|
|
8885
9332
|
description: typeof Schema.String;
|
|
8886
|
-
product: typeof Schema.String;
|
|
8887
9333
|
unitPrice: Schema.PropertySignature<":", number, "unit_price", ":", number, false, never>;
|
|
8888
9334
|
quantity: typeof Schema.BigDecimal;
|
|
8889
9335
|
salesTaxes: Schema.PropertySignature<"?:", readonly {
|
|
@@ -8891,6 +9337,23 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
|
|
|
8891
9337
|
}[] | undefined, "sales_taxes", "?:", readonly {
|
|
8892
9338
|
readonly amount: number;
|
|
8893
9339
|
}[] | undefined, false, never>;
|
|
9340
|
+
accountIdentifier: Schema.PropertySignature<"?:", {
|
|
9341
|
+
readonly type: "StableName";
|
|
9342
|
+
readonly stableName: string;
|
|
9343
|
+
} | {
|
|
9344
|
+
readonly id: string;
|
|
9345
|
+
readonly type: "AccountId";
|
|
9346
|
+
} | undefined, "account_identifier", "?:", {
|
|
9347
|
+
readonly type: "StableName";
|
|
9348
|
+
readonly stable_name: string;
|
|
9349
|
+
} | {
|
|
9350
|
+
readonly id: string;
|
|
9351
|
+
readonly type: "AccountId";
|
|
9352
|
+
} | undefined, false, never>;
|
|
9353
|
+
tags: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
9354
|
+
key: typeof Schema.NonEmptyTrimmedString;
|
|
9355
|
+
value: typeof Schema.NonEmptyTrimmedString;
|
|
9356
|
+
}>>>;
|
|
8894
9357
|
}>;
|
|
8895
9358
|
export type UpsertInvoiceLineItem = typeof UpsertInvoiceLineItemSchema.Type;
|
|
8896
9359
|
export const UpsertInvoiceSchema: Schema.Struct<{
|
|
@@ -8901,17 +9364,37 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
|
|
|
8901
9364
|
memo: Schema.optional<typeof Schema.String>;
|
|
8902
9365
|
lineItems: Schema.PropertySignature<":", readonly {
|
|
8903
9366
|
readonly description: string;
|
|
8904
|
-
readonly
|
|
9367
|
+
readonly tags?: readonly {
|
|
9368
|
+
readonly value: string;
|
|
9369
|
+
readonly key: string;
|
|
9370
|
+
}[] | undefined;
|
|
8905
9371
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8906
9372
|
readonly unitPrice: number;
|
|
9373
|
+
readonly accountIdentifier?: {
|
|
9374
|
+
readonly type: "StableName";
|
|
9375
|
+
readonly stableName: string;
|
|
9376
|
+
} | {
|
|
9377
|
+
readonly id: string;
|
|
9378
|
+
readonly type: "AccountId";
|
|
9379
|
+
} | undefined;
|
|
8907
9380
|
readonly salesTaxes?: readonly {
|
|
8908
9381
|
readonly amount: number;
|
|
8909
9382
|
}[] | undefined;
|
|
8910
9383
|
}[], "line_items", ":", readonly {
|
|
8911
9384
|
readonly description: string;
|
|
8912
|
-
readonly product: string;
|
|
8913
9385
|
readonly quantity: string;
|
|
8914
9386
|
readonly unit_price: number;
|
|
9387
|
+
readonly tags?: readonly {
|
|
9388
|
+
readonly value: string;
|
|
9389
|
+
readonly key: string;
|
|
9390
|
+
}[] | undefined;
|
|
9391
|
+
readonly account_identifier?: {
|
|
9392
|
+
readonly type: "StableName";
|
|
9393
|
+
readonly stable_name: string;
|
|
9394
|
+
} | {
|
|
9395
|
+
readonly id: string;
|
|
9396
|
+
readonly type: "AccountId";
|
|
9397
|
+
} | undefined;
|
|
8915
9398
|
readonly sales_taxes?: readonly {
|
|
8916
9399
|
readonly amount: number;
|
|
8917
9400
|
}[] | undefined;
|
|
@@ -8921,19 +9404,47 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
|
|
|
8921
9404
|
export type UpsertInvoice = typeof UpsertInvoiceSchema.Type;
|
|
8922
9405
|
export const InvoiceFormLineItemSchema: Schema.Struct<{
|
|
8923
9406
|
description: typeof Schema.String;
|
|
8924
|
-
product: typeof Schema.String;
|
|
8925
9407
|
unitPrice: typeof Schema.BigDecimal;
|
|
8926
9408
|
quantity: typeof Schema.BigDecimal;
|
|
8927
9409
|
amount: typeof Schema.BigDecimal;
|
|
8928
9410
|
isTaxable: typeof Schema.Boolean;
|
|
9411
|
+
accountIdentifier: Schema.NullOr<Schema.Union<[Schema.Struct<{
|
|
9412
|
+
type: Schema.Literal<["StableName"]>;
|
|
9413
|
+
stableName: Schema.PropertySignature<":", string, "stable_name", ":", string, false, never>;
|
|
9414
|
+
}>, Schema.Struct<{
|
|
9415
|
+
type: Schema.Literal<["AccountId"]>;
|
|
9416
|
+
id: typeof Schema.String;
|
|
9417
|
+
}>]>>;
|
|
9418
|
+
tags: Schema.Array$<Schema.Data<Schema.Struct<{
|
|
9419
|
+
id: typeof Schema.UUID;
|
|
9420
|
+
dimensionLabel: typeof Schema.NonEmptyTrimmedString;
|
|
9421
|
+
valueLabel: typeof Schema.NonEmptyTrimmedString;
|
|
9422
|
+
_local: Schema.Struct<{
|
|
9423
|
+
isOptimistic: typeof Schema.Boolean;
|
|
9424
|
+
}>;
|
|
9425
|
+
}>>>;
|
|
8929
9426
|
}>;
|
|
8930
9427
|
export type InvoiceFormLineItem = typeof InvoiceFormLineItemSchema.Type;
|
|
8931
9428
|
export const InvoiceFormLineItemEquivalence: import("effect/Equivalence").Equivalence<{
|
|
8932
9429
|
readonly amount: import("effect/BigDecimal").BigDecimal;
|
|
8933
9430
|
readonly description: string;
|
|
8934
|
-
readonly
|
|
9431
|
+
readonly tags: readonly {
|
|
9432
|
+
readonly id: string;
|
|
9433
|
+
readonly _local: {
|
|
9434
|
+
readonly isOptimistic: boolean;
|
|
9435
|
+
};
|
|
9436
|
+
readonly dimensionLabel: string;
|
|
9437
|
+
readonly valueLabel: string;
|
|
9438
|
+
}[];
|
|
8935
9439
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
8936
9440
|
readonly unitPrice: import("effect/BigDecimal").BigDecimal;
|
|
9441
|
+
readonly accountIdentifier: {
|
|
9442
|
+
readonly type: "StableName";
|
|
9443
|
+
readonly stableName: string;
|
|
9444
|
+
} | {
|
|
9445
|
+
readonly id: string;
|
|
9446
|
+
readonly type: "AccountId";
|
|
9447
|
+
} | null;
|
|
8937
9448
|
readonly isTaxable: boolean;
|
|
8938
9449
|
}>;
|
|
8939
9450
|
export const InvoiceFormSchema: Schema.Struct<{
|
|
@@ -8960,11 +9471,25 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
|
|
|
8960
9471
|
address: typeof Schema.String;
|
|
8961
9472
|
lineItems: Schema.Array$<Schema.Struct<{
|
|
8962
9473
|
description: typeof Schema.String;
|
|
8963
|
-
product: typeof Schema.String;
|
|
8964
9474
|
unitPrice: typeof Schema.BigDecimal;
|
|
8965
9475
|
quantity: typeof Schema.BigDecimal;
|
|
8966
9476
|
amount: typeof Schema.BigDecimal;
|
|
8967
9477
|
isTaxable: typeof Schema.Boolean;
|
|
9478
|
+
accountIdentifier: Schema.NullOr<Schema.Union<[Schema.Struct<{
|
|
9479
|
+
type: Schema.Literal<["StableName"]>;
|
|
9480
|
+
stableName: Schema.PropertySignature<":", string, "stable_name", ":", string, false, never>;
|
|
9481
|
+
}>, Schema.Struct<{
|
|
9482
|
+
type: Schema.Literal<["AccountId"]>;
|
|
9483
|
+
id: typeof Schema.String;
|
|
9484
|
+
}>]>>;
|
|
9485
|
+
tags: Schema.Array$<Schema.Data<Schema.Struct<{
|
|
9486
|
+
id: typeof Schema.UUID;
|
|
9487
|
+
dimensionLabel: typeof Schema.NonEmptyTrimmedString;
|
|
9488
|
+
valueLabel: typeof Schema.NonEmptyTrimmedString;
|
|
9489
|
+
_local: Schema.Struct<{
|
|
9490
|
+
isOptimistic: typeof Schema.Boolean;
|
|
9491
|
+
}>;
|
|
9492
|
+
}>>>;
|
|
8968
9493
|
}>>;
|
|
8969
9494
|
discountRate: typeof Schema.BigDecimal;
|
|
8970
9495
|
taxRate: typeof Schema.BigDecimal;
|
|
@@ -8987,30 +9512,6 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
|
|
|
8987
9512
|
}, false, never>;
|
|
8988
9513
|
}>;
|
|
8989
9514
|
export type InvoiceSummaryStatsResponse = typeof InvoiceSummaryStatsResponseSchema.Type;
|
|
8990
|
-
export const UpsertDedicatedInvoicePaymentSchema: Schema.Struct<{
|
|
8991
|
-
amount: typeof Schema.Number;
|
|
8992
|
-
method: Schema.Enums<typeof import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod>;
|
|
8993
|
-
paidAt: Schema.PropertySignature<":", Date, "paid_at", ":", string, false, never>;
|
|
8994
|
-
referenceNumber: Schema.PropertySignature<"?:", string | undefined, "reference_number", "?:", string | undefined, false, never>;
|
|
8995
|
-
memo: Schema.optional<typeof Schema.String>;
|
|
8996
|
-
}>;
|
|
8997
|
-
export type UpsertDedicatedInvoicePayment = typeof UpsertDedicatedInvoicePaymentSchema.Type;
|
|
8998
|
-
export const DedicatedInvoicePaymentFormSchema: Schema.Struct<{
|
|
8999
|
-
amount: typeof Schema.BigDecimal;
|
|
9000
|
-
method: Schema.NullOr<Schema.Enums<typeof import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod>>;
|
|
9001
|
-
paidAt: Schema.NullOr<Schema.declare<import("@internationalized/date").ZonedDateTime, import("@internationalized/date").ZonedDateTime, readonly [], never>>;
|
|
9002
|
-
referenceNumber: typeof Schema.String;
|
|
9003
|
-
memo: typeof Schema.String;
|
|
9004
|
-
}>;
|
|
9005
|
-
export type DedicatedInvoicePaymentForm = typeof DedicatedInvoicePaymentFormSchema.Type;
|
|
9006
|
-
export const InvoicePaymentSchema: Schema.Struct<{
|
|
9007
|
-
amount: typeof Schema.Number;
|
|
9008
|
-
method: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<import("@layerfi/components/components/PaymentMethod/schemas").PaymentMethod, import("../../components/PaymentMethod/schemas").PaymentMethod, never>>;
|
|
9009
|
-
at: Schema.propertySignature<typeof Schema.Date>;
|
|
9010
|
-
referenceNumber: Schema.PropertySignature<":", string | null, "reference_number", ":", string | null, false, never>;
|
|
9011
|
-
memo: Schema.NullOr<typeof Schema.String>;
|
|
9012
|
-
}>;
|
|
9013
|
-
export type InvoicePayment = typeof InvoicePaymentSchema.Type;
|
|
9014
9515
|
|
|
9015
9516
|
}
|
|
9016
9517
|
declare module '@layerfi/components/features/invoices/invoiceWriteoffSchemas' {
|
|
@@ -9169,9 +9670,10 @@ declare module '@layerfi/components/features/ledger/entries/api/useListLedgerEnt
|
|
|
9169
9670
|
show_total_count?: boolean;
|
|
9170
9671
|
};
|
|
9171
9672
|
export function useListLedgerEntries({ sort_by, sort_order, limit, show_total_count, }?: UseListLedgerEntriesOptions): import("swr/infinite").SWRInfiniteResponse<ListLedgerEntriesReturn, any>;
|
|
9172
|
-
export function
|
|
9673
|
+
export function useLedgerEntriesCacheActions(): {
|
|
9173
9674
|
invalidateLedgerEntries: () => Promise<undefined[]>;
|
|
9174
9675
|
debouncedInvalidateLedgerEntries: import("lodash").DebouncedFunc<() => Promise<undefined[]>>;
|
|
9676
|
+
forceReloadLedgerEntries: () => Promise<undefined[]>;
|
|
9175
9677
|
};
|
|
9176
9678
|
export function useLedgerEntriesOptimisticUpdater(): {
|
|
9177
9679
|
optimisticallyUpdateLedgerEntries: (transformJournalEntry: (entry: JournalEntry) => JournalEntry) => Promise<undefined[]>;
|
|
@@ -9209,6 +9711,35 @@ declare module '@layerfi/components/features/tags/api/useCreateTagValueDefinitio
|
|
|
9209
9711
|
label: string;
|
|
9210
9712
|
}>;
|
|
9211
9713
|
|
|
9714
|
+
}
|
|
9715
|
+
declare module '@layerfi/components/features/tags/api/useTagDimensionByKey' {
|
|
9716
|
+
import { type SWRResponse } from 'swr';
|
|
9717
|
+
import { type TagDimension } from '@layerfi/components/features/tags/tagSchemas';
|
|
9718
|
+
export const TAG_DIMENSION_BY_KEY_TAG_KEY = "#tag-dimension-by-key";
|
|
9719
|
+
class TagDimensionByKeySWRResponse {
|
|
9720
|
+
private swrResponse;
|
|
9721
|
+
constructor(swrResponse: SWRResponse<TagDimension>);
|
|
9722
|
+
get data(): {
|
|
9723
|
+
readonly id: string;
|
|
9724
|
+
readonly key: string;
|
|
9725
|
+
readonly strictness: "BALANCING" | "NON_BALANCING";
|
|
9726
|
+
readonly definedValues: readonly {
|
|
9727
|
+
readonly value: string;
|
|
9728
|
+
readonly id: string;
|
|
9729
|
+
}[];
|
|
9730
|
+
} | undefined;
|
|
9731
|
+
get isLoading(): boolean;
|
|
9732
|
+
get isValidating(): boolean;
|
|
9733
|
+
get isError(): boolean;
|
|
9734
|
+
}
|
|
9735
|
+
type UseTagDimensionByKeyParameters = {
|
|
9736
|
+
isEnabled?: boolean;
|
|
9737
|
+
dimensionKey: string;
|
|
9738
|
+
};
|
|
9739
|
+
export function useTagDimensionByKey({ isEnabled, dimensionKey }: UseTagDimensionByKeyParameters): TagDimensionByKeySWRResponse;
|
|
9740
|
+
export function usePreloadTagDimensionByKey(parameters: UseTagDimensionByKeyParameters): void;
|
|
9741
|
+
export {};
|
|
9742
|
+
|
|
9212
9743
|
}
|
|
9213
9744
|
declare module '@layerfi/components/features/tags/api/useTagDimensions' {
|
|
9214
9745
|
import { type SWRResponse } from 'swr';
|
|
@@ -9249,9 +9780,64 @@ declare module '@layerfi/components/features/tags/api/useTagDimensions' {
|
|
|
9249
9780
|
export function usePreloadTagDimensions(parameters?: UseTagDimensionsParameters): void;
|
|
9250
9781
|
export {};
|
|
9251
9782
|
|
|
9783
|
+
}
|
|
9784
|
+
declare module '@layerfi/components/features/tags/components/TagDimensionCombobox' {
|
|
9785
|
+
import { type Tag } from '@layerfi/components/features/tags/tagSchemas';
|
|
9786
|
+
type TagDimensionComboboxProps = {
|
|
9787
|
+
dimensionKey: string;
|
|
9788
|
+
value: Tag | null;
|
|
9789
|
+
onValueChange: (tags: Tag | null) => void;
|
|
9790
|
+
isReadOnly?: boolean;
|
|
9791
|
+
showLabel?: boolean;
|
|
9792
|
+
};
|
|
9793
|
+
export const TagDimensionCombobox: ({ dimensionKey, value, onValueChange, isReadOnly, showLabel }: TagDimensionComboboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
9794
|
+
export {};
|
|
9795
|
+
|
|
9252
9796
|
}
|
|
9253
9797
|
declare module '@layerfi/components/features/tags/components/TagSelector' {
|
|
9798
|
+
import type { Tag as TagType, TagValue } from '@layerfi/components/features/tags/tagSchemas';
|
|
9799
|
+
type TagSelectorProps = {
|
|
9800
|
+
selectedTags: ReadonlyArray<TagType>;
|
|
9801
|
+
onAddTag: (tagValue: TagValue) => void;
|
|
9802
|
+
onRemoveTag: (tag: TagType) => void;
|
|
9803
|
+
isReadOnly?: boolean;
|
|
9804
|
+
};
|
|
9805
|
+
export function TagSelector({ selectedTags, onAddTag, onRemoveTag, isReadOnly, }: TagSelectorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9806
|
+
export {};
|
|
9807
|
+
|
|
9808
|
+
}
|
|
9809
|
+
declare module '@layerfi/components/features/tags/tagSchemas' {
|
|
9254
9810
|
import { Schema } from 'effect';
|
|
9811
|
+
export const TagDimensionStrictnessSchema: Schema.Literal<["BALANCING", "NON_BALANCING"]>;
|
|
9812
|
+
export const TagValueDefinitionSchema: Schema.Struct<{
|
|
9813
|
+
id: typeof Schema.UUID;
|
|
9814
|
+
value: typeof Schema.NonEmptyTrimmedString;
|
|
9815
|
+
}>;
|
|
9816
|
+
export type TagValueDefinition = typeof TagValueDefinitionSchema.Type;
|
|
9817
|
+
export const TagKeyValueSchema: Schema.Struct<{
|
|
9818
|
+
key: typeof Schema.NonEmptyTrimmedString;
|
|
9819
|
+
value: typeof Schema.NonEmptyTrimmedString;
|
|
9820
|
+
}>;
|
|
9821
|
+
export const makeTagKeyValue: (i: {
|
|
9822
|
+
readonly value: string;
|
|
9823
|
+
readonly key: string;
|
|
9824
|
+
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
|
|
9825
|
+
readonly value: string;
|
|
9826
|
+
readonly key: string;
|
|
9827
|
+
};
|
|
9828
|
+
export const TagDimensionSchema: Schema.Struct<{
|
|
9829
|
+
id: typeof Schema.UUID;
|
|
9830
|
+
key: typeof Schema.NonEmptyTrimmedString;
|
|
9831
|
+
strictness: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.Literal<["BALANCING", "NON_BALANCING"]>>;
|
|
9832
|
+
definedValues: Schema.PropertySignature<":", readonly {
|
|
9833
|
+
readonly value: string;
|
|
9834
|
+
readonly id: string;
|
|
9835
|
+
}[], "defined_values", ":", readonly {
|
|
9836
|
+
readonly value: string;
|
|
9837
|
+
readonly id: string;
|
|
9838
|
+
}[], false, never>;
|
|
9839
|
+
}>;
|
|
9840
|
+
export type TagDimension = typeof TagDimensionSchema.Type;
|
|
9255
9841
|
const TagValueSchema: Schema.Data<Schema.Struct<{
|
|
9256
9842
|
dimensionId: typeof Schema.UUID;
|
|
9257
9843
|
dimensionLabel: typeof Schema.NonEmptyTrimmedString;
|
|
@@ -9270,7 +9856,7 @@ declare module '@layerfi/components/features/tags/components/TagSelector' {
|
|
|
9270
9856
|
readonly valueLabel: string;
|
|
9271
9857
|
};
|
|
9272
9858
|
export type TagValue = typeof TagValueSchema.Type;
|
|
9273
|
-
const TagSchema: Schema.Data<Schema.Struct<{
|
|
9859
|
+
export const TagSchema: Schema.Data<Schema.Struct<{
|
|
9274
9860
|
id: typeof Schema.UUID;
|
|
9275
9861
|
dimensionLabel: typeof Schema.NonEmptyTrimmedString;
|
|
9276
9862
|
valueLabel: typeof Schema.NonEmptyTrimmedString;
|
|
@@ -9294,35 +9880,32 @@ declare module '@layerfi/components/features/tags/components/TagSelector' {
|
|
|
9294
9880
|
readonly valueLabel: string;
|
|
9295
9881
|
};
|
|
9296
9882
|
export type Tag = typeof TagSchema.Type;
|
|
9297
|
-
|
|
9298
|
-
selectedTags: ReadonlyArray<Tag>;
|
|
9299
|
-
onAddTag: (tagValue: TagValue) => void;
|
|
9300
|
-
onRemoveTag: (tag: Tag) => void;
|
|
9301
|
-
isReadOnly?: boolean;
|
|
9302
|
-
};
|
|
9303
|
-
export function TagSelector({ selectedTags, onAddTag, onRemoveTag, isReadOnly, }: TagSelectorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9304
|
-
export {};
|
|
9305
|
-
|
|
9306
|
-
}
|
|
9307
|
-
declare module '@layerfi/components/features/tags/tagSchemas' {
|
|
9308
|
-
import { Schema } from 'effect';
|
|
9309
|
-
export const TagDimensionStrictnessSchema: Schema.Literal<["BALANCING", "NON_BALANCING"]>;
|
|
9310
|
-
export const TagValueDefinitionSchema: Schema.Struct<{
|
|
9311
|
-
id: typeof Schema.UUID;
|
|
9312
|
-
value: typeof Schema.NonEmptyTrimmedString;
|
|
9313
|
-
}>;
|
|
9314
|
-
export const TagDimensionSchema: Schema.Struct<{
|
|
9883
|
+
export const TransactionTagSchema: Schema.Struct<{
|
|
9315
9884
|
id: typeof Schema.UUID;
|
|
9316
9885
|
key: typeof Schema.NonEmptyTrimmedString;
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9323
|
-
|
|
9324
|
-
}[], false, never>;
|
|
9886
|
+
value: typeof Schema.NonEmptyTrimmedString;
|
|
9887
|
+
createdAt: Schema.PropertySignature<":", Date, "created_at", ":", string, false, never>;
|
|
9888
|
+
updatedAt: Schema.PropertySignature<":", Date, "updated_at", ":", string, false, never>;
|
|
9889
|
+
deletedAt: Schema.PropertySignature<"?:", Date | undefined, "deleted_at", "?:", string | undefined, false, never>;
|
|
9890
|
+
_local: Schema.optional<Schema.Struct<{
|
|
9891
|
+
isOptimistic: typeof Schema.Boolean;
|
|
9892
|
+
}>>;
|
|
9325
9893
|
}>;
|
|
9894
|
+
export type TransactionTag = typeof TransactionTagSchema.Type;
|
|
9895
|
+
export type TransactionTagEncoded = typeof TransactionTagSchema.Encoded;
|
|
9896
|
+
export const makeTagKeyValueFromTag: ({ dimensionLabel, valueLabel }: Tag) => {
|
|
9897
|
+
readonly value: string;
|
|
9898
|
+
readonly key: string;
|
|
9899
|
+
};
|
|
9900
|
+
export const makeTagFromTransactionTag: ({ id, key, value, _local }: TransactionTag) => {
|
|
9901
|
+
readonly id: string;
|
|
9902
|
+
readonly _local: {
|
|
9903
|
+
readonly isOptimistic: boolean;
|
|
9904
|
+
};
|
|
9905
|
+
readonly dimensionLabel: string;
|
|
9906
|
+
readonly valueLabel: string;
|
|
9907
|
+
};
|
|
9908
|
+
export {};
|
|
9326
9909
|
|
|
9327
9910
|
}
|
|
9328
9911
|
declare module '@layerfi/components/features/tags/useFlattenedTagValues' {
|
|
@@ -9712,12 +10295,25 @@ declare module '@layerfi/components/hooks/businessPersonnel/useUpdateBusinessPer
|
|
|
9712
10295
|
|
|
9713
10296
|
}
|
|
9714
10297
|
declare module '@layerfi/components/hooks/categories/useCategories' {
|
|
9715
|
-
import {
|
|
10298
|
+
import { Category } from '@layerfi/components/types';
|
|
10299
|
+
import type { CategoriesListMode } from '@layerfi/components/types/categories';
|
|
9716
10300
|
export const CATEGORIES_TAG_KEY = "#categories";
|
|
10301
|
+
export const getCategories: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
10302
|
+
params?: {
|
|
10303
|
+
businessId: string;
|
|
10304
|
+
mode?: CategoriesListMode;
|
|
10305
|
+
} | undefined;
|
|
10306
|
+
} | undefined) => () => Promise<{
|
|
10307
|
+
data: {
|
|
10308
|
+
type: "Category_List";
|
|
10309
|
+
categories: Category[];
|
|
10310
|
+
};
|
|
10311
|
+
}>;
|
|
9717
10312
|
type UseCategoriesOptions = {
|
|
9718
10313
|
mode?: CategoriesListMode;
|
|
9719
10314
|
};
|
|
9720
|
-
export function useCategories({ mode }?: UseCategoriesOptions): import("swr").SWRResponse<
|
|
10315
|
+
export function useCategories({ mode }?: UseCategoriesOptions): import("swr").SWRResponse<Category[], any, any>;
|
|
10316
|
+
export function usePreloadCategories(options?: UseCategoriesOptions): void;
|
|
9721
10317
|
export {};
|
|
9722
10318
|
|
|
9723
10319
|
}
|
|
@@ -9886,6 +10482,32 @@ declare module '@layerfi/components/hooks/search/useDebouncedSearchQuery' {
|
|
|
9886
10482
|
};
|
|
9887
10483
|
export {};
|
|
9888
10484
|
|
|
10485
|
+
}
|
|
10486
|
+
declare module '@layerfi/components/hooks/useAccountingConfiguration/useAccountingConfiguration' {
|
|
10487
|
+
import { AccountingConfigurationSchemaType } from '@layerfi/components/schemas/accountingConfiguration';
|
|
10488
|
+
import { type SWRResponse } from 'swr';
|
|
10489
|
+
export const ACCOUNTING_CONFIGURATION_TAG_KEY = "#accounting-configuration";
|
|
10490
|
+
class AccountingConfigurationSWRResponse {
|
|
10491
|
+
private swrResponse;
|
|
10492
|
+
constructor(swrResponse: SWRResponse<AccountingConfigurationSchemaType>);
|
|
10493
|
+
get data(): {
|
|
10494
|
+
readonly id: string;
|
|
10495
|
+
readonly enableAccountNumbers: boolean;
|
|
10496
|
+
} | undefined;
|
|
10497
|
+
get isLoading(): boolean;
|
|
10498
|
+
get isValidating(): boolean;
|
|
10499
|
+
get isError(): boolean;
|
|
10500
|
+
get mutate(): import("swr").KeyedMutator<{
|
|
10501
|
+
readonly id: string;
|
|
10502
|
+
readonly enableAccountNumbers: boolean;
|
|
10503
|
+
}>;
|
|
10504
|
+
}
|
|
10505
|
+
type GetAccountingConfigurationParams = {
|
|
10506
|
+
businessId: string;
|
|
10507
|
+
};
|
|
10508
|
+
export function useAccountingConfiguration({ businessId }: GetAccountingConfigurationParams): AccountingConfigurationSWRResponse;
|
|
10509
|
+
export {};
|
|
10510
|
+
|
|
9889
10511
|
}
|
|
9890
10512
|
declare module '@layerfi/components/hooks/useAuth' {
|
|
9891
10513
|
export function useAuth(): import("swr").SWRResponse<{
|
|
@@ -10128,8 +10750,8 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/index' {
|
|
|
10128
10750
|
}
|
|
10129
10751
|
declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts' {
|
|
10130
10752
|
import { FormError, DateRange, NewAccount } from '@layerfi/components/types';
|
|
10131
|
-
import { LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
|
|
10132
10753
|
import { BaseSelectOption } from '@layerfi/components/types/general';
|
|
10754
|
+
import { NestedLedgerAccountType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
|
|
10133
10755
|
export interface ChartOfAccountsForm {
|
|
10134
10756
|
action: 'new' | 'edit';
|
|
10135
10757
|
accountId?: string;
|
|
@@ -10137,6 +10759,7 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts'
|
|
|
10137
10759
|
parent?: BaseSelectOption;
|
|
10138
10760
|
stable_name?: string;
|
|
10139
10761
|
name?: string;
|
|
10762
|
+
accountNumber?: string;
|
|
10140
10763
|
type?: BaseSelectOption;
|
|
10141
10764
|
subType?: BaseSelectOption;
|
|
10142
10765
|
normality?: BaseSelectOption;
|
|
@@ -10148,15 +10771,32 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts'
|
|
|
10148
10771
|
endDate?: Date;
|
|
10149
10772
|
withDates?: boolean;
|
|
10150
10773
|
};
|
|
10151
|
-
export const flattenAccounts: (accounts:
|
|
10774
|
+
export const flattenAccounts: (accounts: readonly NestedLedgerAccountType[]) => NestedLedgerAccountType[];
|
|
10152
10775
|
export const useChartOfAccounts: ({ withDates, startDate: initialStartDate, endDate: initialEndDate }?: Props) => {
|
|
10153
|
-
data:
|
|
10776
|
+
data: {
|
|
10777
|
+
readonly accounts: readonly {
|
|
10778
|
+
readonly name: string;
|
|
10779
|
+
readonly stableName: string | null;
|
|
10780
|
+
readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
|
|
10781
|
+
readonly accountType: {
|
|
10782
|
+
readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
|
|
10783
|
+
readonly displayName: string;
|
|
10784
|
+
};
|
|
10785
|
+
readonly accountSubtype: {
|
|
10786
|
+
readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountSubtype;
|
|
10787
|
+
readonly displayName: string;
|
|
10788
|
+
};
|
|
10789
|
+
readonly accountId: string;
|
|
10790
|
+
readonly accountNumber: string | null;
|
|
10791
|
+
readonly balance: number;
|
|
10792
|
+
readonly isDeletable: boolean | null;
|
|
10793
|
+
readonly subAccounts: readonly import("@layerfi/components/schemas/generalLedger/ledgerAccount").NestedLedgerAccount[];
|
|
10794
|
+
}[];
|
|
10795
|
+
} | undefined;
|
|
10154
10796
|
isLoading: boolean;
|
|
10155
10797
|
isValidating: boolean;
|
|
10156
|
-
|
|
10157
|
-
refetch: () => Promise<
|
|
10158
|
-
data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances;
|
|
10159
|
-
} | undefined>;
|
|
10798
|
+
isError: boolean;
|
|
10799
|
+
refetch: () => Promise<void>;
|
|
10160
10800
|
create: (newAccount: NewAccount) => Promise<void>;
|
|
10161
10801
|
form: ChartOfAccountsForm | undefined;
|
|
10162
10802
|
sendingForm: boolean;
|
|
@@ -10181,7 +10821,21 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/useCreateChildAccou
|
|
|
10181
10821
|
type NewChildAccountWithParentAccountId = NewChildAccount & {
|
|
10182
10822
|
accountId: string;
|
|
10183
10823
|
};
|
|
10184
|
-
export function useCreateChildAccount(): import("swr/mutation").SWRMutationResponse<
|
|
10824
|
+
export function useCreateChildAccount(): import("swr/mutation").SWRMutationResponse<{
|
|
10825
|
+
readonly name: string;
|
|
10826
|
+
readonly stable_name: string | null;
|
|
10827
|
+
readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
|
|
10828
|
+
readonly account_type: {
|
|
10829
|
+
readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
|
|
10830
|
+
readonly display_name: string;
|
|
10831
|
+
};
|
|
10832
|
+
readonly account_subtype: {
|
|
10833
|
+
readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountSubtype;
|
|
10834
|
+
readonly display_name: string;
|
|
10835
|
+
};
|
|
10836
|
+
readonly id: string;
|
|
10837
|
+
readonly account_number: string | null;
|
|
10838
|
+
}, any, () => {
|
|
10185
10839
|
readonly accessToken: string;
|
|
10186
10840
|
readonly apiUrl: string;
|
|
10187
10841
|
readonly businessId: string;
|
|
@@ -10259,10 +10913,11 @@ declare module '@layerfi/components/hooks/useJournal/index' {
|
|
|
10259
10913
|
}
|
|
10260
10914
|
declare module '@layerfi/components/hooks/useJournal/useJournal' {
|
|
10261
10915
|
import { Layer } from '@layerfi/components/api/layer';
|
|
10262
|
-
import {
|
|
10263
|
-
import { LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
|
|
10916
|
+
import { FormError, FormErrorWithId } from '@layerfi/components/types';
|
|
10264
10917
|
import { BaseSelectOption } from '@layerfi/components/types/general';
|
|
10265
10918
|
import { JournalEntry, NewApiJournalEntry, NewFormJournalEntry } from '@layerfi/components/types/journal';
|
|
10919
|
+
import { LedgerEntryDirection } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
|
|
10920
|
+
import { LedgerAccountBalance } from '@layerfi/components/types/journal';
|
|
10266
10921
|
type UseJournal = () => {
|
|
10267
10922
|
data?: ReadonlyArray<JournalEntry>;
|
|
10268
10923
|
isLoading?: boolean;
|
|
@@ -10284,7 +10939,7 @@ declare module '@layerfi/components/hooks/useJournal/useJournal' {
|
|
|
10284
10939
|
form?: JournalFormTypes;
|
|
10285
10940
|
apiError?: string;
|
|
10286
10941
|
setForm: (form?: JournalFormTypes) => void;
|
|
10287
|
-
addEntryLine: (direction:
|
|
10942
|
+
addEntryLine: (direction: LedgerEntryDirection) => void;
|
|
10288
10943
|
removeEntryLine: (index: number) => void;
|
|
10289
10944
|
reverseEntry: (entryId: string) => ReturnType<typeof Layer.reverseJournalEntry>;
|
|
10290
10945
|
hasMore: boolean;
|
|
@@ -10298,6 +10953,7 @@ declare module '@layerfi/components/hooks/useJournal/useJournal' {
|
|
|
10298
10953
|
lineItems: FormErrorWithId[];
|
|
10299
10954
|
} | undefined;
|
|
10300
10955
|
}
|
|
10956
|
+
export const flattenAccounts: (accounts: LedgerAccountBalance[]) => LedgerAccountBalance[];
|
|
10301
10957
|
export const useJournal: UseJournal;
|
|
10302
10958
|
export {};
|
|
10303
10959
|
|
|
@@ -10330,6 +10986,65 @@ declare module '@layerfi/components/hooks/useLedgerAccounts/useLedgerAccounts' {
|
|
|
10330
10986
|
export const useLedgerAccounts: UseLedgerAccounts;
|
|
10331
10987
|
export {};
|
|
10332
10988
|
|
|
10989
|
+
}
|
|
10990
|
+
declare module '@layerfi/components/hooks/useLedgerBalances/useLedgerBalances' {
|
|
10991
|
+
import { LedgerBalancesSchemaType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
|
|
10992
|
+
import { type SWRResponse } from 'swr';
|
|
10993
|
+
export const LEDGER_BALANCES_TAG_KEY = "#ledger-balances";
|
|
10994
|
+
class LedgerBalancesSWRResponse {
|
|
10995
|
+
private swrResponse;
|
|
10996
|
+
constructor(swrResponse: SWRResponse<LedgerBalancesSchemaType>);
|
|
10997
|
+
get data(): {
|
|
10998
|
+
readonly accounts: readonly {
|
|
10999
|
+
readonly name: string;
|
|
11000
|
+
readonly stableName: string | null;
|
|
11001
|
+
readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
|
|
11002
|
+
readonly accountType: {
|
|
11003
|
+
readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
|
|
11004
|
+
readonly displayName: string;
|
|
11005
|
+
};
|
|
11006
|
+
readonly accountSubtype: {
|
|
11007
|
+
readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountSubtype;
|
|
11008
|
+
readonly displayName: string;
|
|
11009
|
+
};
|
|
11010
|
+
readonly accountId: string;
|
|
11011
|
+
readonly accountNumber: string | null;
|
|
11012
|
+
readonly balance: number;
|
|
11013
|
+
readonly isDeletable: boolean | null;
|
|
11014
|
+
readonly subAccounts: readonly import("@layerfi/components/schemas/generalLedger/ledgerAccount").NestedLedgerAccount[];
|
|
11015
|
+
}[];
|
|
11016
|
+
} | undefined;
|
|
11017
|
+
get isLoading(): boolean;
|
|
11018
|
+
get isValidating(): boolean;
|
|
11019
|
+
get isError(): boolean;
|
|
11020
|
+
get mutate(): import("swr").KeyedMutator<{
|
|
11021
|
+
readonly accounts: readonly {
|
|
11022
|
+
readonly name: string;
|
|
11023
|
+
readonly stableName: string | null;
|
|
11024
|
+
readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
|
|
11025
|
+
readonly accountType: {
|
|
11026
|
+
readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
|
|
11027
|
+
readonly displayName: string;
|
|
11028
|
+
};
|
|
11029
|
+
readonly accountSubtype: {
|
|
11030
|
+
readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountSubtype;
|
|
11031
|
+
readonly displayName: string;
|
|
11032
|
+
};
|
|
11033
|
+
readonly accountId: string;
|
|
11034
|
+
readonly accountNumber: string | null;
|
|
11035
|
+
readonly balance: number;
|
|
11036
|
+
readonly isDeletable: boolean | null;
|
|
11037
|
+
readonly subAccounts: readonly import("@layerfi/components/schemas/generalLedger/ledgerAccount").NestedLedgerAccount[];
|
|
11038
|
+
}[];
|
|
11039
|
+
}>;
|
|
11040
|
+
}
|
|
11041
|
+
export function useLedgerBalances(withDates?: boolean, startDate?: Date, endDate?: Date): LedgerBalancesSWRResponse;
|
|
11042
|
+
export function useLedgerBalancesCacheActions(): {
|
|
11043
|
+
invalidateLedgerBalances: () => Promise<undefined[]>;
|
|
11044
|
+
forceReloadLedgerBalances: () => Promise<undefined[]>;
|
|
11045
|
+
};
|
|
11046
|
+
export {};
|
|
11047
|
+
|
|
10333
11048
|
}
|
|
10334
11049
|
declare module '@layerfi/components/hooks/useLinkedAccounts/index' {
|
|
10335
11050
|
export { useLinkedAccounts } from '@layerfi/components/hooks/useLinkedAccounts/useLinkedAccounts';
|
|
@@ -11215,15 +11930,15 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
|
|
|
11215
11930
|
}>;
|
|
11216
11931
|
costOfGoodsSold: Schema.PropertySignature<":", {
|
|
11217
11932
|
readonly value: number;
|
|
11218
|
-
readonly name: string;
|
|
11219
11933
|
readonly displayName: string;
|
|
11934
|
+
readonly name: string;
|
|
11220
11935
|
readonly isContra: boolean;
|
|
11221
11936
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11222
11937
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11223
11938
|
}, "cost_of_goods_sold", ":", {
|
|
11224
11939
|
readonly value: number;
|
|
11225
|
-
readonly name: string;
|
|
11226
11940
|
readonly display_name: string;
|
|
11941
|
+
readonly name: string;
|
|
11227
11942
|
readonly is_contra: boolean;
|
|
11228
11943
|
readonly line_items: readonly import("@layerfi/components/utils/schema/utils").LineItemEncoded[];
|
|
11229
11944
|
readonly percent_delta?: string | undefined;
|
|
@@ -11246,75 +11961,75 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
|
|
|
11246
11961
|
}>;
|
|
11247
11962
|
customLineItems: Schema.PropertySignature<":", {
|
|
11248
11963
|
readonly value: number;
|
|
11249
|
-
readonly name: string;
|
|
11250
11964
|
readonly displayName: string;
|
|
11965
|
+
readonly name: string;
|
|
11251
11966
|
readonly isContra: boolean;
|
|
11252
11967
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11253
11968
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11254
11969
|
} | null, "custom_line_items", ":", {
|
|
11255
11970
|
readonly value: number;
|
|
11256
|
-
readonly name: string;
|
|
11257
11971
|
readonly display_name: string;
|
|
11972
|
+
readonly name: string;
|
|
11258
11973
|
readonly is_contra: boolean;
|
|
11259
11974
|
readonly line_items: readonly import("@layerfi/components/utils/schema/utils").LineItemEncoded[];
|
|
11260
11975
|
readonly percent_delta?: string | undefined;
|
|
11261
11976
|
} | null, false, never>;
|
|
11262
11977
|
otherOutflows: Schema.PropertySignature<":", {
|
|
11263
11978
|
readonly value: number;
|
|
11264
|
-
readonly name: string;
|
|
11265
11979
|
readonly displayName: string;
|
|
11980
|
+
readonly name: string;
|
|
11266
11981
|
readonly isContra: boolean;
|
|
11267
11982
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11268
11983
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11269
11984
|
} | null, "other_outflows", ":", {
|
|
11270
11985
|
readonly value: number;
|
|
11271
|
-
readonly name: string;
|
|
11272
11986
|
readonly display_name: string;
|
|
11987
|
+
readonly name: string;
|
|
11273
11988
|
readonly is_contra: boolean;
|
|
11274
11989
|
readonly line_items: readonly import("@layerfi/components/utils/schema/utils").LineItemEncoded[];
|
|
11275
11990
|
readonly percent_delta?: string | undefined;
|
|
11276
11991
|
} | null, false, never>;
|
|
11277
11992
|
uncategorizedOutflows: Schema.PropertySignature<"?:", {
|
|
11278
11993
|
readonly value: number;
|
|
11279
|
-
readonly name: string;
|
|
11280
11994
|
readonly displayName: string;
|
|
11995
|
+
readonly name: string;
|
|
11281
11996
|
readonly isContra: boolean;
|
|
11282
11997
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11283
11998
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11284
11999
|
} | undefined, "uncategorized_outflows", "?:", {
|
|
11285
12000
|
readonly value: number;
|
|
11286
|
-
readonly name: string;
|
|
11287
12001
|
readonly display_name: string;
|
|
12002
|
+
readonly name: string;
|
|
11288
12003
|
readonly is_contra: boolean;
|
|
11289
12004
|
readonly line_items: readonly import("@layerfi/components/utils/schema/utils").LineItemEncoded[];
|
|
11290
12005
|
readonly percent_delta?: string | undefined;
|
|
11291
12006
|
} | undefined, false, never>;
|
|
11292
12007
|
uncategorizedInflows: Schema.PropertySignature<"?:", {
|
|
11293
12008
|
readonly value: number;
|
|
11294
|
-
readonly name: string;
|
|
11295
12009
|
readonly displayName: string;
|
|
12010
|
+
readonly name: string;
|
|
11296
12011
|
readonly isContra: boolean;
|
|
11297
12012
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11298
12013
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11299
12014
|
} | undefined, "uncategorized_inflows", "?:", {
|
|
11300
12015
|
readonly value: number;
|
|
11301
|
-
readonly name: string;
|
|
11302
12016
|
readonly display_name: string;
|
|
12017
|
+
readonly name: string;
|
|
11303
12018
|
readonly is_contra: boolean;
|
|
11304
12019
|
readonly line_items: readonly import("@layerfi/components/utils/schema/utils").LineItemEncoded[];
|
|
11305
12020
|
readonly percent_delta?: string | undefined;
|
|
11306
12021
|
} | undefined, false, never>;
|
|
11307
12022
|
personalExpenses: Schema.PropertySignature<":", {
|
|
11308
12023
|
readonly value: number;
|
|
11309
|
-
readonly name: string;
|
|
11310
12024
|
readonly displayName: string;
|
|
12025
|
+
readonly name: string;
|
|
11311
12026
|
readonly isContra: boolean;
|
|
11312
12027
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11313
12028
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11314
12029
|
} | null, "personal_expenses", ":", {
|
|
11315
12030
|
readonly value: number;
|
|
11316
|
-
readonly name: string;
|
|
11317
12031
|
readonly display_name: string;
|
|
12032
|
+
readonly name: string;
|
|
11318
12033
|
readonly is_contra: boolean;
|
|
11319
12034
|
readonly line_items: readonly import("@layerfi/components/utils/schema/utils").LineItemEncoded[];
|
|
11320
12035
|
readonly percent_delta?: string | undefined;
|
|
@@ -11325,6 +12040,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
|
|
|
11325
12040
|
}
|
|
11326
12041
|
declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
|
|
11327
12042
|
import { ReportingBasis, SortDirection } from '@layerfi/components/types';
|
|
12043
|
+
import { type PnlChartLineItem } from '@layerfi/components/utils/profitAndLossUtils';
|
|
11328
12044
|
export type Scope = 'expenses' | 'revenue';
|
|
11329
12045
|
export type SidebarScope = Scope | undefined;
|
|
11330
12046
|
export type PnlTagFilter = {
|
|
@@ -11348,16 +12064,16 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
|
|
|
11348
12064
|
readonly endDate: Date;
|
|
11349
12065
|
readonly income: {
|
|
11350
12066
|
readonly value: number;
|
|
11351
|
-
readonly name: string;
|
|
11352
12067
|
readonly displayName: string;
|
|
12068
|
+
readonly name: string;
|
|
11353
12069
|
readonly isContra: boolean;
|
|
11354
12070
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11355
12071
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11356
12072
|
};
|
|
11357
12073
|
readonly costOfGoodsSold: {
|
|
11358
12074
|
readonly value: number;
|
|
11359
|
-
readonly name: string;
|
|
11360
12075
|
readonly displayName: string;
|
|
12076
|
+
readonly name: string;
|
|
11361
12077
|
readonly isContra: boolean;
|
|
11362
12078
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11363
12079
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
@@ -11366,8 +12082,8 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
|
|
|
11366
12082
|
readonly profitBeforeTaxes: number;
|
|
11367
12083
|
readonly taxes: {
|
|
11368
12084
|
readonly value: number;
|
|
11369
|
-
readonly name: string;
|
|
11370
12085
|
readonly displayName: string;
|
|
12086
|
+
readonly name: string;
|
|
11371
12087
|
readonly isContra: boolean;
|
|
11372
12088
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11373
12089
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
@@ -11376,16 +12092,16 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
|
|
|
11376
12092
|
readonly fullyCategorized: boolean;
|
|
11377
12093
|
readonly uncategorizedInflows?: {
|
|
11378
12094
|
readonly value: number;
|
|
11379
|
-
readonly name: string;
|
|
11380
12095
|
readonly displayName: string;
|
|
12096
|
+
readonly name: string;
|
|
11381
12097
|
readonly isContra: boolean;
|
|
11382
12098
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11383
12099
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11384
12100
|
} | undefined;
|
|
11385
12101
|
readonly uncategorizedOutflows?: {
|
|
11386
12102
|
readonly value: number;
|
|
11387
|
-
readonly name: string;
|
|
11388
12103
|
readonly displayName: string;
|
|
12104
|
+
readonly name: string;
|
|
11389
12105
|
readonly isContra: boolean;
|
|
11390
12106
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11391
12107
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
@@ -11395,40 +12111,40 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
|
|
|
11395
12111
|
readonly netProfitPercentDelta: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11396
12112
|
readonly expenses: {
|
|
11397
12113
|
readonly value: number;
|
|
11398
|
-
readonly name: string;
|
|
11399
12114
|
readonly displayName: string;
|
|
12115
|
+
readonly name: string;
|
|
11400
12116
|
readonly isContra: boolean;
|
|
11401
12117
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11402
12118
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11403
12119
|
};
|
|
11404
12120
|
readonly customLineItems: {
|
|
11405
12121
|
readonly value: number;
|
|
11406
|
-
readonly name: string;
|
|
11407
12122
|
readonly displayName: string;
|
|
12123
|
+
readonly name: string;
|
|
11408
12124
|
readonly isContra: boolean;
|
|
11409
12125
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11410
12126
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11411
12127
|
} | null;
|
|
11412
12128
|
readonly otherOutflows: {
|
|
11413
12129
|
readonly value: number;
|
|
11414
|
-
readonly name: string;
|
|
11415
12130
|
readonly displayName: string;
|
|
12131
|
+
readonly name: string;
|
|
11416
12132
|
readonly isContra: boolean;
|
|
11417
12133
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11418
12134
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11419
12135
|
} | null;
|
|
11420
12136
|
readonly personalExpenses: {
|
|
11421
12137
|
readonly value: number;
|
|
11422
|
-
readonly name: string;
|
|
11423
12138
|
readonly displayName: string;
|
|
12139
|
+
readonly name: string;
|
|
11424
12140
|
readonly isContra: boolean;
|
|
11425
12141
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11426
12142
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11427
12143
|
} | null;
|
|
11428
12144
|
} | undefined;
|
|
11429
|
-
filteredDataRevenue: never[] |
|
|
12145
|
+
filteredDataRevenue: never[] | PnlChartLineItem[];
|
|
11430
12146
|
filteredTotalRevenue: number | undefined;
|
|
11431
|
-
filteredDataExpenses: never[] |
|
|
12147
|
+
filteredDataExpenses: never[] | PnlChartLineItem[];
|
|
11432
12148
|
filteredTotalExpenses: number | undefined;
|
|
11433
12149
|
isLoading: boolean;
|
|
11434
12150
|
isValidating: boolean;
|
|
@@ -11495,8 +12211,8 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossDetai
|
|
|
11495
12211
|
readonly account: {
|
|
11496
12212
|
readonly id: string;
|
|
11497
12213
|
readonly name: string;
|
|
11498
|
-
readonly normality: string;
|
|
11499
12214
|
readonly stableName: string;
|
|
12215
|
+
readonly normality: string;
|
|
11500
12216
|
readonly accountType: {
|
|
11501
12217
|
readonly value: string;
|
|
11502
12218
|
readonly displayName: string;
|
|
@@ -11903,16 +12619,16 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
|
|
|
11903
12619
|
readonly endDate: Date;
|
|
11904
12620
|
readonly income: {
|
|
11905
12621
|
readonly value: number;
|
|
11906
|
-
readonly name: string;
|
|
11907
12622
|
readonly displayName: string;
|
|
12623
|
+
readonly name: string;
|
|
11908
12624
|
readonly isContra: boolean;
|
|
11909
12625
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11910
12626
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11911
12627
|
};
|
|
11912
12628
|
readonly costOfGoodsSold: {
|
|
11913
12629
|
readonly value: number;
|
|
11914
|
-
readonly name: string;
|
|
11915
12630
|
readonly displayName: string;
|
|
12631
|
+
readonly name: string;
|
|
11916
12632
|
readonly isContra: boolean;
|
|
11917
12633
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11918
12634
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
@@ -11921,8 +12637,8 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
|
|
|
11921
12637
|
readonly profitBeforeTaxes: number;
|
|
11922
12638
|
readonly taxes: {
|
|
11923
12639
|
readonly value: number;
|
|
11924
|
-
readonly name: string;
|
|
11925
12640
|
readonly displayName: string;
|
|
12641
|
+
readonly name: string;
|
|
11926
12642
|
readonly isContra: boolean;
|
|
11927
12643
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11928
12644
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
@@ -11931,16 +12647,16 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
|
|
|
11931
12647
|
readonly fullyCategorized: boolean;
|
|
11932
12648
|
readonly uncategorizedInflows?: {
|
|
11933
12649
|
readonly value: number;
|
|
11934
|
-
readonly name: string;
|
|
11935
12650
|
readonly displayName: string;
|
|
12651
|
+
readonly name: string;
|
|
11936
12652
|
readonly isContra: boolean;
|
|
11937
12653
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11938
12654
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11939
12655
|
} | undefined;
|
|
11940
12656
|
readonly uncategorizedOutflows?: {
|
|
11941
12657
|
readonly value: number;
|
|
11942
|
-
readonly name: string;
|
|
11943
12658
|
readonly displayName: string;
|
|
12659
|
+
readonly name: string;
|
|
11944
12660
|
readonly isContra: boolean;
|
|
11945
12661
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11946
12662
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
@@ -11950,32 +12666,32 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
|
|
|
11950
12666
|
readonly netProfitPercentDelta: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11951
12667
|
readonly expenses: {
|
|
11952
12668
|
readonly value: number;
|
|
11953
|
-
readonly name: string;
|
|
11954
12669
|
readonly displayName: string;
|
|
12670
|
+
readonly name: string;
|
|
11955
12671
|
readonly isContra: boolean;
|
|
11956
12672
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11957
12673
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11958
12674
|
};
|
|
11959
12675
|
readonly customLineItems: {
|
|
11960
12676
|
readonly value: number;
|
|
11961
|
-
readonly name: string;
|
|
11962
12677
|
readonly displayName: string;
|
|
12678
|
+
readonly name: string;
|
|
11963
12679
|
readonly isContra: boolean;
|
|
11964
12680
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11965
12681
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11966
12682
|
} | null;
|
|
11967
12683
|
readonly otherOutflows: {
|
|
11968
12684
|
readonly value: number;
|
|
11969
|
-
readonly name: string;
|
|
11970
12685
|
readonly displayName: string;
|
|
12686
|
+
readonly name: string;
|
|
11971
12687
|
readonly isContra: boolean;
|
|
11972
12688
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11973
12689
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11974
12690
|
} | null;
|
|
11975
12691
|
readonly personalExpenses: {
|
|
11976
12692
|
readonly value: number;
|
|
11977
|
-
readonly name: string;
|
|
11978
12693
|
readonly displayName: string;
|
|
12694
|
+
readonly name: string;
|
|
11979
12695
|
readonly isContra: boolean;
|
|
11980
12696
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11981
12697
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
@@ -11990,16 +12706,16 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
|
|
|
11990
12706
|
readonly endDate: Date;
|
|
11991
12707
|
readonly income: {
|
|
11992
12708
|
readonly value: number;
|
|
11993
|
-
readonly name: string;
|
|
11994
12709
|
readonly displayName: string;
|
|
12710
|
+
readonly name: string;
|
|
11995
12711
|
readonly isContra: boolean;
|
|
11996
12712
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
11997
12713
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
11998
12714
|
};
|
|
11999
12715
|
readonly costOfGoodsSold: {
|
|
12000
12716
|
readonly value: number;
|
|
12001
|
-
readonly name: string;
|
|
12002
12717
|
readonly displayName: string;
|
|
12718
|
+
readonly name: string;
|
|
12003
12719
|
readonly isContra: boolean;
|
|
12004
12720
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
12005
12721
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
@@ -12008,8 +12724,8 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
|
|
|
12008
12724
|
readonly profitBeforeTaxes: number;
|
|
12009
12725
|
readonly taxes: {
|
|
12010
12726
|
readonly value: number;
|
|
12011
|
-
readonly name: string;
|
|
12012
12727
|
readonly displayName: string;
|
|
12728
|
+
readonly name: string;
|
|
12013
12729
|
readonly isContra: boolean;
|
|
12014
12730
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
12015
12731
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
@@ -12018,16 +12734,16 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
|
|
|
12018
12734
|
readonly fullyCategorized: boolean;
|
|
12019
12735
|
readonly uncategorizedInflows?: {
|
|
12020
12736
|
readonly value: number;
|
|
12021
|
-
readonly name: string;
|
|
12022
12737
|
readonly displayName: string;
|
|
12738
|
+
readonly name: string;
|
|
12023
12739
|
readonly isContra: boolean;
|
|
12024
12740
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
12025
12741
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
12026
12742
|
} | undefined;
|
|
12027
12743
|
readonly uncategorizedOutflows?: {
|
|
12028
12744
|
readonly value: number;
|
|
12029
|
-
readonly name: string;
|
|
12030
12745
|
readonly displayName: string;
|
|
12746
|
+
readonly name: string;
|
|
12031
12747
|
readonly isContra: boolean;
|
|
12032
12748
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
12033
12749
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
@@ -12037,32 +12753,32 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossRepor
|
|
|
12037
12753
|
readonly netProfitPercentDelta: import("effect/BigDecimal").BigDecimal | undefined;
|
|
12038
12754
|
readonly expenses: {
|
|
12039
12755
|
readonly value: number;
|
|
12040
|
-
readonly name: string;
|
|
12041
12756
|
readonly displayName: string;
|
|
12757
|
+
readonly name: string;
|
|
12042
12758
|
readonly isContra: boolean;
|
|
12043
12759
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
12044
12760
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
12045
12761
|
};
|
|
12046
12762
|
readonly customLineItems: {
|
|
12047
12763
|
readonly value: number;
|
|
12048
|
-
readonly name: string;
|
|
12049
12764
|
readonly displayName: string;
|
|
12765
|
+
readonly name: string;
|
|
12050
12766
|
readonly isContra: boolean;
|
|
12051
12767
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
12052
12768
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
12053
12769
|
} | null;
|
|
12054
12770
|
readonly otherOutflows: {
|
|
12055
12771
|
readonly value: number;
|
|
12056
|
-
readonly name: string;
|
|
12057
12772
|
readonly displayName: string;
|
|
12773
|
+
readonly name: string;
|
|
12058
12774
|
readonly isContra: boolean;
|
|
12059
12775
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
12060
12776
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
12061
12777
|
} | null;
|
|
12062
12778
|
readonly personalExpenses: {
|
|
12063
12779
|
readonly value: number;
|
|
12064
|
-
readonly name: string;
|
|
12065
12780
|
readonly displayName: string;
|
|
12781
|
+
readonly name: string;
|
|
12066
12782
|
readonly isContra: boolean;
|
|
12067
12783
|
readonly percentDelta?: import("effect/BigDecimal").BigDecimal | undefined;
|
|
12068
12784
|
readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
|
|
@@ -12740,7 +13456,7 @@ declare module '@layerfi/components/index' {
|
|
|
12740
13456
|
export { unstable_BillsView } from '@layerfi/components/views/Bills';
|
|
12741
13457
|
export { Reports } from '@layerfi/components/views/Reports/index';
|
|
12742
13458
|
export { ProfitAndLossView } from '@layerfi/components/components/ProfitAndLossView/index';
|
|
12743
|
-
export {
|
|
13459
|
+
export { Invoices } from '@layerfi/components/components/Invoices/Invoices';
|
|
12744
13460
|
export { useLayerContext } from '@layerfi/components/contexts/LayerContext/index';
|
|
12745
13461
|
export { useBankTransactionsContext } from '@layerfi/components/contexts/BankTransactionsContext/index';
|
|
12746
13462
|
export { BankTransactionsProvider } from '@layerfi/components/providers/BankTransactionsProvider/index';
|
|
@@ -13119,6 +13835,55 @@ declare module '@layerfi/components/providers/ReportsModeStoreProvider/ReportsMo
|
|
|
13119
13835
|
declare module '@layerfi/components/public/styles/publicClassname' {
|
|
13120
13836
|
export const PUBLIC_CLASSNAME = "Layer__Public";
|
|
13121
13837
|
|
|
13838
|
+
}
|
|
13839
|
+
declare module '@layerfi/components/schemas/accountIdentifier' {
|
|
13840
|
+
import { Schema } from 'effect';
|
|
13841
|
+
export const AccountIdentifierSchema: Schema.Union<[Schema.Struct<{
|
|
13842
|
+
type: Schema.Literal<["StableName"]>;
|
|
13843
|
+
stableName: Schema.PropertySignature<":", string, "stable_name", ":", string, false, never>;
|
|
13844
|
+
}>, Schema.Struct<{
|
|
13845
|
+
type: Schema.Literal<["AccountId"]>;
|
|
13846
|
+
id: typeof Schema.String;
|
|
13847
|
+
}>]>;
|
|
13848
|
+
export type AccountIdentifier = typeof AccountIdentifierSchema.Type;
|
|
13849
|
+
export type AccountIdentifierEncoded = typeof AccountIdentifierSchema.Encoded;
|
|
13850
|
+
export const makeStableName: (stableName: string) => {
|
|
13851
|
+
readonly type: "StableName";
|
|
13852
|
+
readonly stableName: string;
|
|
13853
|
+
};
|
|
13854
|
+
export const makeAccountId: (id: string) => {
|
|
13855
|
+
readonly id: string;
|
|
13856
|
+
readonly type: "AccountId";
|
|
13857
|
+
};
|
|
13858
|
+
export const AccountIdentifierEquivalence: import("effect/Equivalence").Equivalence<{
|
|
13859
|
+
readonly type: "StableName";
|
|
13860
|
+
readonly stableName: string;
|
|
13861
|
+
} | {
|
|
13862
|
+
readonly id: string;
|
|
13863
|
+
readonly type: "AccountId";
|
|
13864
|
+
}>;
|
|
13865
|
+
|
|
13866
|
+
}
|
|
13867
|
+
declare module '@layerfi/components/schemas/accountingConfiguration' {
|
|
13868
|
+
import { Schema } from 'effect';
|
|
13869
|
+
export enum ReportingBasis {
|
|
13870
|
+
Accrual = "ACCRUAL",
|
|
13871
|
+
Cash = "CASH",
|
|
13872
|
+
DeprecatedCash = "DEPRECATED_CASH",
|
|
13873
|
+
MoneyMovementOnly = "MONEY_MOVEMENT_ONLY"
|
|
13874
|
+
}
|
|
13875
|
+
export const ReportingBasisSchema: Schema.Enums<typeof ReportingBasis>;
|
|
13876
|
+
export enum AccountingConfigurationCategoryListMode {
|
|
13877
|
+
AllAccounts = "ALL_ACCOUNTS",
|
|
13878
|
+
RevenuesAndExpenses = "REVENUES_AND_EXPENSES"
|
|
13879
|
+
}
|
|
13880
|
+
export const CategoryListModeSchema: Schema.Enums<typeof AccountingConfigurationCategoryListMode>;
|
|
13881
|
+
export const AccountingConfigurationSchema: Schema.Struct<{
|
|
13882
|
+
id: typeof Schema.UUID;
|
|
13883
|
+
enableAccountNumbers: Schema.PropertySignature<":", boolean, "enable_account_numbers", ":", boolean, false, never>;
|
|
13884
|
+
}>;
|
|
13885
|
+
export type AccountingConfigurationSchemaType = typeof AccountingConfigurationSchema.Type;
|
|
13886
|
+
|
|
13122
13887
|
}
|
|
13123
13888
|
declare module '@layerfi/components/schemas/customer' {
|
|
13124
13889
|
import { Schema } from 'effect';
|
|
@@ -13292,21 +14057,6 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
|
|
|
13292
14057
|
value: Schema.Enums<typeof LedgerAccountSubtype>;
|
|
13293
14058
|
displayName: Schema.PropertySignature<":", string, "display_name", ":", string, false, never>;
|
|
13294
14059
|
}>;
|
|
13295
|
-
export const AccountIdSchema: Schema.Struct<{
|
|
13296
|
-
type: Schema.Literal<["AccountId"]>;
|
|
13297
|
-
id: typeof Schema.String;
|
|
13298
|
-
}>;
|
|
13299
|
-
export const AccountStableNameSchema: Schema.Struct<{
|
|
13300
|
-
type: Schema.Literal<["StableName"]>;
|
|
13301
|
-
stableName: Schema.PropertySignature<":", string, "stable_name", ":", string, false, never>;
|
|
13302
|
-
}>;
|
|
13303
|
-
export const AccountIdentifierSchema: Schema.Union<[Schema.Struct<{
|
|
13304
|
-
type: Schema.Literal<["AccountId"]>;
|
|
13305
|
-
id: typeof Schema.String;
|
|
13306
|
-
}>, Schema.Struct<{
|
|
13307
|
-
type: Schema.Literal<["StableName"]>;
|
|
13308
|
-
stableName: Schema.PropertySignature<":", string, "stable_name", ":", string, false, never>;
|
|
13309
|
-
}>]>;
|
|
13310
14060
|
export const LedgerAccountSchema: Schema.Struct<{
|
|
13311
14061
|
id: typeof Schema.String;
|
|
13312
14062
|
name: typeof Schema.String;
|
|
@@ -13327,12 +14077,12 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
|
|
|
13327
14077
|
readonly display_name: string;
|
|
13328
14078
|
}, false, never>;
|
|
13329
14079
|
}>;
|
|
13330
|
-
export type AccountIdentifier = typeof AccountIdentifierSchema.Type;
|
|
13331
14080
|
export type LedgerAccount = typeof LedgerAccountSchema.Type;
|
|
13332
14081
|
const nestedLedgerAccountFields: {
|
|
13333
14082
|
accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
|
|
13334
14083
|
name: typeof Schema.String;
|
|
13335
14084
|
stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
|
|
14085
|
+
accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
|
|
13336
14086
|
normality: Schema.Enums<typeof LedgerEntryDirection>;
|
|
13337
14087
|
accountType: Schema.PropertySignature<":", {
|
|
13338
14088
|
readonly value: LedgerAccountType;
|
|
@@ -13362,6 +14112,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
|
|
|
13362
14112
|
accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
|
|
13363
14113
|
name: typeof Schema.String;
|
|
13364
14114
|
stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
|
|
14115
|
+
accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
|
|
13365
14116
|
normality: Schema.Enums<typeof LedgerEntryDirection>;
|
|
13366
14117
|
accountType: Schema.PropertySignature<":", {
|
|
13367
14118
|
readonly value: LedgerAccountType;
|
|
@@ -13384,6 +14135,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
|
|
|
13384
14135
|
accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
|
|
13385
14136
|
name: typeof Schema.String;
|
|
13386
14137
|
stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
|
|
14138
|
+
accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
|
|
13387
14139
|
normality: Schema.Enums<typeof LedgerEntryDirection>;
|
|
13388
14140
|
accountType: Schema.PropertySignature<":", {
|
|
13389
14141
|
readonly value: LedgerAccountType;
|
|
@@ -13406,11 +14158,33 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
|
|
|
13406
14158
|
export interface NestedChartAccountEncoded extends Schema.Struct.Encoded<typeof nestedChartAccountFields> {
|
|
13407
14159
|
readonly sub_accounts: ReadonlyArray<NestedChartAccountEncoded>;
|
|
13408
14160
|
}
|
|
14161
|
+
export const SingleChartAccountSchema: Schema.Struct<{
|
|
14162
|
+
accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
|
|
14163
|
+
name: typeof Schema.String;
|
|
14164
|
+
stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
|
|
14165
|
+
accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
|
|
14166
|
+
normality: Schema.Enums<typeof LedgerEntryDirection>;
|
|
14167
|
+
accountType: Schema.PropertySignature<":", {
|
|
14168
|
+
readonly value: LedgerAccountType;
|
|
14169
|
+
readonly displayName: string;
|
|
14170
|
+
}, "account_type", ":", {
|
|
14171
|
+
readonly value: LedgerAccountType;
|
|
14172
|
+
readonly display_name: string;
|
|
14173
|
+
}, false, never>;
|
|
14174
|
+
accountSubtype: Schema.PropertySignature<":", {
|
|
14175
|
+
readonly value: LedgerAccountSubtype;
|
|
14176
|
+
readonly displayName: string;
|
|
14177
|
+
}, "account_subtype", ":", {
|
|
14178
|
+
readonly value: LedgerAccountSubtype;
|
|
14179
|
+
readonly display_name: string;
|
|
14180
|
+
}, false, never>;
|
|
14181
|
+
}>;
|
|
13409
14182
|
export const NestedChartAccountSchema: Schema.Struct<{
|
|
13410
14183
|
subAccounts: Schema.PropertySignature<":", readonly NestedChartAccount[], "sub_accounts", ":", readonly NestedChartAccountEncoded[], false, never>;
|
|
13411
14184
|
accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
|
|
13412
14185
|
name: typeof Schema.String;
|
|
13413
14186
|
stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
|
|
14187
|
+
accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
|
|
13414
14188
|
normality: Schema.Enums<typeof LedgerEntryDirection>;
|
|
13415
14189
|
accountType: Schema.PropertySignature<":", {
|
|
13416
14190
|
readonly value: LedgerAccountType;
|
|
@@ -13429,12 +14203,15 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
|
|
|
13429
14203
|
}>;
|
|
13430
14204
|
export type NestedLedgerAccountType = typeof NestedLedgerAccountSchema.Type;
|
|
13431
14205
|
export type NestedChartAccountType = typeof NestedChartAccountSchema.Type;
|
|
14206
|
+
export type SingleChartAccountType = typeof SingleChartAccountSchema.Type;
|
|
14207
|
+
export type SingleChartAccountEncodedType = typeof SingleChartAccountSchema.Encoded;
|
|
13432
14208
|
export const ChartOfAccountsSchema: Schema.Struct<{
|
|
13433
14209
|
accounts: Schema.Array$<Schema.Struct<{
|
|
13434
14210
|
subAccounts: Schema.PropertySignature<":", readonly NestedChartAccount[], "sub_accounts", ":", readonly NestedChartAccountEncoded[], false, never>;
|
|
13435
14211
|
accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
|
|
13436
14212
|
name: typeof Schema.String;
|
|
13437
14213
|
stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
|
|
14214
|
+
accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
|
|
13438
14215
|
normality: Schema.Enums<typeof LedgerEntryDirection>;
|
|
13439
14216
|
accountType: Schema.PropertySignature<":", {
|
|
13440
14217
|
readonly value: LedgerAccountType;
|
|
@@ -13458,6 +14235,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
|
|
|
13458
14235
|
accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
|
|
13459
14236
|
name: typeof Schema.String;
|
|
13460
14237
|
stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
|
|
14238
|
+
accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
|
|
13461
14239
|
normality: Schema.Enums<typeof LedgerEntryDirection>;
|
|
13462
14240
|
accountType: Schema.PropertySignature<":", {
|
|
13463
14241
|
readonly value: LedgerAccountType;
|
|
@@ -13477,6 +14255,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerAccount' {
|
|
|
13477
14255
|
isDeletable: Schema.PropertySignature<":", boolean | null, "is_deletable", ":", boolean | null, false, never>;
|
|
13478
14256
|
}>>;
|
|
13479
14257
|
}>;
|
|
14258
|
+
export type LedgerBalancesSchemaType = typeof LedgerBalancesSchema.Type;
|
|
13480
14259
|
export {};
|
|
13481
14260
|
|
|
13482
14261
|
}
|
|
@@ -13978,8 +14757,8 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
|
|
|
13978
14757
|
readonly account: {
|
|
13979
14758
|
readonly id: string;
|
|
13980
14759
|
readonly name: string;
|
|
13981
|
-
readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
|
|
13982
14760
|
readonly stableName: string | null;
|
|
14761
|
+
readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
|
|
13983
14762
|
readonly accountType: {
|
|
13984
14763
|
readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
|
|
13985
14764
|
readonly displayName: string;
|
|
@@ -14027,8 +14806,8 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
|
|
|
14027
14806
|
readonly account: {
|
|
14028
14807
|
readonly id: string;
|
|
14029
14808
|
readonly name: string;
|
|
14030
|
-
readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
|
|
14031
14809
|
readonly stable_name: string | null;
|
|
14810
|
+
readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
|
|
14032
14811
|
readonly account_type: {
|
|
14033
14812
|
readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
|
|
14034
14813
|
readonly display_name: string;
|
|
@@ -14411,6 +15190,7 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
|
|
|
14411
15190
|
accountId: Schema.PropertySignature<":", string, "id", ":", string, false, never>;
|
|
14412
15191
|
name: typeof Schema.String;
|
|
14413
15192
|
stableName: Schema.PropertySignature<":", string | null, "stable_name", ":", string | null, false, never>;
|
|
15193
|
+
accountNumber: Schema.PropertySignature<":", string | null, "account_number", ":", string | null, false, never>;
|
|
14414
15194
|
normality: Schema.Enums<typeof import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection>;
|
|
14415
15195
|
accountType: Schema.PropertySignature<":", {
|
|
14416
15196
|
readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
|
|
@@ -14475,8 +15255,8 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
|
|
|
14475
15255
|
readonly account: {
|
|
14476
15256
|
readonly id: string;
|
|
14477
15257
|
readonly name: string;
|
|
14478
|
-
readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
|
|
14479
15258
|
readonly stableName: string | null;
|
|
15259
|
+
readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
|
|
14480
15260
|
readonly accountType: {
|
|
14481
15261
|
readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
|
|
14482
15262
|
readonly displayName: string;
|
|
@@ -14524,8 +15304,8 @@ declare module '@layerfi/components/schemas/generalLedger/ledgerEntry' {
|
|
|
14524
15304
|
readonly account: {
|
|
14525
15305
|
readonly id: string;
|
|
14526
15306
|
readonly name: string;
|
|
14527
|
-
readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
|
|
14528
15307
|
readonly stable_name: string | null;
|
|
15308
|
+
readonly normality: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerEntryDirection;
|
|
14529
15309
|
readonly account_type: {
|
|
14530
15310
|
readonly value: import("@layerfi/components/schemas/generalLedger/ledgerAccount").LedgerAccountType;
|
|
14531
15311
|
readonly display_name: string;
|
|
@@ -16631,7 +17411,7 @@ declare module '@layerfi/components/types/bank_transactions' {
|
|
|
16631
17411
|
import { MatchDetailsType } from '@layerfi/components/schemas/match';
|
|
16632
17412
|
import { Categorization, CategorizationStatus, Category } from '@layerfi/components/types/categories';
|
|
16633
17413
|
import { S3PresignedUrl } from '@layerfi/components/types/general';
|
|
16634
|
-
import type {
|
|
17414
|
+
import type { TransactionTagEncoded } from '@layerfi/components/features/tags/tagSchemas';
|
|
16635
17415
|
export enum Direction {
|
|
16636
17416
|
CREDIT = "CREDIT",
|
|
16637
17417
|
DEBIT = "DEBIT"
|
|
@@ -16676,7 +17456,7 @@ declare module '@layerfi/components/types/bank_transactions' {
|
|
|
16676
17456
|
suggested_matches?: SuggestedMatch[];
|
|
16677
17457
|
match?: BankTransactionMatch;
|
|
16678
17458
|
document_ids: string[];
|
|
16679
|
-
transaction_tags: ReadonlyArray<
|
|
17459
|
+
transaction_tags: ReadonlyArray<TransactionTagEncoded>;
|
|
16680
17460
|
customer: typeof CustomerSchema.Encoded | null;
|
|
16681
17461
|
vendor: typeof VendorSchema.Encoded | null;
|
|
16682
17462
|
}
|
|
@@ -16702,7 +17482,7 @@ declare module '@layerfi/components/types/bank_transactions' {
|
|
|
16702
17482
|
|
|
16703
17483
|
}
|
|
16704
17484
|
declare module '@layerfi/components/types/bills' {
|
|
16705
|
-
import {
|
|
17485
|
+
import type { TransactionTagEncoded } from '@layerfi/components/features/tags/tagSchemas';
|
|
16706
17486
|
import { Vendor } from '@layerfi/components/types/vendors';
|
|
16707
17487
|
const UNPAID_STATUS_MAP: {
|
|
16708
17488
|
readonly SENT: "SENT";
|
|
@@ -16745,7 +17525,7 @@ declare module '@layerfi/components/types/bills' {
|
|
|
16745
17525
|
subtotal: number;
|
|
16746
17526
|
terms: BillTerm;
|
|
16747
17527
|
total_amount: number;
|
|
16748
|
-
transaction_tags:
|
|
17528
|
+
transaction_tags: TransactionTagEncoded[];
|
|
16749
17529
|
type: 'Bill';
|
|
16750
17530
|
updated_at: string;
|
|
16751
17531
|
voided_at: string | null;
|
|
@@ -16773,7 +17553,7 @@ declare module '@layerfi/components/types/bills' {
|
|
|
16773
17553
|
bill_id: string;
|
|
16774
17554
|
payment_id: string;
|
|
16775
17555
|
amount: number;
|
|
16776
|
-
transaction_tags:
|
|
17556
|
+
transaction_tags: TransactionTagEncoded[];
|
|
16777
17557
|
};
|
|
16778
17558
|
export type SalesTax = {
|
|
16779
17559
|
amount: number;
|
|
@@ -16846,6 +17626,12 @@ declare module '@layerfi/components/types/business' {
|
|
|
16846
17626
|
|
|
16847
17627
|
}
|
|
16848
17628
|
declare module '@layerfi/components/types/categories' {
|
|
17629
|
+
export enum CategoriesListMode {
|
|
17630
|
+
All = "ALL",
|
|
17631
|
+
Expenses = "EXPENSES",
|
|
17632
|
+
Revenue = "REVENUE",
|
|
17633
|
+
Default = "DEFAULT"
|
|
17634
|
+
}
|
|
16849
17635
|
export enum CategorizationStatus {
|
|
16850
17636
|
PENDING = "PENDING",
|
|
16851
17637
|
READY_FOR_INPUT = "READY_FOR_INPUT",
|
|
@@ -16875,6 +17661,9 @@ declare module '@layerfi/components/types/categories' {
|
|
|
16875
17661
|
id: string;
|
|
16876
17662
|
} & BaseCategory;
|
|
16877
17663
|
export type Category = AccountNestedCategory | OptionalAccountNestedCategory | ExclusionNestedCategory;
|
|
17664
|
+
export function isAccountNestedCategory(v: Category): v is AccountNestedCategory;
|
|
17665
|
+
export function isOptionalAccountNestedCategory(v: Category): v is OptionalAccountNestedCategory;
|
|
17666
|
+
export function isExclusionNestedCategory(v: Category): v is ExclusionNestedCategory;
|
|
16878
17667
|
export enum CategorizationType {
|
|
16879
17668
|
AUTO = "AUTO",
|
|
16880
17669
|
ASK_FROM_SUGGESTIONS = "ASK_FROM_SUGGESTIONS",
|
|
@@ -16918,62 +17707,13 @@ declare module '@layerfi/components/types/categories' {
|
|
|
16918
17707
|
}
|
|
16919
17708
|
declare module '@layerfi/components/types/chart_of_accounts' {
|
|
16920
17709
|
import { Direction } from '@layerfi/components/types/bank_transactions';
|
|
16921
|
-
import {
|
|
16922
|
-
export
|
|
16923
|
-
type: string;
|
|
16924
|
-
accounts: Account[];
|
|
16925
|
-
entries?: unknown[];
|
|
16926
|
-
}
|
|
16927
|
-
export interface AccountEntry {
|
|
16928
|
-
account: Account;
|
|
16929
|
-
amount?: number;
|
|
16930
|
-
createdAt?: string;
|
|
16931
|
-
direction: Direction;
|
|
16932
|
-
entry_at?: string;
|
|
16933
|
-
entry_id?: string;
|
|
16934
|
-
id?: string;
|
|
16935
|
-
}
|
|
16936
|
-
export interface Account {
|
|
16937
|
-
id: string;
|
|
16938
|
-
number: number;
|
|
16939
|
-
pnlCategory?: Category;
|
|
16940
|
-
headerForPnlCategory?: Category;
|
|
16941
|
-
name: string;
|
|
16942
|
-
accountStableName?: string;
|
|
16943
|
-
description?: string;
|
|
16944
|
-
scheduleCLine?: string;
|
|
16945
|
-
scheduleCLineDescription?: string;
|
|
16946
|
-
sub_accounts?: Account[];
|
|
16947
|
-
hidePnl: boolean;
|
|
16948
|
-
showInPnlIfEmpty: boolean;
|
|
16949
|
-
normality: Direction;
|
|
16950
|
-
balance: number;
|
|
16951
|
-
selfOnlyBalance: number;
|
|
16952
|
-
entries?: AccountEntry[];
|
|
16953
|
-
}
|
|
16954
|
-
export type ChartWithBalances = {
|
|
16955
|
-
accounts: LedgerAccountBalance[];
|
|
16956
|
-
};
|
|
16957
|
-
export type ApiAccountType = {
|
|
16958
|
-
value: string;
|
|
16959
|
-
display_name: string;
|
|
16960
|
-
};
|
|
16961
|
-
export type LedgerAccountBalance = {
|
|
16962
|
-
id: string;
|
|
16963
|
-
name: string;
|
|
16964
|
-
stable_name: string;
|
|
16965
|
-
account_type: ApiAccountType;
|
|
16966
|
-
account_subtype?: ApiAccountType;
|
|
16967
|
-
normality: Direction;
|
|
16968
|
-
balance: number;
|
|
16969
|
-
is_deletable: boolean;
|
|
16970
|
-
sub_accounts: LedgerAccountBalance[];
|
|
16971
|
-
};
|
|
16972
|
-
export type AugmentedLedgerAccountBalance = LedgerAccountBalance & {
|
|
17710
|
+
import { NestedLedgerAccountType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
|
|
17711
|
+
export type AugmentedLedgerAccountBalance = NestedLedgerAccountType & {
|
|
16973
17712
|
isMatching?: true;
|
|
16974
17713
|
};
|
|
16975
17714
|
export type NewAccount = {
|
|
16976
17715
|
name: string;
|
|
17716
|
+
account_number?: string;
|
|
16977
17717
|
normality: Direction;
|
|
16978
17718
|
parent_id?: {
|
|
16979
17719
|
type: 'AccountId';
|
|
@@ -16988,6 +17728,7 @@ declare module '@layerfi/components/types/chart_of_accounts' {
|
|
|
16988
17728
|
stable_name: string;
|
|
16989
17729
|
};
|
|
16990
17730
|
name: string;
|
|
17731
|
+
account_number?: string;
|
|
16991
17732
|
normality: Direction;
|
|
16992
17733
|
parent_id?: {
|
|
16993
17734
|
type: 'AccountId';
|
|
@@ -17008,7 +17749,7 @@ declare module '@layerfi/components/types/chart_of_accounts' {
|
|
|
17008
17749
|
Root = "Root",
|
|
17009
17750
|
Parent = "Parent"
|
|
17010
17751
|
}
|
|
17011
|
-
export type LedgerAccountBalanceWithNodeType =
|
|
17752
|
+
export type LedgerAccountBalanceWithNodeType = NestedLedgerAccountType & {
|
|
17012
17753
|
nodeType: LedgerAccountNodeType;
|
|
17013
17754
|
};
|
|
17014
17755
|
|
|
@@ -17044,8 +17785,6 @@ declare module '@layerfi/components/types/general' {
|
|
|
17044
17785
|
BUSINESS = "BUSINESS",
|
|
17045
17786
|
BALANCE_SHEET = "BALANCE_SHEET",
|
|
17046
17787
|
BANK_TRANSACTIONS = "BANK_TRANSACTIONS",
|
|
17047
|
-
CHART_OF_ACCOUNTS = "CHART_OF_ACCOUNTS",
|
|
17048
|
-
JOURNAL = "JOURNAL",
|
|
17049
17788
|
BILLS = "BILLS",
|
|
17050
17789
|
LEDGER_ACCOUNTS = "LEDGER_ACCOUNTS",
|
|
17051
17790
|
LINKED_ACCOUNTS = "LINKED_ACCOUNTS",
|
|
@@ -17055,11 +17794,10 @@ declare module '@layerfi/components/types/general' {
|
|
|
17055
17794
|
|
|
17056
17795
|
}
|
|
17057
17796
|
declare module '@layerfi/components/types/journal' {
|
|
17797
|
+
import type { TransactionTagEncoded } from '@layerfi/components/features/tags/tagSchemas';
|
|
17058
17798
|
import { LedgerEntrySourceType } from '@layerfi/components/schemas/generalLedger/ledgerEntrySource';
|
|
17059
|
-
import {
|
|
17060
|
-
import { Direction } from '@layerfi/components/types/bank_transactions';
|
|
17799
|
+
import { LedgerEntryDirection, SingleChartAccountEncodedType } from '@layerfi/components/schemas/generalLedger/ledgerAccount';
|
|
17061
17800
|
import { AccountIdentifierPayloadObject } from '@layerfi/components/types/categories';
|
|
17062
|
-
import type { TransactionTag } from '@layerfi/components/types/tags';
|
|
17063
17801
|
export interface JournalEntry {
|
|
17064
17802
|
id: string;
|
|
17065
17803
|
business_id: string;
|
|
@@ -17072,14 +17810,14 @@ declare module '@layerfi/components/types/journal' {
|
|
|
17072
17810
|
reversal_id: string | null;
|
|
17073
17811
|
line_items: JournalEntryLine[];
|
|
17074
17812
|
source?: LedgerEntrySourceType;
|
|
17075
|
-
transaction_tags: ReadonlyArray<
|
|
17813
|
+
transaction_tags: ReadonlyArray<TransactionTagEncoded>;
|
|
17076
17814
|
}
|
|
17077
17815
|
export interface JournalEntryLine {
|
|
17078
17816
|
id: string;
|
|
17079
17817
|
entry_id: string;
|
|
17080
|
-
account:
|
|
17818
|
+
account: SingleChartAccountEncodedType;
|
|
17081
17819
|
amount: number;
|
|
17082
|
-
direction:
|
|
17820
|
+
direction: LedgerEntryDirection;
|
|
17083
17821
|
entry_at: string;
|
|
17084
17822
|
createdAt: string;
|
|
17085
17823
|
}
|
|
@@ -17092,7 +17830,7 @@ declare module '@layerfi/components/types/journal' {
|
|
|
17092
17830
|
export type NewApiJournalEntryLineItem = {
|
|
17093
17831
|
account_identifier: AccountIdentifierPayloadObject;
|
|
17094
17832
|
amount: number;
|
|
17095
|
-
direction:
|
|
17833
|
+
direction: LedgerEntryDirection;
|
|
17096
17834
|
};
|
|
17097
17835
|
export type NewFormJournalEntry = {
|
|
17098
17836
|
entry_at: string;
|
|
@@ -17103,7 +17841,7 @@ declare module '@layerfi/components/types/journal' {
|
|
|
17103
17841
|
export type JournalEntryLineItem = {
|
|
17104
17842
|
account_identifier: {
|
|
17105
17843
|
type: string;
|
|
17106
|
-
stable_name: string;
|
|
17844
|
+
stable_name: string | null;
|
|
17107
17845
|
id: string;
|
|
17108
17846
|
name: string;
|
|
17109
17847
|
subType: {
|
|
@@ -17112,7 +17850,23 @@ declare module '@layerfi/components/types/journal' {
|
|
|
17112
17850
|
} | undefined;
|
|
17113
17851
|
};
|
|
17114
17852
|
amount: number;
|
|
17115
|
-
direction:
|
|
17853
|
+
direction: LedgerEntryDirection;
|
|
17854
|
+
};
|
|
17855
|
+
export type ApiAccountType = {
|
|
17856
|
+
value: string;
|
|
17857
|
+
display_name: string;
|
|
17858
|
+
};
|
|
17859
|
+
export type LedgerAccountBalance = {
|
|
17860
|
+
id: string;
|
|
17861
|
+
name: string;
|
|
17862
|
+
stable_name: string;
|
|
17863
|
+
account_number: string | null;
|
|
17864
|
+
account_type: ApiAccountType;
|
|
17865
|
+
account_subtype?: ApiAccountType;
|
|
17866
|
+
normality: LedgerEntryDirection;
|
|
17867
|
+
balance: number;
|
|
17868
|
+
is_deletable: boolean;
|
|
17869
|
+
sub_accounts: LedgerAccountBalance[];
|
|
17116
17870
|
};
|
|
17117
17871
|
|
|
17118
17872
|
}
|
|
@@ -17120,6 +17874,7 @@ declare module '@layerfi/components/types/layer_context' {
|
|
|
17120
17874
|
import { ToastProps } from '@layerfi/components/components/Toast/Toast';
|
|
17121
17875
|
import { LayerError } from '@layerfi/components/models/ErrorHandler';
|
|
17122
17876
|
import { EventCallbacks } from '@layerfi/components/providers/LayerProvider/LayerProvider';
|
|
17877
|
+
import { AccountingConfigurationSchemaType } from '@layerfi/components/schemas/accountingConfiguration';
|
|
17123
17878
|
import { Business } from '@layerfi/components/types';
|
|
17124
17879
|
import { DataModel } from '@layerfi/components/types/general';
|
|
17125
17880
|
export type LayerContextValues = {
|
|
@@ -17132,6 +17887,7 @@ declare module '@layerfi/components/types/layer_context' {
|
|
|
17132
17887
|
isExiting: boolean;
|
|
17133
17888
|
})[];
|
|
17134
17889
|
eventCallbacks?: EventCallbacks;
|
|
17890
|
+
accountingConfiguration?: AccountingConfigurationSchemaType;
|
|
17135
17891
|
};
|
|
17136
17892
|
export type LayerContextHelpers = {
|
|
17137
17893
|
getColor: (shade: number) => ColorsPaletteOption | undefined;
|
|
@@ -17690,17 +18446,6 @@ declare module '@layerfi/components/types/table' {
|
|
|
17690
18446
|
|
|
17691
18447
|
}
|
|
17692
18448
|
declare module '@layerfi/components/types/tags' {
|
|
17693
|
-
export type TransactionTag = {
|
|
17694
|
-
id: string;
|
|
17695
|
-
key: string;
|
|
17696
|
-
value: string;
|
|
17697
|
-
created_at: string;
|
|
17698
|
-
updated_at: string;
|
|
17699
|
-
deleted_at?: string;
|
|
17700
|
-
_local?: {
|
|
17701
|
-
isOptimistic: boolean;
|
|
17702
|
-
};
|
|
17703
|
-
};
|
|
17704
18449
|
export type TagFilterInput = {
|
|
17705
18450
|
tagKey: string;
|
|
17706
18451
|
tagValues: string[];
|
|
@@ -17827,7 +18572,7 @@ declare module '@layerfi/components/types' {
|
|
|
17827
18572
|
export { StatementOfCashFlow } from '@layerfi/components/types/statement_of_cash_flow';
|
|
17828
18573
|
export { Direction, BankTransaction, DisplayState, SuggestedMatch, BankTransactionMatch, } from '@layerfi/components/types/bank_transactions';
|
|
17829
18574
|
export { CategorizationStatus, Category, CategorizationType, AutoCategorization, SuggestedCategorization, SingleCategoryUpdate, SplitCategoryUpdate, CategoryUpdate, } from '@layerfi/components/types/categories';
|
|
17830
|
-
export {
|
|
18575
|
+
export { NewAccount, EditAccount, NewChildAccount, } from '@layerfi/components/types/chart_of_accounts';
|
|
17831
18576
|
export { LedgerAccountLineItems as LedgerAccounts, LedgerAccountLineItem, LedgerAccountsAccount, LedgerAccountsEntry, } from '@layerfi/components/types/ledger_accounts';
|
|
17832
18577
|
export { SortDirection } from '@layerfi/components/types/general';
|
|
17833
18578
|
export { Business } from '@layerfi/components/types/business';
|
|
@@ -18071,10 +18816,6 @@ declare module '@layerfi/components/utils/format' {
|
|
|
18071
18816
|
declare module '@layerfi/components/utils/helpers' {
|
|
18072
18817
|
export const range: (start: number, end: number) => number[];
|
|
18073
18818
|
export const sleep: (time: number) => Promise<unknown>;
|
|
18074
|
-
/**
|
|
18075
|
-
* Convert the account name into stable_name
|
|
18076
|
-
*/
|
|
18077
|
-
export const convertToStableName: (name: string) => string;
|
|
18078
18819
|
|
|
18079
18820
|
}
|
|
18080
18821
|
declare module '@layerfi/components/utils/journal' {
|