@actual-app/api 26.1.0-nightly.20251219 → 26.1.0-nightly.20251220

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.
Files changed (80) hide show
  1. package/@types/loot-core/src/platform/server/asyncStorage/index.d.ts +2 -2
  2. package/@types/loot-core/src/server/accounts/app.d.ts +1 -1
  3. package/@types/loot-core/src/server/accounts/sync.d.ts +1 -1
  4. package/@types/loot-core/src/server/admin/app.d.ts +1 -1
  5. package/@types/loot-core/src/server/api-models.d.ts +2 -2
  6. package/@types/loot-core/src/server/api.d.ts +2 -3
  7. package/@types/loot-core/src/server/app.d.ts +1 -1
  8. package/@types/loot-core/src/server/aql/compiler.d.ts +1 -1
  9. package/@types/loot-core/src/server/aql/exec.d.ts +2 -2
  10. package/@types/loot-core/src/server/aql/index.d.ts +2 -2
  11. package/@types/loot-core/src/server/aql/schema/executors.d.ts +1 -1
  12. package/@types/loot-core/src/server/aql/schema/index.d.ts +1 -1
  13. package/@types/loot-core/src/server/auth/app.d.ts +1 -1
  14. package/@types/loot-core/src/server/budget/actions.d.ts +2 -2
  15. package/@types/loot-core/src/server/budget/app.d.ts +3 -3
  16. package/@types/loot-core/src/server/budget/category-template-context.d.ts +2 -2
  17. package/@types/loot-core/src/server/budget/goal-template.d.ts +2 -2
  18. package/@types/loot-core/src/server/budget/schedule-template.d.ts +2 -2
  19. package/@types/loot-core/src/server/budgetfiles/app.d.ts +2 -2
  20. package/@types/loot-core/src/server/cloud-storage.d.ts +4 -4
  21. package/@types/loot-core/src/server/db/index.d.ts +4 -4
  22. package/@types/loot-core/src/server/encryption/app.d.ts +1 -1
  23. package/@types/loot-core/src/server/filters/app.d.ts +1 -1
  24. package/@types/loot-core/src/server/importers/ynab4-types.d.ts +24 -24
  25. package/@types/loot-core/src/server/importers/ynab4.d.ts +1 -1
  26. package/@types/loot-core/src/server/importers/ynab5-types.d.ts +18 -18
  27. package/@types/loot-core/src/server/importers/ynab5.d.ts +1 -1
  28. package/@types/loot-core/src/server/main-app.d.ts +1 -1
  29. package/@types/loot-core/src/server/main.d.ts +1 -1
  30. package/@types/loot-core/src/server/migrate/migrations.d.ts +1 -1
  31. package/@types/loot-core/src/server/models.d.ts +2 -2
  32. package/@types/loot-core/src/server/notes/app.d.ts +1 -1
  33. package/@types/loot-core/src/server/payees/app.d.ts +2 -2
  34. package/@types/loot-core/src/server/preferences/app.d.ts +3 -3
  35. package/@types/loot-core/src/server/rules/action.d.ts +1 -1
  36. package/@types/loot-core/src/server/rules/app.d.ts +1 -1
  37. package/@types/loot-core/src/server/rules/customFunctions.d.ts +2 -2
  38. package/@types/loot-core/src/server/rules/rule-indexer.d.ts +1 -1
  39. package/@types/loot-core/src/server/rules/rule-utils.d.ts +1 -1
  40. package/@types/loot-core/src/server/rules/rule.d.ts +1 -1
  41. package/@types/loot-core/src/server/schedules/app.d.ts +1 -1
  42. package/@types/loot-core/src/server/sheet.d.ts +2 -1
  43. package/@types/loot-core/src/server/spreadsheet/app.d.ts +1 -1
  44. package/@types/loot-core/src/server/spreadsheet/spreadsheet.d.ts +2 -2
  45. package/@types/loot-core/src/server/sync/encoder.d.ts +1 -1
  46. package/@types/loot-core/src/server/tags/app.d.ts +1 -1
  47. package/@types/loot-core/src/server/tools/app.d.ts +1 -1
  48. package/@types/loot-core/src/server/transactions/app.d.ts +3 -3
  49. package/@types/loot-core/src/server/transactions/import/xmlcamt2json.d.ts +2 -2
  50. package/@types/loot-core/src/server/transactions/index.d.ts +2 -2
  51. package/@types/loot-core/src/server/undo.d.ts +1 -1
  52. package/@types/loot-core/src/shared/currencies.d.ts +1 -1
  53. package/@types/loot-core/src/shared/months.d.ts +1 -1
  54. package/@types/loot-core/src/shared/query.d.ts +1 -1
  55. package/@types/loot-core/src/shared/rules.d.ts +1 -1
  56. package/@types/loot-core/src/shared/schedules.d.ts +1 -1
  57. package/@types/loot-core/src/types/api-handlers.d.ts +4 -4
  58. package/@types/loot-core/src/types/handlers.d.ts +1 -2
  59. package/@types/loot-core/src/types/models/bank-sync.d.ts +1 -1
  60. package/@types/loot-core/src/types/models/category-group.d.ts +3 -3
  61. package/@types/loot-core/src/types/models/category.d.ts +3 -3
  62. package/@types/loot-core/src/types/models/import-transaction.d.ts +2 -2
  63. package/@types/loot-core/src/types/models/payee.d.ts +3 -3
  64. package/@types/loot-core/src/types/models/reports.d.ts +12 -12
  65. package/@types/loot-core/src/types/models/rule.d.ts +16 -16
  66. package/@types/loot-core/src/types/models/schedule.d.ts +6 -6
  67. package/@types/loot-core/src/types/models/simplefin.d.ts +4 -4
  68. package/@types/loot-core/src/types/models/tags.d.ts +2 -2
  69. package/@types/loot-core/src/types/models/templates.d.ts +28 -28
  70. package/@types/loot-core/src/types/models/transaction-filter.d.ts +2 -2
  71. package/@types/loot-core/src/types/models/transaction.d.ts +7 -7
  72. package/@types/loot-core/src/types/models/user-access.d.ts +4 -4
  73. package/@types/loot-core/src/types/models/user.d.ts +8 -8
  74. package/@types/loot-core/src/types/server-events.d.ts +2 -2
  75. package/@types/loot-core/src/types/server-handlers.d.ts +3 -3
  76. package/@types/loot-core/typings/window.d.ts +2 -1
  77. package/@types/methods.d.ts +8 -4
  78. package/dist/app/bundle.api.js +2 -2
  79. package/dist/package.json +1 -1
  80. package/package.json +1 -1
