@proteinjs/db 1.45.0 → 1.46.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proteinjs/db",
3
- "version": "1.45.0",
3
+ "version": "1.46.0",
4
4
  "main": "./dist/generated/index.js",
5
5
  "types": "./dist/generated/index.d.ts",
6
6
  "exports": {
@@ -66,5 +66,5 @@
66
66
  "ts-jest": "29.1.1",
67
67
  "typescript": "5.2.2"
68
68
  },
69
- "gitHead": "135045a9e4b16a75ea11f610a82fa7ff60751e8d"
69
+ "gitHead": "93bcd1aaf8d85abf75c20478e324b6b5323baf2f"
70
70
  }
package/src/Table.ts CHANGED
@@ -139,6 +139,14 @@ export abstract class Table<T extends Record> implements Loadable, CustomSeriali
139
139
  * migration ledger reads most-recently-run first, never-run rows last.
140
140
  */
141
141
  sort?: SortCriteria<T>[];
142
+ /**
143
+ * A table whose rows have their OWN page instead of the generic record form: the record table
144
+ * links each row here (replacing the generic form link), draws no New button and no selection
145
+ * Delete button, and the generic form page replace-navigates stale
146
+ * `/record/form?table=<name>&record=<id>` URLs to this link. Built from the id alone so the
147
+ * redirect never needs a row load.
148
+ */
149
+ recordLink?: (row: Pick<T, 'id'>) => string;
142
150
  };
143
151
  };
144
152
  public auth?: {