@protobase/server 0.68.1 → 0.68.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.
@@ -29,6 +29,7 @@ const commentsView = view("record_comments").names({
29
29
  singular: "Comment",
30
30
  plural: "Comments"
31
31
  }).icon("message-square").title((r) => r.record_key).help("Every comment on the records whose resource takes comments, newest first. Delete one to take it down.").fields((r) => ({
32
+ resource: r.resource.label("Resource"),
32
33
  record_key: r.record_key.label("Record"),
33
34
  author_id: r.author_id.label("By"),
34
35
  body: r.body.label("Comment"),
@@ -39,11 +39,21 @@ const activityView = view("record_history").names({
39
39
  singular: "Change",
40
40
  plural: "Activity"
41
41
  }).icon("history").title((r) => r.record_key).help("Every change of the records whose resource keeps history, from the app or straight in the database, newest first.").fields((r) => ({
42
+ resource: r.resource.label("Resource"),
42
43
  record_key: r.record_key.label("Record"),
44
+ operation: r.operation.label("Operation").valueLabels({
45
+ create: "Created",
46
+ update: "Updated",
47
+ delete: "Deleted",
48
+ undelete: "Restored"
49
+ }),
50
+ before: r.before.label("Before"),
51
+ after: r.after.label("After"),
43
52
  actor_id: r.actor_id.label("By"),
44
53
  actor_roles: r.actor_roles.label("Acting as"),
45
54
  database_role: r.database_role.label("Database role"),
46
55
  changed: r.changed.label("Changed fields"),
56
+ transaction: r.transaction.label("Transaction"),
47
57
  at: r.at.label("When")
48
58
  })).list((r) => ({
49
59
  columns: [
@@ -30,8 +30,11 @@ const failedJobsView = view("failed_jobs").names({
30
30
  }).icon("triangle-alert").title((r) => r.name).help("Jobs that used up their attempts, or failed for good. Retry one once its cause is fixed: it gets one more attempt.").fields((r) => ({
31
31
  name: r.name.label("Job"),
32
32
  error: r.error.label("Last error"),
33
+ attempts: r.attempts.label("Attempts"),
33
34
  failed_at: r.failed_at.label("Failed"),
34
35
  created_at: r.created_at.label("Enqueued"),
36
+ key: r.key.label("Key"),
37
+ payload: r.payload.label("Payload"),
35
38
  output: r.output.label("Error details")
36
39
  })).list((r) => ({
37
40
  columns: [
package/dist/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.68.1";
2
+ var version = "0.68.2";
3
3
  //#endregion
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/server",
3
- "version": "0.68.1",
3
+ "version": "0.68.2",
4
4
  "description": "The Protobase REST API as a Hono app, with Better Auth sign-in.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -44,11 +44,11 @@
44
44
  "@better-auth/sso": "^1.7.12",
45
45
  "@livekit/protocol": "1.53.1",
46
46
  "@modelcontextprotocol/server": "^2.3.1",
47
- "@protobase/layout": "0.68.1",
48
- "@protobase/query": "0.68.1",
49
- "@protobase/schema": "0.68.1",
50
- "@protobase/workflow-plugins": "0.68.1",
51
- "@protobase/workflows": "0.68.1",
47
+ "@protobase/layout": "0.68.2",
48
+ "@protobase/query": "0.68.2",
49
+ "@protobase/schema": "0.68.2",
50
+ "@protobase/workflow-plugins": "0.68.2",
51
+ "@protobase/workflows": "0.68.2",
52
52
  "@react-email/render": "^2.1.0",
53
53
  "@react-pdf/primitives": "^4.4.0",
54
54
  "@react-pdf/renderer": "^4.9.0",