@@ -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 { Handlers } from '../types/handlers';
2
- import { ServerHandlers } from '../types/server-handlers';
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
1
  import { type Emitter } from 'mitt';
2
- import { ServerEvents } from '../types/server-events';
2
+ import { type ServerEvents } from '../types/server-events';
3
3
  type Events = {
4
4
  sync: ServerEvents['sync-event'];
5
5
  'load-budget': {
@@ -1,4 +1,4 @@
1
- import { QueryState } from '../../shared/query';
1
+ import { type QueryState } from '../../shared/query';
2
2
  export declare function quoteAlias(alias: any): any;
3
3
  export declare function isAggregateQuery(queryState: any): boolean;
4
4
  type Schema = unknown;
@@ -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,3 +1,3 @@
1
- import { AqlQueryExecutor } from '../exec';
1
+ import { type AqlQueryExecutor } from '../exec';
2
2
  export declare function isHappyPathQuery(queryState: any): boolean;
3
3
  export declare const schemaExecutors: Record<string, AqlQueryExecutor>;
@@ -1,4 +1,4 @@
1
- import { SchemaConfig } from '../compiler';
1
+ import { type SchemaConfig } from '../compiler';
2
2
  export declare const schema: {
3
3
  transactions: {
4
4
  id: {
@@ -1,4 +1,4 @@
1
- import { OpenIdConfig } from '../../types/models';
1
+ import { type OpenIdConfig } from '../../types/models';
2
2
  export type AuthHandlers = {
3
3
  'get-did-bootstrap': typeof didBootstrap;
4
4
  'subscribe-needs-bootstrap': typeof needsBootstrap;
@@ -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 interface BudgetHandlers {
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 interface UsersWithAccess {
1
+ export type UsersWithAccess = {
2
2
  userId: string;
3
3
  userName: string;
4
4
  displayName: string;
5
5
  owner: boolean;
6
- }
7
- export interface RemoteFile {
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 { Budget } from '../../types/budget';
1
+ import { type Budget } from '../../types/budget';
2
2
  export type EncryptionHandlers = {
3
3
  'key-make': typeof keyMake;
4
4
  'key-test': typeof keyTest;
@@ -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 interface YFull {
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 interface MasterCategory {
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 interface SubCategory {
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 interface Payee {
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 interface RenameCondition {
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 interface MonthlyBudget {
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 interface MonthlySubCategoryBudget {
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 interface FileMetaData {
72
+ };
73
+ export type FileMetaData = {
74
74
  entityType: string;
75
75
  budgetDataVersion: string;
76
76
  currentKnowledge: string;
77
- }
78
- export interface Transaction {
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 interface ScheduledTransaction {
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 interface BudgetMetaData {
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 interface Account {
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 interface Budget {
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 interface Account {
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 interface Payee {
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 interface CategoryGroup {
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 interface Category {
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 interface Transaction {
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 interface Subtransaction {
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 interface Month {
62
+ };
63
+ export type Month = {
64
64
  month: string;
65
65
  categories: MonthCategory[];
66
- }
67
- export interface MonthCategory {
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;
@@ -1,4 +1,4 @@
1
- import { Handlers } from '../types/handlers';
1
+ import { type Handlers } from '../types/handlers';
2
2
  export declare const app: {
3
3
  events: import("mitt").Emitter<{
4
4
  sync: import("../types/server-events").ServerEvents["sync-event"];
@@ -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,4 +1,4 @@
1
- import { NoteEntity } from '../../types/models';
1
+ import { type NoteEntity } from '../../types/models';
2
2
  export type NotesHandlers = {
3
3
  'notes-save': typeof updateNotes;
4
4
  'notes-save-undoable': typeof updateNotes;
@@ -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 interface PreferencesHandlers {
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,4 +1,4 @@
1
- import { Rule } from './rule';
1
+ import { type Rule } from './rule';
2
2
  export declare class RuleIndexer {
3
3
  field: string;
4
4
  method?: string;
@@ -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 { RuleEntity } from '../../types/models';
1
+ import { type RuleEntity } from '../../types/models';
2
2
  import { Action } from './action';
3
3
  import { Condition } from './condition';
4
4
  export declare function execActions(actions: Action[], transaction: any): any;
@@ -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 import('./db')): Promise<void>;
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,4 +1,4 @@
1
- import { QueryState } from '../../shared/query';
1
+ import { type QueryState } from '../../shared/query';
2
2
  export type SpreadsheetHandlers = {
3
3
  'get-cell': typeof getCell;
4
4
  'get-cell-names': typeof getCellNames;
@@ -1,5 +1,5 @@
1
- import { QueryState } from '../../shared/query';
2
- import { BudgetType } from '../prefs';
1
+ import { type QueryState } from '../../shared/query';
2
+ import { type BudgetType } from '../prefs';
3
3
  export type Node = {
4
4
  name: string;
5
5
  expr: string | number | boolean;
@@ -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[];
@@ -1,4 +1,4 @@
1
- import { TagEntity } from '../../types/models';
1
+ import { type TagEntity } from '../../types/models';
2
2
  export type TagsHandlers = {
3
3
  'tags-get': typeof getTags;
4
4
  'tags-create': typeof createTag;
@@ -1,4 +1,4 @@
1
- import { TransactionEntity } from '../../types/models';
1
+ import { type TransactionEntity } from '../../types/models';
2
2
  export type ToolsHandlers = {
3
3
  'tools/fix-split-transactions': typeof fixSplitTransactions;
4
4
  };