Add global admin checks list and deepen check notification links.

Expose GET /admin/checks with order context, and point admin check alerts to the per-order checks page.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-09 16:17:51 +03:30
co-authored by Cursor
parent d4aaa8e997
commit fd187ea2ee
11 changed files with 119 additions and 6 deletions
+10
View File
@@ -23,6 +23,9 @@ let ChecksController = class ChecksController {
constructor(checksService) {
this.checksService = checksService;
}
findAll(status) {
return this.checksService.findAll(status);
}
findByOrder(orderId) {
return this.checksService.findByOrder(orderId);
}
@@ -31,6 +34,13 @@ let ChecksController = class ChecksController {
}
};
exports.ChecksController = ChecksController;
__decorate([
(0, common_1.Get)('admin/checks'),
__param(0, (0, common_1.Query)('status')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", void 0)
], ChecksController.prototype, "findAll", null);
__decorate([
(0, common_1.Get)('admin/orders/:orderId/checks'),
__param(0, (0, common_1.Param)('orderId')),