@actual-app/api 25.4.0 → 25.6.0-edge.23
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 +1 -5
- package/@types/loot-core/mocks/index.d.ts +5 -2
- package/@types/loot-core/mocks/util.d.ts +1 -0
- package/@types/loot-core/platform/server/asyncStorage/index.d.ts +7 -6
- package/@types/loot-core/platform/server/indexeddb/index.d.ts +15 -24
- package/@types/loot-core/server/accounts/sync.d.ts +1 -9
- package/@types/loot-core/server/api-models.d.ts +2 -10
- package/@types/loot-core/server/aql/compiler.d.ts +40 -38
- package/@types/loot-core/server/aql/exec.d.ts +15 -7
- package/@types/loot-core/server/aql/index.d.ts +8 -1
- package/@types/loot-core/server/aql/schema/executors.d.ts +2 -5
- package/@types/loot-core/server/auth/app.d.ts +142 -0
- package/@types/loot-core/server/budget/app.d.ts +1 -1
- package/@types/loot-core/server/budget/base.d.ts +2 -1
- package/@types/loot-core/server/budget/category-template-context.d.ts +49 -0
- package/@types/loot-core/server/budget/cleanup-template.d.ts +8 -1
- package/@types/loot-core/server/budget/envelope.d.ts +3 -0
- package/@types/loot-core/server/budget/goal-template.d.ts +29 -0
- package/@types/loot-core/server/budget/report.d.ts +4 -1
- package/@types/loot-core/server/budget/schedule-template.d.ts +7 -0
- package/@types/loot-core/server/budget/template-notes.d.ts +7 -1
- package/@types/loot-core/server/budget/types/templates.d.ts +20 -4
- package/@types/loot-core/server/budgetfiles/app.d.ts +139 -0
- package/@types/loot-core/server/cloud-storage.d.ts +2 -2
- package/@types/loot-core/server/db/index.d.ts +3 -2
- package/@types/loot-core/server/encryption/app.d.ts +40 -0
- package/@types/loot-core/server/{encryption-internals.d.ts → encryption/encryption-internals.d.ts} +0 -1
- package/@types/loot-core/server/errors.d.ts +4 -0
- package/@types/loot-core/server/importers/index.d.ts +1 -2
- package/@types/loot-core/server/main-app.d.ts +1 -1
- package/@types/loot-core/server/prefs.d.ts +1 -1
- package/@types/loot-core/server/reports/app.d.ts +2 -2
- package/@types/loot-core/server/spreadsheet/spreadsheet.d.ts +9 -2
- package/@types/loot-core/server/tools/app.d.ts +1 -0
- package/@types/loot-core/server/transactions/app.d.ts +4 -1
- package/@types/loot-core/server/transactions/import/ofx2json.d.ts +1 -0
- package/@types/loot-core/server/transactions/import/parse-file.d.ts +1 -0
- package/@types/loot-core/server/transactions/index.d.ts +1 -0
- package/@types/loot-core/server/transactions/merge.d.ts +2 -0
- package/@types/loot-core/server/transactions/transaction-rules.d.ts +1 -0
- package/@types/loot-core/server/transactions/transfer.d.ts +2 -2
- package/@types/loot-core/shared/errors.d.ts +4 -4
- package/@types/loot-core/shared/locale.d.ts +2 -1
- package/@types/loot-core/shared/months.d.ts +6 -0
- package/@types/loot-core/shared/schedules.d.ts +2 -1
- package/@types/loot-core/shared/transactions.d.ts +7 -67
- package/@types/loot-core/shared/util.d.ts +3 -2
- package/@types/loot-core/types/api-handlers.d.ts +170 -183
- package/@types/loot-core/types/budget.d.ts +6 -6
- package/@types/loot-core/types/handlers.d.ts +5 -21
- package/@types/loot-core/types/models/bank-sync.d.ts +10 -17
- package/@types/loot-core/types/models/category-group.d.ts +8 -13
- package/@types/loot-core/types/models/category.d.ts +8 -8
- package/@types/loot-core/types/models/dashboard.d.ts +43 -88
- package/@types/loot-core/types/models/gocardless.d.ts +56 -71
- package/@types/loot-core/types/models/note.d.ts +2 -2
- package/@types/loot-core/types/models/openid.d.ts +6 -6
- package/@types/loot-core/types/models/payee.d.ts +6 -7
- package/@types/loot-core/types/models/reports.d.ts +98 -118
- package/@types/loot-core/types/models/rule.d.ts +62 -161
- package/@types/loot-core/types/models/schedule.d.ts +36 -38
- package/@types/loot-core/types/models/simplefin.d.ts +13 -17
- package/@types/loot-core/types/models/transaction-filter.d.ts +5 -6
- package/@types/loot-core/types/models/transaction.d.ts +30 -30
- package/@types/loot-core/types/prefs.d.ts +2 -5
- package/@types/loot-core/types/server-events.d.ts +43 -68
- package/@types/loot-core/types/server-handlers.d.ts +26 -198
- package/@types/loot-core/types/util.d.ts +7 -18
- package/@types/methods.d.ts +6 -1
- package/@types/vitest.config.d.ts +7 -0
- package/dist/app/bundle.api.js +16159 -110865
- package/dist/methods.js +8 -0
- package/dist/migrations/1745425408000_update_budgetType_pref.sql +7 -0
- package/dist/package.json +8 -10
- package/dist/vitest.config.js +11 -0
- package/package.json +8 -10
- package/@types/jest.config.d.ts +0 -9
- package/@types/loot-core/client/accounts/accountsSlice.d.ts +0 -175
- package/@types/loot-core/client/app/appSlice.d.ts +0 -175
- package/@types/loot-core/client/budgets/budgetsSlice.d.ts +0 -401
- package/@types/loot-core/client/modals/modalsSlice.d.ts +0 -486
- package/@types/loot-core/client/notifications/notificationsSlice.d.ts +0 -47
- package/@types/loot-core/client/prefs/prefsSlice.d.ts +0 -186
- package/@types/loot-core/client/queries/queriesSlice.d.ts +0 -692
- package/@types/loot-core/client/redux.d.ts +0 -18546
- package/@types/loot-core/client/store/index.d.ts +0 -133
- package/@types/loot-core/client/users/usersSlice.d.ts +0 -89
- package/@types/loot-core/platform/client/undo/index.d.ts +0 -21
- package/@types/loot-core/server/aql/schema/run-query.d.ts +0 -6
- package/@types/loot-core/server/backups.test.d.ts +0 -1
- package/@types/loot-core/server/budget/categoryTemplate.d.ts +0 -49
- package/@types/loot-core/server/budget/goalsSchedule.d.ts +0 -8
- package/@types/loot-core/server/budget/goaltemplates.d.ts +0 -16
- package/@types/loot-core/server/encryption-internals.web.d.ts +0 -23
- package/@types/loot-core/server/encryption.test.d.ts +0 -1
- package/@types/loot-core/server/platform.d.ts +0 -3
- package/@types/loot-core/server/platform.web.d.ts +0 -3
- package/@types/loot-core/types/file.d.ts +0 -47
- package/dist/jest.config.js +0 -22
- /package/@types/loot-core/server/{backups.d.ts → budgetfiles/backups.d.ts} +0 -0
- /package/@types/loot-core/server/{encryption.d.ts → encryption/index.d.ts} +0 -0
- /package/@types/loot-core/{client → shared}/platform.d.ts +0 -0
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
2
|
-
account: {
|
|
3
|
-
failedAccounts: {
|
|
4
|
-
[key: import("../../types/models").AccountEntity["id"]]: {
|
|
5
|
-
type: string;
|
|
6
|
-
code: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
accountsSyncing: Array<import("../../types/models").AccountEntity["id"]>;
|
|
10
|
-
};
|
|
11
|
-
app: {
|
|
12
|
-
loadingText: string | null;
|
|
13
|
-
updateInfo: {
|
|
14
|
-
version: string;
|
|
15
|
-
releaseDate: string;
|
|
16
|
-
releaseNotes: string;
|
|
17
|
-
} | null;
|
|
18
|
-
showUpdateNotification: boolean;
|
|
19
|
-
managerHasInitialized: boolean;
|
|
20
|
-
};
|
|
21
|
-
budgets: {
|
|
22
|
-
budgets: import("../../types/budget").Budget[];
|
|
23
|
-
remoteFiles: import("../../server/cloud-storage").RemoteFile[] | null;
|
|
24
|
-
allFiles: import("../../types/file").File[] | null;
|
|
25
|
-
};
|
|
26
|
-
modals: {
|
|
27
|
-
modalStack: import("../modals/modalsSlice").Modal[];
|
|
28
|
-
isHidden: boolean;
|
|
29
|
-
};
|
|
30
|
-
notifications: {
|
|
31
|
-
notifications: import("../notifications/notificationsSlice").NotificationWithId[];
|
|
32
|
-
inset?: {
|
|
33
|
-
bottom?: number;
|
|
34
|
-
top?: number;
|
|
35
|
-
right?: number;
|
|
36
|
-
left?: number;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
prefs: {
|
|
40
|
-
local: import("../../types/prefs").MetadataPrefs;
|
|
41
|
-
global: import("../../types/prefs").GlobalPrefs;
|
|
42
|
-
synced: import("../../types/prefs").SyncedPrefs;
|
|
43
|
-
};
|
|
44
|
-
queries: {
|
|
45
|
-
newTransactions: Array<import("../../types/models").TransactionEntity["id"]>;
|
|
46
|
-
matchedTransactions: Array<import("../../types/models").TransactionEntity["id"]>;
|
|
47
|
-
lastTransaction: import("../../types/models").TransactionEntity | null;
|
|
48
|
-
updatedAccounts: Array<import("../../types/models").AccountEntity["id"]>;
|
|
49
|
-
accounts: import("../../types/models").AccountEntity[];
|
|
50
|
-
accountsLoaded: boolean;
|
|
51
|
-
categories: {
|
|
52
|
-
grouped: import("../../types/models").CategoryGroupEntity[];
|
|
53
|
-
list: import("../../types/models").CategoryEntity[];
|
|
54
|
-
};
|
|
55
|
-
categoriesLoaded: boolean;
|
|
56
|
-
commonPayeesLoaded: boolean;
|
|
57
|
-
commonPayees: import("../../types/models").PayeeEntity[];
|
|
58
|
-
payees: import("../../types/models").PayeeEntity[];
|
|
59
|
-
payeesLoaded: boolean;
|
|
60
|
-
};
|
|
61
|
-
user: {
|
|
62
|
-
data: Awaited<ReturnType<import("../../types/handlers").Handlers["subscribe-get-user"]>>;
|
|
63
|
-
};
|
|
64
|
-
}, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
65
|
-
dispatch: ((action: import("redux").Action<"listenerMiddleware/add">) => import("@reduxjs/toolkit").UnsubscribeListener) & import("redux-thunk").ThunkDispatch<{
|
|
66
|
-
account: {
|
|
67
|
-
failedAccounts: {
|
|
68
|
-
[key: import("../../types/models").AccountEntity["id"]]: {
|
|
69
|
-
type: string;
|
|
70
|
-
code: string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
accountsSyncing: Array<import("../../types/models").AccountEntity["id"]>;
|
|
74
|
-
};
|
|
75
|
-
app: {
|
|
76
|
-
loadingText: string | null;
|
|
77
|
-
updateInfo: {
|
|
78
|
-
version: string;
|
|
79
|
-
releaseDate: string;
|
|
80
|
-
releaseNotes: string;
|
|
81
|
-
} | null;
|
|
82
|
-
showUpdateNotification: boolean;
|
|
83
|
-
managerHasInitialized: boolean;
|
|
84
|
-
};
|
|
85
|
-
budgets: {
|
|
86
|
-
budgets: import("../../types/budget").Budget[];
|
|
87
|
-
remoteFiles: import("../../server/cloud-storage").RemoteFile[] | null;
|
|
88
|
-
allFiles: import("../../types/file").File[] | null;
|
|
89
|
-
};
|
|
90
|
-
modals: {
|
|
91
|
-
modalStack: import("../modals/modalsSlice").Modal[];
|
|
92
|
-
isHidden: boolean;
|
|
93
|
-
};
|
|
94
|
-
notifications: {
|
|
95
|
-
notifications: import("../notifications/notificationsSlice").NotificationWithId[];
|
|
96
|
-
inset?: {
|
|
97
|
-
bottom?: number;
|
|
98
|
-
top?: number;
|
|
99
|
-
right?: number;
|
|
100
|
-
left?: number;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
prefs: {
|
|
104
|
-
local: import("../../types/prefs").MetadataPrefs;
|
|
105
|
-
global: import("../../types/prefs").GlobalPrefs;
|
|
106
|
-
synced: import("../../types/prefs").SyncedPrefs;
|
|
107
|
-
};
|
|
108
|
-
queries: {
|
|
109
|
-
newTransactions: Array<import("../../types/models").TransactionEntity["id"]>;
|
|
110
|
-
matchedTransactions: Array<import("../../types/models").TransactionEntity["id"]>;
|
|
111
|
-
lastTransaction: import("../../types/models").TransactionEntity | null;
|
|
112
|
-
updatedAccounts: Array<import("../../types/models").AccountEntity["id"]>;
|
|
113
|
-
accounts: import("../../types/models").AccountEntity[];
|
|
114
|
-
accountsLoaded: boolean;
|
|
115
|
-
categories: {
|
|
116
|
-
grouped: import("../../types/models").CategoryGroupEntity[];
|
|
117
|
-
list: import("../../types/models").CategoryEntity[];
|
|
118
|
-
};
|
|
119
|
-
categoriesLoaded: boolean;
|
|
120
|
-
commonPayeesLoaded: boolean;
|
|
121
|
-
commonPayees: import("../../types/models").PayeeEntity[];
|
|
122
|
-
payees: import("../../types/models").PayeeEntity[];
|
|
123
|
-
payeesLoaded: boolean;
|
|
124
|
-
};
|
|
125
|
-
user: {
|
|
126
|
-
data: Awaited<ReturnType<import("../../types/handlers").Handlers["subscribe-get-user"]>>;
|
|
127
|
-
};
|
|
128
|
-
}, undefined, import("redux").UnknownAction>;
|
|
129
|
-
}>, import("redux").StoreEnhancer]>>;
|
|
130
|
-
export type AppStore = typeof store;
|
|
131
|
-
export type RootState = ReturnType<typeof store.getState>;
|
|
132
|
-
export type AppDispatch = typeof store.dispatch;
|
|
133
|
-
export type GetRootState = typeof store.getState;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { type Handlers } from '../../types/handlers';
|
|
2
|
-
export declare const getUserData: import("@reduxjs/toolkit").AsyncThunk<{
|
|
3
|
-
offline: boolean;
|
|
4
|
-
userName?: string;
|
|
5
|
-
userId?: string;
|
|
6
|
-
displayName?: string;
|
|
7
|
-
permission?: string;
|
|
8
|
-
loginMethod?: string;
|
|
9
|
-
tokenExpired?: boolean;
|
|
10
|
-
}, void, {
|
|
11
|
-
state: import("../store").RootState;
|
|
12
|
-
dispatch: import("../store").AppDispatch;
|
|
13
|
-
extra?: unknown;
|
|
14
|
-
rejectValue?: unknown;
|
|
15
|
-
serializedErrorType?: unknown;
|
|
16
|
-
pendingMeta?: unknown;
|
|
17
|
-
fulfilledMeta?: unknown;
|
|
18
|
-
rejectedMeta?: unknown;
|
|
19
|
-
}>;
|
|
20
|
-
export declare const loggedIn: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
21
|
-
state: import("../store").RootState;
|
|
22
|
-
dispatch: import("../store").AppDispatch;
|
|
23
|
-
extra?: unknown;
|
|
24
|
-
rejectValue?: unknown;
|
|
25
|
-
serializedErrorType?: unknown;
|
|
26
|
-
pendingMeta?: unknown;
|
|
27
|
-
fulfilledMeta?: unknown;
|
|
28
|
-
rejectedMeta?: unknown;
|
|
29
|
-
}>;
|
|
30
|
-
export declare const signOut: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
31
|
-
state: import("../store").RootState;
|
|
32
|
-
dispatch: import("../store").AppDispatch;
|
|
33
|
-
extra?: unknown;
|
|
34
|
-
rejectValue?: unknown;
|
|
35
|
-
serializedErrorType?: unknown;
|
|
36
|
-
pendingMeta?: unknown;
|
|
37
|
-
fulfilledMeta?: unknown;
|
|
38
|
-
rejectedMeta?: unknown;
|
|
39
|
-
}>;
|
|
40
|
-
type UsersState = {
|
|
41
|
-
data: Awaited<ReturnType<Handlers['subscribe-get-user']>>;
|
|
42
|
-
};
|
|
43
|
-
type GetUserDataPayload = {
|
|
44
|
-
data: UsersState['data'];
|
|
45
|
-
};
|
|
46
|
-
export declare const name: "user", reducer: import("redux").Reducer<UsersState>, getInitialState: () => UsersState;
|
|
47
|
-
export declare const actions: {
|
|
48
|
-
getUserData: import("@reduxjs/toolkit").AsyncThunk<{
|
|
49
|
-
offline: boolean;
|
|
50
|
-
userName?: string;
|
|
51
|
-
userId?: string;
|
|
52
|
-
displayName?: string;
|
|
53
|
-
permission?: string;
|
|
54
|
-
loginMethod?: string;
|
|
55
|
-
tokenExpired?: boolean;
|
|
56
|
-
}, void, {
|
|
57
|
-
state: import("../store").RootState;
|
|
58
|
-
dispatch: import("../store").AppDispatch;
|
|
59
|
-
extra?: unknown;
|
|
60
|
-
rejectValue?: unknown;
|
|
61
|
-
serializedErrorType?: unknown;
|
|
62
|
-
pendingMeta?: unknown;
|
|
63
|
-
fulfilledMeta?: unknown;
|
|
64
|
-
rejectedMeta?: unknown;
|
|
65
|
-
}>;
|
|
66
|
-
loggedIn: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
67
|
-
state: import("../store").RootState;
|
|
68
|
-
dispatch: import("../store").AppDispatch;
|
|
69
|
-
extra?: unknown;
|
|
70
|
-
rejectValue?: unknown;
|
|
71
|
-
serializedErrorType?: unknown;
|
|
72
|
-
pendingMeta?: unknown;
|
|
73
|
-
fulfilledMeta?: unknown;
|
|
74
|
-
rejectedMeta?: unknown;
|
|
75
|
-
}>;
|
|
76
|
-
signOut: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
77
|
-
state: import("../store").RootState;
|
|
78
|
-
dispatch: import("../store").AppDispatch;
|
|
79
|
-
extra?: unknown;
|
|
80
|
-
rejectValue?: unknown;
|
|
81
|
-
serializedErrorType?: unknown;
|
|
82
|
-
pendingMeta?: unknown;
|
|
83
|
-
fulfilledMeta?: unknown;
|
|
84
|
-
rejectedMeta?: unknown;
|
|
85
|
-
}>;
|
|
86
|
-
loadUserData: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<GetUserDataPayload, "user/loadUserData">;
|
|
87
|
-
};
|
|
88
|
-
export declare const loadUserData: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<GetUserDataPayload, "user/loadUserData">;
|
|
89
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
2
|
-
import { Modal } from '../../../client/modals/modalsSlice';
|
|
3
|
-
import { UndoState as ServerUndoState } from '../../../server/undo';
|
|
4
|
-
type UndoState = {
|
|
5
|
-
url: string | null;
|
|
6
|
-
openModal: Modal | null;
|
|
7
|
-
selectedItems: {
|
|
8
|
-
name: string;
|
|
9
|
-
items: Set<string>;
|
|
10
|
-
} | null;
|
|
11
|
-
undoEvent: ServerUndoState | null;
|
|
12
|
-
};
|
|
13
|
-
type UndoStateWithId = UndoState & {
|
|
14
|
-
id?: ReturnType<typeof uuidv4>;
|
|
15
|
-
};
|
|
16
|
-
export declare const setUndoState: <K extends keyof Omit<UndoState, "id">>(name: K, value: UndoState[K]) => void;
|
|
17
|
-
export declare const getUndoState: <K extends keyof UndoState>(name: K) => UndoStateWithId[K];
|
|
18
|
-
export declare const getTaggedState: (id: string) => UndoStateWithId;
|
|
19
|
-
export declare const snapshot: () => string;
|
|
20
|
-
export declare const gc: (id: string) => void;
|
|
21
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Query, type QueryState } from '../../../shared/query';
|
|
2
|
-
export declare function runCompiledQuery(query: any, sqlPieces: any, state: any, params?: unknown): Promise<any>;
|
|
3
|
-
export declare function runQuery(query: Query | QueryState, params?: unknown): Promise<{
|
|
4
|
-
data: any;
|
|
5
|
-
dependencies: any[];
|
|
6
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { CategoryEntity } from '../../types/models';
|
|
2
|
-
import { Template } from './types/templates';
|
|
3
|
-
export declare class CategoryTemplate {
|
|
4
|
-
static init(templates: Template[], category: CategoryEntity, month: any, budgeted: number): Promise<CategoryTemplate>;
|
|
5
|
-
getGoalOnly(): boolean;
|
|
6
|
-
getPriorities(): number[];
|
|
7
|
-
getRemainderWeight(): number;
|
|
8
|
-
getLimitExcess(): number;
|
|
9
|
-
runAll(available: number): Promise<number>;
|
|
10
|
-
runTemplatesForPriority(priority: number, budgetAvail: number, availStart: number): Promise<number>;
|
|
11
|
-
runRemainder(budgetAvail: number, perWeight: number): number;
|
|
12
|
-
getValues(): {
|
|
13
|
-
budgeted: any;
|
|
14
|
-
goal: any;
|
|
15
|
-
longGoal: any;
|
|
16
|
-
};
|
|
17
|
-
readonly category: CategoryEntity;
|
|
18
|
-
private month;
|
|
19
|
-
private templates;
|
|
20
|
-
private remainder;
|
|
21
|
-
private goals;
|
|
22
|
-
private priorities;
|
|
23
|
-
private remainderWeight;
|
|
24
|
-
private toBudgetAmount;
|
|
25
|
-
private fullAmount;
|
|
26
|
-
private isLongGoal;
|
|
27
|
-
private goalAmount;
|
|
28
|
-
private fromLastMonth;
|
|
29
|
-
private limitMet;
|
|
30
|
-
private limitExcess;
|
|
31
|
-
private limitAmount;
|
|
32
|
-
private limitCheck;
|
|
33
|
-
private limitHold;
|
|
34
|
-
readonly previouslyBudgeted: number;
|
|
35
|
-
private constructor();
|
|
36
|
-
private runGoal;
|
|
37
|
-
static checkByAndScheduleAndSpend(templates: any, month: any): Promise<void>;
|
|
38
|
-
static checkPercentage(templates: any): Promise<void>;
|
|
39
|
-
private checkLimit;
|
|
40
|
-
private checkSpend;
|
|
41
|
-
private checkGoal;
|
|
42
|
-
private runSimple;
|
|
43
|
-
private runCopy;
|
|
44
|
-
private runWeek;
|
|
45
|
-
private runSpend;
|
|
46
|
-
private runPercentage;
|
|
47
|
-
private runAverage;
|
|
48
|
-
private runBy;
|
|
49
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CategoryEntity } from '../../types/models';
|
|
2
|
-
import { Template } from './types/templates';
|
|
3
|
-
export declare function goalsSchedule(scheduleFlag: boolean, template_lines: Template[], current_month: string, balance: number, remainder: number, last_month_balance: number, to_budget: number, errors: string[], category: CategoryEntity): Promise<{
|
|
4
|
-
to_budget: number;
|
|
5
|
-
errors: string[];
|
|
6
|
-
remainder: number;
|
|
7
|
-
scheduleFlag: true;
|
|
8
|
-
}>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Notification } from '../../client/notifications/notificationsSlice';
|
|
2
|
-
export declare function applyTemplate({ month }: {
|
|
3
|
-
month: any;
|
|
4
|
-
}): Promise<Notification>;
|
|
5
|
-
export declare function overwriteTemplate({ month }: {
|
|
6
|
-
month: any;
|
|
7
|
-
}): Promise<Notification>;
|
|
8
|
-
export declare function applyMultipleCategoryTemplates({ month, categoryIds }: {
|
|
9
|
-
month: any;
|
|
10
|
-
categoryIds: any;
|
|
11
|
-
}): Promise<Notification>;
|
|
12
|
-
export declare function applySingleCategoryTemplate({ month, category }: {
|
|
13
|
-
month: any;
|
|
14
|
-
category: any;
|
|
15
|
-
}): Promise<Notification>;
|
|
16
|
-
export declare function runCheckTemplates(): Promise<Notification>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare function sha256String(str: any): Promise<string>;
|
|
2
|
-
export declare function randomBytes(n: any): Buffer<ArrayBuffer>;
|
|
3
|
-
export declare function encrypt(masterKey: any, value: any): Promise<{
|
|
4
|
-
value: ArrayBuffer;
|
|
5
|
-
meta: {
|
|
6
|
-
keyId: any;
|
|
7
|
-
algorithm: string;
|
|
8
|
-
iv: string;
|
|
9
|
-
authTag: string;
|
|
10
|
-
};
|
|
11
|
-
}>;
|
|
12
|
-
export declare function decrypt(masterKey: any, encrypted: any, meta: any): Promise<Buffer<ArrayBuffer>>;
|
|
13
|
-
export declare function createKey({ secret, salt }: {
|
|
14
|
-
secret: any;
|
|
15
|
-
salt: any;
|
|
16
|
-
}): Promise<{
|
|
17
|
-
raw: CryptoKey;
|
|
18
|
-
base64: string;
|
|
19
|
-
}>;
|
|
20
|
-
export declare function importKey(str: any): Promise<{
|
|
21
|
-
raw: CryptoKey;
|
|
22
|
-
base64: any;
|
|
23
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { UsersWithAccess } from '../server/cloud-storage';
|
|
2
|
-
|
|
3
|
-
import { Budget } from './budget';
|
|
4
|
-
|
|
5
|
-
export type FileState =
|
|
6
|
-
| 'local'
|
|
7
|
-
| 'remote'
|
|
8
|
-
| 'synced'
|
|
9
|
-
| 'detached'
|
|
10
|
-
| 'broken'
|
|
11
|
-
| 'unknown';
|
|
12
|
-
|
|
13
|
-
export type LocalFile = Omit<Budget, 'cloudFileId' | 'groupId'> & {
|
|
14
|
-
state: 'local';
|
|
15
|
-
hasKey: boolean;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export type SyncableLocalFile = Budget & {
|
|
19
|
-
cloudFileId: string;
|
|
20
|
-
groupId: string;
|
|
21
|
-
state: 'broken' | 'unknown';
|
|
22
|
-
hasKey: boolean;
|
|
23
|
-
owner: string;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export type SyncedLocalFile = Budget & {
|
|
27
|
-
cloudFileId: string;
|
|
28
|
-
groupId: string;
|
|
29
|
-
encryptKeyId?: string;
|
|
30
|
-
hasKey: boolean;
|
|
31
|
-
state: 'synced' | 'detached';
|
|
32
|
-
owner: string;
|
|
33
|
-
usersWithAccess: UsersWithAccess[];
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export type RemoteFile = {
|
|
37
|
-
cloudFileId: string;
|
|
38
|
-
groupId: string;
|
|
39
|
-
name: string;
|
|
40
|
-
encryptKeyId?: string;
|
|
41
|
-
hasKey: boolean;
|
|
42
|
-
state: 'remote';
|
|
43
|
-
owner: string;
|
|
44
|
-
usersWithAccess: UsersWithAccess[];
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export type File = LocalFile | SyncableLocalFile | SyncedLocalFile | RemoteFile;
|
package/dist/jest.config.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
moduleFileExtensions: [
|
|
3
|
-
'api.js',
|
|
4
|
-
'api.ts',
|
|
5
|
-
'api.tsx',
|
|
6
|
-
'electron.js',
|
|
7
|
-
'electron.ts',
|
|
8
|
-
'mjs',
|
|
9
|
-
'js',
|
|
10
|
-
'ts',
|
|
11
|
-
'tsx',
|
|
12
|
-
'json',
|
|
13
|
-
],
|
|
14
|
-
testEnvironment: 'node',
|
|
15
|
-
testPathIgnorePatterns: ['/node_modules/'],
|
|
16
|
-
watchPathIgnorePatterns: ['<rootDir>/mocks/budgets/'],
|
|
17
|
-
setupFilesAfterEnv: ['<rootDir>/../loot-core/src/mocks/setup.ts'],
|
|
18
|
-
transformIgnorePatterns: ['/node_modules/'],
|
|
19
|
-
transform: {
|
|
20
|
-
'^.+\\.(t|j)sx?$': '@swc/jest',
|
|
21
|
-
},
|
|
22
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|