@teable/app 6.1.1 → 6.1.2

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 (2) hide show
  1. package/dist/protocol.d.ts +27 -0
  2. package/package.json +1 -1
@@ -509,6 +509,33 @@ export interface VersionInfo {
509
509
  /** Whether it is the version that serves the app now. */
510
510
  live: boolean;
511
511
  }
512
+ /**
513
+ * A failure of the app's own, as `GET {APPS_PATH}/:appId/failures` lists
514
+ * them for its creators: what broke in it lately, each failure once, with
515
+ * how often and when last, the latest first. What the app refused (below
516
+ * HTTP 500) is not one: the app did as it was written to.
517
+ */
518
+ export interface AppFailure {
519
+ /**
520
+ * What failed: a call of one of its methods, a run of one of its tasks, the
521
+ * app starting to run them (`wake`: it could not start, or crashed under
522
+ * them), or its pages' own Worker.
523
+ */
524
+ kind: "call" | "task" | "wake" | "worker";
525
+ /** The method called, or the task run; null for the others. */
526
+ method: string | null;
527
+ code: ErrorCode;
528
+ message: string;
529
+ /** How many times it failed so, the first time and the last (epoch milliseconds). */
530
+ count: number;
531
+ firstAt: number;
532
+ lastAt: number;
533
+ /** The version that was live the last time; null before the first. */
534
+ version: number | null;
535
+ /** A task's last failure: its attempt, and whether the task gave up then. */
536
+ attempt: number | null;
537
+ dead: boolean | null;
538
+ }
512
539
  /**
513
540
  * The one access rule: may this caller invoke a method with this access level?
514
541
  * Returns the error code to report, or null when the call is allowed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teable/app",
3
- "version": "6.1.1",
3
+ "version": "6.1.2",
4
4
  "description": "Write a Teable app as a Drizzle schema plus methods",
5
5
  "license": "MIT",
6
6
  "repository": {