@layerfi/components 0.1.106-alpha → 0.1.106
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 +1214 -402
- package/dist/esm/index.mjs +1244 -433
- package/dist/index.css +253 -133
- package/dist/index.d.ts +1563 -187
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1065,6 +1065,7 @@ declare module '@layerfi/components/components/Badge/Badge' {
|
|
|
1065
1065
|
import { ReactNode } from 'react';
|
|
1066
1066
|
import { ButtonProps } from '@layerfi/components/components/Button/Button';
|
|
1067
1067
|
export enum BadgeSize {
|
|
1068
|
+
EXTRA_SMALL = "xs",
|
|
1068
1069
|
SMALL = "small",
|
|
1069
1070
|
MEDIUM = "medium"
|
|
1070
1071
|
}
|
|
@@ -1694,6 +1695,18 @@ declare module '@layerfi/components/components/BaseConfirmationModal/BaseConfirm
|
|
|
1694
1695
|
};
|
|
1695
1696
|
export function BaseConfirmationModal({ isOpen, onOpenChange, title, description, onConfirm, confirmLabel, retryLabel, cancelLabel, errorText, }: BaseConfirmationModalProps): import("react/jsx-runtime").JSX.Element;
|
|
1696
1697
|
|
|
1698
|
+
}
|
|
1699
|
+
declare module '@layerfi/components/components/BaseDetailView/BaseDetailView' {
|
|
1700
|
+
import type { PropsWithChildren } from 'react';
|
|
1701
|
+
export type BaseDetailViewProps = PropsWithChildren<{
|
|
1702
|
+
name: string;
|
|
1703
|
+
onGoBack: () => void;
|
|
1704
|
+
slots: {
|
|
1705
|
+
Header: React.FC;
|
|
1706
|
+
};
|
|
1707
|
+
}>;
|
|
1708
|
+
export const BaseDetailView: ({ name, onGoBack, slots, children }: BaseDetailViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
1709
|
+
|
|
1697
1710
|
}
|
|
1698
1711
|
declare module '@layerfi/components/components/Bills/BillSummary' {
|
|
1699
1712
|
import type { Bill } from '@layerfi/components/types';
|
|
@@ -2601,6 +2614,14 @@ declare module '@layerfi/components/components/CustomAccountForm/useCustomAccoun
|
|
|
2601
2614
|
};
|
|
2602
2615
|
export {};
|
|
2603
2616
|
|
|
2617
|
+
}
|
|
2618
|
+
declare module '@layerfi/components/components/DataPoint/DataPoint' {
|
|
2619
|
+
import type { PropsWithChildren } from 'react';
|
|
2620
|
+
export type DataPointProps = PropsWithChildren<{
|
|
2621
|
+
label: string;
|
|
2622
|
+
}>;
|
|
2623
|
+
export const DataPoint: ({ label, children }: DataPointProps) => import("react/jsx-runtime").JSX.Element;
|
|
2624
|
+
|
|
2604
2625
|
}
|
|
2605
2626
|
declare module '@layerfi/components/components/DataState/DataState' {
|
|
2606
2627
|
import { ReactNode } from 'react';
|
|
@@ -3199,13 +3220,12 @@ declare module '@layerfi/components/components/Input/index' {
|
|
|
3199
3220
|
}
|
|
3200
3221
|
declare module '@layerfi/components/components/Integrations/Integrations' {
|
|
3201
3222
|
export interface IntegrationsProps {
|
|
3202
|
-
elevated?: boolean;
|
|
3203
3223
|
stringOverrides?: {
|
|
3204
3224
|
title?: string;
|
|
3205
3225
|
};
|
|
3206
3226
|
}
|
|
3207
3227
|
export const Integrations: (props: IntegrationsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3208
|
-
export const IntegrationsComponent: ({
|
|
3228
|
+
export const IntegrationsComponent: ({ stringOverrides, }: IntegrationsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3209
3229
|
|
|
3210
3230
|
}
|
|
3211
3231
|
declare module '@layerfi/components/components/Integrations/IntegrationsConnectMenu/IntegrationsConnectMenu' {
|
|
@@ -3247,10 +3267,41 @@ declare module '@layerfi/components/components/Integrations/IntegrationsQuickboo
|
|
|
3247
3267
|
export const getQuickbooksConnectionSyncUiState: (quickbooksConnectionStatus: StatusOfQuickbooksConnection) => QuickbooksConnectionSyncUiState;
|
|
3248
3268
|
|
|
3249
3269
|
}
|
|
3250
|
-
declare module '@layerfi/components/components/Invoices/
|
|
3251
|
-
import {
|
|
3270
|
+
declare module '@layerfi/components/components/Invoices/InvoiceDetail/InvoiceDetail' {
|
|
3271
|
+
import { type InvoiceFormProps } from '@layerfi/components/components/Invoices/InvoiceForm/InvoiceForm';
|
|
3272
|
+
export type InvoiceDetailProps = InvoiceFormProps & {
|
|
3273
|
+
onGoBack: () => void;
|
|
3274
|
+
};
|
|
3275
|
+
export const InvoiceDetail: (props: InvoiceDetailProps) => import("react/jsx-runtime").JSX.Element;
|
|
3276
|
+
|
|
3277
|
+
}
|
|
3278
|
+
declare module '@layerfi/components/components/Invoices/InvoiceForm/InvoiceForm' {
|
|
3252
3279
|
import type { Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
|
|
3253
3280
|
import { UpsertInvoiceMode } from '@layerfi/components/features/invoices/api/useUpsertInvoice';
|
|
3281
|
+
export type InvoiceFormMode = {
|
|
3282
|
+
mode: UpsertInvoiceMode.Update;
|
|
3283
|
+
invoice: Invoice;
|
|
3284
|
+
} | {
|
|
3285
|
+
mode: UpsertInvoiceMode.Create;
|
|
3286
|
+
};
|
|
3287
|
+
export type InvoiceFormProps = InvoiceFormMode & {
|
|
3288
|
+
onSuccess?: (invoice: Invoice) => void;
|
|
3289
|
+
};
|
|
3290
|
+
export const InvoiceForm: (props: InvoiceFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
3291
|
+
|
|
3292
|
+
}
|
|
3293
|
+
declare module '@layerfi/components/components/Invoices/InvoiceForm/useInvoiceForm' {
|
|
3294
|
+
import { type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
|
|
3295
|
+
import { UpsertInvoiceMode } from '@layerfi/components/features/invoices/api/useUpsertInvoice';
|
|
3296
|
+
import { BigDecimal as BD } from 'effect';
|
|
3297
|
+
export const EMPTY_LINE_ITEM: {
|
|
3298
|
+
product: string;
|
|
3299
|
+
description: string;
|
|
3300
|
+
unitPrice: number;
|
|
3301
|
+
quantity: BD.BigDecimal;
|
|
3302
|
+
amount: number;
|
|
3303
|
+
isTaxable: boolean;
|
|
3304
|
+
};
|
|
3254
3305
|
type UseInvoiceFormProps = {
|
|
3255
3306
|
onSuccess?: (invoice: Invoice) => void;
|
|
3256
3307
|
mode: UpsertInvoiceMode.Create;
|
|
@@ -3260,172 +3311,1326 @@ declare module '@layerfi/components/components/Invoices/InvoiceForm/useInvoiceFo
|
|
|
3260
3311
|
invoice: Invoice;
|
|
3261
3312
|
};
|
|
3262
3313
|
export const useInvoiceForm: (props: UseInvoiceFormProps) => {
|
|
3263
|
-
form: import("@tanstack/react-form").
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3314
|
+
form: import("@tanstack/react-form").FormApi<{
|
|
3315
|
+
invoiceNumber: string;
|
|
3316
|
+
customer: null;
|
|
3317
|
+
email: string;
|
|
3318
|
+
address: string;
|
|
3319
|
+
lineItems: {
|
|
3320
|
+
product: string;
|
|
3321
|
+
description: string;
|
|
3322
|
+
unitPrice: number;
|
|
3323
|
+
quantity: BD.BigDecimal;
|
|
3324
|
+
amount: number;
|
|
3325
|
+
isTaxable: boolean;
|
|
3273
3326
|
}[];
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
readonly
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
readonly
|
|
3286
|
-
readonly
|
|
3287
|
-
readonly
|
|
3288
|
-
|
|
3327
|
+
} | {
|
|
3328
|
+
invoiceNumber: string | null;
|
|
3329
|
+
customer: {
|
|
3330
|
+
readonly id: string;
|
|
3331
|
+
readonly externalId: string | null;
|
|
3332
|
+
readonly individualName: string | null;
|
|
3333
|
+
readonly companyName: string | null;
|
|
3334
|
+
readonly email: string | null;
|
|
3335
|
+
readonly mobilePhone: string | null;
|
|
3336
|
+
readonly officePhone: string | null;
|
|
3337
|
+
readonly addressString: string | null;
|
|
3338
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
3339
|
+
readonly memo: string | null;
|
|
3340
|
+
readonly _local?: {
|
|
3341
|
+
readonly isOptimistic: boolean;
|
|
3342
|
+
} | undefined;
|
|
3343
|
+
} | null;
|
|
3344
|
+
email: string | null | undefined;
|
|
3345
|
+
address: string | null | undefined;
|
|
3346
|
+
lineItems: {
|
|
3347
|
+
amount: number;
|
|
3348
|
+
isTaxable: boolean;
|
|
3349
|
+
id: string;
|
|
3350
|
+
externalId: string | null;
|
|
3351
|
+
memo: string | null;
|
|
3352
|
+
description: string | null;
|
|
3353
|
+
product: string | null;
|
|
3354
|
+
subtotal: number;
|
|
3355
|
+
quantity: BD.BigDecimal;
|
|
3356
|
+
invoiceId: string;
|
|
3357
|
+
unitPrice: number;
|
|
3358
|
+
discountAmount: number;
|
|
3359
|
+
salesTaxTotal: number;
|
|
3360
|
+
totalAmount: number;
|
|
3289
3361
|
}[];
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
readonly product: string;
|
|
3303
|
-
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
3304
|
-
readonly unitPrice: number;
|
|
3362
|
+
}, import("@tanstack/react-form").FormValidateOrFn<{
|
|
3363
|
+
invoiceNumber: string;
|
|
3364
|
+
customer: null;
|
|
3365
|
+
email: string;
|
|
3366
|
+
address: string;
|
|
3367
|
+
lineItems: {
|
|
3368
|
+
product: string;
|
|
3369
|
+
description: string;
|
|
3370
|
+
unitPrice: number;
|
|
3371
|
+
quantity: BD.BigDecimal;
|
|
3372
|
+
amount: number;
|
|
3373
|
+
isTaxable: boolean;
|
|
3305
3374
|
}[];
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
readonly
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
readonly
|
|
3318
|
-
readonly
|
|
3319
|
-
readonly
|
|
3320
|
-
|
|
3375
|
+
} | {
|
|
3376
|
+
invoiceNumber: string | null;
|
|
3377
|
+
customer: {
|
|
3378
|
+
readonly id: string;
|
|
3379
|
+
readonly externalId: string | null;
|
|
3380
|
+
readonly individualName: string | null;
|
|
3381
|
+
readonly companyName: string | null;
|
|
3382
|
+
readonly email: string | null;
|
|
3383
|
+
readonly mobilePhone: string | null;
|
|
3384
|
+
readonly officePhone: string | null;
|
|
3385
|
+
readonly addressString: string | null;
|
|
3386
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
3387
|
+
readonly memo: string | null;
|
|
3388
|
+
readonly _local?: {
|
|
3389
|
+
readonly isOptimistic: boolean;
|
|
3390
|
+
} | undefined;
|
|
3391
|
+
} | null;
|
|
3392
|
+
email: string | null | undefined;
|
|
3393
|
+
address: string | null | undefined;
|
|
3394
|
+
lineItems: {
|
|
3395
|
+
amount: number;
|
|
3396
|
+
isTaxable: boolean;
|
|
3397
|
+
id: string;
|
|
3398
|
+
externalId: string | null;
|
|
3399
|
+
memo: string | null;
|
|
3400
|
+
description: string | null;
|
|
3401
|
+
product: string | null;
|
|
3402
|
+
subtotal: number;
|
|
3403
|
+
quantity: BD.BigDecimal;
|
|
3404
|
+
invoiceId: string;
|
|
3405
|
+
unitPrice: number;
|
|
3406
|
+
discountAmount: number;
|
|
3407
|
+
salesTaxTotal: number;
|
|
3408
|
+
totalAmount: number;
|
|
3321
3409
|
}[];
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
readonly product: string;
|
|
3335
|
-
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
3336
|
-
readonly unitPrice: number;
|
|
3410
|
+
}> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
|
|
3411
|
+
invoiceNumber: string;
|
|
3412
|
+
customer: null;
|
|
3413
|
+
email: string;
|
|
3414
|
+
address: string;
|
|
3415
|
+
lineItems: {
|
|
3416
|
+
product: string;
|
|
3417
|
+
description: string;
|
|
3418
|
+
unitPrice: number;
|
|
3419
|
+
quantity: BD.BigDecimal;
|
|
3420
|
+
amount: number;
|
|
3421
|
+
isTaxable: boolean;
|
|
3337
3422
|
}[];
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
readonly
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
readonly
|
|
3350
|
-
readonly
|
|
3351
|
-
readonly
|
|
3352
|
-
|
|
3423
|
+
} | {
|
|
3424
|
+
invoiceNumber: string | null;
|
|
3425
|
+
customer: {
|
|
3426
|
+
readonly id: string;
|
|
3427
|
+
readonly externalId: string | null;
|
|
3428
|
+
readonly individualName: string | null;
|
|
3429
|
+
readonly companyName: string | null;
|
|
3430
|
+
readonly email: string | null;
|
|
3431
|
+
readonly mobilePhone: string | null;
|
|
3432
|
+
readonly officePhone: string | null;
|
|
3433
|
+
readonly addressString: string | null;
|
|
3434
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
3435
|
+
readonly memo: string | null;
|
|
3436
|
+
readonly _local?: {
|
|
3437
|
+
readonly isOptimistic: boolean;
|
|
3438
|
+
} | undefined;
|
|
3439
|
+
} | null;
|
|
3440
|
+
email: string | null | undefined;
|
|
3441
|
+
address: string | null | undefined;
|
|
3442
|
+
lineItems: {
|
|
3443
|
+
amount: number;
|
|
3444
|
+
isTaxable: boolean;
|
|
3445
|
+
id: string;
|
|
3446
|
+
externalId: string | null;
|
|
3447
|
+
memo: string | null;
|
|
3448
|
+
description: string | null;
|
|
3449
|
+
product: string | null;
|
|
3450
|
+
subtotal: number;
|
|
3451
|
+
quantity: BD.BigDecimal;
|
|
3452
|
+
invoiceId: string;
|
|
3453
|
+
unitPrice: number;
|
|
3454
|
+
discountAmount: number;
|
|
3455
|
+
salesTaxTotal: number;
|
|
3456
|
+
totalAmount: number;
|
|
3353
3457
|
}[];
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
readonly product: string;
|
|
3367
|
-
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
3368
|
-
readonly unitPrice: number;
|
|
3458
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
3459
|
+
invoiceNumber: string;
|
|
3460
|
+
customer: null;
|
|
3461
|
+
email: string;
|
|
3462
|
+
address: string;
|
|
3463
|
+
lineItems: {
|
|
3464
|
+
product: string;
|
|
3465
|
+
description: string;
|
|
3466
|
+
unitPrice: number;
|
|
3467
|
+
quantity: BD.BigDecimal;
|
|
3468
|
+
amount: number;
|
|
3469
|
+
isTaxable: boolean;
|
|
3369
3470
|
}[];
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
readonly
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
readonly
|
|
3382
|
-
readonly
|
|
3383
|
-
readonly
|
|
3384
|
-
|
|
3471
|
+
} | {
|
|
3472
|
+
invoiceNumber: string | null;
|
|
3473
|
+
customer: {
|
|
3474
|
+
readonly id: string;
|
|
3475
|
+
readonly externalId: string | null;
|
|
3476
|
+
readonly individualName: string | null;
|
|
3477
|
+
readonly companyName: string | null;
|
|
3478
|
+
readonly email: string | null;
|
|
3479
|
+
readonly mobilePhone: string | null;
|
|
3480
|
+
readonly officePhone: string | null;
|
|
3481
|
+
readonly addressString: string | null;
|
|
3482
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
3483
|
+
readonly memo: string | null;
|
|
3484
|
+
readonly _local?: {
|
|
3485
|
+
readonly isOptimistic: boolean;
|
|
3486
|
+
} | undefined;
|
|
3487
|
+
} | null;
|
|
3488
|
+
email: string | null | undefined;
|
|
3489
|
+
address: string | null | undefined;
|
|
3490
|
+
lineItems: {
|
|
3491
|
+
amount: number;
|
|
3492
|
+
isTaxable: boolean;
|
|
3493
|
+
id: string;
|
|
3494
|
+
externalId: string | null;
|
|
3495
|
+
memo: string | null;
|
|
3496
|
+
description: string | null;
|
|
3497
|
+
product: string | null;
|
|
3498
|
+
subtotal: number;
|
|
3499
|
+
quantity: BD.BigDecimal;
|
|
3500
|
+
invoiceId: string;
|
|
3501
|
+
unitPrice: number;
|
|
3502
|
+
discountAmount: number;
|
|
3503
|
+
salesTaxTotal: number;
|
|
3504
|
+
totalAmount: number;
|
|
3385
3505
|
}[];
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
readonly product: string;
|
|
3399
|
-
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
3400
|
-
readonly unitPrice: number;
|
|
3506
|
+
}> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
|
|
3507
|
+
invoiceNumber: string;
|
|
3508
|
+
customer: null;
|
|
3509
|
+
email: string;
|
|
3510
|
+
address: string;
|
|
3511
|
+
lineItems: {
|
|
3512
|
+
product: string;
|
|
3513
|
+
description: string;
|
|
3514
|
+
unitPrice: number;
|
|
3515
|
+
quantity: BD.BigDecimal;
|
|
3516
|
+
amount: number;
|
|
3517
|
+
isTaxable: boolean;
|
|
3401
3518
|
}[];
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
readonly
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
readonly
|
|
3414
|
-
readonly
|
|
3415
|
-
readonly
|
|
3416
|
-
|
|
3519
|
+
} | {
|
|
3520
|
+
invoiceNumber: string | null;
|
|
3521
|
+
customer: {
|
|
3522
|
+
readonly id: string;
|
|
3523
|
+
readonly externalId: string | null;
|
|
3524
|
+
readonly individualName: string | null;
|
|
3525
|
+
readonly companyName: string | null;
|
|
3526
|
+
readonly email: string | null;
|
|
3527
|
+
readonly mobilePhone: string | null;
|
|
3528
|
+
readonly officePhone: string | null;
|
|
3529
|
+
readonly addressString: string | null;
|
|
3530
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
3531
|
+
readonly memo: string | null;
|
|
3532
|
+
readonly _local?: {
|
|
3533
|
+
readonly isOptimistic: boolean;
|
|
3534
|
+
} | undefined;
|
|
3535
|
+
} | null;
|
|
3536
|
+
email: string | null | undefined;
|
|
3537
|
+
address: string | null | undefined;
|
|
3538
|
+
lineItems: {
|
|
3539
|
+
amount: number;
|
|
3540
|
+
isTaxable: boolean;
|
|
3541
|
+
id: string;
|
|
3542
|
+
externalId: string | null;
|
|
3543
|
+
memo: string | null;
|
|
3544
|
+
description: string | null;
|
|
3545
|
+
product: string | null;
|
|
3546
|
+
subtotal: number;
|
|
3547
|
+
quantity: BD.BigDecimal;
|
|
3548
|
+
invoiceId: string;
|
|
3549
|
+
unitPrice: number;
|
|
3550
|
+
discountAmount: number;
|
|
3551
|
+
salesTaxTotal: number;
|
|
3552
|
+
totalAmount: number;
|
|
3553
|
+
}[];
|
|
3554
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
3555
|
+
invoiceNumber: string;
|
|
3556
|
+
customer: null;
|
|
3557
|
+
email: string;
|
|
3558
|
+
address: string;
|
|
3559
|
+
lineItems: {
|
|
3560
|
+
product: string;
|
|
3561
|
+
description: string;
|
|
3562
|
+
unitPrice: number;
|
|
3563
|
+
quantity: BD.BigDecimal;
|
|
3564
|
+
amount: number;
|
|
3565
|
+
isTaxable: boolean;
|
|
3566
|
+
}[];
|
|
3567
|
+
} | {
|
|
3568
|
+
invoiceNumber: string | null;
|
|
3569
|
+
customer: {
|
|
3570
|
+
readonly id: string;
|
|
3571
|
+
readonly externalId: string | null;
|
|
3572
|
+
readonly individualName: string | null;
|
|
3573
|
+
readonly companyName: string | null;
|
|
3574
|
+
readonly email: string | null;
|
|
3575
|
+
readonly mobilePhone: string | null;
|
|
3576
|
+
readonly officePhone: string | null;
|
|
3577
|
+
readonly addressString: string | null;
|
|
3578
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
3579
|
+
readonly memo: string | null;
|
|
3580
|
+
readonly _local?: {
|
|
3581
|
+
readonly isOptimistic: boolean;
|
|
3582
|
+
} | undefined;
|
|
3583
|
+
} | null;
|
|
3584
|
+
email: string | null | undefined;
|
|
3585
|
+
address: string | null | undefined;
|
|
3586
|
+
lineItems: {
|
|
3587
|
+
amount: number;
|
|
3588
|
+
isTaxable: boolean;
|
|
3589
|
+
id: string;
|
|
3590
|
+
externalId: string | null;
|
|
3591
|
+
memo: string | null;
|
|
3592
|
+
description: string | null;
|
|
3593
|
+
product: string | null;
|
|
3594
|
+
subtotal: number;
|
|
3595
|
+
quantity: BD.BigDecimal;
|
|
3596
|
+
invoiceId: string;
|
|
3597
|
+
unitPrice: number;
|
|
3598
|
+
discountAmount: number;
|
|
3599
|
+
salesTaxTotal: number;
|
|
3600
|
+
totalAmount: number;
|
|
3601
|
+
}[];
|
|
3602
|
+
}> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
|
|
3603
|
+
invoiceNumber: string;
|
|
3604
|
+
customer: null;
|
|
3605
|
+
email: string;
|
|
3606
|
+
address: string;
|
|
3607
|
+
lineItems: {
|
|
3608
|
+
product: string;
|
|
3609
|
+
description: string;
|
|
3610
|
+
unitPrice: number;
|
|
3611
|
+
quantity: BD.BigDecimal;
|
|
3612
|
+
amount: number;
|
|
3613
|
+
isTaxable: boolean;
|
|
3614
|
+
}[];
|
|
3615
|
+
} | {
|
|
3616
|
+
invoiceNumber: string | null;
|
|
3617
|
+
customer: {
|
|
3618
|
+
readonly id: string;
|
|
3619
|
+
readonly externalId: string | null;
|
|
3620
|
+
readonly individualName: string | null;
|
|
3621
|
+
readonly companyName: string | null;
|
|
3622
|
+
readonly email: string | null;
|
|
3623
|
+
readonly mobilePhone: string | null;
|
|
3624
|
+
readonly officePhone: string | null;
|
|
3625
|
+
readonly addressString: string | null;
|
|
3626
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
3627
|
+
readonly memo: string | null;
|
|
3628
|
+
readonly _local?: {
|
|
3629
|
+
readonly isOptimistic: boolean;
|
|
3630
|
+
} | undefined;
|
|
3631
|
+
} | null;
|
|
3632
|
+
email: string | null | undefined;
|
|
3633
|
+
address: string | null | undefined;
|
|
3634
|
+
lineItems: {
|
|
3635
|
+
amount: number;
|
|
3636
|
+
isTaxable: boolean;
|
|
3637
|
+
id: string;
|
|
3638
|
+
externalId: string | null;
|
|
3639
|
+
memo: string | null;
|
|
3640
|
+
description: string | null;
|
|
3641
|
+
product: string | null;
|
|
3642
|
+
subtotal: number;
|
|
3643
|
+
quantity: BD.BigDecimal;
|
|
3644
|
+
invoiceId: string;
|
|
3645
|
+
unitPrice: number;
|
|
3646
|
+
discountAmount: number;
|
|
3647
|
+
salesTaxTotal: number;
|
|
3648
|
+
totalAmount: number;
|
|
3649
|
+
}[];
|
|
3650
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
3651
|
+
invoiceNumber: string;
|
|
3652
|
+
customer: null;
|
|
3653
|
+
email: string;
|
|
3654
|
+
address: string;
|
|
3655
|
+
lineItems: {
|
|
3656
|
+
product: string;
|
|
3657
|
+
description: string;
|
|
3658
|
+
unitPrice: number;
|
|
3659
|
+
quantity: BD.BigDecimal;
|
|
3660
|
+
amount: number;
|
|
3661
|
+
isTaxable: boolean;
|
|
3662
|
+
}[];
|
|
3663
|
+
} | {
|
|
3664
|
+
invoiceNumber: string | null;
|
|
3665
|
+
customer: {
|
|
3666
|
+
readonly id: string;
|
|
3667
|
+
readonly externalId: string | null;
|
|
3668
|
+
readonly individualName: string | null;
|
|
3669
|
+
readonly companyName: string | null;
|
|
3670
|
+
readonly email: string | null;
|
|
3671
|
+
readonly mobilePhone: string | null;
|
|
3672
|
+
readonly officePhone: string | null;
|
|
3673
|
+
readonly addressString: string | null;
|
|
3674
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
3675
|
+
readonly memo: string | null;
|
|
3676
|
+
readonly _local?: {
|
|
3677
|
+
readonly isOptimistic: boolean;
|
|
3678
|
+
} | undefined;
|
|
3679
|
+
} | null;
|
|
3680
|
+
email: string | null | undefined;
|
|
3681
|
+
address: string | null | undefined;
|
|
3682
|
+
lineItems: {
|
|
3683
|
+
amount: number;
|
|
3684
|
+
isTaxable: boolean;
|
|
3685
|
+
id: string;
|
|
3686
|
+
externalId: string | null;
|
|
3687
|
+
memo: string | null;
|
|
3688
|
+
description: string | null;
|
|
3689
|
+
product: string | null;
|
|
3690
|
+
subtotal: number;
|
|
3691
|
+
quantity: BD.BigDecimal;
|
|
3692
|
+
invoiceId: string;
|
|
3693
|
+
unitPrice: number;
|
|
3694
|
+
discountAmount: number;
|
|
3695
|
+
salesTaxTotal: number;
|
|
3696
|
+
totalAmount: number;
|
|
3697
|
+
}[];
|
|
3698
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
3699
|
+
invoiceNumber: string;
|
|
3700
|
+
customer: null;
|
|
3701
|
+
email: string;
|
|
3702
|
+
address: string;
|
|
3703
|
+
lineItems: {
|
|
3704
|
+
product: string;
|
|
3705
|
+
description: string;
|
|
3706
|
+
unitPrice: number;
|
|
3707
|
+
quantity: BD.BigDecimal;
|
|
3708
|
+
amount: number;
|
|
3709
|
+
isTaxable: boolean;
|
|
3710
|
+
}[];
|
|
3711
|
+
} | {
|
|
3712
|
+
invoiceNumber: string | null;
|
|
3713
|
+
customer: {
|
|
3714
|
+
readonly id: string;
|
|
3715
|
+
readonly externalId: string | null;
|
|
3716
|
+
readonly individualName: string | null;
|
|
3717
|
+
readonly companyName: string | null;
|
|
3718
|
+
readonly email: string | null;
|
|
3719
|
+
readonly mobilePhone: string | null;
|
|
3720
|
+
readonly officePhone: string | null;
|
|
3721
|
+
readonly addressString: string | null;
|
|
3722
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
3723
|
+
readonly memo: string | null;
|
|
3724
|
+
readonly _local?: {
|
|
3725
|
+
readonly isOptimistic: boolean;
|
|
3726
|
+
} | undefined;
|
|
3727
|
+
} | null;
|
|
3728
|
+
email: string | null | undefined;
|
|
3729
|
+
address: string | null | undefined;
|
|
3730
|
+
lineItems: {
|
|
3731
|
+
amount: number;
|
|
3732
|
+
isTaxable: boolean;
|
|
3733
|
+
id: string;
|
|
3734
|
+
externalId: string | null;
|
|
3735
|
+
memo: string | null;
|
|
3736
|
+
description: string | null;
|
|
3737
|
+
product: string | null;
|
|
3738
|
+
subtotal: number;
|
|
3739
|
+
quantity: BD.BigDecimal;
|
|
3740
|
+
invoiceId: string;
|
|
3741
|
+
unitPrice: number;
|
|
3742
|
+
discountAmount: number;
|
|
3743
|
+
salesTaxTotal: number;
|
|
3744
|
+
totalAmount: number;
|
|
3745
|
+
}[];
|
|
3746
|
+
}> | undefined, unknown> & import("@tanstack/react-form").ReactFormApi<{
|
|
3747
|
+
invoiceNumber: string;
|
|
3748
|
+
customer: null;
|
|
3749
|
+
email: string;
|
|
3750
|
+
address: string;
|
|
3751
|
+
lineItems: {
|
|
3752
|
+
product: string;
|
|
3753
|
+
description: string;
|
|
3754
|
+
unitPrice: number;
|
|
3755
|
+
quantity: BD.BigDecimal;
|
|
3756
|
+
amount: number;
|
|
3757
|
+
isTaxable: boolean;
|
|
3758
|
+
}[];
|
|
3759
|
+
} | {
|
|
3760
|
+
invoiceNumber: string | null;
|
|
3761
|
+
customer: {
|
|
3762
|
+
readonly id: string;
|
|
3763
|
+
readonly externalId: string | null;
|
|
3764
|
+
readonly individualName: string | null;
|
|
3765
|
+
readonly companyName: string | null;
|
|
3766
|
+
readonly email: string | null;
|
|
3767
|
+
readonly mobilePhone: string | null;
|
|
3768
|
+
readonly officePhone: string | null;
|
|
3769
|
+
readonly addressString: string | null;
|
|
3770
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
3771
|
+
readonly memo: string | null;
|
|
3772
|
+
readonly _local?: {
|
|
3773
|
+
readonly isOptimistic: boolean;
|
|
3774
|
+
} | undefined;
|
|
3775
|
+
} | null;
|
|
3776
|
+
email: string | null | undefined;
|
|
3777
|
+
address: string | null | undefined;
|
|
3778
|
+
lineItems: {
|
|
3779
|
+
amount: number;
|
|
3780
|
+
isTaxable: boolean;
|
|
3781
|
+
id: string;
|
|
3782
|
+
externalId: string | null;
|
|
3783
|
+
memo: string | null;
|
|
3784
|
+
description: string | null;
|
|
3785
|
+
product: string | null;
|
|
3786
|
+
subtotal: number;
|
|
3787
|
+
quantity: BD.BigDecimal;
|
|
3788
|
+
invoiceId: string;
|
|
3789
|
+
unitPrice: number;
|
|
3790
|
+
discountAmount: number;
|
|
3791
|
+
salesTaxTotal: number;
|
|
3792
|
+
totalAmount: number;
|
|
3793
|
+
}[];
|
|
3794
|
+
}, import("@tanstack/react-form").FormValidateOrFn<{
|
|
3795
|
+
invoiceNumber: string;
|
|
3796
|
+
customer: null;
|
|
3797
|
+
email: string;
|
|
3798
|
+
address: string;
|
|
3799
|
+
lineItems: {
|
|
3800
|
+
product: string;
|
|
3801
|
+
description: string;
|
|
3802
|
+
unitPrice: number;
|
|
3803
|
+
quantity: BD.BigDecimal;
|
|
3804
|
+
amount: number;
|
|
3805
|
+
isTaxable: boolean;
|
|
3806
|
+
}[];
|
|
3807
|
+
} | {
|
|
3808
|
+
invoiceNumber: string | null;
|
|
3809
|
+
customer: {
|
|
3810
|
+
readonly id: string;
|
|
3811
|
+
readonly externalId: string | null;
|
|
3812
|
+
readonly individualName: string | null;
|
|
3813
|
+
readonly companyName: string | null;
|
|
3814
|
+
readonly email: string | null;
|
|
3815
|
+
readonly mobilePhone: string | null;
|
|
3816
|
+
readonly officePhone: string | null;
|
|
3817
|
+
readonly addressString: string | null;
|
|
3818
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
3819
|
+
readonly memo: string | null;
|
|
3820
|
+
readonly _local?: {
|
|
3821
|
+
readonly isOptimistic: boolean;
|
|
3822
|
+
} | undefined;
|
|
3823
|
+
} | null;
|
|
3824
|
+
email: string | null | undefined;
|
|
3825
|
+
address: string | null | undefined;
|
|
3826
|
+
lineItems: {
|
|
3827
|
+
amount: number;
|
|
3828
|
+
isTaxable: boolean;
|
|
3829
|
+
id: string;
|
|
3830
|
+
externalId: string | null;
|
|
3831
|
+
memo: string | null;
|
|
3832
|
+
description: string | null;
|
|
3833
|
+
product: string | null;
|
|
3834
|
+
subtotal: number;
|
|
3835
|
+
quantity: BD.BigDecimal;
|
|
3836
|
+
invoiceId: string;
|
|
3837
|
+
unitPrice: number;
|
|
3838
|
+
discountAmount: number;
|
|
3839
|
+
salesTaxTotal: number;
|
|
3840
|
+
totalAmount: number;
|
|
3841
|
+
}[];
|
|
3842
|
+
}> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
|
|
3843
|
+
invoiceNumber: string;
|
|
3844
|
+
customer: null;
|
|
3845
|
+
email: string;
|
|
3846
|
+
address: string;
|
|
3847
|
+
lineItems: {
|
|
3848
|
+
product: string;
|
|
3849
|
+
description: string;
|
|
3850
|
+
unitPrice: number;
|
|
3851
|
+
quantity: BD.BigDecimal;
|
|
3852
|
+
amount: number;
|
|
3853
|
+
isTaxable: boolean;
|
|
3854
|
+
}[];
|
|
3855
|
+
} | {
|
|
3856
|
+
invoiceNumber: string | null;
|
|
3857
|
+
customer: {
|
|
3858
|
+
readonly id: string;
|
|
3859
|
+
readonly externalId: string | null;
|
|
3860
|
+
readonly individualName: string | null;
|
|
3861
|
+
readonly companyName: string | null;
|
|
3862
|
+
readonly email: string | null;
|
|
3863
|
+
readonly mobilePhone: string | null;
|
|
3864
|
+
readonly officePhone: string | null;
|
|
3865
|
+
readonly addressString: string | null;
|
|
3866
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
3867
|
+
readonly memo: string | null;
|
|
3868
|
+
readonly _local?: {
|
|
3869
|
+
readonly isOptimistic: boolean;
|
|
3870
|
+
} | undefined;
|
|
3871
|
+
} | null;
|
|
3872
|
+
email: string | null | undefined;
|
|
3873
|
+
address: string | null | undefined;
|
|
3874
|
+
lineItems: {
|
|
3875
|
+
amount: number;
|
|
3876
|
+
isTaxable: boolean;
|
|
3877
|
+
id: string;
|
|
3878
|
+
externalId: string | null;
|
|
3879
|
+
memo: string | null;
|
|
3880
|
+
description: string | null;
|
|
3881
|
+
product: string | null;
|
|
3882
|
+
subtotal: number;
|
|
3883
|
+
quantity: BD.BigDecimal;
|
|
3884
|
+
invoiceId: string;
|
|
3885
|
+
unitPrice: number;
|
|
3886
|
+
discountAmount: number;
|
|
3887
|
+
salesTaxTotal: number;
|
|
3888
|
+
totalAmount: number;
|
|
3889
|
+
}[];
|
|
3890
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
3891
|
+
invoiceNumber: string;
|
|
3892
|
+
customer: null;
|
|
3893
|
+
email: string;
|
|
3894
|
+
address: string;
|
|
3895
|
+
lineItems: {
|
|
3896
|
+
product: string;
|
|
3897
|
+
description: string;
|
|
3898
|
+
unitPrice: number;
|
|
3899
|
+
quantity: BD.BigDecimal;
|
|
3900
|
+
amount: number;
|
|
3901
|
+
isTaxable: boolean;
|
|
3902
|
+
}[];
|
|
3903
|
+
} | {
|
|
3904
|
+
invoiceNumber: string | null;
|
|
3905
|
+
customer: {
|
|
3906
|
+
readonly id: string;
|
|
3907
|
+
readonly externalId: string | null;
|
|
3908
|
+
readonly individualName: string | null;
|
|
3909
|
+
readonly companyName: string | null;
|
|
3910
|
+
readonly email: string | null;
|
|
3911
|
+
readonly mobilePhone: string | null;
|
|
3912
|
+
readonly officePhone: string | null;
|
|
3913
|
+
readonly addressString: string | null;
|
|
3914
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
3915
|
+
readonly memo: string | null;
|
|
3916
|
+
readonly _local?: {
|
|
3917
|
+
readonly isOptimistic: boolean;
|
|
3918
|
+
} | undefined;
|
|
3919
|
+
} | null;
|
|
3920
|
+
email: string | null | undefined;
|
|
3921
|
+
address: string | null | undefined;
|
|
3922
|
+
lineItems: {
|
|
3923
|
+
amount: number;
|
|
3924
|
+
isTaxable: boolean;
|
|
3925
|
+
id: string;
|
|
3926
|
+
externalId: string | null;
|
|
3927
|
+
memo: string | null;
|
|
3928
|
+
description: string | null;
|
|
3929
|
+
product: string | null;
|
|
3930
|
+
subtotal: number;
|
|
3931
|
+
quantity: BD.BigDecimal;
|
|
3932
|
+
invoiceId: string;
|
|
3933
|
+
unitPrice: number;
|
|
3934
|
+
discountAmount: number;
|
|
3935
|
+
salesTaxTotal: number;
|
|
3936
|
+
totalAmount: number;
|
|
3937
|
+
}[];
|
|
3938
|
+
}> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
|
|
3939
|
+
invoiceNumber: string;
|
|
3940
|
+
customer: null;
|
|
3941
|
+
email: string;
|
|
3942
|
+
address: string;
|
|
3943
|
+
lineItems: {
|
|
3944
|
+
product: string;
|
|
3945
|
+
description: string;
|
|
3946
|
+
unitPrice: number;
|
|
3947
|
+
quantity: BD.BigDecimal;
|
|
3948
|
+
amount: number;
|
|
3949
|
+
isTaxable: boolean;
|
|
3950
|
+
}[];
|
|
3951
|
+
} | {
|
|
3952
|
+
invoiceNumber: string | null;
|
|
3953
|
+
customer: {
|
|
3954
|
+
readonly id: string;
|
|
3955
|
+
readonly externalId: string | null;
|
|
3956
|
+
readonly individualName: string | null;
|
|
3957
|
+
readonly companyName: string | null;
|
|
3958
|
+
readonly email: string | null;
|
|
3959
|
+
readonly mobilePhone: string | null;
|
|
3960
|
+
readonly officePhone: string | null;
|
|
3961
|
+
readonly addressString: string | null;
|
|
3962
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
3963
|
+
readonly memo: string | null;
|
|
3964
|
+
readonly _local?: {
|
|
3965
|
+
readonly isOptimistic: boolean;
|
|
3966
|
+
} | undefined;
|
|
3967
|
+
} | null;
|
|
3968
|
+
email: string | null | undefined;
|
|
3969
|
+
address: string | null | undefined;
|
|
3970
|
+
lineItems: {
|
|
3971
|
+
amount: number;
|
|
3972
|
+
isTaxable: boolean;
|
|
3973
|
+
id: string;
|
|
3974
|
+
externalId: string | null;
|
|
3975
|
+
memo: string | null;
|
|
3976
|
+
description: string | null;
|
|
3977
|
+
product: string | null;
|
|
3978
|
+
subtotal: number;
|
|
3979
|
+
quantity: BD.BigDecimal;
|
|
3980
|
+
invoiceId: string;
|
|
3981
|
+
unitPrice: number;
|
|
3982
|
+
discountAmount: number;
|
|
3983
|
+
salesTaxTotal: number;
|
|
3984
|
+
totalAmount: number;
|
|
3985
|
+
}[];
|
|
3986
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
3987
|
+
invoiceNumber: string;
|
|
3988
|
+
customer: null;
|
|
3989
|
+
email: string;
|
|
3990
|
+
address: string;
|
|
3991
|
+
lineItems: {
|
|
3992
|
+
product: string;
|
|
3993
|
+
description: string;
|
|
3994
|
+
unitPrice: number;
|
|
3995
|
+
quantity: BD.BigDecimal;
|
|
3996
|
+
amount: number;
|
|
3997
|
+
isTaxable: boolean;
|
|
3998
|
+
}[];
|
|
3999
|
+
} | {
|
|
4000
|
+
invoiceNumber: string | null;
|
|
4001
|
+
customer: {
|
|
4002
|
+
readonly id: string;
|
|
4003
|
+
readonly externalId: string | null;
|
|
4004
|
+
readonly individualName: string | null;
|
|
4005
|
+
readonly companyName: string | null;
|
|
4006
|
+
readonly email: string | null;
|
|
4007
|
+
readonly mobilePhone: string | null;
|
|
4008
|
+
readonly officePhone: string | null;
|
|
4009
|
+
readonly addressString: string | null;
|
|
4010
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
4011
|
+
readonly memo: string | null;
|
|
4012
|
+
readonly _local?: {
|
|
4013
|
+
readonly isOptimistic: boolean;
|
|
4014
|
+
} | undefined;
|
|
4015
|
+
} | null;
|
|
4016
|
+
email: string | null | undefined;
|
|
4017
|
+
address: string | null | undefined;
|
|
4018
|
+
lineItems: {
|
|
4019
|
+
amount: number;
|
|
4020
|
+
isTaxable: boolean;
|
|
4021
|
+
id: string;
|
|
4022
|
+
externalId: string | null;
|
|
4023
|
+
memo: string | null;
|
|
4024
|
+
description: string | null;
|
|
4025
|
+
product: string | null;
|
|
4026
|
+
subtotal: number;
|
|
4027
|
+
quantity: BD.BigDecimal;
|
|
4028
|
+
invoiceId: string;
|
|
4029
|
+
unitPrice: number;
|
|
4030
|
+
discountAmount: number;
|
|
4031
|
+
salesTaxTotal: number;
|
|
4032
|
+
totalAmount: number;
|
|
4033
|
+
}[];
|
|
4034
|
+
}> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
|
|
4035
|
+
invoiceNumber: string;
|
|
4036
|
+
customer: null;
|
|
4037
|
+
email: string;
|
|
4038
|
+
address: string;
|
|
4039
|
+
lineItems: {
|
|
4040
|
+
product: string;
|
|
4041
|
+
description: string;
|
|
4042
|
+
unitPrice: number;
|
|
4043
|
+
quantity: BD.BigDecimal;
|
|
4044
|
+
amount: number;
|
|
4045
|
+
isTaxable: boolean;
|
|
4046
|
+
}[];
|
|
4047
|
+
} | {
|
|
4048
|
+
invoiceNumber: string | null;
|
|
4049
|
+
customer: {
|
|
4050
|
+
readonly id: string;
|
|
4051
|
+
readonly externalId: string | null;
|
|
4052
|
+
readonly individualName: string | null;
|
|
4053
|
+
readonly companyName: string | null;
|
|
4054
|
+
readonly email: string | null;
|
|
4055
|
+
readonly mobilePhone: string | null;
|
|
4056
|
+
readonly officePhone: string | null;
|
|
4057
|
+
readonly addressString: string | null;
|
|
4058
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
4059
|
+
readonly memo: string | null;
|
|
4060
|
+
readonly _local?: {
|
|
4061
|
+
readonly isOptimistic: boolean;
|
|
4062
|
+
} | undefined;
|
|
4063
|
+
} | null;
|
|
4064
|
+
email: string | null | undefined;
|
|
4065
|
+
address: string | null | undefined;
|
|
4066
|
+
lineItems: {
|
|
4067
|
+
amount: number;
|
|
4068
|
+
isTaxable: boolean;
|
|
4069
|
+
id: string;
|
|
4070
|
+
externalId: string | null;
|
|
4071
|
+
memo: string | null;
|
|
4072
|
+
description: string | null;
|
|
4073
|
+
product: string | null;
|
|
4074
|
+
subtotal: number;
|
|
4075
|
+
quantity: BD.BigDecimal;
|
|
4076
|
+
invoiceId: string;
|
|
4077
|
+
unitPrice: number;
|
|
4078
|
+
discountAmount: number;
|
|
4079
|
+
salesTaxTotal: number;
|
|
4080
|
+
totalAmount: number;
|
|
4081
|
+
}[];
|
|
4082
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
4083
|
+
invoiceNumber: string;
|
|
4084
|
+
customer: null;
|
|
4085
|
+
email: string;
|
|
4086
|
+
address: string;
|
|
4087
|
+
lineItems: {
|
|
4088
|
+
product: string;
|
|
4089
|
+
description: string;
|
|
4090
|
+
unitPrice: number;
|
|
4091
|
+
quantity: BD.BigDecimal;
|
|
4092
|
+
amount: number;
|
|
4093
|
+
isTaxable: boolean;
|
|
4094
|
+
}[];
|
|
4095
|
+
} | {
|
|
4096
|
+
invoiceNumber: string | null;
|
|
4097
|
+
customer: {
|
|
4098
|
+
readonly id: string;
|
|
4099
|
+
readonly externalId: string | null;
|
|
4100
|
+
readonly individualName: string | null;
|
|
4101
|
+
readonly companyName: string | null;
|
|
4102
|
+
readonly email: string | null;
|
|
4103
|
+
readonly mobilePhone: string | null;
|
|
4104
|
+
readonly officePhone: string | null;
|
|
4105
|
+
readonly addressString: string | null;
|
|
4106
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
4107
|
+
readonly memo: string | null;
|
|
4108
|
+
readonly _local?: {
|
|
4109
|
+
readonly isOptimistic: boolean;
|
|
4110
|
+
} | undefined;
|
|
4111
|
+
} | null;
|
|
4112
|
+
email: string | null | undefined;
|
|
4113
|
+
address: string | null | undefined;
|
|
4114
|
+
lineItems: {
|
|
4115
|
+
amount: number;
|
|
4116
|
+
isTaxable: boolean;
|
|
4117
|
+
id: string;
|
|
4118
|
+
externalId: string | null;
|
|
4119
|
+
memo: string | null;
|
|
4120
|
+
description: string | null;
|
|
4121
|
+
product: string | null;
|
|
4122
|
+
subtotal: number;
|
|
4123
|
+
quantity: BD.BigDecimal;
|
|
4124
|
+
invoiceId: string;
|
|
4125
|
+
unitPrice: number;
|
|
4126
|
+
discountAmount: number;
|
|
4127
|
+
salesTaxTotal: number;
|
|
4128
|
+
totalAmount: number;
|
|
3417
4129
|
}[];
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
4130
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
4131
|
+
invoiceNumber: string;
|
|
4132
|
+
customer: null;
|
|
4133
|
+
email: string;
|
|
4134
|
+
address: string;
|
|
4135
|
+
lineItems: {
|
|
4136
|
+
product: string;
|
|
4137
|
+
description: string;
|
|
4138
|
+
unitPrice: number;
|
|
4139
|
+
quantity: BD.BigDecimal;
|
|
4140
|
+
amount: number;
|
|
4141
|
+
isTaxable: boolean;
|
|
4142
|
+
}[];
|
|
4143
|
+
} | {
|
|
4144
|
+
invoiceNumber: string | null;
|
|
4145
|
+
customer: {
|
|
4146
|
+
readonly id: string;
|
|
4147
|
+
readonly externalId: string | null;
|
|
4148
|
+
readonly individualName: string | null;
|
|
4149
|
+
readonly companyName: string | null;
|
|
4150
|
+
readonly email: string | null;
|
|
4151
|
+
readonly mobilePhone: string | null;
|
|
4152
|
+
readonly officePhone: string | null;
|
|
4153
|
+
readonly addressString: string | null;
|
|
4154
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
4155
|
+
readonly memo: string | null;
|
|
4156
|
+
readonly _local?: {
|
|
4157
|
+
readonly isOptimistic: boolean;
|
|
4158
|
+
} | undefined;
|
|
4159
|
+
} | null;
|
|
4160
|
+
email: string | null | undefined;
|
|
4161
|
+
address: string | null | undefined;
|
|
4162
|
+
lineItems: {
|
|
4163
|
+
amount: number;
|
|
4164
|
+
isTaxable: boolean;
|
|
4165
|
+
id: string;
|
|
4166
|
+
externalId: string | null;
|
|
4167
|
+
memo: string | null;
|
|
4168
|
+
description: string | null;
|
|
4169
|
+
product: string | null;
|
|
4170
|
+
subtotal: number;
|
|
4171
|
+
quantity: BD.BigDecimal;
|
|
4172
|
+
invoiceId: string;
|
|
4173
|
+
unitPrice: number;
|
|
4174
|
+
discountAmount: number;
|
|
4175
|
+
salesTaxTotal: number;
|
|
4176
|
+
totalAmount: number;
|
|
4177
|
+
}[];
|
|
4178
|
+
}> | undefined, unknown> & {
|
|
4179
|
+
AppField: import("@tanstack/react-form").FieldComponent<{
|
|
4180
|
+
invoiceNumber: string;
|
|
4181
|
+
customer: null;
|
|
4182
|
+
email: string;
|
|
4183
|
+
address: string;
|
|
4184
|
+
lineItems: {
|
|
4185
|
+
product: string;
|
|
4186
|
+
description: string;
|
|
4187
|
+
unitPrice: number;
|
|
4188
|
+
quantity: BD.BigDecimal;
|
|
4189
|
+
amount: number;
|
|
4190
|
+
isTaxable: boolean;
|
|
4191
|
+
}[];
|
|
4192
|
+
} | {
|
|
4193
|
+
invoiceNumber: string | null;
|
|
4194
|
+
customer: {
|
|
4195
|
+
readonly id: string;
|
|
4196
|
+
readonly externalId: string | null;
|
|
4197
|
+
readonly individualName: string | null;
|
|
4198
|
+
readonly companyName: string | null;
|
|
4199
|
+
readonly email: string | null;
|
|
4200
|
+
readonly mobilePhone: string | null;
|
|
4201
|
+
readonly officePhone: string | null;
|
|
4202
|
+
readonly addressString: string | null;
|
|
4203
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
4204
|
+
readonly memo: string | null;
|
|
4205
|
+
readonly _local?: {
|
|
4206
|
+
readonly isOptimistic: boolean;
|
|
4207
|
+
} | undefined;
|
|
4208
|
+
} | null;
|
|
4209
|
+
email: string | null | undefined;
|
|
4210
|
+
address: string | null | undefined;
|
|
4211
|
+
lineItems: {
|
|
4212
|
+
amount: number;
|
|
4213
|
+
isTaxable: boolean;
|
|
4214
|
+
id: string;
|
|
4215
|
+
externalId: string | null;
|
|
4216
|
+
memo: string | null;
|
|
4217
|
+
description: string | null;
|
|
4218
|
+
product: string | null;
|
|
4219
|
+
subtotal: number;
|
|
4220
|
+
quantity: BD.BigDecimal;
|
|
4221
|
+
invoiceId: string;
|
|
4222
|
+
unitPrice: number;
|
|
4223
|
+
discountAmount: number;
|
|
4224
|
+
salesTaxTotal: number;
|
|
4225
|
+
totalAmount: number;
|
|
4226
|
+
}[];
|
|
4227
|
+
}, import("@tanstack/react-form").FormValidateOrFn<{
|
|
4228
|
+
invoiceNumber: string;
|
|
4229
|
+
customer: null;
|
|
4230
|
+
email: string;
|
|
4231
|
+
address: string;
|
|
4232
|
+
lineItems: {
|
|
4233
|
+
product: string;
|
|
4234
|
+
description: string;
|
|
4235
|
+
unitPrice: number;
|
|
4236
|
+
quantity: BD.BigDecimal;
|
|
4237
|
+
amount: number;
|
|
4238
|
+
isTaxable: boolean;
|
|
4239
|
+
}[];
|
|
4240
|
+
} | {
|
|
4241
|
+
invoiceNumber: string | null;
|
|
4242
|
+
customer: {
|
|
4243
|
+
readonly id: string;
|
|
4244
|
+
readonly externalId: string | null;
|
|
4245
|
+
readonly individualName: string | null;
|
|
4246
|
+
readonly companyName: string | null;
|
|
4247
|
+
readonly email: string | null;
|
|
4248
|
+
readonly mobilePhone: string | null;
|
|
4249
|
+
readonly officePhone: string | null;
|
|
4250
|
+
readonly addressString: string | null;
|
|
4251
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
4252
|
+
readonly memo: string | null;
|
|
4253
|
+
readonly _local?: {
|
|
4254
|
+
readonly isOptimistic: boolean;
|
|
4255
|
+
} | undefined;
|
|
4256
|
+
} | null;
|
|
4257
|
+
email: string | null | undefined;
|
|
4258
|
+
address: string | null | undefined;
|
|
4259
|
+
lineItems: {
|
|
4260
|
+
amount: number;
|
|
4261
|
+
isTaxable: boolean;
|
|
4262
|
+
id: string;
|
|
4263
|
+
externalId: string | null;
|
|
4264
|
+
memo: string | null;
|
|
4265
|
+
description: string | null;
|
|
4266
|
+
product: string | null;
|
|
4267
|
+
subtotal: number;
|
|
4268
|
+
quantity: BD.BigDecimal;
|
|
4269
|
+
invoiceId: string;
|
|
4270
|
+
unitPrice: number;
|
|
4271
|
+
discountAmount: number;
|
|
4272
|
+
salesTaxTotal: number;
|
|
4273
|
+
totalAmount: number;
|
|
4274
|
+
}[];
|
|
4275
|
+
}> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
|
|
4276
|
+
invoiceNumber: string;
|
|
4277
|
+
customer: null;
|
|
4278
|
+
email: string;
|
|
4279
|
+
address: string;
|
|
4280
|
+
lineItems: {
|
|
4281
|
+
product: string;
|
|
4282
|
+
description: string;
|
|
4283
|
+
unitPrice: number;
|
|
4284
|
+
quantity: BD.BigDecimal;
|
|
4285
|
+
amount: number;
|
|
4286
|
+
isTaxable: boolean;
|
|
4287
|
+
}[];
|
|
4288
|
+
} | {
|
|
4289
|
+
invoiceNumber: string | null;
|
|
4290
|
+
customer: {
|
|
4291
|
+
readonly id: string;
|
|
4292
|
+
readonly externalId: string | null;
|
|
4293
|
+
readonly individualName: string | null;
|
|
4294
|
+
readonly companyName: string | null;
|
|
4295
|
+
readonly email: string | null;
|
|
4296
|
+
readonly mobilePhone: string | null;
|
|
4297
|
+
readonly officePhone: string | null;
|
|
4298
|
+
readonly addressString: string | null;
|
|
4299
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
4300
|
+
readonly memo: string | null;
|
|
4301
|
+
readonly _local?: {
|
|
4302
|
+
readonly isOptimistic: boolean;
|
|
4303
|
+
} | undefined;
|
|
4304
|
+
} | null;
|
|
4305
|
+
email: string | null | undefined;
|
|
4306
|
+
address: string | null | undefined;
|
|
4307
|
+
lineItems: {
|
|
4308
|
+
amount: number;
|
|
4309
|
+
isTaxable: boolean;
|
|
4310
|
+
id: string;
|
|
4311
|
+
externalId: string | null;
|
|
4312
|
+
memo: string | null;
|
|
4313
|
+
description: string | null;
|
|
4314
|
+
product: string | null;
|
|
4315
|
+
subtotal: number;
|
|
4316
|
+
quantity: BD.BigDecimal;
|
|
4317
|
+
invoiceId: string;
|
|
4318
|
+
unitPrice: number;
|
|
4319
|
+
discountAmount: number;
|
|
4320
|
+
salesTaxTotal: number;
|
|
4321
|
+
totalAmount: number;
|
|
4322
|
+
}[];
|
|
4323
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
4324
|
+
invoiceNumber: string;
|
|
4325
|
+
customer: null;
|
|
4326
|
+
email: string;
|
|
4327
|
+
address: string;
|
|
4328
|
+
lineItems: {
|
|
4329
|
+
product: string;
|
|
4330
|
+
description: string;
|
|
4331
|
+
unitPrice: number;
|
|
4332
|
+
quantity: BD.BigDecimal;
|
|
4333
|
+
amount: number;
|
|
4334
|
+
isTaxable: boolean;
|
|
4335
|
+
}[];
|
|
4336
|
+
} | {
|
|
4337
|
+
invoiceNumber: string | null;
|
|
4338
|
+
customer: {
|
|
4339
|
+
readonly id: string;
|
|
4340
|
+
readonly externalId: string | null;
|
|
4341
|
+
readonly individualName: string | null;
|
|
4342
|
+
readonly companyName: string | null;
|
|
4343
|
+
readonly email: string | null;
|
|
4344
|
+
readonly mobilePhone: string | null;
|
|
4345
|
+
readonly officePhone: string | null;
|
|
4346
|
+
readonly addressString: string | null;
|
|
4347
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
4348
|
+
readonly memo: string | null;
|
|
4349
|
+
readonly _local?: {
|
|
4350
|
+
readonly isOptimistic: boolean;
|
|
4351
|
+
} | undefined;
|
|
4352
|
+
} | null;
|
|
4353
|
+
email: string | null | undefined;
|
|
4354
|
+
address: string | null | undefined;
|
|
4355
|
+
lineItems: {
|
|
4356
|
+
amount: number;
|
|
4357
|
+
isTaxable: boolean;
|
|
4358
|
+
id: string;
|
|
4359
|
+
externalId: string | null;
|
|
4360
|
+
memo: string | null;
|
|
4361
|
+
description: string | null;
|
|
4362
|
+
product: string | null;
|
|
4363
|
+
subtotal: number;
|
|
4364
|
+
quantity: BD.BigDecimal;
|
|
4365
|
+
invoiceId: string;
|
|
4366
|
+
unitPrice: number;
|
|
4367
|
+
discountAmount: number;
|
|
4368
|
+
salesTaxTotal: number;
|
|
4369
|
+
totalAmount: number;
|
|
4370
|
+
}[];
|
|
4371
|
+
}> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
|
|
4372
|
+
invoiceNumber: string;
|
|
4373
|
+
customer: null;
|
|
4374
|
+
email: string;
|
|
4375
|
+
address: string;
|
|
4376
|
+
lineItems: {
|
|
4377
|
+
product: string;
|
|
4378
|
+
description: string;
|
|
4379
|
+
unitPrice: number;
|
|
4380
|
+
quantity: BD.BigDecimal;
|
|
4381
|
+
amount: number;
|
|
4382
|
+
isTaxable: boolean;
|
|
4383
|
+
}[];
|
|
4384
|
+
} | {
|
|
4385
|
+
invoiceNumber: string | null;
|
|
4386
|
+
customer: {
|
|
4387
|
+
readonly id: string;
|
|
4388
|
+
readonly externalId: string | null;
|
|
4389
|
+
readonly individualName: string | null;
|
|
4390
|
+
readonly companyName: string | null;
|
|
4391
|
+
readonly email: string | null;
|
|
4392
|
+
readonly mobilePhone: string | null;
|
|
4393
|
+
readonly officePhone: string | null;
|
|
4394
|
+
readonly addressString: string | null;
|
|
4395
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
4396
|
+
readonly memo: string | null;
|
|
4397
|
+
readonly _local?: {
|
|
4398
|
+
readonly isOptimistic: boolean;
|
|
4399
|
+
} | undefined;
|
|
4400
|
+
} | null;
|
|
4401
|
+
email: string | null | undefined;
|
|
4402
|
+
address: string | null | undefined;
|
|
4403
|
+
lineItems: {
|
|
4404
|
+
amount: number;
|
|
4405
|
+
isTaxable: boolean;
|
|
4406
|
+
id: string;
|
|
4407
|
+
externalId: string | null;
|
|
4408
|
+
memo: string | null;
|
|
4409
|
+
description: string | null;
|
|
4410
|
+
product: string | null;
|
|
4411
|
+
subtotal: number;
|
|
4412
|
+
quantity: BD.BigDecimal;
|
|
4413
|
+
invoiceId: string;
|
|
4414
|
+
unitPrice: number;
|
|
4415
|
+
discountAmount: number;
|
|
4416
|
+
salesTaxTotal: number;
|
|
4417
|
+
totalAmount: number;
|
|
4418
|
+
}[];
|
|
4419
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
4420
|
+
invoiceNumber: string;
|
|
4421
|
+
customer: null;
|
|
4422
|
+
email: string;
|
|
4423
|
+
address: string;
|
|
4424
|
+
lineItems: {
|
|
4425
|
+
product: string;
|
|
4426
|
+
description: string;
|
|
4427
|
+
unitPrice: number;
|
|
4428
|
+
quantity: BD.BigDecimal;
|
|
4429
|
+
amount: number;
|
|
4430
|
+
isTaxable: boolean;
|
|
4431
|
+
}[];
|
|
4432
|
+
} | {
|
|
4433
|
+
invoiceNumber: string | null;
|
|
4434
|
+
customer: {
|
|
4435
|
+
readonly id: string;
|
|
4436
|
+
readonly externalId: string | null;
|
|
4437
|
+
readonly individualName: string | null;
|
|
4438
|
+
readonly companyName: string | null;
|
|
4439
|
+
readonly email: string | null;
|
|
4440
|
+
readonly mobilePhone: string | null;
|
|
4441
|
+
readonly officePhone: string | null;
|
|
4442
|
+
readonly addressString: string | null;
|
|
4443
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
4444
|
+
readonly memo: string | null;
|
|
4445
|
+
readonly _local?: {
|
|
4446
|
+
readonly isOptimistic: boolean;
|
|
4447
|
+
} | undefined;
|
|
4448
|
+
} | null;
|
|
4449
|
+
email: string | null | undefined;
|
|
4450
|
+
address: string | null | undefined;
|
|
4451
|
+
lineItems: {
|
|
4452
|
+
amount: number;
|
|
4453
|
+
isTaxable: boolean;
|
|
4454
|
+
id: string;
|
|
4455
|
+
externalId: string | null;
|
|
4456
|
+
memo: string | null;
|
|
4457
|
+
description: string | null;
|
|
4458
|
+
product: string | null;
|
|
4459
|
+
subtotal: number;
|
|
4460
|
+
quantity: BD.BigDecimal;
|
|
4461
|
+
invoiceId: string;
|
|
4462
|
+
unitPrice: number;
|
|
4463
|
+
discountAmount: number;
|
|
4464
|
+
salesTaxTotal: number;
|
|
4465
|
+
totalAmount: number;
|
|
4466
|
+
}[];
|
|
4467
|
+
}> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
|
|
4468
|
+
invoiceNumber: string;
|
|
4469
|
+
customer: null;
|
|
4470
|
+
email: string;
|
|
4471
|
+
address: string;
|
|
4472
|
+
lineItems: {
|
|
4473
|
+
product: string;
|
|
4474
|
+
description: string;
|
|
4475
|
+
unitPrice: number;
|
|
4476
|
+
quantity: BD.BigDecimal;
|
|
4477
|
+
amount: number;
|
|
4478
|
+
isTaxable: boolean;
|
|
4479
|
+
}[];
|
|
4480
|
+
} | {
|
|
4481
|
+
invoiceNumber: string | null;
|
|
4482
|
+
customer: {
|
|
4483
|
+
readonly id: string;
|
|
4484
|
+
readonly externalId: string | null;
|
|
4485
|
+
readonly individualName: string | null;
|
|
4486
|
+
readonly companyName: string | null;
|
|
4487
|
+
readonly email: string | null;
|
|
4488
|
+
readonly mobilePhone: string | null;
|
|
4489
|
+
readonly officePhone: string | null;
|
|
4490
|
+
readonly addressString: string | null;
|
|
4491
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
4492
|
+
readonly memo: string | null;
|
|
4493
|
+
readonly _local?: {
|
|
4494
|
+
readonly isOptimistic: boolean;
|
|
4495
|
+
} | undefined;
|
|
4496
|
+
} | null;
|
|
4497
|
+
email: string | null | undefined;
|
|
4498
|
+
address: string | null | undefined;
|
|
4499
|
+
lineItems: {
|
|
4500
|
+
amount: number;
|
|
4501
|
+
isTaxable: boolean;
|
|
4502
|
+
id: string;
|
|
4503
|
+
externalId: string | null;
|
|
4504
|
+
memo: string | null;
|
|
4505
|
+
description: string | null;
|
|
4506
|
+
product: string | null;
|
|
4507
|
+
subtotal: number;
|
|
4508
|
+
quantity: BD.BigDecimal;
|
|
4509
|
+
invoiceId: string;
|
|
4510
|
+
unitPrice: number;
|
|
4511
|
+
discountAmount: number;
|
|
4512
|
+
salesTaxTotal: number;
|
|
4513
|
+
totalAmount: number;
|
|
4514
|
+
}[];
|
|
4515
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
4516
|
+
invoiceNumber: string;
|
|
4517
|
+
customer: null;
|
|
4518
|
+
email: string;
|
|
4519
|
+
address: string;
|
|
4520
|
+
lineItems: {
|
|
4521
|
+
product: string;
|
|
4522
|
+
description: string;
|
|
4523
|
+
unitPrice: number;
|
|
4524
|
+
quantity: BD.BigDecimal;
|
|
4525
|
+
amount: number;
|
|
4526
|
+
isTaxable: boolean;
|
|
4527
|
+
}[];
|
|
4528
|
+
} | {
|
|
4529
|
+
invoiceNumber: string | null;
|
|
4530
|
+
customer: {
|
|
4531
|
+
readonly id: string;
|
|
4532
|
+
readonly externalId: string | null;
|
|
4533
|
+
readonly individualName: string | null;
|
|
4534
|
+
readonly companyName: string | null;
|
|
4535
|
+
readonly email: string | null;
|
|
4536
|
+
readonly mobilePhone: string | null;
|
|
4537
|
+
readonly officePhone: string | null;
|
|
4538
|
+
readonly addressString: string | null;
|
|
4539
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
4540
|
+
readonly memo: string | null;
|
|
4541
|
+
readonly _local?: {
|
|
4542
|
+
readonly isOptimistic: boolean;
|
|
4543
|
+
} | undefined;
|
|
4544
|
+
} | null;
|
|
4545
|
+
email: string | null | undefined;
|
|
4546
|
+
address: string | null | undefined;
|
|
4547
|
+
lineItems: {
|
|
4548
|
+
amount: number;
|
|
4549
|
+
isTaxable: boolean;
|
|
4550
|
+
id: string;
|
|
4551
|
+
externalId: string | null;
|
|
4552
|
+
memo: string | null;
|
|
4553
|
+
description: string | null;
|
|
4554
|
+
product: string | null;
|
|
4555
|
+
subtotal: number;
|
|
4556
|
+
quantity: BD.BigDecimal;
|
|
4557
|
+
invoiceId: string;
|
|
4558
|
+
unitPrice: number;
|
|
4559
|
+
discountAmount: number;
|
|
4560
|
+
salesTaxTotal: number;
|
|
4561
|
+
totalAmount: number;
|
|
4562
|
+
}[];
|
|
4563
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
4564
|
+
invoiceNumber: string;
|
|
4565
|
+
customer: null;
|
|
4566
|
+
email: string;
|
|
4567
|
+
address: string;
|
|
4568
|
+
lineItems: {
|
|
4569
|
+
product: string;
|
|
4570
|
+
description: string;
|
|
4571
|
+
unitPrice: number;
|
|
4572
|
+
quantity: BD.BigDecimal;
|
|
4573
|
+
amount: number;
|
|
4574
|
+
isTaxable: boolean;
|
|
4575
|
+
}[];
|
|
4576
|
+
} | {
|
|
4577
|
+
invoiceNumber: string | null;
|
|
4578
|
+
customer: {
|
|
4579
|
+
readonly id: string;
|
|
4580
|
+
readonly externalId: string | null;
|
|
4581
|
+
readonly individualName: string | null;
|
|
4582
|
+
readonly companyName: string | null;
|
|
4583
|
+
readonly email: string | null;
|
|
4584
|
+
readonly mobilePhone: string | null;
|
|
4585
|
+
readonly officePhone: string | null;
|
|
4586
|
+
readonly addressString: string | null;
|
|
4587
|
+
readonly status: "ACTIVE" | "ARCHIVED";
|
|
4588
|
+
readonly memo: string | null;
|
|
4589
|
+
readonly _local?: {
|
|
4590
|
+
readonly isOptimistic: boolean;
|
|
4591
|
+
} | undefined;
|
|
4592
|
+
} | null;
|
|
4593
|
+
email: string | null | undefined;
|
|
4594
|
+
address: string | null | undefined;
|
|
4595
|
+
lineItems: {
|
|
4596
|
+
amount: number;
|
|
4597
|
+
isTaxable: boolean;
|
|
4598
|
+
id: string;
|
|
4599
|
+
externalId: string | null;
|
|
4600
|
+
memo: string | null;
|
|
4601
|
+
description: string | null;
|
|
4602
|
+
product: string | null;
|
|
4603
|
+
subtotal: number;
|
|
4604
|
+
quantity: BD.BigDecimal;
|
|
4605
|
+
invoiceId: string;
|
|
4606
|
+
unitPrice: number;
|
|
4607
|
+
discountAmount: number;
|
|
4608
|
+
salesTaxTotal: number;
|
|
4609
|
+
totalAmount: number;
|
|
4610
|
+
}[];
|
|
4611
|
+
}> | undefined, unknown, NoInfer<{
|
|
4612
|
+
readonly BaseFormTextField: typeof import("@layerfi/components/features/forms/components/BaseFormTextField").BaseFormTextField;
|
|
4613
|
+
readonly FormBigDecimalField: typeof import("@layerfi/components/features/forms/components/FormBigDecimalField").FormBigDecimalField;
|
|
4614
|
+
readonly FormCheckboxField: typeof import("@layerfi/components/features/forms/components/FormCheckboxField").FormCheckboxField;
|
|
4615
|
+
readonly FormCurrencyField: typeof import("@layerfi/components/features/forms/components/FormCurrencyField").FormCurrencyField;
|
|
4616
|
+
readonly FormTextAreaField: typeof import("@layerfi/components/features/forms/components/FormTextAreaField").FormTextAreaField;
|
|
4617
|
+
readonly FormTextField: typeof import("@layerfi/components/features/forms/components/FormTextField").FormTextField;
|
|
4618
|
+
}>>;
|
|
4619
|
+
AppForm: import("react").ComponentType<import("react").PropsWithChildren>;
|
|
4620
|
+
};
|
|
3424
4621
|
submitError: string | undefined;
|
|
3425
4622
|
isFormValid: boolean;
|
|
3426
4623
|
};
|
|
3427
4624
|
export {};
|
|
3428
4625
|
|
|
4626
|
+
}
|
|
4627
|
+
declare module '@layerfi/components/components/Invoices/InvoiceStatusCell/InvoiceStatusCell' {
|
|
4628
|
+
import { type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
|
|
4629
|
+
export const InvoiceStatusCell: ({ invoice, inline }: {
|
|
4630
|
+
invoice: Invoice;
|
|
4631
|
+
inline?: boolean;
|
|
4632
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
4633
|
+
|
|
3429
4634
|
}
|
|
3430
4635
|
declare module '@layerfi/components/components/Invoices/Invoices' {
|
|
3431
4636
|
interface InvoicesStringOverrides {
|
|
@@ -3439,8 +4644,14 @@ declare module '@layerfi/components/components/Invoices/Invoices' {
|
|
|
3439
4644
|
export {};
|
|
3440
4645
|
|
|
3441
4646
|
}
|
|
3442
|
-
declare module '@layerfi/components/components/Invoices/InvoicesTable' {
|
|
3443
|
-
|
|
4647
|
+
declare module '@layerfi/components/components/Invoices/InvoicesTable/InvoicesTable' {
|
|
4648
|
+
import { type Invoice } from '@layerfi/components/features/invoices/invoiceSchemas';
|
|
4649
|
+
interface InvoicesTableProps {
|
|
4650
|
+
onCreateInvoice: () => void;
|
|
4651
|
+
onSelectInvoice: (invoice: Invoice) => void;
|
|
4652
|
+
}
|
|
4653
|
+
export const InvoicesTable: ({ onCreateInvoice, onSelectInvoice }: InvoicesTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
4654
|
+
export {};
|
|
3444
4655
|
|
|
3445
4656
|
}
|
|
3446
4657
|
declare module '@layerfi/components/components/Journal/Journal' {
|
|
@@ -3808,13 +5019,12 @@ declare module '@layerfi/components/components/LinkedAccounts/LinkedAccounts' {
|
|
|
3808
5019
|
showLedgerBalance?: boolean;
|
|
3809
5020
|
showUnlinkItem?: boolean;
|
|
3810
5021
|
showBreakConnection?: boolean;
|
|
3811
|
-
showAddAccount?: boolean;
|
|
3812
5022
|
stringOverrides?: {
|
|
3813
5023
|
title?: string;
|
|
3814
5024
|
};
|
|
3815
5025
|
}
|
|
3816
5026
|
export const LinkedAccounts: (props: LinkedAccountsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3817
|
-
export const LinkedAccountsComponent: ({ asWidget, elevated, showLedgerBalance, showUnlinkItem, showBreakConnection,
|
|
5027
|
+
export const LinkedAccountsComponent: ({ asWidget, elevated, showLedgerBalance, showUnlinkItem, showBreakConnection, stringOverrides, }: LinkedAccountsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3818
5028
|
|
|
3819
5029
|
}
|
|
3820
5030
|
declare module '@layerfi/components/components/LinkedAccounts/LinkedAccountsContent' {
|
|
@@ -3823,9 +5033,8 @@ declare module '@layerfi/components/components/LinkedAccounts/LinkedAccountsCont
|
|
|
3823
5033
|
showLedgerBalance?: boolean;
|
|
3824
5034
|
showUnlinkItem?: boolean;
|
|
3825
5035
|
showBreakConnection?: boolean;
|
|
3826
|
-
showAddAccount?: boolean;
|
|
3827
5036
|
}
|
|
3828
|
-
export const LinkedAccountsContent: ({ asWidget, showLedgerBalance, showUnlinkItem, showBreakConnection,
|
|
5037
|
+
export const LinkedAccountsContent: ({ asWidget, showLedgerBalance, showUnlinkItem, showBreakConnection, }: LinkedAccountsDataProps) => import("react/jsx-runtime").JSX.Element;
|
|
3829
5038
|
export {};
|
|
3830
5039
|
|
|
3831
5040
|
}
|
|
@@ -5028,13 +6237,13 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
|
|
|
5028
6237
|
floating: HTMLElement | null;
|
|
5029
6238
|
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
5030
6239
|
context: {
|
|
5031
|
-
|
|
6240
|
+
placement: import("@floating-ui/utils").Placement;
|
|
5032
6241
|
x: number;
|
|
5033
6242
|
y: number;
|
|
5034
|
-
placement: import("@floating-ui/utils").Placement;
|
|
5035
6243
|
strategy: import("@floating-ui/utils").Strategy;
|
|
5036
6244
|
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
5037
6245
|
isPositioned: boolean;
|
|
6246
|
+
update: () => void;
|
|
5038
6247
|
floatingStyles: React.CSSProperties;
|
|
5039
6248
|
open: boolean;
|
|
5040
6249
|
onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void;
|
|
@@ -5077,13 +6286,13 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
|
|
|
5077
6286
|
floating: HTMLElement | null;
|
|
5078
6287
|
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
5079
6288
|
context: {
|
|
5080
|
-
|
|
6289
|
+
placement: import("@floating-ui/utils").Placement;
|
|
5081
6290
|
x: number;
|
|
5082
6291
|
y: number;
|
|
5083
|
-
placement: import("@floating-ui/utils").Placement;
|
|
5084
6292
|
strategy: import("@floating-ui/utils").Strategy;
|
|
5085
6293
|
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
5086
6294
|
isPositioned: boolean;
|
|
6295
|
+
update: () => void;
|
|
5087
6296
|
floatingStyles: React.CSSProperties;
|
|
5088
6297
|
open: boolean;
|
|
5089
6298
|
onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void;
|
|
@@ -5349,7 +6558,7 @@ declare module '@layerfi/components/components/ui/Button/Button' {
|
|
|
5349
6558
|
}
|
|
5350
6559
|
declare module '@layerfi/components/components/ui/Checkbox/Checkbox' {
|
|
5351
6560
|
import { type CheckboxProps as AriaCheckboxProps } from 'react-aria-components';
|
|
5352
|
-
type CheckboxVariant = 'default' | 'success';
|
|
6561
|
+
type CheckboxVariant = 'default' | 'success' | 'error';
|
|
5353
6562
|
type CheckboxSize = 'md' | 'lg';
|
|
5354
6563
|
type CheckboxProps = Omit<AriaCheckboxProps, 'className'> & {
|
|
5355
6564
|
className?: string;
|
|
@@ -5389,7 +6598,7 @@ declare module '@layerfi/components/components/ui/ComboBox/ComboBox' {
|
|
|
5389
6598
|
selectedValue: T | null;
|
|
5390
6599
|
onSelectedValueChange: (value: T | null) => void;
|
|
5391
6600
|
onInputValueChange?: (value: string) => void;
|
|
5392
|
-
placeholder
|
|
6601
|
+
placeholder?: string;
|
|
5393
6602
|
slots?: {
|
|
5394
6603
|
EmptyMessage?: ReactNode;
|
|
5395
6604
|
ErrorMessage?: ReactNode;
|
|
@@ -5435,6 +6644,22 @@ declare module '@layerfi/components/components/ui/DropdownMenu/DropdownMenu' {
|
|
|
5435
6644
|
export const DropdownMenu: ({ children, ariaLabel, slots, slotProps }: DropdownMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
5436
6645
|
export {};
|
|
5437
6646
|
|
|
6647
|
+
}
|
|
6648
|
+
declare module '@layerfi/components/components/ui/Form/Form' {
|
|
6649
|
+
import { type FormProps as ReactAriaFormProps, type TextFieldProps as ReactAriaTextFieldProps, type FieldErrorProps as ReactAriaFieldErrorProps } from 'react-aria-components';
|
|
6650
|
+
export const Form: import("react").ForwardRefExoticComponent<ReactAriaFormProps & import("react").RefAttributes<HTMLFormElement>>;
|
|
6651
|
+
export type TextFieldProps = ReactAriaTextFieldProps & {
|
|
6652
|
+
inline?: boolean;
|
|
6653
|
+
textarea?: boolean;
|
|
6654
|
+
};
|
|
6655
|
+
export const TextField: import("react").ForwardRefExoticComponent<ReactAriaTextFieldProps & {
|
|
6656
|
+
inline?: boolean;
|
|
6657
|
+
textarea?: boolean;
|
|
6658
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
6659
|
+
type FieldErrorProps = Omit<ReactAriaFieldErrorProps, 'className'>;
|
|
6660
|
+
export const FieldError: import("react").ForwardRefExoticComponent<FieldErrorProps & import("react").RefAttributes<HTMLElement>>;
|
|
6661
|
+
export {};
|
|
6662
|
+
|
|
5438
6663
|
}
|
|
5439
6664
|
declare module '@layerfi/components/components/ui/Input/Input' {
|
|
5440
6665
|
import { type ComponentProps } from 'react';
|
|
@@ -5453,6 +6678,16 @@ declare module '@layerfi/components/components/ui/Input/InputGroup' {
|
|
|
5453
6678
|
actionCount?: 1 | 2;
|
|
5454
6679
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
5455
6680
|
|
|
6681
|
+
}
|
|
6682
|
+
declare module '@layerfi/components/components/ui/Input/TextArea' {
|
|
6683
|
+
import { type ComponentProps } from 'react';
|
|
6684
|
+
import { TextArea as ReactAriaTextArea } from 'react-aria-components';
|
|
6685
|
+
type TextAreaProps = Omit<ComponentProps<typeof ReactAriaTextArea>, 'className'> & {
|
|
6686
|
+
resize?: 'both' | 'vertical' | 'horizontal' | 'none';
|
|
6687
|
+
};
|
|
6688
|
+
export const TextArea: import("react").ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
6689
|
+
export {};
|
|
6690
|
+
|
|
5456
6691
|
}
|
|
5457
6692
|
declare module '@layerfi/components/components/ui/ListBox/ListBox' {
|
|
5458
6693
|
import { type ForwardedRef, type Ref } from 'react';
|
|
@@ -5610,7 +6845,7 @@ declare module '@layerfi/components/components/ui/Stack/Stack' {
|
|
|
5610
6845
|
import { type PropsWithChildren } from 'react';
|
|
5611
6846
|
import type { Spacing } from '@layerfi/components/components/ui/sharedUITypes';
|
|
5612
6847
|
export type StackProps = PropsWithChildren<{
|
|
5613
|
-
align?: 'start' | 'center' | 'baseline';
|
|
6848
|
+
align?: 'start' | 'center' | 'baseline' | 'end';
|
|
5614
6849
|
gap?: Spacing;
|
|
5615
6850
|
justify?: 'start' | 'center' | 'end' | 'space-between';
|
|
5616
6851
|
overflow?: 'scroll' | 'hidden' | 'auto' | 'clip' | 'visible';
|
|
@@ -5625,7 +6860,7 @@ declare module '@layerfi/components/components/ui/Stack/Stack' {
|
|
|
5625
6860
|
className?: string;
|
|
5626
6861
|
}>;
|
|
5627
6862
|
export const VStack: import("react").ForwardRefExoticComponent<{
|
|
5628
|
-
align?: "start" | "center" | "baseline";
|
|
6863
|
+
align?: "start" | "center" | "baseline" | "end";
|
|
5629
6864
|
gap?: Spacing;
|
|
5630
6865
|
justify?: "start" | "center" | "end" | "space-between";
|
|
5631
6866
|
overflow?: "scroll" | "hidden" | "auto" | "clip" | "visible";
|
|
@@ -5642,7 +6877,7 @@ declare module '@layerfi/components/components/ui/Stack/Stack' {
|
|
|
5642
6877
|
children?: import("react").ReactNode | undefined;
|
|
5643
6878
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
5644
6879
|
export const HStack: import("react").ForwardRefExoticComponent<{
|
|
5645
|
-
align?: "start" | "center" | "baseline";
|
|
6880
|
+
align?: "start" | "center" | "baseline" | "end";
|
|
5646
6881
|
gap?: Spacing;
|
|
5647
6882
|
justify?: "start" | "center" | "end" | "space-between";
|
|
5648
6883
|
overflow?: "scroll" | "hidden" | "auto" | "clip" | "visible";
|
|
@@ -6617,6 +7852,20 @@ declare module '@layerfi/components/features/customers/api/useListCustomers' {
|
|
|
6617
7852
|
export function usePreloadCustomers(parameters?: UseListCustomersParams): void;
|
|
6618
7853
|
export {};
|
|
6619
7854
|
|
|
7855
|
+
}
|
|
7856
|
+
declare module '@layerfi/components/features/customers/components/CustomerSelector' {
|
|
7857
|
+
import { Customer } from '@layerfi/components/features/customers/customersSchemas';
|
|
7858
|
+
type CustomerSelectorProps = {
|
|
7859
|
+
selectedCustomer: Customer | null;
|
|
7860
|
+
onSelectedCustomerChange: (customer: Customer | null) => void;
|
|
7861
|
+
placeholder?: string;
|
|
7862
|
+
isReadOnly?: boolean;
|
|
7863
|
+
inline?: boolean;
|
|
7864
|
+
className?: string;
|
|
7865
|
+
};
|
|
7866
|
+
export function CustomerSelector({ selectedCustomer, onSelectedCustomerChange, placeholder, isReadOnly, inline, className, }: CustomerSelectorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7867
|
+
export {};
|
|
7868
|
+
|
|
6620
7869
|
}
|
|
6621
7870
|
declare module '@layerfi/components/features/customers/customersSchemas' {
|
|
6622
7871
|
import { Schema } from 'effect';
|
|
@@ -6635,6 +7884,7 @@ declare module '@layerfi/components/features/customers/customersSchemas' {
|
|
|
6635
7884
|
isOptimistic: typeof Schema.Boolean;
|
|
6636
7885
|
}>>;
|
|
6637
7886
|
}>;
|
|
7887
|
+
export type Customer = typeof CustomerSchema.Type;
|
|
6638
7888
|
export const encodeCustomer: (a: {
|
|
6639
7889
|
readonly id: string;
|
|
6640
7890
|
readonly externalId: string | null;
|
|
@@ -6665,6 +7915,106 @@ declare module '@layerfi/components/features/customers/customersSchemas' {
|
|
|
6665
7915
|
} | undefined;
|
|
6666
7916
|
};
|
|
6667
7917
|
|
|
7918
|
+
}
|
|
7919
|
+
declare module '@layerfi/components/features/forms/components/BaseFormTextField' {
|
|
7920
|
+
import type { PropsWithChildren } from 'react';
|
|
7921
|
+
import { type TextFieldProps } from '@layerfi/components/components/ui/Form/Form';
|
|
7922
|
+
export type BaseFormTextFieldProps = Omit<InternalBaseFormTextFieldProps, 'isTextArea'>;
|
|
7923
|
+
interface InternalBaseFormTextFieldProps {
|
|
7924
|
+
label: string;
|
|
7925
|
+
className?: string;
|
|
7926
|
+
inline?: boolean;
|
|
7927
|
+
showLabel?: boolean;
|
|
7928
|
+
showFieldError?: boolean;
|
|
7929
|
+
inputMode?: TextFieldProps['inputMode'];
|
|
7930
|
+
isTextArea?: boolean;
|
|
7931
|
+
}
|
|
7932
|
+
export function BaseFormTextField<TData>({ label, className, inline, showLabel, showFieldError, isTextArea, children, }: PropsWithChildren<InternalBaseFormTextFieldProps>): import("react/jsx-runtime").JSX.Element;
|
|
7933
|
+
export {};
|
|
7934
|
+
|
|
7935
|
+
}
|
|
7936
|
+
declare module '@layerfi/components/features/forms/components/FormBigDecimalField' {
|
|
7937
|
+
import { type BaseFormTextFieldProps } from '@layerfi/components/features/forms/components/BaseFormTextField';
|
|
7938
|
+
type FormBigDecimalFieldProps = Omit<BaseFormTextFieldProps, 'inputMode'> & {
|
|
7939
|
+
maxInputLength?: number;
|
|
7940
|
+
allowNegative?: boolean;
|
|
7941
|
+
};
|
|
7942
|
+
export function FormBigDecimalField({ maxInputLength, allowNegative, ...restProps }: FormBigDecimalFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
7943
|
+
export {};
|
|
7944
|
+
|
|
7945
|
+
}
|
|
7946
|
+
declare module '@layerfi/components/features/forms/components/FormCheckboxField' {
|
|
7947
|
+
import { type PropsWithChildren } from 'react';
|
|
7948
|
+
export interface FormCheckboxField {
|
|
7949
|
+
label: string;
|
|
7950
|
+
className?: string;
|
|
7951
|
+
inline?: boolean;
|
|
7952
|
+
showLabel?: boolean;
|
|
7953
|
+
showErrorInTooltip?: boolean;
|
|
7954
|
+
}
|
|
7955
|
+
export function FormCheckboxField({ label, className, inline, showLabel, showErrorInTooltip, }: PropsWithChildren<FormCheckboxField>): import("react/jsx-runtime").JSX.Element;
|
|
7956
|
+
|
|
7957
|
+
}
|
|
7958
|
+
declare module '@layerfi/components/features/forms/components/FormCurrencyField' {
|
|
7959
|
+
import { type BaseFormTextFieldProps } from '@layerfi/components/features/forms/components/BaseFormTextField';
|
|
7960
|
+
type FormCurrencyFieldProps = Omit<BaseFormTextFieldProps, 'inputMode'>;
|
|
7961
|
+
export function FormCurrencyField(props: FormCurrencyFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
7962
|
+
export {};
|
|
7963
|
+
|
|
7964
|
+
}
|
|
7965
|
+
declare module '@layerfi/components/features/forms/components/FormTextAreaField' {
|
|
7966
|
+
import { type BaseFormTextFieldProps } from '@layerfi/components/features/forms/components/BaseFormTextField';
|
|
7967
|
+
type FormTextAreaFieldProps = BaseFormTextFieldProps;
|
|
7968
|
+
export function FormTextAreaField(props: FormTextAreaFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
7969
|
+
export {};
|
|
7970
|
+
|
|
7971
|
+
}
|
|
7972
|
+
declare module '@layerfi/components/features/forms/components/FormTextField' {
|
|
7973
|
+
import { type BaseFormTextFieldProps } from '@layerfi/components/features/forms/components/BaseFormTextField';
|
|
7974
|
+
type FormTextFieldProps = BaseFormTextFieldProps;
|
|
7975
|
+
export function FormTextField(props: FormTextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
7976
|
+
export {};
|
|
7977
|
+
|
|
7978
|
+
}
|
|
7979
|
+
declare module '@layerfi/components/features/forms/hooks/useForm' {
|
|
7980
|
+
import { BaseFormTextField } from '@layerfi/components/features/forms/components/BaseFormTextField';
|
|
7981
|
+
import { FormBigDecimalField } from '@layerfi/components/features/forms/components/FormBigDecimalField';
|
|
7982
|
+
import { FormCheckboxField } from '@layerfi/components/features/forms/components/FormCheckboxField';
|
|
7983
|
+
import { FormCurrencyField } from '@layerfi/components/features/forms/components/FormCurrencyField';
|
|
7984
|
+
import { FormTextAreaField } from '@layerfi/components/features/forms/components/FormTextAreaField';
|
|
7985
|
+
import { FormTextField } from '@layerfi/components/features/forms/components/FormTextField';
|
|
7986
|
+
export const fieldContext: import("react").Context<import("@tanstack/react-form").AnyFieldApi>, useFieldContext: <TData>() => import("@tanstack/react-form").FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>, formContext: import("react").Context<import("@tanstack/react-form").AnyFormApi>, useFormContext: () => import("@tanstack/react-form").ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any>;
|
|
7987
|
+
export const useAppForm: <TFormData, TOnMount extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChange extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: import("@tanstack/react-form").FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta>) => import("@tanstack/react-form").FormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta> & import("@tanstack/react-form").ReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta> & {
|
|
7988
|
+
AppField: import("@tanstack/react-form").FieldComponent<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta, NoInfer<{
|
|
7989
|
+
readonly BaseFormTextField: typeof BaseFormTextField;
|
|
7990
|
+
readonly FormBigDecimalField: typeof FormBigDecimalField;
|
|
7991
|
+
readonly FormCheckboxField: typeof FormCheckboxField;
|
|
7992
|
+
readonly FormCurrencyField: typeof FormCurrencyField;
|
|
7993
|
+
readonly FormTextAreaField: typeof FormTextAreaField;
|
|
7994
|
+
readonly FormTextField: typeof FormTextField;
|
|
7995
|
+
}>>;
|
|
7996
|
+
AppForm: import("react").ComponentType<import("react").PropsWithChildren>;
|
|
7997
|
+
}, withForm: <TFormData, TOnMount extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChange extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends Record<string, unknown> = {}>({ render, props, }: import("@tanstack/react-form").WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta, {
|
|
7998
|
+
readonly BaseFormTextField: typeof BaseFormTextField;
|
|
7999
|
+
readonly FormBigDecimalField: typeof FormBigDecimalField;
|
|
8000
|
+
readonly FormCheckboxField: typeof FormCheckboxField;
|
|
8001
|
+
readonly FormCurrencyField: typeof FormCurrencyField;
|
|
8002
|
+
readonly FormTextAreaField: typeof FormTextAreaField;
|
|
8003
|
+
readonly FormTextField: typeof FormTextField;
|
|
8004
|
+
}, {}, TRenderProps>) => (props: import("react").PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
|
|
8005
|
+
form: import("@tanstack/react-form").FormApi<[unknown] extends [TFormData] ? any : TFormData, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta> & import("@tanstack/react-form").ReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta> & {
|
|
8006
|
+
AppField: import("@tanstack/react-form").FieldComponent<[unknown] extends [TFormData] ? any : TFormData, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, NoInfer<{
|
|
8007
|
+
readonly BaseFormTextField: typeof BaseFormTextField;
|
|
8008
|
+
readonly FormBigDecimalField: typeof FormBigDecimalField;
|
|
8009
|
+
readonly FormCheckboxField: typeof FormCheckboxField;
|
|
8010
|
+
readonly FormCurrencyField: typeof FormCurrencyField;
|
|
8011
|
+
readonly FormTextAreaField: typeof FormTextAreaField;
|
|
8012
|
+
readonly FormTextField: typeof FormTextField;
|
|
8013
|
+
}>>;
|
|
8014
|
+
AppForm: import("react").ComponentType<import("react").PropsWithChildren>;
|
|
8015
|
+
};
|
|
8016
|
+
}>) => import("react").JSX.Element;
|
|
8017
|
+
|
|
6668
8018
|
}
|
|
6669
8019
|
declare module '@layerfi/components/features/invoices/api/useListInvoices' {
|
|
6670
8020
|
import { type SWRInfiniteResponse } from 'swr/infinite';
|
|
@@ -7195,7 +8545,7 @@ declare module '@layerfi/components/features/invoices/api/useUpsertInvoice' {
|
|
|
7195
8545
|
readonly dueAt: Date;
|
|
7196
8546
|
readonly invoiceNumber: string | undefined;
|
|
7197
8547
|
readonly lineItems: readonly {
|
|
7198
|
-
readonly description: string
|
|
8548
|
+
readonly description: string;
|
|
7199
8549
|
readonly product: string;
|
|
7200
8550
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
7201
8551
|
readonly unitPrice: number;
|
|
@@ -7254,6 +8604,7 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
|
|
|
7254
8604
|
totalAmount: Schema.PropertySignature<":", number, "total_amount", ":", number, false, never>;
|
|
7255
8605
|
memo: Schema.NullOr<typeof Schema.String>;
|
|
7256
8606
|
}>;
|
|
8607
|
+
export type InvoiceLineItem = typeof InvoiceLineItemSchema.Type;
|
|
7257
8608
|
export const InvoiceSchema: Schema.Struct<{
|
|
7258
8609
|
id: typeof Schema.UUID;
|
|
7259
8610
|
businessId: Schema.PropertySignature<":", string, "business_id", ":", string, false, never>;
|
|
@@ -7316,15 +8667,17 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
|
|
|
7316
8667
|
updatedAt: Schema.PropertySignature<":", Date | null, "updated_at", ":", string | null, false, never>;
|
|
7317
8668
|
memo: Schema.NullOr<typeof Schema.String>;
|
|
7318
8669
|
}>;
|
|
8670
|
+
export type Invoice = typeof InvoiceSchema.Type;
|
|
7319
8671
|
export const UpsertInvoiceTaxLineItemSchema: Schema.Struct<{
|
|
7320
|
-
amount:
|
|
8672
|
+
amount: typeof Schema.Number;
|
|
7321
8673
|
}>;
|
|
7322
8674
|
export const UpsertInvoiceLineItemSchema: Schema.Struct<{
|
|
7323
|
-
description: Schema.
|
|
7324
|
-
product: Schema.
|
|
7325
|
-
unitPrice: Schema.PropertySignature<":", number, "unit_price", ":",
|
|
7326
|
-
quantity: Schema.
|
|
8675
|
+
description: typeof Schema.String;
|
|
8676
|
+
product: typeof Schema.String;
|
|
8677
|
+
unitPrice: Schema.PropertySignature<":", number, "unit_price", ":", number, false, never>;
|
|
8678
|
+
quantity: typeof Schema.BigDecimal;
|
|
7327
8679
|
}>;
|
|
8680
|
+
export type UpsertInvoiceLineItem = typeof UpsertInvoiceLineItemSchema.Type;
|
|
7328
8681
|
export const UpsertInvoiceSchema: Schema.Struct<{
|
|
7329
8682
|
sentAt: Schema.PropertySignature<":", Date, "sent_at", ":", string, false, never>;
|
|
7330
8683
|
dueAt: Schema.PropertySignature<":", Date, "due_at", ":", string, false, never>;
|
|
@@ -7332,24 +8685,23 @@ declare module '@layerfi/components/features/invoices/invoiceSchemas' {
|
|
|
7332
8685
|
customerId: Schema.PropertySignature<":", string, "customer_id", ":", string, false, never>;
|
|
7333
8686
|
memo: Schema.NullOr<typeof Schema.String>;
|
|
7334
8687
|
lineItems: Schema.PropertySignature<":", readonly {
|
|
7335
|
-
readonly description: string
|
|
8688
|
+
readonly description: string;
|
|
7336
8689
|
readonly product: string;
|
|
7337
8690
|
readonly quantity: import("effect/BigDecimal").BigDecimal;
|
|
7338
8691
|
readonly unitPrice: number;
|
|
7339
8692
|
}[], "line_items", ":", readonly {
|
|
7340
|
-
readonly description: string
|
|
8693
|
+
readonly description: string;
|
|
7341
8694
|
readonly product: string;
|
|
7342
8695
|
readonly quantity: string;
|
|
7343
|
-
readonly unit_price:
|
|
8696
|
+
readonly unit_price: number;
|
|
7344
8697
|
}[], false, never>;
|
|
7345
|
-
additionalDiscount: Schema.PropertySignature<":", number | undefined, "additional_discount", ":",
|
|
8698
|
+
additionalDiscount: Schema.PropertySignature<":", number | undefined, "additional_discount", ":", number | undefined, false, never>;
|
|
7346
8699
|
additionalSalesTaxes: Schema.PropertySignature<":", readonly {
|
|
7347
8700
|
readonly amount: number;
|
|
7348
8701
|
}[] | undefined, "additional_sales_taxes", ":", readonly {
|
|
7349
|
-
readonly amount:
|
|
8702
|
+
readonly amount: number;
|
|
7350
8703
|
}[] | undefined, false, never>;
|
|
7351
8704
|
}>;
|
|
7352
|
-
export type Invoice = typeof InvoiceSchema.Type;
|
|
7353
8705
|
export type UpsertInvoice = typeof UpsertInvoiceSchema.Type;
|
|
7354
8706
|
|
|
7355
8707
|
}
|
|
@@ -9577,6 +10929,7 @@ declare module '@layerfi/components/providers/Environment/environmentConfigs' {
|
|
|
9577
10929
|
}
|
|
9578
10930
|
declare module '@layerfi/components/providers/GlobalDateStore/GlobalDateStoreProvider' {
|
|
9579
10931
|
import { type PropsWithChildren } from 'react';
|
|
10932
|
+
import type { UnifiedPickerMode } from '@layerfi/components/components/DatePicker/ModeSelector/DatePickerModeSelector';
|
|
9580
10933
|
const _DATE_PICKER_MODES: readonly ["dayPicker"];
|
|
9581
10934
|
export type DatePickerMode = typeof _DATE_PICKER_MODES[number];
|
|
9582
10935
|
const _RANGE_PICKER_MODES: readonly ["dayRangePicker", "monthPicker", "monthRangePicker", "yearPicker"];
|
|
@@ -9600,7 +10953,7 @@ declare module '@layerfi/components/providers/GlobalDateStore/GlobalDateStorePro
|
|
|
9600
10953
|
setRangeWithExplicitDisplayMode: (options: {
|
|
9601
10954
|
start: Date;
|
|
9602
10955
|
end: Date;
|
|
9603
|
-
|
|
10956
|
+
displayMode: UnifiedPickerMode;
|
|
9604
10957
|
}) => void;
|
|
9605
10958
|
setDateRange: (options: {
|
|
9606
10959
|
start: Date;
|
|
@@ -9645,7 +10998,6 @@ declare module '@layerfi/components/providers/GlobalDateStore/useGlobalDateRange
|
|
|
9645
10998
|
setDisplayMode: (displayMode: DateRangePickerMode) => void;
|
|
9646
10999
|
};
|
|
9647
11000
|
export function useGlobalDateRangePicker({ displayMode, setDisplayMode }: UseGlobalDateRangePickerProps): {
|
|
9648
|
-
dateFormat: "MMM d" | undefined;
|
|
9649
11001
|
rangeDisplayMode: "dayRangePicker" | "monthPicker" | "monthRangePicker" | "yearPicker";
|
|
9650
11002
|
onChangeMode: (newMode: UnifiedPickerMode) => void;
|
|
9651
11003
|
dateOrDateRange: Date | [Date, Date];
|
|
@@ -9735,6 +11087,14 @@ declare module '@layerfi/components/providers/ReportsModeStoreProvider/ReportsMo
|
|
|
9735
11087
|
[ReportKey.StatementOfCashFlows]: DateRangePickerMode;
|
|
9736
11088
|
};
|
|
9737
11089
|
type MutableReportKey = Exclude<ReportKey, ReportKey.BalanceSheet>;
|
|
11090
|
+
type ReportsModeStoreShape = {
|
|
11091
|
+
resetPnLModeToDefaultOnMount: boolean;
|
|
11092
|
+
modeByReport: ReportModes;
|
|
11093
|
+
actions: {
|
|
11094
|
+
setModeForReport: <K extends MutableReportKey>(report: K, mode: ReportModes[K]) => void;
|
|
11095
|
+
};
|
|
11096
|
+
};
|
|
11097
|
+
export function useReportModeStore(): ReportsModeStoreShape;
|
|
9738
11098
|
export function useReportMode<K extends ReportKey>(report: K): ReportModes[K] | undefined;
|
|
9739
11099
|
export function useReportModeActions(): {
|
|
9740
11100
|
setModeForReport: <K extends MutableReportKey>(report: K, mode: ReportModes[K]) => void;
|
|
@@ -9742,8 +11102,9 @@ declare module '@layerfi/components/providers/ReportsModeStoreProvider/ReportsMo
|
|
|
9742
11102
|
export function useReportModeWithFallback<K extends ReportKey>(report: K, fallback: ReportModes[K]): ReportModes[K];
|
|
9743
11103
|
type ReportsModeStoreProviderProps = PropsWithChildren<{
|
|
9744
11104
|
initialModes: Partial<ReportModes>;
|
|
11105
|
+
resetPnLModeToDefaultOnMount?: boolean;
|
|
9745
11106
|
}>;
|
|
9746
|
-
export function ReportsModeStoreProvider({ children, initialModes, }: ReportsModeStoreProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
11107
|
+
export function ReportsModeStoreProvider({ children, initialModes, resetPnLModeToDefaultOnMount, }: ReportsModeStoreProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
9747
11108
|
export {};
|
|
9748
11109
|
|
|
9749
11110
|
}
|
|
@@ -11170,6 +12531,22 @@ declare module '@layerfi/components/utils/bankTransactions' {
|
|
|
11170
12531
|
};
|
|
11171
12532
|
export const hasReceipts: (bankTransaction?: BankTransaction) => boolean | undefined;
|
|
11172
12533
|
|
|
12534
|
+
}
|
|
12535
|
+
declare module '@layerfi/components/utils/bigDecimalUtils' {
|
|
12536
|
+
import { BigDecimal as BD } from 'effect';
|
|
12537
|
+
export const BIG_DECIMAL_ZERO: BD.BigDecimal;
|
|
12538
|
+
export const BIG_DECIMAL_ONE: BD.BigDecimal;
|
|
12539
|
+
export const BIG_DECIMAL_ONE_HUNDRED: BD.BigDecimal;
|
|
12540
|
+
export const DECIMAL_CHARS_REGEX: RegExp;
|
|
12541
|
+
export const NON_NEGATIVE_DECIMAL_CHARS_REGEX: RegExp;
|
|
12542
|
+
/**
|
|
12543
|
+
* Converts a BigDecimal dollar amount to its equivalent in cents as a number.
|
|
12544
|
+
* Example: 123.45 → 12345
|
|
12545
|
+
*/
|
|
12546
|
+
export const convertBigDecimalToCents: (amount: BD.BigDecimal) => number;
|
|
12547
|
+
export const convertCentsToBigDecimal: (cents: number) => BD.BigDecimal;
|
|
12548
|
+
export function formatBigDecimalToString(value: BD.BigDecimal, maxDecimalPlaces?: number): string;
|
|
12549
|
+
|
|
11173
12550
|
}
|
|
11174
12551
|
declare module '@layerfi/components/utils/bills' {
|
|
11175
12552
|
import { Bill } from '@layerfi/components/types/bills';
|
|
@@ -11507,7 +12884,6 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/Ban
|
|
|
11507
12884
|
showTooltips?: boolean;
|
|
11508
12885
|
showUnlinkItem?: boolean;
|
|
11509
12886
|
showUploadOptions?: boolean;
|
|
11510
|
-
showAddAccount?: boolean;
|
|
11511
12887
|
/**
|
|
11512
12888
|
* @deprecated `mode` can be inferred from the bookkeeping configuration of a business
|
|
11513
12889
|
*/
|
|
@@ -11515,7 +12891,7 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/Ban
|
|
|
11515
12891
|
mobileComponent?: MobileComponentType;
|
|
11516
12892
|
stringOverrides?: BankTransactionsWithLinkedAccountsStringOverrides;
|
|
11517
12893
|
}
|
|
11518
|
-
export const BankTransactionsWithLinkedAccounts: ({ title, showTitle, elevatedLinkedAccounts, mode, showBreakConnection, showCustomerVendor, showDescriptions, showLedgerBalance, showReceiptUploads, showTags, showTooltips, showUnlinkItem, showUploadOptions,
|
|
12894
|
+
export const BankTransactionsWithLinkedAccounts: ({ title, showTitle, elevatedLinkedAccounts, mode, showBreakConnection, showCustomerVendor, showDescriptions, showLedgerBalance, showReceiptUploads, showTags, showTooltips, showUnlinkItem, showUploadOptions, mobileComponent, stringOverrides, }: BankTransactionsWithLinkedAccountsProps) => import("react/jsx-runtime").JSX.Element;
|
|
11519
12895
|
export {};
|
|
11520
12896
|
|
|
11521
12897
|
}
|