@layerfi/components 0.1.99 → 0.1.101
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 +863 -773
- package/dist/esm/index.mjs +706 -615
- package/dist/index.css +107 -108
- package/dist/index.d.ts +70 -62
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -507,20 +507,13 @@ declare module '@layerfi/components/api/layer/profit_and_loss' {
|
|
|
507
507
|
|
|
508
508
|
}
|
|
509
509
|
declare module '@layerfi/components/api/layer/quickbooks' {
|
|
510
|
-
import type { StatusOfQuickbooksConnection
|
|
510
|
+
import type { StatusOfQuickbooksConnection } from '@layerfi/components/types/quickbooks';
|
|
511
511
|
export const syncFromQuickbooks: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
512
512
|
params?: {
|
|
513
513
|
businessId: string;
|
|
514
514
|
} | undefined;
|
|
515
515
|
body?: Record<string, unknown> | undefined;
|
|
516
516
|
} | undefined) => Promise<Record<string, unknown>>;
|
|
517
|
-
export const statusOfSyncFromQuickbooks: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
518
|
-
params?: {
|
|
519
|
-
businessId: string;
|
|
520
|
-
} | undefined;
|
|
521
|
-
} | undefined) => () => Promise<{
|
|
522
|
-
data: StatusOfSyncFromQuickbooks;
|
|
523
|
-
}>;
|
|
524
517
|
export const initQuickbooksOAuth: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
525
518
|
params?: {
|
|
526
519
|
businessId: string;
|
|
@@ -983,13 +976,6 @@ declare module '@layerfi/components/api/layer' {
|
|
|
983
976
|
} | undefined;
|
|
984
977
|
body?: Record<string, unknown> | undefined;
|
|
985
978
|
} | undefined) => Promise<Record<string, unknown>>;
|
|
986
|
-
statusOfSyncFromQuickbooks: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
987
|
-
params?: {
|
|
988
|
-
businessId: string;
|
|
989
|
-
} | undefined;
|
|
990
|
-
} | undefined) => () => Promise<{
|
|
991
|
-
data: import("@layerfi/components/types/quickbooks").StatusOfSyncFromQuickbooks;
|
|
992
|
-
}>;
|
|
993
979
|
statusOfQuickbooksConnection: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
994
980
|
params?: {
|
|
995
981
|
businessId: string;
|
|
@@ -2724,7 +2710,7 @@ declare module '@layerfi/components/components/Integrations/Integrations' {
|
|
|
2724
2710
|
title?: string;
|
|
2725
2711
|
};
|
|
2726
2712
|
}
|
|
2727
|
-
export const
|
|
2713
|
+
export const Integrations: (props: IntegrationsProps) => import("react/jsx-runtime").JSX.Element;
|
|
2728
2714
|
export const IntegrationsComponent: ({ elevated, stringOverrides, }: IntegrationsProps) => import("react/jsx-runtime").JSX.Element;
|
|
2729
2715
|
|
|
2730
2716
|
}
|
|
@@ -2737,11 +2723,34 @@ declare module '@layerfi/components/components/Integrations/IntegrationsContent'
|
|
|
2737
2723
|
|
|
2738
2724
|
}
|
|
2739
2725
|
declare module '@layerfi/components/components/Integrations/IntegrationsQuickbooksItemThumb/IntegrationsQuickbooksItemThumb' {
|
|
2740
|
-
export const IntegrationsQuickbooksItemThumb: () => import("react/jsx-runtime").JSX.Element;
|
|
2726
|
+
export const IntegrationsQuickbooksItemThumb: () => import("react/jsx-runtime").JSX.Element | null;
|
|
2741
2727
|
|
|
2742
2728
|
}
|
|
2743
2729
|
declare module '@layerfi/components/components/Integrations/IntegrationsQuickbooksItemThumb/IntegrationsQuickbooksItemThumbFooter' {
|
|
2744
|
-
|
|
2730
|
+
import { QuickbooksConnectionSyncUiState } from '@layerfi/components/components/Integrations/IntegrationsQuickbooksItemThumb/utils';
|
|
2731
|
+
type IntegrationsQuickbooksItemThumbFooterProps = {
|
|
2732
|
+
quickbooksUiState: QuickbooksConnectionSyncUiState;
|
|
2733
|
+
};
|
|
2734
|
+
export const IntegrationsQuickbooksItemThumbFooter: ({ quickbooksUiState }: IntegrationsQuickbooksItemThumbFooterProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
2735
|
+
export {};
|
|
2736
|
+
|
|
2737
|
+
}
|
|
2738
|
+
declare module '@layerfi/components/components/Integrations/IntegrationsQuickbooksItemThumb/IntegrationsQuickbooksUnlinkConfirmationModal' {
|
|
2739
|
+
import { ModalProps } from '@layerfi/components/components/ui/Modal/Modal';
|
|
2740
|
+
type IntegrationsQuickbooksUnlinkConfirmationModalProps = Pick<ModalProps, 'isOpen' | 'onOpenChange'>;
|
|
2741
|
+
export function IntegrationsQuickbooksUnlinkConfirmationModal({ isOpen, onOpenChange }: IntegrationsQuickbooksUnlinkConfirmationModalProps): import("react/jsx-runtime").JSX.Element;
|
|
2742
|
+
export {};
|
|
2743
|
+
|
|
2744
|
+
}
|
|
2745
|
+
declare module '@layerfi/components/components/Integrations/IntegrationsQuickbooksItemThumb/utils' {
|
|
2746
|
+
import { StatusOfQuickbooksConnection } from '@layerfi/components/types/quickbooks';
|
|
2747
|
+
export enum QuickbooksConnectionSyncUiState {
|
|
2748
|
+
Syncing = "Syncing",
|
|
2749
|
+
SyncFailed = "SyncFailed",
|
|
2750
|
+
SyncSuccess = "SyncSuccess",
|
|
2751
|
+
Connected = "Connected"
|
|
2752
|
+
}
|
|
2753
|
+
export const getQuickbooksConnectionSyncUiState: (quickbooksConnectionStatus: StatusOfQuickbooksConnection) => QuickbooksConnectionSyncUiState;
|
|
2745
2754
|
|
|
2746
2755
|
}
|
|
2747
2756
|
declare module '@layerfi/components/components/Journal/Journal' {
|
|
@@ -3811,15 +3820,6 @@ declare module '@layerfi/components/components/ProgressSteps/ProgressSteps' {
|
|
|
3811
3820
|
declare module '@layerfi/components/components/ProjectProfitability/ProjectSelector' {
|
|
3812
3821
|
export function ProjectSelector(): import("react/jsx-runtime").JSX.Element;
|
|
3813
3822
|
|
|
3814
|
-
}
|
|
3815
|
-
declare module '@layerfi/components/components/Quickbooks/Quickbooks' {
|
|
3816
|
-
const Quickbooks: () => import("react/jsx-runtime").JSX.Element;
|
|
3817
|
-
export { Quickbooks };
|
|
3818
|
-
|
|
3819
|
-
}
|
|
3820
|
-
declare module '@layerfi/components/components/Quickbooks/index' {
|
|
3821
|
-
export { Quickbooks } from '@layerfi/components/components/Quickbooks/Quickbooks';
|
|
3822
|
-
|
|
3823
3823
|
}
|
|
3824
3824
|
declare module '@layerfi/components/components/RadioButtonGroup/RadioButton' {
|
|
3825
3825
|
import type { ChangeEvent } from 'react';
|
|
@@ -4269,7 +4269,7 @@ declare module '@layerfi/components/components/Toast/Toast' {
|
|
|
4269
4269
|
content: string;
|
|
4270
4270
|
duration?: number;
|
|
4271
4271
|
isExiting?: boolean;
|
|
4272
|
-
type?: 'success' | 'default';
|
|
4272
|
+
type?: 'success' | 'error' | 'default';
|
|
4273
4273
|
}
|
|
4274
4274
|
export function ToastsContainer(): import("react/jsx-runtime").JSX.Element;
|
|
4275
4275
|
|
|
@@ -4681,7 +4681,7 @@ declare module '@layerfi/components/components/ui/Modal/Modal' {
|
|
|
4681
4681
|
type AllowedModalOverlayProps = Pick<ComponentProps<typeof ModalOverlay>, 'isOpen' | 'onOpenChange'>;
|
|
4682
4682
|
type AllowedInternalModalProps = Pick<ComponentProps<typeof InternalModal>, 'flexBlock' | 'size'>;
|
|
4683
4683
|
type AllowedDialogProps = Pick<ComponentProps<typeof Dialog>, 'children'>;
|
|
4684
|
-
type ModalProps = AllowedModalOverlayProps & AllowedInternalModalProps & AllowedDialogProps;
|
|
4684
|
+
export type ModalProps = AllowedModalOverlayProps & AllowedInternalModalProps & AllowedDialogProps;
|
|
4685
4685
|
export function Modal({ isOpen, size, flexBlock, onOpenChange, children, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
4686
4686
|
export {};
|
|
4687
4687
|
|
|
@@ -5196,11 +5196,9 @@ declare module '@layerfi/components/contexts/QuickbooksContext/QuickbooksContext
|
|
|
5196
5196
|
export type QuickbooksContextType = ReturnType<typeof useQuickbooks>;
|
|
5197
5197
|
export const QuickbooksContext: import("react").Context<{
|
|
5198
5198
|
linkQuickbooks: () => Promise<string>;
|
|
5199
|
-
unlinkQuickbooks: () => void
|
|
5199
|
+
unlinkQuickbooks: () => Promise<void>;
|
|
5200
5200
|
syncFromQuickbooks: () => void;
|
|
5201
|
-
|
|
5202
|
-
quickbooksIsConnected: import("@layerfi/components/types/quickbooks").StatusOfQuickbooksConnection["is_connected"] | undefined;
|
|
5203
|
-
quickbooksLastSyncedAt: import("@layerfi/components/types/quickbooks").StatusOfQuickbooksConnection["last_synced_at"] | undefined;
|
|
5201
|
+
quickbooksConnectionStatus: import("@layerfi/components/types/quickbooks").StatusOfQuickbooksConnection | undefined;
|
|
5204
5202
|
}>;
|
|
5205
5203
|
|
|
5206
5204
|
}
|
|
@@ -5341,7 +5339,7 @@ declare module '@layerfi/components/hooks/bookkeeping/periods/tasks/useUploadDoc
|
|
|
5341
5339
|
declare module '@layerfi/components/hooks/bookkeeping/periods/useActiveBookkeepingPeriod' {
|
|
5342
5340
|
export function useActiveBookkeepingPeriod(): {
|
|
5343
5341
|
activePeriod: ({
|
|
5344
|
-
status: "
|
|
5342
|
+
status: import("@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods").BookkeepingPeriodStatus;
|
|
5345
5343
|
tasks: (import("@layerfi/components/types/tasks").RawTask & {
|
|
5346
5344
|
status: "TODO" | "USER_MARKED_COMPLETED";
|
|
5347
5345
|
})[];
|
|
@@ -5349,7 +5347,7 @@ declare module '@layerfi/components/hooks/bookkeeping/periods/useActiveBookkeepi
|
|
|
5349
5347
|
month: number;
|
|
5350
5348
|
year: number;
|
|
5351
5349
|
} & {
|
|
5352
|
-
status: "NOT_STARTED
|
|
5350
|
+
status: import("@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods").BookkeepingPeriodStatus.NOT_STARTED | import("./useBookkeepingPeriods").BookkeepingPeriodStatus.IN_PROGRESS_AWAITING_BOOKKEEPER | import("./useBookkeepingPeriods").BookkeepingPeriodStatus.IN_PROGRESS_AWAITING_CUSTOMER | import("./useBookkeepingPeriods").BookkeepingPeriodStatus.CLOSING_IN_REVIEW | import("./useBookkeepingPeriods").BookkeepingPeriodStatus.CLOSED_OPEN_TASKS | import("./useBookkeepingPeriods").BookkeepingPeriodStatus.CLOSED_COMPLETE;
|
|
5353
5351
|
}) | undefined;
|
|
5354
5352
|
isLoading: boolean;
|
|
5355
5353
|
};
|
|
@@ -5358,8 +5356,15 @@ declare module '@layerfi/components/hooks/bookkeeping/periods/useActiveBookkeepi
|
|
|
5358
5356
|
declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods' {
|
|
5359
5357
|
import type { RawTask } from '@layerfi/components/types/tasks';
|
|
5360
5358
|
import type { EnumWithUnknownValues } from '@layerfi/components/types/utility/enumWithUnknownValues';
|
|
5361
|
-
|
|
5362
|
-
|
|
5359
|
+
export enum BookkeepingPeriodStatus {
|
|
5360
|
+
BOOKKEEPING_NOT_ACTIVE = "BOOKKEEPING_NOT_ACTIVE",
|
|
5361
|
+
NOT_STARTED = "NOT_STARTED",
|
|
5362
|
+
IN_PROGRESS_AWAITING_BOOKKEEPER = "IN_PROGRESS_AWAITING_BOOKKEEPER",
|
|
5363
|
+
IN_PROGRESS_AWAITING_CUSTOMER = "IN_PROGRESS_AWAITING_CUSTOMER",
|
|
5364
|
+
CLOSING_IN_REVIEW = "CLOSING_IN_REVIEW",
|
|
5365
|
+
CLOSED_OPEN_TASKS = "CLOSED_OPEN_TASKS",
|
|
5366
|
+
CLOSED_COMPLETE = "CLOSED_COMPLETE"
|
|
5367
|
+
}
|
|
5363
5368
|
type RawBookkeepingPeriodStatus = EnumWithUnknownValues<BookkeepingPeriodStatus>;
|
|
5364
5369
|
export type BookkeepingPeriod = Omit<RawBookkeepingPeriod, 'status'> & {
|
|
5365
5370
|
status: BookkeepingPeriodStatus;
|
|
@@ -5373,7 +5378,7 @@ declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeri
|
|
|
5373
5378
|
};
|
|
5374
5379
|
export const BOOKKEEPING_PERIODS_TAG_KEY = "#bookkeeping-periods";
|
|
5375
5380
|
export function useBookkeepingPeriods(): import("swr").SWRResponse<({
|
|
5376
|
-
status:
|
|
5381
|
+
status: BookkeepingPeriodStatus;
|
|
5377
5382
|
tasks: (RawTask & {
|
|
5378
5383
|
status: "TODO" | "USER_MARKED_COMPLETED";
|
|
5379
5384
|
})[];
|
|
@@ -5381,7 +5386,7 @@ declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeri
|
|
|
5381
5386
|
month: number;
|
|
5382
5387
|
year: number;
|
|
5383
5388
|
} & {
|
|
5384
|
-
status:
|
|
5389
|
+
status: BookkeepingPeriodStatus.NOT_STARTED | BookkeepingPeriodStatus.IN_PROGRESS_AWAITING_BOOKKEEPER | BookkeepingPeriodStatus.IN_PROGRESS_AWAITING_CUSTOMER | BookkeepingPeriodStatus.CLOSING_IN_REVIEW | BookkeepingPeriodStatus.CLOSED_OPEN_TASKS | BookkeepingPeriodStatus.CLOSED_COMPLETE;
|
|
5385
5390
|
})[], any, any>;
|
|
5386
5391
|
export {};
|
|
5387
5392
|
|
|
@@ -5402,7 +5407,7 @@ declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingYear
|
|
|
5402
5407
|
completed: boolean;
|
|
5403
5408
|
} | undefined;
|
|
5404
5409
|
earliestIncompletePeriod: ({
|
|
5405
|
-
status: "
|
|
5410
|
+
status: import("@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods").BookkeepingPeriodStatus;
|
|
5406
5411
|
tasks: (import("@layerfi/components/types/tasks").RawTask & {
|
|
5407
5412
|
status: "TODO" | "USER_MARKED_COMPLETED";
|
|
5408
5413
|
})[];
|
|
@@ -5410,7 +5415,7 @@ declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingYear
|
|
|
5410
5415
|
month: number;
|
|
5411
5416
|
year: number;
|
|
5412
5417
|
} & {
|
|
5413
|
-
status: "NOT_STARTED
|
|
5418
|
+
status: import("@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods").BookkeepingPeriodStatus.NOT_STARTED | import("./useBookkeepingPeriods").BookkeepingPeriodStatus.IN_PROGRESS_AWAITING_BOOKKEEPER | import("./useBookkeepingPeriods").BookkeepingPeriodStatus.IN_PROGRESS_AWAITING_CUSTOMER | import("./useBookkeepingPeriods").BookkeepingPeriodStatus.CLOSING_IN_REVIEW | import("./useBookkeepingPeriods").BookkeepingPeriodStatus.CLOSED_OPEN_TASKS | import("./useBookkeepingPeriods").BookkeepingPeriodStatus.CLOSED_COMPLETE;
|
|
5414
5419
|
}) | undefined;
|
|
5415
5420
|
isLoading: boolean;
|
|
5416
5421
|
};
|
|
@@ -5429,14 +5434,17 @@ declare module '@layerfi/components/hooks/bookkeeping/useBankAccounts' {
|
|
|
5429
5434
|
|
|
5430
5435
|
}
|
|
5431
5436
|
declare module '@layerfi/components/hooks/bookkeeping/useBookkeepingStatus' {
|
|
5432
|
-
|
|
5433
|
-
|
|
5437
|
+
export enum BookkeepingStatus {
|
|
5438
|
+
NOT_PURCHASED = "NOT_PURCHASED",
|
|
5439
|
+
ACTIVE = "ACTIVE",
|
|
5440
|
+
ONBOARDING = "ONBOARDING",
|
|
5441
|
+
BOOKKEEPING_PAUSED = "BOOKKEEPING_PAUSED"
|
|
5442
|
+
}
|
|
5434
5443
|
export const BOOKKEEPING_TAG_KEY = "#bookkeeping";
|
|
5435
5444
|
export function useBookkeepingStatus(): import("swr").SWRResponse<{
|
|
5436
|
-
status:
|
|
5445
|
+
status: BookkeepingStatus;
|
|
5437
5446
|
}, any, any>;
|
|
5438
|
-
export function useEffectiveBookkeepingStatus():
|
|
5439
|
-
export {};
|
|
5447
|
+
export function useEffectiveBookkeepingStatus(): BookkeepingStatus;
|
|
5440
5448
|
|
|
5441
5449
|
}
|
|
5442
5450
|
declare module '@layerfi/components/hooks/business/useUpdateBusiness' {
|
|
@@ -6221,14 +6229,12 @@ declare module '@layerfi/components/hooks/useQuickbooks/index' {
|
|
|
6221
6229
|
|
|
6222
6230
|
}
|
|
6223
6231
|
declare module '@layerfi/components/hooks/useQuickbooks/useQuickbooks' {
|
|
6224
|
-
import type
|
|
6232
|
+
import { type StatusOfQuickbooksConnection } from '@layerfi/components/types/quickbooks';
|
|
6225
6233
|
type UseQuickbooks = () => {
|
|
6226
6234
|
linkQuickbooks: () => Promise<string>;
|
|
6227
|
-
unlinkQuickbooks: () => void
|
|
6235
|
+
unlinkQuickbooks: () => Promise<void>;
|
|
6228
6236
|
syncFromQuickbooks: () => void;
|
|
6229
|
-
|
|
6230
|
-
quickbooksIsConnected: StatusOfQuickbooksConnection['is_connected'] | undefined;
|
|
6231
|
-
quickbooksLastSyncedAt: StatusOfQuickbooksConnection['last_synced_at'] | undefined;
|
|
6237
|
+
quickbooksConnectionStatus: StatusOfQuickbooksConnection | undefined;
|
|
6232
6238
|
};
|
|
6233
6239
|
export const useQuickbooks: UseQuickbooks;
|
|
6234
6240
|
export {};
|
|
@@ -6682,8 +6688,7 @@ declare module '@layerfi/components/index' {
|
|
|
6682
6688
|
export { Onboarding } from '@layerfi/components/components/Onboarding/index';
|
|
6683
6689
|
export { LinkedAccounts } from '@layerfi/components/components/LinkedAccounts/index';
|
|
6684
6690
|
export { BankTransactions } from '@layerfi/components/components/BankTransactions/index';
|
|
6685
|
-
export {
|
|
6686
|
-
export { Quickbooks } from '@layerfi/components/components/Quickbooks/index';
|
|
6691
|
+
export { Integrations } from '@layerfi/components/components/Integrations/Integrations';
|
|
6687
6692
|
export { ProfitAndLoss } from '@layerfi/components/components/ProfitAndLoss/index';
|
|
6688
6693
|
export { BalanceSheet } from '@layerfi/components/components/BalanceSheet/index';
|
|
6689
6694
|
export { StatementOfCashFlow } from '@layerfi/components/components/StatementOfCashFlow/index';
|
|
@@ -8111,12 +8116,15 @@ declare module '@layerfi/components/types/profit_and_loss' {
|
|
|
8111
8116
|
|
|
8112
8117
|
}
|
|
8113
8118
|
declare module '@layerfi/components/types/quickbooks' {
|
|
8119
|
+
export enum QuickbooksConnectionLastSyncStatus {
|
|
8120
|
+
SYNC_SUCCESS = "SYNC_SUCCESS",
|
|
8121
|
+
SYNC_FAILURE = "SYNC_FAILURE"
|
|
8122
|
+
}
|
|
8114
8123
|
export type StatusOfQuickbooksConnection = {
|
|
8115
8124
|
is_connected: boolean;
|
|
8116
|
-
last_synced_at: string | null;
|
|
8117
|
-
};
|
|
8118
|
-
export type StatusOfSyncFromQuickbooks = {
|
|
8119
8125
|
is_syncing: boolean;
|
|
8126
|
+
last_synced_at?: string;
|
|
8127
|
+
last_sync_status?: QuickbooksConnectionLastSyncStatus;
|
|
8120
8128
|
};
|
|
8121
8129
|
|
|
8122
8130
|
}
|
|
@@ -8377,22 +8385,22 @@ declare module '@layerfi/components/utils/bills' {
|
|
|
8377
8385
|
|
|
8378
8386
|
}
|
|
8379
8387
|
declare module '@layerfi/components/utils/bookkeeping/bookkeepingStatusFilters' {
|
|
8380
|
-
import
|
|
8381
|
-
type ActiveBookkeepingStatus =
|
|
8388
|
+
import { BookkeepingStatus } from '@layerfi/components/hooks/bookkeeping/useBookkeepingStatus';
|
|
8389
|
+
type ActiveBookkeepingStatus = BookkeepingStatus.ACTIVE | BookkeepingStatus.ONBOARDING;
|
|
8382
8390
|
export function isActiveBookkeepingStatus(status: BookkeepingStatus): status is ActiveBookkeepingStatus;
|
|
8383
|
-
type ActiveOrPausedBookkeepingStatus = ActiveBookkeepingStatus |
|
|
8391
|
+
type ActiveOrPausedBookkeepingStatus = ActiveBookkeepingStatus | BookkeepingStatus.BOOKKEEPING_PAUSED;
|
|
8384
8392
|
export function isActiveOrPausedBookkeepingStatus(status: BookkeepingStatus): status is ActiveOrPausedBookkeepingStatus;
|
|
8385
8393
|
export {};
|
|
8386
8394
|
|
|
8387
8395
|
}
|
|
8388
8396
|
declare module '@layerfi/components/utils/bookkeeping/isCategorizationEnabled' {
|
|
8389
|
-
import
|
|
8397
|
+
import { BookkeepingStatus } from '@layerfi/components/hooks/bookkeeping/useBookkeepingStatus';
|
|
8390
8398
|
export function isCategorizationEnabledForStatus(status: BookkeepingStatus): boolean | undefined;
|
|
8391
8399
|
|
|
8392
8400
|
}
|
|
8393
8401
|
declare module '@layerfi/components/utils/bookkeeping/periods/getFilteredBookkeepingPeriods' {
|
|
8394
|
-
import type
|
|
8395
|
-
type ActiveBookkeepingPeriodStatus = Exclude<BookkeepingPeriodStatus,
|
|
8402
|
+
import { type BookkeepingPeriod, BookkeepingPeriodStatus } from '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingPeriods';
|
|
8403
|
+
type ActiveBookkeepingPeriodStatus = Exclude<BookkeepingPeriodStatus, BookkeepingPeriodStatus.BOOKKEEPING_NOT_ACTIVE>;
|
|
8396
8404
|
export function isActiveBookkeepingPeriod<T extends Pick<BookkeepingPeriod, 'status'>>(period: T): period is T & {
|
|
8397
8405
|
status: ActiveBookkeepingPeriodStatus;
|
|
8398
8406
|
};
|