@actual-app/api 26.1.0-nightly.20251214 → 26.1.0-nightly.20251216

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.
@@ -15,5 +15,7 @@ declare class Query {
15
15
  withoutValidatedRefs(): Query;
16
16
  options(opts: any): Query;
17
17
  serialize(): any;
18
+ reset(): Query;
19
+ serializeAsString(): string;
18
20
  }
19
21
  export {};
@@ -106150,6 +106150,9 @@ class Action {
106150
106150
  if (cellValue && typeof cellValue === "object" && "type" in cellValue) {
106151
106151
  throw new Error(`Formula error: ${cellValue.message}`);
106152
106152
  }
106153
+ if (typeof cellValue === "number") {
106154
+ return amountToInteger(Math.round(cellValue * 100) / 100);
106155
+ }
106153
106156
  return cellValue;
106154
106157
  }
106155
106158
  catch (err) {
@@ -124452,7 +124455,8 @@ const exportModel = {
124452
124455
  "custom-report",
124453
124456
  "markdown-card",
124454
124457
  "summary-card",
124455
- "calendar-card"
124458
+ "calendar-card",
124459
+ "formula-card"
124456
124460
  ].includes(widget.type)) {
124457
124461
  throw new ValidationError(`Invalid widget.${idx}.type value ${widget.type}.`);
124458
124462
  }
package/dist/app/query.js CHANGED
@@ -82,6 +82,12 @@ class Query {
82
82
  serialize() {
83
83
  return this.state;
84
84
  }
85
+ reset() {
86
+ return q(this.state.table);
87
+ }
88
+ serializeAsString() {
89
+ return JSON.stringify(this.serialize());
90
+ }
85
91
  }
86
92
  function q(table) {
87
93
  return new Query({ table });
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actual-app/api",
3
- "version": "26.1.0-nightly.20251214",
3
+ "version": "26.1.0-nightly.20251216",
4
4
  "license": "MIT",
5
5
  "description": "An API for Actual",
6
6
  "engines": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actual-app/api",
3
- "version": "26.1.0-nightly.20251214",
3
+ "version": "26.1.0-nightly.20251216",
4
4
  "license": "MIT",
5
5
  "description": "An API for Actual",
6
6
  "engines": {