@actual-app/api 26.3.0 → 26.4.0-nightly.20260305
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/@types/app/bundle.api.d.ts +10 -9
- package/@types/app/bundle.api.d.ts.map +1 -0
- package/@types/app/query.d.ts +1 -0
- package/@types/app/query.d.ts.map +1 -0
- package/@types/index.d.ts +2 -1
- package/@types/index.d.ts.map +1 -0
- package/@types/injected.d.ts +1 -0
- package/@types/injected.d.ts.map +1 -0
- package/@types/methods.d.ts +8 -10
- package/@types/methods.d.ts.map +1 -0
- package/@types/migrations/1632571489012_remove_cache.d.ts +1 -0
- package/@types/migrations/1632571489012_remove_cache.d.ts.map +1 -0
- package/@types/migrations/1722717601000_reports_move_selected_categories.d.ts +1 -0
- package/@types/migrations/1722717601000_reports_move_selected_categories.d.ts.map +1 -0
- package/@types/migrations/1722804019000_create_dashboard_table.d.ts +1 -0
- package/@types/migrations/1722804019000_create_dashboard_table.d.ts.map +1 -0
- package/@types/migrations/1723665565000_prefs.d.ts +1 -0
- package/@types/migrations/1723665565000_prefs.d.ts.map +1 -0
- package/@types/migrations/1765518577215_multiple_dashboards.d.ts +1 -0
- package/@types/migrations/1765518577215_multiple_dashboards.d.ts.map +1 -0
- package/@types/utils.d.ts +1 -0
- package/@types/utils.d.ts.map +1 -0
- package/@types/validateNodeVersion.d.ts +1 -0
- package/@types/validateNodeVersion.d.ts.map +1 -0
- package/@types/vitest.config.d.ts +1 -0
- package/@types/vitest.config.d.ts.map +1 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/app/bundle.api.js +275 -230
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/@types/loot-core/src/mocks/budget.d.ts +0 -2
- package/@types/loot-core/src/mocks/index.d.ts +0 -10
- package/@types/loot-core/src/mocks/random.d.ts +0 -1
- package/@types/loot-core/src/mocks/util.d.ts +0 -8
- package/@types/loot-core/src/platform/exceptions/index.d.ts +0 -2
- package/@types/loot-core/src/platform/server/asyncStorage/index-types.d.ts +0 -19
- package/@types/loot-core/src/platform/server/asyncStorage/index.d.ts +0 -11
- package/@types/loot-core/src/platform/server/connection/index-types.d.ts +0 -11
- package/@types/loot-core/src/platform/server/connection/index.d.ts +0 -5
- package/@types/loot-core/src/platform/server/fetch/index.d.ts +0 -1
- package/@types/loot-core/src/platform/server/fs/index.d.ts +0 -22
- package/@types/loot-core/src/platform/server/fs/path-join.d.ts +0 -1
- package/@types/loot-core/src/platform/server/fs/shared.d.ts +0 -3
- package/@types/loot-core/src/platform/server/indexeddb/index.d.ts +0 -15
- package/@types/loot-core/src/platform/server/log/index.d.ts +0 -11
- package/@types/loot-core/src/platform/server/sqlite/index.d.ts +0 -53
- package/@types/loot-core/src/platform/server/sqlite/normalise.d.ts +0 -1
- package/@types/loot-core/src/platform/server/sqlite/unicodeLike.d.ts +0 -1
- package/@types/loot-core/src/server/accounts/app.d.ts +0 -159
- package/@types/loot-core/src/server/accounts/link.d.ts +0 -6
- package/@types/loot-core/src/server/accounts/payees.d.ts +0 -5
- package/@types/loot-core/src/server/accounts/sync.d.ts +0 -25
- package/@types/loot-core/src/server/accounts/title/index.d.ts +0 -3
- package/@types/loot-core/src/server/accounts/title/lower-case.d.ts +0 -1
- package/@types/loot-core/src/server/accounts/title/specials.d.ts +0 -1
- package/@types/loot-core/src/server/admin/app.d.ts +0 -70
- package/@types/loot-core/src/server/api-models.d.ts +0 -94
- package/@types/loot-core/src/server/api.d.ts +0 -2
- package/@types/loot-core/src/server/api.test.d.ts +0 -1
- package/@types/loot-core/src/server/app.d.ts +0 -24
- package/@types/loot-core/src/server/aql/compiler.d.ts +0 -56
- package/@types/loot-core/src/server/aql/exec.d.ts +0 -17
- package/@types/loot-core/src/server/aql/index.d.ts +0 -13
- package/@types/loot-core/src/server/aql/schema/executors.d.ts +0 -3
- package/@types/loot-core/src/server/aql/schema/index.d.ts +0 -427
- package/@types/loot-core/src/server/aql/schema-helpers.d.ts +0 -8
- package/@types/loot-core/src/server/aql/views.d.ts +0 -1
- package/@types/loot-core/src/server/auth/app.d.ts +0 -144
- package/@types/loot-core/src/server/budget/actions.d.ts +0 -85
- package/@types/loot-core/src/server/budget/app.d.ts +0 -118
- package/@types/loot-core/src/server/budget/base.d.ts +0 -18
- package/@types/loot-core/src/server/budget/category-template-context.d.ts +0 -54
- package/@types/loot-core/src/server/budget/cleanup-template.d.ts +0 -11
- package/@types/loot-core/src/server/budget/envelope.d.ts +0 -7
- package/@types/loot-core/src/server/budget/goal-template.d.ts +0 -38
- package/@types/loot-core/src/server/budget/report.d.ts +0 -5
- package/@types/loot-core/src/server/budget/schedule-template.d.ts +0 -8
- package/@types/loot-core/src/server/budget/statements.d.ts +0 -9
- package/@types/loot-core/src/server/budget/template-notes.d.ts +0 -13
- package/@types/loot-core/src/server/budget/util.d.ts +0 -4
- package/@types/loot-core/src/server/budgetfiles/app.d.ts +0 -137
- package/@types/loot-core/src/server/budgetfiles/backups.d.ts +0 -16
- package/@types/loot-core/src/server/cloud-storage.d.ts +0 -40
- package/@types/loot-core/src/server/dashboard/app.d.ts +0 -54
- package/@types/loot-core/src/server/db/index.d.ts +0 -138
- package/@types/loot-core/src/server/db/mappings.d.ts +0 -3
- package/@types/loot-core/src/server/db/sort.d.ts +0 -11
- package/@types/loot-core/src/server/db/types/index.d.ts +0 -287
- package/@types/loot-core/src/server/db/util.d.ts +0 -2
- package/@types/loot-core/src/server/encryption/app.d.ts +0 -40
- package/@types/loot-core/src/server/encryption/encryption-internals.d.ts +0 -22
- package/@types/loot-core/src/server/encryption/index.d.ts +0 -40
- package/@types/loot-core/src/server/errors.d.ts +0 -92
- package/@types/loot-core/src/server/filters/app.d.ts +0 -26
- package/@types/loot-core/src/server/importers/actual.d.ts +0 -3
- package/@types/loot-core/src/server/importers/index.d.ts +0 -4
- package/@types/loot-core/src/server/importers/ynab4-types.d.ts +0 -135
- package/@types/loot-core/src/server/importers/ynab4.d.ts +0 -4
- package/@types/loot-core/src/server/importers/ynab5-types.d.ts +0 -181
- package/@types/loot-core/src/server/importers/ynab5.d.ts +0 -4
- package/@types/loot-core/src/server/main-app.d.ts +0 -17
- package/@types/loot-core/src/server/main.d.ts +0 -50
- package/@types/loot-core/src/server/main.test.d.ts +0 -1
- package/@types/loot-core/src/server/migrate/migrations.d.ts +0 -9
- package/@types/loot-core/src/server/models.d.ts +0 -39
- package/@types/loot-core/src/server/mutators.d.ts +0 -17
- package/@types/loot-core/src/server/notes/app.d.ts +0 -23
- package/@types/loot-core/src/server/payees/app.d.ts +0 -48
- package/@types/loot-core/src/server/polyfills.d.ts +0 -1
- package/@types/loot-core/src/server/post.d.ts +0 -5
- package/@types/loot-core/src/server/preferences/app.d.ts +0 -43
- package/@types/loot-core/src/server/prefs.d.ts +0 -15
- package/@types/loot-core/src/server/reports/app.d.ts +0 -35
- package/@types/loot-core/src/server/rules/action.d.ts +0 -24
- package/@types/loot-core/src/server/rules/app.d.ts +0 -67
- package/@types/loot-core/src/server/rules/condition.d.ts +0 -59
- package/@types/loot-core/src/server/rules/customFunctions.d.ts +0 -13
- package/@types/loot-core/src/server/rules/handlebars-helpers.d.ts +0 -1
- package/@types/loot-core/src/server/rules/index.d.ts +0 -11
- package/@types/loot-core/src/server/rules/rule-indexer.d.ts +0 -17
- package/@types/loot-core/src/server/rules/rule-utils.d.ts +0 -19
- package/@types/loot-core/src/server/rules/rule.d.ts +0 -24
- package/@types/loot-core/src/server/schedules/app.d.ts +0 -62
- package/@types/loot-core/src/server/schedules/find-schedules.d.ts +0 -1
- package/@types/loot-core/src/server/server-config.d.ts +0 -12
- package/@types/loot-core/src/server/sheet.d.ts +0 -12
- package/@types/loot-core/src/server/sheet.test.d.ts +0 -1
- package/@types/loot-core/src/server/spreadsheet/app.d.ts +0 -38
- package/@types/loot-core/src/server/spreadsheet/globals.d.ts +0 -1
- package/@types/loot-core/src/server/spreadsheet/graph-data-structure.d.ts +0 -15
- package/@types/loot-core/src/server/spreadsheet/spreadsheet.d.ts +0 -87
- package/@types/loot-core/src/server/spreadsheet/util.d.ts +0 -5
- package/@types/loot-core/src/server/sync/app.d.ts +0 -38
- package/@types/loot-core/src/server/sync/encoder.d.ts +0 -9
- package/@types/loot-core/src/server/sync/index.d.ts +0 -47
- package/@types/loot-core/src/server/sync/make-test-message.d.ts +0 -9
- package/@types/loot-core/src/server/sync/migrate.d.ts +0 -2
- package/@types/loot-core/src/server/sync/repair.d.ts +0 -6
- package/@types/loot-core/src/server/sync/reset.d.ts +0 -6
- package/@types/loot-core/src/server/sync/utils.d.ts +0 -3
- package/@types/loot-core/src/server/tags/app.d.ts +0 -32
- package/@types/loot-core/src/server/tools/app.d.ts +0 -30
- package/@types/loot-core/src/server/transactions/app.d.ts +0 -64
- package/@types/loot-core/src/server/transactions/export/export-to-csv.d.ts +0 -2
- package/@types/loot-core/src/server/transactions/import/ofx2json.d.ts +0 -15
- package/@types/loot-core/src/server/transactions/import/parse-file.d.ts +0 -27
- package/@types/loot-core/src/server/transactions/import/qif2json.d.ts +0 -26
- package/@types/loot-core/src/server/transactions/import/xmlcamt2json.d.ts +0 -10
- package/@types/loot-core/src/server/transactions/index.d.ts +0 -18
- package/@types/loot-core/src/server/transactions/merge.d.ts +0 -2
- package/@types/loot-core/src/server/transactions/transaction-rules.d.ts +0 -57
- package/@types/loot-core/src/server/transactions/transfer.d.ts +0 -26
- package/@types/loot-core/src/server/undo.d.ts +0 -14
- package/@types/loot-core/src/server/update.d.ts +0 -1
- package/@types/loot-core/src/server/util/budget-name.d.ts +0 -6
- package/@types/loot-core/src/server/util/custom-sync-mapping.d.ts +0 -4
- package/@types/loot-core/src/server/util/rschedule.d.ts +0 -7
- package/@types/loot-core/src/shared/async.d.ts +0 -4
- package/@types/loot-core/src/shared/currencies.d.ts +0 -11
- package/@types/loot-core/src/shared/dashboard.d.ts +0 -2
- package/@types/loot-core/src/shared/environment.d.ts +0 -4
- package/@types/loot-core/src/shared/errors.d.ts +0 -25
- package/@types/loot-core/src/shared/locale.d.ts +0 -2
- package/@types/loot-core/src/shared/months.d.ts +0 -71
- package/@types/loot-core/src/shared/normalisation.d.ts +0 -1
- package/@types/loot-core/src/shared/platform.d.ts +0 -5
- package/@types/loot-core/src/shared/query.d.ts +0 -46
- package/@types/loot-core/src/shared/rules.d.ts +0 -40
- package/@types/loot-core/src/shared/schedules.d.ts +0 -36
- package/@types/loot-core/src/shared/transactions.d.ts +0 -68
- package/@types/loot-core/src/shared/util.d.ts +0 -95
- package/@types/loot-core/src/types/api-handlers.d.ts +0 -199
- package/@types/loot-core/src/types/budget.d.ts +0 -8
- package/@types/loot-core/src/types/handlers.d.ts +0 -23
- package/@types/loot-core/src/types/models/account.d.ts +0 -21
- package/@types/loot-core/src/types/models/bank-sync.d.ts +0 -16
- package/@types/loot-core/src/types/models/bank.d.ts +0 -6
- package/@types/loot-core/src/types/models/category-group.d.ts +0 -10
- package/@types/loot-core/src/types/models/category.d.ts +0 -14
- package/@types/loot-core/src/types/models/dashboard.d.ts +0 -126
- package/@types/loot-core/src/types/models/gocardless.d.ts +0 -71
- package/@types/loot-core/src/types/models/import-transaction.d.ts +0 -45
- package/@types/loot-core/src/types/models/index.d.ts +0 -21
- package/@types/loot-core/src/types/models/note.d.ts +0 -4
- package/@types/loot-core/src/types/models/openid.d.ts +0 -8
- package/@types/loot-core/src/types/models/payee.d.ts +0 -9
- package/@types/loot-core/src/types/models/pluggyai.d.ts +0 -17
- package/@types/loot-core/src/types/models/reports.d.ts +0 -124
- package/@types/loot-core/src/types/models/rule.d.ts +0 -86
- package/@types/loot-core/src/types/models/schedule.d.ts +0 -47
- package/@types/loot-core/src/types/models/simplefin.d.ts +0 -24
- package/@types/loot-core/src/types/models/tags.d.ts +0 -6
- package/@types/loot-core/src/types/models/templates.d.ts +0 -109
- package/@types/loot-core/src/types/models/transaction-filter.d.ts +0 -8
- package/@types/loot-core/src/types/models/transaction.d.ts +0 -37
- package/@types/loot-core/src/types/models/user-access.d.ts +0 -9
- package/@types/loot-core/src/types/models/user.d.ts +0 -22
- package/@types/loot-core/src/types/prefs.d.ts +0 -94
- package/@types/loot-core/src/types/server-events.d.ts +0 -61
- package/@types/loot-core/src/types/server-handlers.d.ts +0 -30
- package/@types/loot-core/src/types/util.d.ts +0 -13
- package/@types/loot-core/typings/pegjs.d.ts +0 -1
- package/@types/loot-core/typings/process-worker.d.ts +0 -9
- package/@types/loot-core/typings/vite-plugin-peggy-loader.d.ts +0 -1
- package/@types/loot-core/typings/window.d.ts +0 -45
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { TransactionEntity } from '../../types/models';
|
|
2
|
-
export type ToolsHandlers = {
|
|
3
|
-
'tools/fix-split-transactions': typeof fixSplitTransactions;
|
|
4
|
-
};
|
|
5
|
-
export declare const app: {
|
|
6
|
-
events: import("mitt").Emitter<{
|
|
7
|
-
sync: import("../../types/server-events").ServerEvents["sync-event"];
|
|
8
|
-
'load-budget': {
|
|
9
|
-
id: string;
|
|
10
|
-
};
|
|
11
|
-
}>;
|
|
12
|
-
handlers: ToolsHandlers;
|
|
13
|
-
services: (() => () => void)[];
|
|
14
|
-
unlistenServices: (() => void)[];
|
|
15
|
-
method<Name extends "tools/fix-split-transactions">(name: Name, func: ToolsHandlers[Name]): void;
|
|
16
|
-
service(func: () => () => void): void;
|
|
17
|
-
combine(...apps: any[]): void;
|
|
18
|
-
startServices(): void;
|
|
19
|
-
stopServices(): Promise<void>;
|
|
20
|
-
};
|
|
21
|
-
declare function fixSplitTransactions(): Promise<{
|
|
22
|
-
numBlankPayees: number;
|
|
23
|
-
numCleared: number;
|
|
24
|
-
numDeleted: number;
|
|
25
|
-
numTransfersFixed: number;
|
|
26
|
-
numNonParentErrorsFixed: number;
|
|
27
|
-
numParentTransactionsWithCategoryFixed: number;
|
|
28
|
-
mismatchedSplits: TransactionEntity[];
|
|
29
|
-
}>;
|
|
30
|
-
export {};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { QueryState } from '../../shared/query';
|
|
2
|
-
import type { AccountEntity, CategoryGroupEntity, PayeeEntity, TransactionEntity } from '../../types/models';
|
|
3
|
-
import type { ParseFileOptions } from './import/parse-file';
|
|
4
|
-
import { mergeTransactions } from './merge';
|
|
5
|
-
import { batchUpdateTransactions } from '.';
|
|
6
|
-
export type TransactionHandlers = {
|
|
7
|
-
'transactions-batch-update': typeof handleBatchUpdateTransactions;
|
|
8
|
-
'transaction-add': typeof addTransaction;
|
|
9
|
-
'transaction-update': typeof updateTransaction;
|
|
10
|
-
'transaction-delete': typeof deleteTransaction;
|
|
11
|
-
'transactions-parse-file': typeof parseTransactionsFile;
|
|
12
|
-
'transactions-export': typeof exportTransactions;
|
|
13
|
-
'transactions-export-query': typeof exportTransactionsQuery;
|
|
14
|
-
'transactions-merge': typeof mergeTransactions;
|
|
15
|
-
'get-earliest-transaction': typeof getEarliestTransaction;
|
|
16
|
-
'get-latest-transaction': typeof getLatestTransaction;
|
|
17
|
-
};
|
|
18
|
-
declare function handleBatchUpdateTransactions({ added, deleted, updated, learnCategories, runTransfers, }: Parameters<typeof batchUpdateTransactions>[0]): Promise<{
|
|
19
|
-
added: TransactionEntity[];
|
|
20
|
-
updated: TransactionEntity[] | ({
|
|
21
|
-
id: any;
|
|
22
|
-
transfer_id: any;
|
|
23
|
-
} | {
|
|
24
|
-
id: any;
|
|
25
|
-
category: any;
|
|
26
|
-
})[];
|
|
27
|
-
deleted: TransactionEntity[];
|
|
28
|
-
errors: string[];
|
|
29
|
-
}>;
|
|
30
|
-
declare function addTransaction(transaction: TransactionEntity): Promise<{}>;
|
|
31
|
-
declare function updateTransaction(transaction: TransactionEntity): Promise<{}>;
|
|
32
|
-
declare function deleteTransaction(transaction: Pick<TransactionEntity, 'id'>): Promise<{}>;
|
|
33
|
-
declare function parseTransactionsFile({ filepath, options, }: {
|
|
34
|
-
filepath: string;
|
|
35
|
-
options: ParseFileOptions;
|
|
36
|
-
}): Promise<import("./import/parse-file").ParseFileResult>;
|
|
37
|
-
declare function exportTransactions({ transactions, accounts, categoryGroups, payees, }: {
|
|
38
|
-
transactions: TransactionEntity[];
|
|
39
|
-
accounts: AccountEntity[];
|
|
40
|
-
categoryGroups: CategoryGroupEntity[];
|
|
41
|
-
payees: PayeeEntity[];
|
|
42
|
-
}): Promise<string>;
|
|
43
|
-
declare function exportTransactionsQuery({ query: queryState, }: {
|
|
44
|
-
query: QueryState;
|
|
45
|
-
}): Promise<string>;
|
|
46
|
-
declare function getEarliestTransaction(): Promise<any>;
|
|
47
|
-
declare function getLatestTransaction(): Promise<any>;
|
|
48
|
-
export declare const app: {
|
|
49
|
-
events: import("mitt").Emitter<{
|
|
50
|
-
sync: import("../../types/server-events").ServerEvents["sync-event"];
|
|
51
|
-
'load-budget': {
|
|
52
|
-
id: string;
|
|
53
|
-
};
|
|
54
|
-
}>;
|
|
55
|
-
handlers: TransactionHandlers;
|
|
56
|
-
services: (() => () => void)[];
|
|
57
|
-
unlistenServices: (() => void)[];
|
|
58
|
-
method<Name extends "transactions-batch-update" | "transaction-add" | "transaction-update" | "transaction-delete" | "transactions-parse-file" | "transactions-export" | "transactions-export-query" | "transactions-merge" | "get-earliest-transaction" | "get-latest-transaction">(name: Name, func: TransactionHandlers[Name]): void;
|
|
59
|
-
service(func: () => () => void): void;
|
|
60
|
-
combine(...apps: any[]): void;
|
|
61
|
-
startServices(): void;
|
|
62
|
-
stopServices(): Promise<void>;
|
|
63
|
-
};
|
|
64
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
type OFXTransaction = {
|
|
2
|
-
amount: string;
|
|
3
|
-
fitId: string;
|
|
4
|
-
name: string;
|
|
5
|
-
date: string;
|
|
6
|
-
memo: string;
|
|
7
|
-
type: string;
|
|
8
|
-
};
|
|
9
|
-
type OFXParseResult = {
|
|
10
|
-
headers: Record<string, unknown>;
|
|
11
|
-
transactions: OFXTransaction[];
|
|
12
|
-
};
|
|
13
|
-
export declare function html2Plain(value: any): any;
|
|
14
|
-
export declare function ofx2json(ofx: string): Promise<OFXParseResult>;
|
|
15
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
type StructuredTransaction = {
|
|
2
|
-
amount: number;
|
|
3
|
-
date: string;
|
|
4
|
-
payee_name: string;
|
|
5
|
-
imported_payee: string;
|
|
6
|
-
notes: string;
|
|
7
|
-
};
|
|
8
|
-
type CsvTransaction = Record<string, string> | string[];
|
|
9
|
-
type Transaction = StructuredTransaction | CsvTransaction;
|
|
10
|
-
type ParseError = {
|
|
11
|
-
message: string;
|
|
12
|
-
internal: string;
|
|
13
|
-
};
|
|
14
|
-
export type ParseFileResult = {
|
|
15
|
-
errors: ParseError[];
|
|
16
|
-
transactions?: Transaction[];
|
|
17
|
-
};
|
|
18
|
-
export type ParseFileOptions = {
|
|
19
|
-
hasHeaderRow?: boolean;
|
|
20
|
-
delimiter?: string;
|
|
21
|
-
fallbackMissingPayeeToMemo?: boolean;
|
|
22
|
-
skipStartLines?: number;
|
|
23
|
-
skipEndLines?: number;
|
|
24
|
-
importNotes?: boolean;
|
|
25
|
-
};
|
|
26
|
-
export declare function parseFile(filepath: string, options?: ParseFileOptions): Promise<ParseFileResult>;
|
|
27
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
type Division = {
|
|
2
|
-
category?: string;
|
|
3
|
-
subcategory?: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
amount?: number;
|
|
6
|
-
};
|
|
7
|
-
type QIFTransaction = {
|
|
8
|
-
date?: string;
|
|
9
|
-
amount?: string;
|
|
10
|
-
number?: string;
|
|
11
|
-
memo?: string;
|
|
12
|
-
address?: string[];
|
|
13
|
-
clearedStatus?: string;
|
|
14
|
-
category?: string;
|
|
15
|
-
subcategory?: string;
|
|
16
|
-
payee?: string;
|
|
17
|
-
division?: Division[];
|
|
18
|
-
};
|
|
19
|
-
export declare function qif2json(qif: any, options?: {
|
|
20
|
-
dateFormat?: string;
|
|
21
|
-
}): {
|
|
22
|
-
dateFormat: string | undefined;
|
|
23
|
-
type?: any;
|
|
24
|
-
transactions: QIFTransaction[];
|
|
25
|
-
};
|
|
26
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type TransactionCAMT = {
|
|
2
|
-
amount: number;
|
|
3
|
-
date: string;
|
|
4
|
-
payee_name: string | null;
|
|
5
|
-
imported_payee: string | null;
|
|
6
|
-
notes: string | null;
|
|
7
|
-
imported_id?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function xmlCAMT2json(content: string): Promise<TransactionCAMT[]>;
|
|
10
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Diff } from '../../shared/util';
|
|
2
|
-
import type { TransactionEntity } from '../../types/models';
|
|
3
|
-
export declare function batchUpdateTransactions({ added, deleted, updated, learnCategories, detectOrphanPayees, runTransfers, }: Partial<Diff<TransactionEntity>> & {
|
|
4
|
-
learnCategories?: boolean;
|
|
5
|
-
detectOrphanPayees?: boolean;
|
|
6
|
-
runTransfers?: boolean;
|
|
7
|
-
}): Promise<{
|
|
8
|
-
added: TransactionEntity[];
|
|
9
|
-
updated: TransactionEntity[] | ({
|
|
10
|
-
id: any;
|
|
11
|
-
transfer_id: any;
|
|
12
|
-
} | {
|
|
13
|
-
id: any;
|
|
14
|
-
category: any;
|
|
15
|
-
})[];
|
|
16
|
-
deleted: TransactionEntity[];
|
|
17
|
-
errors: string[];
|
|
18
|
-
}>;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { RuleActionEntity, RuleEntity, TransactionEntity } from '../../types/models';
|
|
2
|
-
import * as db from '../db';
|
|
3
|
-
import { Action, Rule } from '../rules';
|
|
4
|
-
export { iterateIds } from '../rules';
|
|
5
|
-
export declare function resetState(): void;
|
|
6
|
-
export declare function parseConditionsOrActions(str: any): any[];
|
|
7
|
-
export declare function serializeConditionsOrActions(arr: any): string;
|
|
8
|
-
export declare const ruleModel: {
|
|
9
|
-
validate(rule: any, { update }?: {
|
|
10
|
-
update?: boolean;
|
|
11
|
-
}): any;
|
|
12
|
-
toJS(row: any): any;
|
|
13
|
-
fromJS(rule: any): any;
|
|
14
|
-
};
|
|
15
|
-
export declare function makeRule(data: any): any;
|
|
16
|
-
export declare function loadRules(): Promise<void>;
|
|
17
|
-
export declare function getRules(): any[];
|
|
18
|
-
export declare function insertRule(rule: Omit<RuleEntity, 'id'> & {
|
|
19
|
-
id?: string;
|
|
20
|
-
}): Promise<any>;
|
|
21
|
-
export declare function updateRule(rule: any): Promise<void>;
|
|
22
|
-
export declare function deleteRule(id: string): Promise<boolean>;
|
|
23
|
-
export declare function getRuleIdFromScheduleId(scheduleId: string): Promise<string | null>;
|
|
24
|
-
export declare function getAllRuleIdsFromSchedules(excluding: string): Promise<string[]>;
|
|
25
|
-
export declare function runRules(trans: any, accounts?: Map<string, db.DbAccount> | null): Promise<TransactionEntity>;
|
|
26
|
-
export declare function conditionsToAQL(conditions: any, { recurDateBounds, applySpecialCases }?: {
|
|
27
|
-
recurDateBounds?: number;
|
|
28
|
-
applySpecialCases?: boolean;
|
|
29
|
-
}): {
|
|
30
|
-
filters: any;
|
|
31
|
-
errors: any[];
|
|
32
|
-
};
|
|
33
|
-
export declare function applyActions(transactions: TransactionEntity[], actions: Array<Action | RuleActionEntity>): Promise<{
|
|
34
|
-
added: TransactionEntity[];
|
|
35
|
-
updated: TransactionEntity[] | ({
|
|
36
|
-
id: any;
|
|
37
|
-
transfer_id: any;
|
|
38
|
-
} | {
|
|
39
|
-
id: any;
|
|
40
|
-
category: any;
|
|
41
|
-
})[];
|
|
42
|
-
deleted: TransactionEntity[];
|
|
43
|
-
errors: string[];
|
|
44
|
-
}>;
|
|
45
|
-
export declare function getRulesForPayee(payeeId: any): Rule[];
|
|
46
|
-
export declare function updatePayeeRenameRule(fromNames: string[], to: string): Promise<any>;
|
|
47
|
-
export declare function getProbableCategory(transactions: any): any;
|
|
48
|
-
export declare function updateCategoryRules(transactions: any): Promise<void>;
|
|
49
|
-
export type TransactionForRules = TransactionEntity & {
|
|
50
|
-
payee_name?: string;
|
|
51
|
-
_account?: db.DbAccount;
|
|
52
|
-
balance?: number;
|
|
53
|
-
_category_name?: string;
|
|
54
|
-
_account_name?: string;
|
|
55
|
-
};
|
|
56
|
-
export declare function prepareTransactionForRules(trans: TransactionEntity, accounts?: Map<string, db.DbAccount> | null): Promise<TransactionForRules>;
|
|
57
|
-
export declare function finalizeTransactionForRules(trans: TransactionEntity | TransactionForRules): Promise<TransactionEntity>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare function addTransfer(transaction: any, transferredAccount: any): Promise<{
|
|
2
|
-
category?: any;
|
|
3
|
-
id: any;
|
|
4
|
-
transfer_id: string;
|
|
5
|
-
}>;
|
|
6
|
-
export declare function removeTransfer(transaction: any): Promise<{
|
|
7
|
-
id: any;
|
|
8
|
-
transfer_id: any;
|
|
9
|
-
}>;
|
|
10
|
-
export declare function updateTransfer(transaction: any, transferredAccount: any): Promise<{
|
|
11
|
-
id: any;
|
|
12
|
-
category: any;
|
|
13
|
-
}>;
|
|
14
|
-
export declare function onInsert(transaction: any): Promise<{
|
|
15
|
-
category?: any;
|
|
16
|
-
id: any;
|
|
17
|
-
transfer_id: string;
|
|
18
|
-
}>;
|
|
19
|
-
export declare function onDelete(transaction: any): Promise<void>;
|
|
20
|
-
export declare function onUpdate(transaction: any): Promise<{
|
|
21
|
-
id: any;
|
|
22
|
-
transfer_id: any;
|
|
23
|
-
} | {
|
|
24
|
-
id: any;
|
|
25
|
-
category: any;
|
|
26
|
-
}>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { HandlerFunctions } from '../types/handlers';
|
|
2
|
-
import type { Message } from './sync';
|
|
3
|
-
export type UndoState = {
|
|
4
|
-
messages: Message[];
|
|
5
|
-
meta?: unknown;
|
|
6
|
-
tables: string[];
|
|
7
|
-
undoTag: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function appendMessages(messages: any, oldData: any): void;
|
|
10
|
-
export declare function clearUndo(): void;
|
|
11
|
-
export declare function withUndo<T>(func: () => Promise<T>, meta?: unknown): Promise<T>;
|
|
12
|
-
export declare function undoable<T extends HandlerFunctions>(func: T, metaFunc?: (...metaArgs: Parameters<T>) => unknown): (...args: Parameters<T>) => Promise<Awaited<ReturnType<T>>>;
|
|
13
|
-
export declare function undo(): Promise<void>;
|
|
14
|
-
export declare function redo(): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function updateVersion(): Promise<void>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import '@rschedule/standard-date-adapter/setup';
|
|
2
|
-
import { Schedule as OriginalSchedule } from '@rschedule/core/generators';
|
|
3
|
-
export * from '@rschedule/standard-date-adapter';
|
|
4
|
-
export * from '@rschedule/core';
|
|
5
|
-
export * from '@rschedule/core/generators';
|
|
6
|
-
export declare class RSchedule extends OriginalSchedule {
|
|
7
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
type AnyFunction = (...args: any[]) => any;
|
|
2
|
-
export declare function sequential<T extends AnyFunction>(fn: T): (...args: Parameters<T>) => Promise<Awaited<ReturnType<T>>>;
|
|
3
|
-
export declare function once<T extends AnyFunction>(fn: T): (...args: Parameters<T>) => Promise<Awaited<ReturnType<T>>> | null;
|
|
4
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { NumberFormats } from './util';
|
|
2
|
-
export type Currency = {
|
|
3
|
-
code: string;
|
|
4
|
-
symbol: string;
|
|
5
|
-
name: string;
|
|
6
|
-
decimalPlaces: number;
|
|
7
|
-
numberFormat: NumberFormats;
|
|
8
|
-
symbolFirst: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare const currencies: Currency[];
|
|
11
|
-
export declare function getCurrency(code: string): Currency;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
type ErrorWithMeta = {
|
|
2
|
-
reason: string;
|
|
3
|
-
meta?: unknown;
|
|
4
|
-
};
|
|
5
|
-
export declare function getUploadError({ reason, meta }: ErrorWithMeta): string;
|
|
6
|
-
export declare function getDownloadError({ reason, meta, fileName, }: {
|
|
7
|
-
reason: string;
|
|
8
|
-
meta?: unknown;
|
|
9
|
-
fileName?: string;
|
|
10
|
-
}): string;
|
|
11
|
-
export declare function getCreateKeyError(error: ErrorWithMeta): string;
|
|
12
|
-
export declare function getTestKeyError({ reason }: ErrorWithMeta): string;
|
|
13
|
-
export declare function getSyncError(error: string, id: string): string;
|
|
14
|
-
export declare function getBankSyncError(error: {
|
|
15
|
-
message?: string;
|
|
16
|
-
}): string;
|
|
17
|
-
export declare class LazyLoadFailedError extends Error {
|
|
18
|
-
type: string;
|
|
19
|
-
meta: {};
|
|
20
|
-
constructor(name: string, cause: unknown);
|
|
21
|
-
}
|
|
22
|
-
export declare function getUserAccessErrors(reason: string): string;
|
|
23
|
-
export declare function getSecretsError(error: string, reason: string): string;
|
|
24
|
-
export declare function getOpenIdErrors(reason: string): string;
|
|
25
|
-
export {};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import type { Locale } from 'date-fns';
|
|
2
|
-
import type { SyncedPrefs } from '../types/prefs';
|
|
3
|
-
type DateLike = string | Date;
|
|
4
|
-
export declare function _parse(value: DateLike): Date;
|
|
5
|
-
export declare const parseDate: typeof _parse;
|
|
6
|
-
export declare function yearFromDate(date: DateLike): string;
|
|
7
|
-
export declare function monthFromDate(date: DateLike): string;
|
|
8
|
-
export declare function weekFromDate(date: DateLike, firstDayOfWeekIdx: SyncedPrefs['firstDayOfWeekIdx']): string;
|
|
9
|
-
export declare function firstDayOfMonth(date: DateLike): string;
|
|
10
|
-
export declare function lastDayOfMonth(date: DateLike): string;
|
|
11
|
-
export declare function dayFromDate(date: DateLike): string;
|
|
12
|
-
export declare function currentMonth(): string;
|
|
13
|
-
export declare function currentWeek(firstDayOfWeekIdx?: SyncedPrefs['firstDayOfWeekIdx']): string;
|
|
14
|
-
export declare function currentYear(): string;
|
|
15
|
-
export declare function currentDate(): Date;
|
|
16
|
-
export declare function currentDay(): string;
|
|
17
|
-
export declare function nextMonth(month: DateLike): string;
|
|
18
|
-
export declare function prevYear(month: DateLike, format?: string): string;
|
|
19
|
-
export declare function prevMonth(month: DateLike): string;
|
|
20
|
-
export declare function addYears(year: DateLike, n: number): string;
|
|
21
|
-
export declare function addMonths(month: DateLike, n: number): string;
|
|
22
|
-
export declare function addWeeks(date: DateLike, n: number): string;
|
|
23
|
-
export declare function differenceInCalendarMonths(month1: DateLike, month2: DateLike): number;
|
|
24
|
-
export declare function differenceInCalendarDays(month1: DateLike, month2: DateLike): number;
|
|
25
|
-
export declare function subMonths(month: string | Date, n: number): string;
|
|
26
|
-
export declare function subWeeks(date: DateLike, n: number): string;
|
|
27
|
-
export declare function subYears(year: string | Date, n: number): string;
|
|
28
|
-
export declare function addDays(day: DateLike, n: number): string;
|
|
29
|
-
export declare function subDays(day: DateLike, n: number): string;
|
|
30
|
-
export declare function isBefore(month1: DateLike, month2: DateLike): boolean;
|
|
31
|
-
export declare function isAfter(month1: DateLike, month2: DateLike): boolean;
|
|
32
|
-
export declare function isCurrentMonth(month: DateLike): boolean;
|
|
33
|
-
export declare function isCurrentDay(day: DateLike): boolean;
|
|
34
|
-
export declare function bounds(month: DateLike): {
|
|
35
|
-
start: number;
|
|
36
|
-
end: number;
|
|
37
|
-
};
|
|
38
|
-
export declare function _yearRange(start: DateLike, end: DateLike, inclusive?: boolean): string[];
|
|
39
|
-
export declare function yearRangeInclusive(start: DateLike, end: DateLike): string[];
|
|
40
|
-
export declare function _weekRange(start: DateLike, end: DateLike, inclusive?: boolean, firstDayOfWeekIdx?: SyncedPrefs['firstDayOfWeekIdx']): string[];
|
|
41
|
-
export declare function weekRangeInclusive(start: DateLike, end: DateLike, firstDayOfWeekIdx?: SyncedPrefs['firstDayOfWeekIdx']): string[];
|
|
42
|
-
export declare function _range(start: DateLike, end: DateLike, inclusive?: boolean): string[];
|
|
43
|
-
export declare function range(start: DateLike, end: DateLike): string[];
|
|
44
|
-
export declare function rangeInclusive(start: DateLike, end: DateLike): string[];
|
|
45
|
-
export declare function _dayRange(start: DateLike, end: DateLike, inclusive?: boolean): string[];
|
|
46
|
-
export declare function dayRange(start: DateLike, end: DateLike): string[];
|
|
47
|
-
export declare function dayRangeInclusive(start: DateLike, end: DateLike): string[];
|
|
48
|
-
export declare function getMonthFromIndex(year: string, monthIndex: number): string;
|
|
49
|
-
export declare function getMonthIndex(month: string): number;
|
|
50
|
-
export declare function getYear(month: string): string;
|
|
51
|
-
export declare function getMonth(day: string): string;
|
|
52
|
-
export declare function getDay(day: string): number;
|
|
53
|
-
export declare function getMonthEnd(day: string): string;
|
|
54
|
-
export declare function getWeekEnd(date: DateLike, firstDayOfWeekIdx?: SyncedPrefs['firstDayOfWeekIdx']): string;
|
|
55
|
-
export declare function getYearStart(month: string): string;
|
|
56
|
-
export declare function getYearEnd(month: string): string;
|
|
57
|
-
export declare function sheetForMonth(month: string): string;
|
|
58
|
-
export declare function nameForMonth(month: DateLike, locale?: Locale): string;
|
|
59
|
-
export declare function format(month: DateLike, format: string, locale?: Locale): string;
|
|
60
|
-
export declare function formatDistance(date1: DateLike, date2: DateLike, locale?: Locale, options?: {
|
|
61
|
-
addSuffix?: boolean;
|
|
62
|
-
includeSeconds?: boolean;
|
|
63
|
-
}): string;
|
|
64
|
-
export declare const getDateFormatRegex: import("memoize-one").MemoizedFn<(format: string) => RegExp>;
|
|
65
|
-
export declare const getDayMonthFormat: import("memoize-one").MemoizedFn<(format: string) => string>;
|
|
66
|
-
export declare const getDayMonthRegex: import("memoize-one").MemoizedFn<(format: string) => RegExp>;
|
|
67
|
-
export declare const getMonthYearFormat: import("memoize-one").MemoizedFn<(format: string) => string>;
|
|
68
|
-
export declare const getMonthYearRegex: import("memoize-one").MemoizedFn<(format: string) => RegExp>;
|
|
69
|
-
export declare const getShortYearFormat: import("memoize-one").MemoizedFn<(format: string) => string>;
|
|
70
|
-
export declare const getShortYearRegex: import("memoize-one").MemoizedFn<(format: string) => RegExp>;
|
|
71
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getNormalisedString(value: string): string;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { WithRequired } from '../types/util';
|
|
2
|
-
type ObjectExpression = {
|
|
3
|
-
[key: string]: ObjectExpression | unknown;
|
|
4
|
-
};
|
|
5
|
-
export type QueryState = {
|
|
6
|
-
get table(): string;
|
|
7
|
-
get tableOptions(): Readonly<Record<string, unknown>>;
|
|
8
|
-
get filterExpressions(): ReadonlyArray<ObjectExpression>;
|
|
9
|
-
get selectExpressions(): ReadonlyArray<ObjectExpression | string | '*'>;
|
|
10
|
-
get groupExpressions(): ReadonlyArray<ObjectExpression | string>;
|
|
11
|
-
get orderExpressions(): ReadonlyArray<ObjectExpression | string>;
|
|
12
|
-
get calculation(): boolean;
|
|
13
|
-
get rawMode(): boolean;
|
|
14
|
-
get withDead(): boolean;
|
|
15
|
-
get validateRefs(): boolean;
|
|
16
|
-
get limit(): number | null;
|
|
17
|
-
get offset(): number | null;
|
|
18
|
-
};
|
|
19
|
-
export declare class Query {
|
|
20
|
-
state: QueryState;
|
|
21
|
-
constructor(state: WithRequired<Partial<QueryState>, 'table'>);
|
|
22
|
-
filter(expr: ObjectExpression): Query;
|
|
23
|
-
unfilter(exprs?: Array<keyof ObjectExpression>): Query;
|
|
24
|
-
select(exprs?: Array<ObjectExpression | string> | ObjectExpression | string | '*' | ['*']): Query;
|
|
25
|
-
calculate(expr: ObjectExpression | string): Query;
|
|
26
|
-
groupBy(exprs: ObjectExpression | string | Array<ObjectExpression | string>): Query;
|
|
27
|
-
orderBy(exprs: ObjectExpression | string | Array<ObjectExpression | string>): Query;
|
|
28
|
-
limit(num: number): Query;
|
|
29
|
-
offset(num: number): Query;
|
|
30
|
-
raw(): Query;
|
|
31
|
-
withDead(): Query;
|
|
32
|
-
withoutValidatedRefs(): Query;
|
|
33
|
-
options(opts: Record<string, unknown>): Query;
|
|
34
|
-
reset(): Query;
|
|
35
|
-
serialize(): QueryState;
|
|
36
|
-
serializeAsString(): string;
|
|
37
|
-
}
|
|
38
|
-
export declare function getPrimaryOrderBy(query: Query, defaultOrderBy: ObjectExpression | null): {
|
|
39
|
-
order: string;
|
|
40
|
-
field?: undefined;
|
|
41
|
-
} | {
|
|
42
|
-
field: string;
|
|
43
|
-
order: unknown;
|
|
44
|
-
};
|
|
45
|
-
export declare function q(table: QueryState['table']): Query;
|
|
46
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { FieldValueTypes, RuleConditionOp } from '../types/models';
|
|
2
|
-
export declare const FIELD_TYPES: Map<keyof FieldValueTypes, string>;
|
|
3
|
-
export declare function isValidOp(field: keyof FieldValueTypes, op: RuleConditionOp): any;
|
|
4
|
-
export declare function getValidOps(field: keyof FieldValueTypes): RuleConditionOp[];
|
|
5
|
-
export declare function getAllocationMethods(): {
|
|
6
|
-
'fixed-amount': string;
|
|
7
|
-
'fixed-percent': string;
|
|
8
|
-
remainder: string;
|
|
9
|
-
};
|
|
10
|
-
export declare function mapField(field: any, opts?: any): any;
|
|
11
|
-
export declare function friendlyOp(op: any, type?: any): string;
|
|
12
|
-
export declare function translateRuleStage(stage: string): string;
|
|
13
|
-
export declare function deserializeField(field: any): {
|
|
14
|
-
field: string;
|
|
15
|
-
options: {
|
|
16
|
-
inflow: boolean;
|
|
17
|
-
outflow?: undefined;
|
|
18
|
-
};
|
|
19
|
-
} | {
|
|
20
|
-
field: string;
|
|
21
|
-
options: {
|
|
22
|
-
outflow: boolean;
|
|
23
|
-
inflow?: undefined;
|
|
24
|
-
};
|
|
25
|
-
} | {
|
|
26
|
-
field: any;
|
|
27
|
-
options?: undefined;
|
|
28
|
-
};
|
|
29
|
-
export declare function getFieldError(type: any): "Invalid date format" | "Value cannot be empty" | "Value must be a string" | "Value must be a boolean" | "Value must be a number" | "Please choose a valid field for this type of rule" | "Invalid handlebars template" | "Internal error, sorry! Please get in touch https://actualbudget.org/contact/ for support";
|
|
30
|
-
export declare function sortNumbers(num1: any, num2: any): any[];
|
|
31
|
-
export declare function parse(item: any): any;
|
|
32
|
-
export declare function unparse({ error: _error, inputKey: _inputKey, ...item }: {
|
|
33
|
-
[x: string]: any;
|
|
34
|
-
error: any;
|
|
35
|
-
inputKey: any;
|
|
36
|
-
}): {
|
|
37
|
-
[x: string]: any;
|
|
38
|
-
};
|
|
39
|
-
export declare function makeValue(value: any, cond: any): any;
|
|
40
|
-
export declare function getApproxNumberThreshold(number: any): number;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { IRuleOptions } from '@rschedule/core';
|
|
2
|
-
import type { Locale } from 'date-fns';
|
|
3
|
-
import type { PayeeEntity, RecurConfig, ScheduleEntity } from '../types/models';
|
|
4
|
-
import { Condition } from '../server/rules';
|
|
5
|
-
export declare function getStatus(nextDate: string, completed: boolean, hasTrans: boolean, upcomingLength?: string): "completed" | "paid" | "due" | "upcoming" | "missed" | "scheduled";
|
|
6
|
-
export declare function getStatusLabel(status: string): string;
|
|
7
|
-
export declare function getHasTransactionsQuery(schedules: any): import("./query").Query;
|
|
8
|
-
export declare function getRecurringDescription(config: RecurConfig, dateFormat: string, locale: Locale): string;
|
|
9
|
-
export declare function recurConfigToRSchedule(config: any): IRuleOptions[];
|
|
10
|
-
export declare function extractScheduleConds(conditions: any): {
|
|
11
|
-
payee: any;
|
|
12
|
-
account: any;
|
|
13
|
-
amount: any;
|
|
14
|
-
date: any;
|
|
15
|
-
};
|
|
16
|
-
export declare function getNextDate(dateCond: any, start?: Date, noSkipWeekend?: boolean): any;
|
|
17
|
-
export declare function getDateWithSkippedWeekend(date: Date, solveMode: 'after' | 'before'): Date;
|
|
18
|
-
export declare function getScheduledAmount(amount: number | {
|
|
19
|
-
num1: number;
|
|
20
|
-
num2: number;
|
|
21
|
-
}, inverse?: boolean): number;
|
|
22
|
-
export declare function describeSchedule(schedule: ScheduleEntity, payee?: PayeeEntity): string;
|
|
23
|
-
export declare function getUpcomingDays(upcomingLength?: string, today?: string): number;
|
|
24
|
-
export declare function scheduleIsRecurring(dateCond: Condition | null): boolean;
|
|
25
|
-
export type ScheduleStatusType = ReturnType<typeof getStatus>;
|
|
26
|
-
export type ScheduleStatuses = Map<ScheduleEntity['id'], ScheduleStatusType>;
|
|
27
|
-
export declare function isForPreview(schedule: ScheduleEntity, statuses: ScheduleStatuses): boolean;
|
|
28
|
-
export declare function computeSchedulePreviewTransactions(schedules: readonly ScheduleEntity[], statuses: ScheduleStatuses, upcomingLength?: string, filter?: (schedule: ScheduleEntity) => boolean): {
|
|
29
|
-
id: string;
|
|
30
|
-
payee: string;
|
|
31
|
-
account: string;
|
|
32
|
-
amount: number;
|
|
33
|
-
date: string;
|
|
34
|
-
schedule: string;
|
|
35
|
-
forceUpcoming: boolean;
|
|
36
|
-
}[];
|