@actual-app/api 26.2.0-nightly.20260113 → 26.2.0-nightly.20260115
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/server/aql/schema/index.d.ts +14 -0
- package/@types/loot-core/src/server/budgetfiles/app.d.ts +1 -3
- package/@types/loot-core/src/server/cloud-storage.d.ts +0 -1
- package/@types/loot-core/src/server/dashboard/app.d.ts +25 -4
- package/@types/loot-core/src/server/db/types/index.d.ts +6 -0
- package/@types/loot-core/src/server/main-app.d.ts +1 -1
- package/@types/loot-core/src/server/main.d.ts +19 -3
- package/@types/loot-core/src/types/models/dashboard.d.ts +8 -2
- package/@types/migrations/1765518577215_multiple_dashboards.d.ts +1 -0
- package/dist/app/bundle.api.js +1743 -892
- package/dist/index.js +1 -0
- package/dist/migrations/1765518577215_multiple_dashboards.js +29 -0
- package/dist/package.json +3 -3
- package/dist/utils.js +1 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.utils = exports.internal = void 0;
|
|
40
40
|
exports.init = init;
|
|
41
41
|
exports.shutdown = shutdown;
|
|
42
|
+
// oxlint-disable-next-line typescript/ban-ts-comment
|
|
42
43
|
// @ts-ignore: bundle not available until we build it
|
|
43
44
|
const bundle = __importStar(require("./app/bundle.api.js"));
|
|
44
45
|
const injected = __importStar(require("./injected"));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = runMigration;
|
|
4
|
+
const uuid_1 = require("uuid");
|
|
5
|
+
async function runMigration(db) {
|
|
6
|
+
db.transaction(() => {
|
|
7
|
+
// 1. Create dashboards table
|
|
8
|
+
db.execQuery(`
|
|
9
|
+
CREATE TABLE dashboard_pages
|
|
10
|
+
(id TEXT PRIMARY KEY,
|
|
11
|
+
name TEXT,
|
|
12
|
+
tombstone INTEGER DEFAULT 0);
|
|
13
|
+
`);
|
|
14
|
+
// 2. Add dashboard_page_id to dashboard (widgets) table
|
|
15
|
+
db.execQuery(`
|
|
16
|
+
ALTER TABLE dashboard ADD COLUMN dashboard_page_id TEXT;
|
|
17
|
+
`);
|
|
18
|
+
// 3. Create a default dashboard
|
|
19
|
+
const defaultDashboardId = (0, uuid_1.v4)();
|
|
20
|
+
db.runQuery(`INSERT INTO dashboard_pages (id, name) VALUES (?, ?)`, [
|
|
21
|
+
defaultDashboardId,
|
|
22
|
+
'Main',
|
|
23
|
+
]);
|
|
24
|
+
// 4. Migrate existing widgets to the default dashboard
|
|
25
|
+
db.runQuery(`UPDATE dashboard SET dashboard_page_id = ?`, [
|
|
26
|
+
defaultDashboardId,
|
|
27
|
+
]);
|
|
28
|
+
});
|
|
29
|
+
}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@actual-app/api",
|
|
3
|
-
"version": "26.2.0-nightly.
|
|
3
|
+
"version": "26.2.0-nightly.20260115",
|
|
4
4
|
"description": "An API for Actual",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@actual-app/crdt": "workspace:^",
|
|
24
|
-
"better-sqlite3": "^12.
|
|
24
|
+
"better-sqlite3": "^12.5.0",
|
|
25
25
|
"compare-versions": "^6.1.1",
|
|
26
26
|
"node-fetch": "^3.3.2",
|
|
27
27
|
"uuid": "^13.0.0"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"tsc-alias": "^1.8.16",
|
|
31
31
|
"typescript": "^5.9.3",
|
|
32
|
-
"vitest": "^4.0.
|
|
32
|
+
"vitest": "^4.0.16"
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": ">=20"
|
package/dist/utils.js
CHANGED
|
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.integerToAmount = exports.amountToInteger = void 0;
|
|
37
|
+
// oxlint-disable-next-line typescript/ban-ts-comment
|
|
37
38
|
// @ts-ignore: bundle not available until we build it
|
|
38
39
|
const bundle = __importStar(require("./app/bundle.api.js"));
|
|
39
40
|
exports.amountToInteger = bundle.lib.amountToInteger;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@actual-app/api",
|
|
3
|
-
"version": "26.2.0-nightly.
|
|
3
|
+
"version": "26.2.0-nightly.20260115",
|
|
4
4
|
"description": "An API for Actual",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@actual-app/crdt": "^2.1.0",
|
|
24
|
-
"better-sqlite3": "^12.
|
|
24
|
+
"better-sqlite3": "^12.5.0",
|
|
25
25
|
"compare-versions": "^6.1.1",
|
|
26
26
|
"node-fetch": "^3.3.2",
|
|
27
27
|
"uuid": "^13.0.0"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"tsc-alias": "^1.8.16",
|
|
31
31
|
"typescript": "^5.9.3",
|
|
32
|
-
"vitest": "^4.0.
|
|
32
|
+
"vitest": "^4.0.16"
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": ">=20"
|