@actual-app/api 26.1.0-nightly.20251219 → 26.1.0-nightly.20251221
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/loot-core/src/platform/exceptions/index.d.ts +1 -1
- package/@types/loot-core/src/platform/server/asyncStorage/index.d.ts +2 -2
- package/@types/loot-core/src/server/accounts/app.d.ts +1 -1
- package/@types/loot-core/src/server/accounts/sync.d.ts +1 -1
- package/@types/loot-core/src/server/admin/app.d.ts +1 -1
- package/@types/loot-core/src/server/api-models.d.ts +2 -2
- package/@types/loot-core/src/server/api.d.ts +2 -3
- package/@types/loot-core/src/server/app.d.ts +1 -1
- package/@types/loot-core/src/server/aql/compiler.d.ts +1 -1
- package/@types/loot-core/src/server/aql/exec.d.ts +2 -2
- package/@types/loot-core/src/server/aql/index.d.ts +2 -2
- package/@types/loot-core/src/server/aql/schema/executors.d.ts +1 -1
- package/@types/loot-core/src/server/aql/schema/index.d.ts +1 -1
- package/@types/loot-core/src/server/auth/app.d.ts +1 -1
- package/@types/loot-core/src/server/budget/actions.d.ts +2 -2
- package/@types/loot-core/src/server/budget/app.d.ts +3 -3
- package/@types/loot-core/src/server/budget/category-template-context.d.ts +2 -2
- package/@types/loot-core/src/server/budget/goal-template.d.ts +2 -2
- package/@types/loot-core/src/server/budget/schedule-template.d.ts +2 -2
- package/@types/loot-core/src/server/budgetfiles/app.d.ts +2 -2
- package/@types/loot-core/src/server/cloud-storage.d.ts +4 -4
- package/@types/loot-core/src/server/db/index.d.ts +4 -4
- package/@types/loot-core/src/server/encryption/app.d.ts +1 -1
- package/@types/loot-core/src/server/filters/app.d.ts +1 -1
- package/@types/loot-core/src/server/importers/ynab4-types.d.ts +24 -24
- package/@types/loot-core/src/server/importers/ynab4.d.ts +1 -1
- package/@types/loot-core/src/server/importers/ynab5-types.d.ts +18 -18
- package/@types/loot-core/src/server/importers/ynab5.d.ts +1 -1
- package/@types/loot-core/src/server/main-app.d.ts +1 -1
- package/@types/loot-core/src/server/main.d.ts +1 -1
- package/@types/loot-core/src/server/migrate/migrations.d.ts +1 -1
- package/@types/loot-core/src/server/models.d.ts +2 -2
- package/@types/loot-core/src/server/notes/app.d.ts +1 -1
- package/@types/loot-core/src/server/payees/app.d.ts +2 -2
- package/@types/loot-core/src/server/preferences/app.d.ts +3 -3
- package/@types/loot-core/src/server/rules/action.d.ts +1 -1
- package/@types/loot-core/src/server/rules/app.d.ts +1 -1
- package/@types/loot-core/src/server/rules/customFunctions.d.ts +2 -2
- package/@types/loot-core/src/server/rules/rule-indexer.d.ts +1 -1
- package/@types/loot-core/src/server/rules/rule-utils.d.ts +1 -1
- package/@types/loot-core/src/server/rules/rule.d.ts +1 -1
- package/@types/loot-core/src/server/schedules/app.d.ts +1 -1
- package/@types/loot-core/src/server/sheet.d.ts +2 -1
- package/@types/loot-core/src/server/spreadsheet/app.d.ts +1 -1
- package/@types/loot-core/src/server/spreadsheet/spreadsheet.d.ts +2 -2
- package/@types/loot-core/src/server/sync/encoder.d.ts +1 -1
- package/@types/loot-core/src/server/tags/app.d.ts +1 -1
- package/@types/loot-core/src/server/tools/app.d.ts +1 -1
- package/@types/loot-core/src/server/transactions/app.d.ts +3 -3
- package/@types/loot-core/src/server/transactions/import/xmlcamt2json.d.ts +2 -2
- package/@types/loot-core/src/server/transactions/index.d.ts +2 -2
- package/@types/loot-core/src/server/undo.d.ts +1 -1
- package/@types/loot-core/src/shared/currencies.d.ts +1 -1
- package/@types/loot-core/src/shared/months.d.ts +1 -1
- package/@types/loot-core/src/shared/query.d.ts +1 -1
- package/@types/loot-core/src/shared/rules.d.ts +1 -1
- package/@types/loot-core/src/shared/schedules.d.ts +1 -1
- package/@types/loot-core/src/types/api-handlers.d.ts +4 -4
- package/@types/loot-core/src/types/handlers.d.ts +1 -2
- package/@types/loot-core/src/types/models/bank-sync.d.ts +1 -1
- package/@types/loot-core/src/types/models/category-group.d.ts +3 -3
- package/@types/loot-core/src/types/models/category.d.ts +3 -3
- package/@types/loot-core/src/types/models/import-transaction.d.ts +2 -2
- package/@types/loot-core/src/types/models/payee.d.ts +3 -3
- package/@types/loot-core/src/types/models/reports.d.ts +12 -12
- package/@types/loot-core/src/types/models/rule.d.ts +16 -16
- package/@types/loot-core/src/types/models/schedule.d.ts +6 -6
- package/@types/loot-core/src/types/models/simplefin.d.ts +4 -4
- package/@types/loot-core/src/types/models/tags.d.ts +2 -2
- package/@types/loot-core/src/types/models/templates.d.ts +28 -28
- package/@types/loot-core/src/types/models/transaction-filter.d.ts +2 -2
- package/@types/loot-core/src/types/models/transaction.d.ts +7 -7
- package/@types/loot-core/src/types/models/user-access.d.ts +4 -4
- package/@types/loot-core/src/types/models/user.d.ts +8 -8
- package/@types/loot-core/src/types/server-events.d.ts +2 -2
- package/@types/loot-core/src/types/server-handlers.d.ts +3 -3
- package/@types/loot-core/typings/window.d.ts +0 -3
- package/@types/methods.d.ts +8 -4
- package/dist/app/bundle.api.js +73 -55
- package/dist/migrations/1722804019000_create_dashboard_table.js +0 -1
- package/dist/package.json +2 -2
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const captureException: (exc: Error) => void;
|
|
2
|
-
export declare const captureBreadcrumb: (
|
|
2
|
+
export declare const captureBreadcrumb: (crumb: unknown) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GlobalPrefsJson } from '../../../types/prefs';
|
|
2
|
-
import * as T from './index-types';
|
|
1
|
+
import { type GlobalPrefsJson } from '../../../types/prefs';
|
|
2
|
+
import type * as T from './index-types';
|
|
3
3
|
export declare const init: T.Init;
|
|
4
4
|
export declare const getItem: T.GetItem;
|
|
5
5
|
export declare const setItem: T.SetItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccountEntity, CategoryEntity, SyncServerGoCardlessAccount, TransactionEntity, SyncServerSimpleFinAccount, SyncServerPluggyAiAccount, ImportTransactionEntity } from '../../types/models';
|
|
1
|
+
import { type AccountEntity, type CategoryEntity, type SyncServerGoCardlessAccount, type TransactionEntity, type SyncServerSimpleFinAccount, type SyncServerPluggyAiAccount, type ImportTransactionEntity } from '../../types/models';
|
|
2
2
|
import * as db from '../db';
|
|
3
3
|
import * as bankSync from './sync';
|
|
4
4
|
export type AccountHandlers = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccountEntity, TransactionEntity } from '../../types/models';
|
|
1
|
+
import { type AccountEntity, type TransactionEntity } from '../../types/models';
|
|
2
2
|
export declare function getGoCardlessAccounts(userId: any, userKey: any, id: any): Promise<any>;
|
|
3
3
|
export type ReconcileTransactionsResult = {
|
|
4
4
|
added: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserAvailable, UserEntity, NewUserAccessEntity } from '../../types/models';
|
|
1
|
+
import { type UserAvailable, type UserEntity, type NewUserAccessEntity } from '../../types/models';
|
|
2
2
|
export type AdminHandlers = {
|
|
3
3
|
'users-get': typeof getUsers;
|
|
4
4
|
'user-delete-all': typeof deleteAllUsers;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Budget } from '../types/budget';
|
|
1
|
+
import { type Budget } from '../types/budget';
|
|
2
2
|
import type { AccountEntity, CategoryEntity, CategoryGroupEntity, PayeeEntity, ScheduleEntity } from '../types/models';
|
|
3
|
-
import { RemoteFile } from './cloud-storage';
|
|
3
|
+
import { type RemoteFile } from './cloud-storage';
|
|
4
4
|
export type APIAccountEntity = Pick<AccountEntity, 'id' | 'name'> & {
|
|
5
5
|
offbudget?: boolean;
|
|
6
6
|
closed?: boolean;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare function installAPI(serverHandlers: ServerHandlers): ServerHandlers & Handlers;
|
|
1
|
+
import { type ServerHandlers } from '../types/server-handlers';
|
|
2
|
+
export declare function installAPI(serverHandlers: ServerHandlers): ServerHandlers & import("../types/api-handlers").ApiHandlers & import("./budget/app").BudgetHandlers & import("./dashboard/app").DashboardHandlers & import("./filters/app").FiltersHandlers & import("./notes/app").NotesHandlers & import("./preferences/app").PreferencesHandlers & import("./reports/app").ReportsHandlers & import("./rules/app").RulesHandlers & import("./schedules/app").SchedulesHandlers & import("./transactions/app").TransactionHandlers & import("./admin/app").AdminHandlers & import("./tools/app").ToolsHandlers & import("./accounts/app").AccountHandlers & import("./payees/app").PayeesHandlers & import("./spreadsheet/app").SpreadsheetHandlers & import("./sync/app").SyncHandlers & import("./budgetfiles/app").BudgetFileHandlers & import("./encryption/app").EncryptionHandlers & import("./tags/app").TagsHandlers & import("./auth/app").AuthHandlers;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QueryState } from '../../shared/query';
|
|
2
|
-
import { CompilerState, OutputTypes, SchemaConfig, SqlPieces } from './compiler';
|
|
1
|
+
import { type QueryState } from '../../shared/query';
|
|
2
|
+
import { type CompilerState, type OutputTypes, type SchemaConfig, type SqlPieces } from './compiler';
|
|
3
3
|
export declare function execQuery(queryState: QueryState, compilerState: CompilerState, sqlPieces: SqlPieces, params: (string | number)[], outputTypes: OutputTypes): Promise<Record<string, unknown>[]>;
|
|
4
4
|
export type AqlQueryExecutor = (compilerState: CompilerState, queryState: QueryState, sqlPieces: SqlPieces, params: (string | number)[], outputTypes: OutputTypes) => Promise<Record<string, unknown>[]>;
|
|
5
5
|
type AqlQueryParamName = string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Query, type QueryState } from '../../shared/query';
|
|
2
|
-
import { CompilerState, SqlPieces } from './compiler';
|
|
3
|
-
import { AqlQueryParams } from './exec';
|
|
2
|
+
import { type CompilerState, type SqlPieces } from './compiler';
|
|
3
|
+
import { type AqlQueryParams } from './exec';
|
|
4
4
|
export { convertForInsert, convertForUpdate, convertFromSelect, convertInputType, } from './schema-helpers';
|
|
5
5
|
export { compileQuery } from './compiler';
|
|
6
6
|
export { makeViews } from './views';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IntegerAmount } from '../../shared/util';
|
|
2
|
-
import { CategoryEntity } from '../../types/models';
|
|
1
|
+
import { type IntegerAmount } from '../../shared/util';
|
|
2
|
+
import { type CategoryEntity } from '../../types/models';
|
|
3
3
|
export declare function getSheetValue(sheetName: string, cell: string): Promise<number>;
|
|
4
4
|
export declare function getSheetBoolean(sheetName: string, cell: string): Promise<boolean>;
|
|
5
5
|
export declare function isReflectBudget(): boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CategoryEntity, CategoryGroupEntity } from '../../types/models';
|
|
1
|
+
import { type CategoryEntity, type CategoryGroupEntity } from '../../types/models';
|
|
2
2
|
import * as actions from './actions';
|
|
3
3
|
import * as cleanupActions from './cleanup-template';
|
|
4
4
|
import * as goalActions from './goal-template';
|
|
5
5
|
import * as goalNoteActions from './template-notes';
|
|
6
|
-
export
|
|
6
|
+
export type BudgetHandlers = {
|
|
7
7
|
'budget/budget-amount': typeof actions.setBudget;
|
|
8
8
|
'budget/copy-previous-month': typeof actions.copyPreviousMonth;
|
|
9
9
|
'budget/copy-single-month': typeof actions.copySinglePreviousMonth;
|
|
@@ -44,7 +44,7 @@ export interface BudgetHandlers {
|
|
|
44
44
|
'budget/set-category-automations': typeof goalActions.storeTemplates;
|
|
45
45
|
'budget/store-note-templates': typeof goalNoteActions.storeNoteTemplates;
|
|
46
46
|
'budget/render-note-templates': typeof goalNoteActions.unparse;
|
|
47
|
-
}
|
|
47
|
+
};
|
|
48
48
|
export declare const app: {
|
|
49
49
|
events: import("mitt").Emitter<{
|
|
50
50
|
sync: import("../../types/server-events").ServerEvents["sync-event"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CategoryEntity } from '../../types/models';
|
|
2
|
-
import { AverageTemplate, CopyTemplate, PercentageTemplate, SimpleTemplate, SpendTemplate, Template, PeriodicTemplate } from '../../types/models/templates';
|
|
1
|
+
import { type CategoryEntity } from '../../types/models';
|
|
2
|
+
import { type AverageTemplate, type CopyTemplate, type PercentageTemplate, type SimpleTemplate, type SpendTemplate, type Template, type PeriodicTemplate } from '../../types/models/templates';
|
|
3
3
|
export declare class CategoryTemplateContext {
|
|
4
4
|
static init(templates: Template[], category: CategoryEntity, month: string, budgeted: number): Promise<CategoryTemplateContext>;
|
|
5
5
|
isGoalOnly(): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CategoryEntity } from '../../types/models';
|
|
2
|
-
import { Template } from '../../types/models/templates';
|
|
1
|
+
import { type CategoryEntity } from '../../types/models';
|
|
2
|
+
import { type Template } from '../../types/models/templates';
|
|
3
3
|
type Notification = {
|
|
4
4
|
type?: 'message' | 'error' | 'warning' | undefined;
|
|
5
5
|
pre?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CategoryEntity } from '../../types/models';
|
|
2
|
-
import { Template } from '../../types/models/templates';
|
|
1
|
+
import { type CategoryEntity } from '../../types/models';
|
|
2
|
+
import { type Template } from '../../types/models/templates';
|
|
3
3
|
export declare function runSchedule(template_lines: Template[], current_month: string, balance: number, remainder: number, last_month_balance: number, to_budget: number, errors: string[], category: CategoryEntity): Promise<{
|
|
4
4
|
to_budget: number;
|
|
5
5
|
errors: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Budget } from '../../types/budget';
|
|
1
|
+
import { type Budget } from '../../types/budget';
|
|
2
2
|
import * as cloudStorage from '../cloud-storage';
|
|
3
|
-
import { ImportableBudgetType } from '../importers';
|
|
3
|
+
import { type ImportableBudgetType } from '../importers';
|
|
4
4
|
export type BudgetFileHandlers = {
|
|
5
5
|
'validate-budget-name': typeof handleValidateBudgetName;
|
|
6
6
|
'unique-budget-name': typeof handleUniqueBudgetName;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type UsersWithAccess = {
|
|
2
2
|
userId: string;
|
|
3
3
|
userName: string;
|
|
4
4
|
displayName: string;
|
|
5
5
|
owner: boolean;
|
|
6
|
-
}
|
|
7
|
-
export
|
|
6
|
+
};
|
|
7
|
+
export type RemoteFile = {
|
|
8
8
|
deleted: boolean;
|
|
9
9
|
fileId: string;
|
|
10
10
|
groupId: string;
|
|
@@ -13,7 +13,7 @@ export interface RemoteFile {
|
|
|
13
13
|
hasKey: boolean;
|
|
14
14
|
owner: string;
|
|
15
15
|
usersWithAccess: UsersWithAccess[];
|
|
16
|
-
}
|
|
16
|
+
};
|
|
17
17
|
export declare function checkKey(): Promise<{
|
|
18
18
|
valid: boolean;
|
|
19
19
|
error?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Database } from '@jlongster/sql.js';
|
|
2
|
-
import { TransactionEntity } from '../../types/models';
|
|
3
|
-
import { WithRequired } from '../../types/util';
|
|
4
|
-
import { DbAccount, DbBank, DbCategory, DbCategoryGroup, DbPayee, DbTag, DbTransaction, DbViewTransaction } from './types';
|
|
1
|
+
import { type Database } from '@jlongster/sql.js';
|
|
2
|
+
import { type TransactionEntity } from '../../types/models';
|
|
3
|
+
import { type WithRequired } from '../../types/util';
|
|
4
|
+
import { type DbAccount, type DbBank, type DbCategory, type DbCategoryGroup, type DbPayee, type DbTag, type DbTransaction, type DbViewTransaction } from './types';
|
|
5
5
|
export * from './types';
|
|
6
6
|
export { toDateRepr, fromDateRepr } from '../models';
|
|
7
7
|
export declare function getDatabasePath(): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TransactionFilterEntity } from '../../types/models';
|
|
1
|
+
import { type TransactionFilterEntity } from '../../types/models';
|
|
2
2
|
declare function createFilter(filter: any): Promise<TransactionFilterEntity['id']>;
|
|
3
3
|
declare function updateFilter(filter: any): Promise<void>;
|
|
4
4
|
declare function deleteFilter(id: TransactionFilterEntity['id']): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type YFull = {
|
|
2
2
|
masterCategories: MasterCategory[];
|
|
3
3
|
payees: Payee[];
|
|
4
4
|
monthlyBudgets: MonthlyBudget[];
|
|
@@ -7,8 +7,8 @@ export interface YFull {
|
|
|
7
7
|
scheduledTransactions: ScheduledTransaction[];
|
|
8
8
|
budgetMetaData: BudgetMetaData;
|
|
9
9
|
accounts: Account[];
|
|
10
|
-
}
|
|
11
|
-
export
|
|
10
|
+
};
|
|
11
|
+
export type MasterCategory = {
|
|
12
12
|
entityType: string;
|
|
13
13
|
expanded: boolean;
|
|
14
14
|
note?: string;
|
|
@@ -20,8 +20,8 @@ export interface MasterCategory {
|
|
|
20
20
|
entityId: string;
|
|
21
21
|
sortableIndex: number;
|
|
22
22
|
isTombstone?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export
|
|
23
|
+
};
|
|
24
|
+
export type SubCategory = {
|
|
25
25
|
entityType: string;
|
|
26
26
|
name: string;
|
|
27
27
|
note?: string;
|
|
@@ -31,8 +31,8 @@ export interface SubCategory {
|
|
|
31
31
|
entityId: string;
|
|
32
32
|
sortableIndex: number;
|
|
33
33
|
isTombstone?: boolean;
|
|
34
|
-
}
|
|
35
|
-
export
|
|
34
|
+
};
|
|
35
|
+
export type Payee = {
|
|
36
36
|
entityType: string;
|
|
37
37
|
autoFillCategoryId?: string;
|
|
38
38
|
autoFillAmount: number;
|
|
@@ -44,23 +44,23 @@ export interface Payee {
|
|
|
44
44
|
entityVersion: string;
|
|
45
45
|
entityId: string;
|
|
46
46
|
isTombstone?: boolean;
|
|
47
|
-
}
|
|
48
|
-
export
|
|
47
|
+
};
|
|
48
|
+
export type RenameCondition = {
|
|
49
49
|
entityType: string;
|
|
50
50
|
parentPayeeId: string;
|
|
51
51
|
operator: string;
|
|
52
52
|
operand: string;
|
|
53
53
|
entityVersion: string;
|
|
54
54
|
entityId: string;
|
|
55
|
-
}
|
|
56
|
-
export
|
|
55
|
+
};
|
|
56
|
+
export type MonthlyBudget = {
|
|
57
57
|
entityType: string;
|
|
58
58
|
monthlySubCategoryBudgets: MonthlySubCategoryBudget[];
|
|
59
59
|
month: string;
|
|
60
60
|
entityVersion: string;
|
|
61
61
|
entityId: string;
|
|
62
|
-
}
|
|
63
|
-
export
|
|
62
|
+
};
|
|
63
|
+
export type MonthlySubCategoryBudget = {
|
|
64
64
|
entityType: string;
|
|
65
65
|
categoryId: string;
|
|
66
66
|
budgeted: number;
|
|
@@ -69,13 +69,13 @@ export interface MonthlySubCategoryBudget {
|
|
|
69
69
|
entityId: string;
|
|
70
70
|
parentMonthlyBudgetId: string;
|
|
71
71
|
isTombstone?: boolean;
|
|
72
|
-
}
|
|
73
|
-
export
|
|
72
|
+
};
|
|
73
|
+
export type FileMetaData = {
|
|
74
74
|
entityType: string;
|
|
75
75
|
budgetDataVersion: string;
|
|
76
76
|
currentKnowledge: string;
|
|
77
|
-
}
|
|
78
|
-
export
|
|
77
|
+
};
|
|
78
|
+
export type Transaction = {
|
|
79
79
|
entityType: string;
|
|
80
80
|
entityId: string;
|
|
81
81
|
categoryId: string;
|
|
@@ -92,9 +92,9 @@ export interface Transaction {
|
|
|
92
92
|
subTransactions?: SubTransaction[];
|
|
93
93
|
transferTransactionId?: string;
|
|
94
94
|
targetAccountId?: string;
|
|
95
|
-
}
|
|
95
|
+
};
|
|
96
96
|
export type SubTransaction = Omit<Transaction, 'subTransactions'>;
|
|
97
|
-
export
|
|
97
|
+
export type ScheduledTransaction = {
|
|
98
98
|
entityType: string;
|
|
99
99
|
entityId: string;
|
|
100
100
|
categoryId: string;
|
|
@@ -109,8 +109,8 @@ export interface ScheduledTransaction {
|
|
|
109
109
|
cleared: string;
|
|
110
110
|
frequency: string;
|
|
111
111
|
accepted: boolean;
|
|
112
|
-
}
|
|
113
|
-
export
|
|
112
|
+
};
|
|
113
|
+
export type BudgetMetaData = {
|
|
114
114
|
entityType: string;
|
|
115
115
|
strictBudget: string;
|
|
116
116
|
currencyISOSymbol?: string;
|
|
@@ -119,8 +119,8 @@ export interface BudgetMetaData {
|
|
|
119
119
|
budgetType: string;
|
|
120
120
|
dateLocale: string;
|
|
121
121
|
entityId: string;
|
|
122
|
-
}
|
|
123
|
-
export
|
|
122
|
+
};
|
|
123
|
+
export type Account = {
|
|
124
124
|
entityType: string;
|
|
125
125
|
lastEnteredCheckNumber: number;
|
|
126
126
|
lastReconciledBalance: number;
|
|
@@ -132,4 +132,4 @@ export interface Account {
|
|
|
132
132
|
entityVersion: string;
|
|
133
133
|
entityId: string;
|
|
134
134
|
isTombstone?: boolean;
|
|
135
|
-
}
|
|
135
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as YNAB4 from './ynab4-types';
|
|
1
|
+
import type * as YNAB4 from './ynab4-types';
|
|
2
2
|
export declare function doImport(data: YNAB4.YFull): Promise<void>;
|
|
3
3
|
export declare function getBudgetName(filepath: any): string;
|
|
4
4
|
export declare function parseFile(buffer: Buffer): YNAB4.YFull;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Budget = {
|
|
2
2
|
name?: string;
|
|
3
3
|
budget_name?: string;
|
|
4
4
|
accounts: Account[];
|
|
@@ -8,36 +8,36 @@ export interface Budget {
|
|
|
8
8
|
transactions: Transaction[];
|
|
9
9
|
subtransactions: Subtransaction[];
|
|
10
10
|
months: Month[];
|
|
11
|
-
}
|
|
12
|
-
export
|
|
11
|
+
};
|
|
12
|
+
export type Account = {
|
|
13
13
|
id: string;
|
|
14
14
|
name: string;
|
|
15
15
|
on_budget: boolean;
|
|
16
16
|
deleted: boolean;
|
|
17
17
|
closed: boolean;
|
|
18
|
-
}
|
|
19
|
-
export
|
|
18
|
+
};
|
|
19
|
+
export type Payee = {
|
|
20
20
|
id: string;
|
|
21
21
|
name: string;
|
|
22
22
|
deleted: boolean;
|
|
23
23
|
transfer_acct?: string;
|
|
24
|
-
}
|
|
25
|
-
export
|
|
24
|
+
};
|
|
25
|
+
export type CategoryGroup = {
|
|
26
26
|
id: string;
|
|
27
27
|
name: string;
|
|
28
28
|
deleted: boolean;
|
|
29
29
|
hidden: boolean;
|
|
30
30
|
note?: string;
|
|
31
|
-
}
|
|
32
|
-
export
|
|
31
|
+
};
|
|
32
|
+
export type Category = {
|
|
33
33
|
id: string;
|
|
34
34
|
category_group_id: string;
|
|
35
35
|
name: string;
|
|
36
36
|
deleted: boolean;
|
|
37
37
|
hidden: boolean;
|
|
38
38
|
note?: string;
|
|
39
|
-
}
|
|
40
|
-
export
|
|
39
|
+
};
|
|
40
|
+
export type Transaction = {
|
|
41
41
|
id: string;
|
|
42
42
|
account_id: string;
|
|
43
43
|
date: string;
|
|
@@ -50,8 +50,8 @@ export interface Transaction {
|
|
|
50
50
|
cleared: string;
|
|
51
51
|
amount: number;
|
|
52
52
|
deleted: boolean;
|
|
53
|
-
}
|
|
54
|
-
export
|
|
53
|
+
};
|
|
54
|
+
export type Subtransaction = {
|
|
55
55
|
id: string;
|
|
56
56
|
transaction_id: string;
|
|
57
57
|
category_id: string;
|
|
@@ -59,13 +59,13 @@ export interface Subtransaction {
|
|
|
59
59
|
amount: number;
|
|
60
60
|
transfer_account_id: string;
|
|
61
61
|
payee_id: string;
|
|
62
|
-
}
|
|
63
|
-
export
|
|
62
|
+
};
|
|
63
|
+
export type Month = {
|
|
64
64
|
month: string;
|
|
65
65
|
categories: MonthCategory[];
|
|
66
|
-
}
|
|
67
|
-
export
|
|
66
|
+
};
|
|
67
|
+
export type MonthCategory = {
|
|
68
68
|
category_group_id: string;
|
|
69
69
|
id: string;
|
|
70
70
|
budgeted: number;
|
|
71
|
-
}
|
|
71
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as YNAB5 from './ynab5-types';
|
|
1
|
+
import type * as YNAB5 from './ynab5-types';
|
|
2
2
|
export declare function doImport(data: YNAB5.Budget): Promise<void>;
|
|
3
3
|
export declare function parseFile(buffer: Buffer): YNAB5.Budget;
|
|
4
4
|
export declare function getBudgetName(_filepath: string, data: YNAB5.Budget): string;
|
|
@@ -2,7 +2,7 @@ import './polyfills';
|
|
|
2
2
|
import * as fs from '../platform/server/fs';
|
|
3
3
|
import { q } from '../shared/query';
|
|
4
4
|
import { amountToInteger, integerToAmount } from '../shared/util';
|
|
5
|
-
import { Handlers } from '../types/handlers';
|
|
5
|
+
import { type Handlers } from '../types/handlers';
|
|
6
6
|
import * as db from './db';
|
|
7
7
|
export declare let handlers: Handlers;
|
|
8
8
|
export declare function getDefaultDocumentDir(): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Database } from '@jlongster/sql.js';
|
|
1
|
+
import { type Database } from '@jlongster/sql.js';
|
|
2
2
|
export declare function withMigrationsDir(dir: string, func: () => Promise<void>): Promise<void>;
|
|
3
3
|
export declare function getMigrationsDir(): string;
|
|
4
4
|
export declare function getUpMigration(id: any, names: any): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CategoryEntity, CategoryGroupEntity, PayeeEntity } from '../types/models';
|
|
2
|
-
import { DbAccount, DbCategory, DbCategoryGroup, DbPayee } from './db';
|
|
1
|
+
import { type CategoryEntity, type CategoryGroupEntity, type PayeeEntity } from '../types/models';
|
|
2
|
+
import { type DbAccount, type DbCategory, type DbCategoryGroup, type DbPayee } from './db';
|
|
3
3
|
export declare function requiredFields<T extends object, K extends keyof T>(name: string, row: T, fields: K[], update?: boolean): void;
|
|
4
4
|
export declare function toDateRepr(str: string): number;
|
|
5
5
|
export declare function fromDateRepr(number: number): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Diff } from '../../shared/util';
|
|
2
|
-
import { PayeeEntity, RuleEntity } from '../../types/models';
|
|
1
|
+
import { type Diff } from '../../shared/util';
|
|
2
|
+
import { type PayeeEntity, type RuleEntity } from '../../types/models';
|
|
3
3
|
export type PayeesHandlers = {
|
|
4
4
|
'payee-create': typeof createPayee;
|
|
5
5
|
'common-payees-get': typeof getCommonPayees;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { GlobalPrefs, MetadataPrefs, type SyncedPrefs } from '../../types/prefs';
|
|
2
|
-
export
|
|
1
|
+
import { type GlobalPrefs, type MetadataPrefs, type SyncedPrefs } from '../../types/prefs';
|
|
2
|
+
export type PreferencesHandlers = {
|
|
3
3
|
'preferences/save': typeof saveSyncedPrefs;
|
|
4
4
|
'preferences/get': typeof getSyncedPrefs;
|
|
5
5
|
'save-global-prefs': typeof saveGlobalPrefs;
|
|
6
6
|
'load-global-prefs': typeof loadGlobalPrefs;
|
|
7
7
|
'save-prefs': typeof saveMetadataPrefs;
|
|
8
8
|
'load-prefs': typeof loadMetadataPrefs;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
10
|
export declare const app: {
|
|
11
11
|
events: import("mitt").Emitter<{
|
|
12
12
|
sync: import("../../types/server-events").ServerEvents["sync-event"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TransactionForRules } from '../transactions/transaction-rules';
|
|
1
|
+
import { type TransactionForRules } from '../transactions/transaction-rules';
|
|
2
2
|
declare const ACTION_OPS: readonly ["set", "set-split-amount", "link-schedule", "prepend-notes", "append-notes", "delete-transaction"];
|
|
3
3
|
type ActionOperator = (typeof ACTION_OPS)[number];
|
|
4
4
|
export declare class Action {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RuleActionEntity, TransactionEntity, type RuleEntity } from '../../types/models';
|
|
1
|
+
import { type RuleActionEntity, type TransactionEntity, type RuleEntity } from '../../types/models';
|
|
2
2
|
import { Action } from '.';
|
|
3
3
|
type ValidationError = {
|
|
4
4
|
conditionErrors: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionPlugin } from 'hyperformula';
|
|
2
|
-
import { InterpreterState } from 'hyperformula/typings/interpreter/InterpreterState';
|
|
3
|
-
import { ProcedureAst } from 'hyperformula/typings/parser';
|
|
2
|
+
import { type InterpreterState } from 'hyperformula/typings/interpreter/InterpreterState';
|
|
3
|
+
import { type ProcedureAst } from 'hyperformula/typings/parser';
|
|
4
4
|
export declare class CustomFunctionsPlugin extends FunctionPlugin {
|
|
5
5
|
integerToAmount(ast: ProcedureAst, state: InterpreterState): import("hyperformula/typings/interpreter/InterpreterValue").RawInterpreterValue;
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RSchedule } from '../util/rschedule';
|
|
2
|
-
import { Rule } from './rule';
|
|
2
|
+
import { type Rule } from './rule';
|
|
3
3
|
export declare function assert(test: unknown, type: string, msg: string): asserts test;
|
|
4
4
|
export declare function rankRules(rules: Iterable<Rule>): Rule[];
|
|
5
5
|
export declare function migrateIds(rule: Rule, mappings: Map<string, string>): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScheduleEntity } from '../../types/models';
|
|
1
|
+
import { type ScheduleEntity } from '../../types/models';
|
|
2
2
|
import { Rule } from '../rules';
|
|
3
3
|
export declare function updateConditions(conditions: any, newConditions: any): any;
|
|
4
4
|
export declare function getRuleForSchedule(id: string | null): Promise<Rule>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type * as DbModule from './db';
|
|
1
2
|
import { Spreadsheet } from './spreadsheet/spreadsheet';
|
|
2
3
|
export declare function get(): Spreadsheet;
|
|
3
4
|
export declare function loadSpreadsheet(db: any, onSheetChange?: any): Promise<Spreadsheet>;
|
|
4
5
|
export declare function unloadSpreadsheet(): void;
|
|
5
6
|
export declare function reloadSpreadsheet(db: any): Promise<Spreadsheet>;
|
|
6
|
-
export declare function loadUserBudgets(db: typeof
|
|
7
|
+
export declare function loadUserBudgets(db: typeof DbModule): Promise<void>;
|
|
7
8
|
export declare function getCell(sheet: string, name: string): import("./spreadsheet/spreadsheet").Node;
|
|
8
9
|
export declare function getCellValue(sheet: string, name: string): string | number | boolean;
|
|
9
10
|
export declare function startTransaction(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Timestamp } from '@actual-app/crdt';
|
|
2
|
-
import { Message } from './index';
|
|
2
|
+
import { type Message } from './index';
|
|
3
3
|
export declare function encode(groupId: string, fileId: string, since: Timestamp | string, messages: Message[]): Promise<Uint8Array>;
|
|
4
4
|
export declare function decode(data: Uint8Array): Promise<{
|
|
5
5
|
messages: Message[];
|