@astram/guard 0.25.1 → 0.27.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/dist/auth/auth.module.d.ts +8 -0
- package/dist/auth/auth.module.d.ts.map +1 -1
- package/dist/auth/auth.module.js +13 -6
- package/dist/auth/tokens.d.ts +14 -4
- package/dist/auth/tokens.d.ts.map +1 -1
- package/dist/auth/tokens.js +16 -6
- package/dist/enforcement/global-enforcement.guard.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -4
- package/dist/internal.d.ts +5 -0
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +16 -10
- package/dist/module/shield.module.d.ts +5 -3
- package/dist/module/shield.module.d.ts.map +1 -1
- package/dist/notifications/mariadb-notification-store.d.ts +26 -1
- package/dist/notifications/mariadb-notification-store.d.ts.map +1 -1
- package/dist/notifications/mariadb-notification-store.js +128 -3
- package/dist/notifications/notification.service.d.ts +40 -5
- package/dist/notifications/notification.service.d.ts.map +1 -1
- package/dist/notifications/notification.service.js +86 -4
- package/dist/notifications/notifications.controller.d.ts +43 -3
- package/dist/notifications/notifications.controller.d.ts.map +1 -1
- package/dist/notifications/notifications.controller.js +233 -6
- package/dist/notifications/ports.d.ts +52 -2
- package/dist/notifications/ports.d.ts.map +1 -1
- package/dist/notifications/ports.js +12 -2
- package/package.json +5 -5
|
@@ -12,7 +12,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.NotificationsController = void 0;
|
|
15
|
+
exports.NotificationsController = exports.NOTIFICATION_SEARCH_MAX = void 0;
|
|
16
16
|
/**
|
|
17
17
|
* `/account/notifications` — the signed-in user's own notice inbox (G-027 step 2,
|
|
18
18
|
* notification-store SPEC §3, §5D, §13).
|
|
@@ -30,20 +30,33 @@ exports.NotificationsController = void 0;
|
|
|
30
30
|
* Order on every route: 401 (no/invalid session) → 403 (restricted session) → 501 (store not
|
|
31
31
|
* wired) → 400 (bad query parameter or `:uuid`, naming the parameter, never echoing the value) →
|
|
32
32
|
* store call (any throw ⇒ 503 `notifications_unavailable`, the driver message never surfaces).
|
|
33
|
+
*
|
|
34
|
+
* G-035 (notification-center SPEC §3, §5C, §13): the list takes `kind`, `status`, `from` / `to`
|
|
35
|
+
* (UTC days, inclusive) and `search`; rows carry `kindLabel` / `severity` (from the kind
|
|
36
|
+
* registration, `NotificationService.kindInfo`) and `archivedAt`. New: `GET kinds`, `POST
|
|
37
|
+
* :uuid/{unread,archive,unarchive}` (as `:uuid/read`) and `POST bulk` ⇒ `{ updated }`. Static
|
|
38
|
+
* routes are declared before the `:uuid/*` ones.
|
|
33
39
|
*/
|
|
34
40
|
const common_1 = require("@nestjs/common");
|
|
41
|
+
const engine_1 = require("@astram/engine");
|
|
35
42
|
const classification_decorator_js_1 = require("../enforcement/classification.decorator.js");
|
|
36
43
|
const uuid_pipe_js_1 = require("../enforcement/uuid.pipe.js");
|
|
37
44
|
const request_principal_js_1 = require("../request-auth/request-principal.js");
|
|
38
45
|
const tokens_js_1 = require("../request-auth/tokens.js");
|
|
39
46
|
const tokens_js_2 = require("../auth/tokens.js");
|
|
40
47
|
const session_restriction_js_1 = require("../session/session-restriction.js");
|
|
48
|
+
const notification_service_js_1 = require("./notification.service.js");
|
|
41
49
|
const ports_js_1 = require("./ports.js");
|
|
42
50
|
/** Default and maximum page size (SPEC §10). */
|
|
43
51
|
const DEFAULT_LIMIT = 20;
|
|
44
52
|
const MAX_LIMIT = 100;
|
|
53
|
+
/** Longest `search` after trimming, in code points (notification-center SPEC §3). */
|
|
54
|
+
exports.NOTIFICATION_SEARCH_MAX = 100;
|
|
45
55
|
/** A decimal integer as a query string (no sign, no exponent, no whitespace). */
|
|
46
56
|
const DIGITS = /^[0-9]{1,16}$/;
|
|
57
|
+
/** An ISO calendar date `YYYY-MM-DD` (UTC day). */
|
|
58
|
+
const ISO_DATE = /^([0-9]{4})-([0-9]{2})-([0-9]{2})$/;
|
|
59
|
+
const DAY_MS = 24 * 60 * 60 * 1000;
|
|
47
60
|
/** The generic 401, as `/account/*` (never distinguishes no token / bad token / API key). */
|
|
48
61
|
function unauthorized() {
|
|
49
62
|
throw new common_1.HttpException({ error: 'unauthorized' }, common_1.HttpStatus.UNAUTHORIZED);
|
|
@@ -95,16 +108,95 @@ function parseBoundedInt(name, value, fallback, max) {
|
|
|
95
108
|
badParameter(name);
|
|
96
109
|
return n;
|
|
97
110
|
}
|
|
98
|
-
|
|
111
|
+
/** Optional `kind`: absent ⇒ every kind; otherwise a well-formed kind (≤ 64, dotted segments). */
|
|
112
|
+
function parseKind(value) {
|
|
113
|
+
if (value === undefined)
|
|
114
|
+
return undefined;
|
|
115
|
+
if (typeof value !== 'string' ||
|
|
116
|
+
value.length > ports_js_1.NOTIFICATION_KIND_MAX_LENGTH ||
|
|
117
|
+
!ports_js_1.NOTIFICATION_KIND_PATTERN.test(value)) {
|
|
118
|
+
badParameter('kind');
|
|
119
|
+
}
|
|
120
|
+
return value;
|
|
121
|
+
}
|
|
122
|
+
/** Optional `status`: absent ⇒ not archived; otherwise `unread`, `read` or `archived`. */
|
|
123
|
+
function parseStatus(value) {
|
|
124
|
+
if (value === undefined)
|
|
125
|
+
return undefined;
|
|
126
|
+
if (typeof value !== 'string' || !ports_js_1.NOTIFICATION_STATUSES.includes(value)) {
|
|
127
|
+
badParameter('status');
|
|
128
|
+
}
|
|
129
|
+
return value;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Optional ISO date `YYYY-MM-DD` as a UTC day ⇒ its first millisecond, or with `endOfDay` its
|
|
133
|
+
* last (inclusive days). A date that does not exist (2026-02-30) is refused.
|
|
134
|
+
*/
|
|
135
|
+
function parseDay(name, value, endOfDay) {
|
|
136
|
+
if (value === undefined)
|
|
137
|
+
return undefined;
|
|
138
|
+
const m = typeof value === 'string' ? ISO_DATE.exec(value) : null;
|
|
139
|
+
if (m === null)
|
|
140
|
+
return badParameter(name);
|
|
141
|
+
const [y, mo, d] = [Number(m[1]), Number(m[2]), Number(m[3])];
|
|
142
|
+
const start = Date.UTC(y, mo - 1, d);
|
|
143
|
+
const back = new Date(start);
|
|
144
|
+
if (y < 1970 ||
|
|
145
|
+
back.getUTCFullYear() !== y ||
|
|
146
|
+
back.getUTCMonth() !== mo - 1 ||
|
|
147
|
+
back.getUTCDate() !== d) {
|
|
148
|
+
badParameter(name);
|
|
149
|
+
}
|
|
150
|
+
return endOfDay ? start + DAY_MS - 1 : start;
|
|
151
|
+
}
|
|
152
|
+
/** Optional `search`: trimmed; empty ⇒ absent (not an error); over 100 code points ⇒ 400. */
|
|
153
|
+
function parseSearch(value) {
|
|
154
|
+
if (value === undefined)
|
|
155
|
+
return undefined;
|
|
156
|
+
if (typeof value !== 'string')
|
|
157
|
+
badParameter('search');
|
|
158
|
+
const term = value.trim();
|
|
159
|
+
if (term.length === 0)
|
|
160
|
+
return undefined;
|
|
161
|
+
if (Array.from(term).length > exports.NOTIFICATION_SEARCH_MAX)
|
|
162
|
+
badParameter('search');
|
|
163
|
+
return term;
|
|
164
|
+
}
|
|
165
|
+
/** Body `action` of `POST bulk`. */
|
|
166
|
+
function parseBulkAction(value) {
|
|
167
|
+
if (typeof value !== 'string' ||
|
|
168
|
+
!ports_js_1.NOTIFICATION_BULK_ACTIONS.includes(value)) {
|
|
169
|
+
badParameter('action');
|
|
170
|
+
}
|
|
171
|
+
return value;
|
|
172
|
+
}
|
|
173
|
+
/** Body `uuids` of `POST bulk`: 1–100 uuids, canonical and de-duplicated. */
|
|
174
|
+
function parseBulkUuids(value) {
|
|
175
|
+
if (!Array.isArray(value) || value.length < 1 || value.length > ports_js_1.NOTIFICATION_BULK_MAX) {
|
|
176
|
+
throw new common_1.BadRequestException(`uuids must be a list of 1 to ${ports_js_1.NOTIFICATION_BULK_MAX} uuids`);
|
|
177
|
+
}
|
|
178
|
+
const out = new Set();
|
|
179
|
+
for (const v of value) {
|
|
180
|
+
const canonical = (0, engine_1.canonicalUuid)(v);
|
|
181
|
+
if (canonical === null)
|
|
182
|
+
throw new common_1.BadRequestException('uuids must contain uuids only');
|
|
183
|
+
out.add(canonical);
|
|
184
|
+
}
|
|
185
|
+
return [...out];
|
|
186
|
+
}
|
|
187
|
+
function toView(row, info) {
|
|
99
188
|
return {
|
|
100
189
|
uuid: row.uuid,
|
|
101
190
|
category: row.category,
|
|
102
191
|
kind: row.kind,
|
|
192
|
+
kindLabel: info.label,
|
|
193
|
+
severity: info.severity,
|
|
103
194
|
title: row.title,
|
|
104
195
|
body: row.body,
|
|
105
196
|
link: row.link,
|
|
106
197
|
createdAt: new Date(row.createdAtMs).toISOString(),
|
|
107
198
|
readAt: row.readAtMs === null ? null : new Date(row.readAtMs).toISOString(),
|
|
199
|
+
archivedAt: row.archivedAtMs === null ? null : new Date(row.archivedAtMs).toISOString(),
|
|
108
200
|
};
|
|
109
201
|
}
|
|
110
202
|
/** Run one store call; any throw is the fixed 503. */
|
|
@@ -120,10 +212,15 @@ let NotificationsController = class NotificationsController {
|
|
|
120
212
|
binder;
|
|
121
213
|
store;
|
|
122
214
|
mfaRequirement;
|
|
123
|
-
|
|
215
|
+
notifications;
|
|
216
|
+
constructor(binder, store, mfaRequirement, notifications) {
|
|
124
217
|
this.binder = binder;
|
|
125
218
|
this.store = store;
|
|
126
219
|
this.mfaRequirement = mfaRequirement;
|
|
220
|
+
this.notifications = notifications;
|
|
221
|
+
}
|
|
222
|
+
kindInfo(kind, category) {
|
|
223
|
+
return this.notifications?.kindInfo(kind, category) ?? (0, notification_service_js_1.fallbackKindInfo)(kind, category);
|
|
127
224
|
}
|
|
128
225
|
/**
|
|
129
226
|
* The caller's claims after the mandatory-2FA refresh and the restriction gate (mirrors
|
|
@@ -153,12 +250,24 @@ let NotificationsController = class NotificationsController {
|
|
|
153
250
|
notAvailable();
|
|
154
251
|
return this.store;
|
|
155
252
|
}
|
|
156
|
-
/**
|
|
253
|
+
/**
|
|
254
|
+
* `GET /account/notifications` — newest first ⇒ `{ total, rows, page, limit }`. Filters
|
|
255
|
+
* `category`, `unread`, `kind`, `status` (absent ⇒ not archived), `from` / `to` (UTC days,
|
|
256
|
+
* inclusive), `search` (title or body; blank ⇒ no search).
|
|
257
|
+
*/
|
|
157
258
|
async list(authorization, query) {
|
|
158
259
|
const claims = await this.requireSession(authorization);
|
|
159
260
|
const store = this.requireStore();
|
|
160
261
|
const category = parseCategory(query?.category);
|
|
161
262
|
const unreadOnly = parseUnread(query?.unread);
|
|
263
|
+
const kind = parseKind(query?.kind);
|
|
264
|
+
const status = parseStatus(query?.status);
|
|
265
|
+
const fromMs = parseDay('from', query?.from, false);
|
|
266
|
+
const toMs = parseDay('to', query?.to, true);
|
|
267
|
+
if (fromMs !== undefined && toMs !== undefined && fromMs > toMs) {
|
|
268
|
+
throw new common_1.BadRequestException('from must not be after to');
|
|
269
|
+
}
|
|
270
|
+
const search = parseSearch(query?.search);
|
|
162
271
|
const limit = parseBoundedInt('limit', query?.limit, DEFAULT_LIMIT, MAX_LIMIT);
|
|
163
272
|
const page = parseBoundedInt('page', query?.page, 1, Number.MAX_SAFE_INTEGER);
|
|
164
273
|
// The store refuses an offset past the safe-integer range; answer that as the caller's 400.
|
|
@@ -167,10 +276,36 @@ let NotificationsController = class NotificationsController {
|
|
|
167
276
|
const result = await guarded(() => store.list(claims.id, claims.tenantId, {
|
|
168
277
|
...(category !== undefined ? { category } : {}),
|
|
169
278
|
unreadOnly,
|
|
279
|
+
...(kind !== undefined ? { kind } : {}),
|
|
280
|
+
...(status !== undefined ? { status } : {}),
|
|
281
|
+
...(fromMs !== undefined ? { fromMs } : {}),
|
|
282
|
+
...(toMs !== undefined ? { toMs } : {}),
|
|
283
|
+
...(search !== undefined ? { search } : {}),
|
|
170
284
|
page,
|
|
171
285
|
limit,
|
|
172
286
|
}));
|
|
173
|
-
return {
|
|
287
|
+
return {
|
|
288
|
+
total: result.total,
|
|
289
|
+
rows: result.rows.map((r) => toView(r, this.kindInfo(r.kind, r.category))),
|
|
290
|
+
page,
|
|
291
|
+
limit,
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* `GET /account/notifications/kinds` ⇒ `{ kinds: [{ kind, label, category }] }`: the types the
|
|
296
|
+
* caller has notices of in the active company (the Type filter). The category is the stored one.
|
|
297
|
+
*/
|
|
298
|
+
async kinds(authorization) {
|
|
299
|
+
const claims = await this.requireSession(authorization);
|
|
300
|
+
const store = this.requireStore();
|
|
301
|
+
const rows = await guarded(() => store.listKinds(claims.id, claims.tenantId));
|
|
302
|
+
return {
|
|
303
|
+
kinds: rows.map((r) => ({
|
|
304
|
+
kind: r.kind,
|
|
305
|
+
label: this.kindInfo(r.kind, r.category).label,
|
|
306
|
+
category: r.category,
|
|
307
|
+
})),
|
|
308
|
+
};
|
|
174
309
|
}
|
|
175
310
|
/** `GET /account/notifications/unread-count` ⇒ `{ announcement, personal, total }`. */
|
|
176
311
|
async unreadCount(authorization) {
|
|
@@ -191,6 +326,20 @@ let NotificationsController = class NotificationsController {
|
|
|
191
326
|
const updated = await guarded(() => store.markAllRead(claims.id, claims.tenantId, category, Date.now()));
|
|
192
327
|
return { updated };
|
|
193
328
|
}
|
|
329
|
+
/**
|
|
330
|
+
* `POST /account/notifications/bulk` body `{ action: read|unread|archive|unarchive, uuids:
|
|
331
|
+
* 1–100 }` ⇒ `{ updated }`: the number of the caller's own notices in the active company that
|
|
332
|
+
* changed (another user's or company's uuid, or an unknown one, counts 0).
|
|
333
|
+
*/
|
|
334
|
+
async bulk(authorization, body) {
|
|
335
|
+
const claims = await this.requireSession(authorization);
|
|
336
|
+
const store = this.requireStore();
|
|
337
|
+
const input = (typeof body === 'object' && body !== null ? body : {});
|
|
338
|
+
const action = parseBulkAction(input.action);
|
|
339
|
+
const uuids = parseBulkUuids(input.uuids);
|
|
340
|
+
const updated = await guarded(() => store.bulk(claims.id, claims.tenantId, action, uuids, Date.now()));
|
|
341
|
+
return { updated };
|
|
342
|
+
}
|
|
194
343
|
/**
|
|
195
344
|
* `POST /account/notifications/:uuid/read` ⇒ 204 (idempotent: the first read time is kept).
|
|
196
345
|
* The uuid is canonicalised here, after the session check (401 before 400), as
|
|
@@ -204,6 +353,33 @@ let NotificationsController = class NotificationsController {
|
|
|
204
353
|
if (!found)
|
|
205
354
|
notFound();
|
|
206
355
|
}
|
|
356
|
+
/** `POST /account/notifications/:uuid/unread` ⇒ 204 (an archived notice stays read). */
|
|
357
|
+
async unread(authorization, rawUuid) {
|
|
358
|
+
const claims = await this.requireSession(authorization);
|
|
359
|
+
const store = this.requireStore();
|
|
360
|
+
const uuid = (0, uuid_pipe_js_1.uuidField)(rawUuid, 'uuid');
|
|
361
|
+
const found = await guarded(() => store.markUnread(claims.id, claims.tenantId, uuid));
|
|
362
|
+
if (!found)
|
|
363
|
+
notFound();
|
|
364
|
+
}
|
|
365
|
+
/** `POST /account/notifications/:uuid/archive` ⇒ 204 (idempotent; also marks it read). */
|
|
366
|
+
async archive(authorization, rawUuid) {
|
|
367
|
+
const claims = await this.requireSession(authorization);
|
|
368
|
+
const store = this.requireStore();
|
|
369
|
+
const uuid = (0, uuid_pipe_js_1.uuidField)(rawUuid, 'uuid');
|
|
370
|
+
const found = await guarded(() => store.archive(claims.id, claims.tenantId, uuid, Date.now()));
|
|
371
|
+
if (!found)
|
|
372
|
+
notFound();
|
|
373
|
+
}
|
|
374
|
+
/** `POST /account/notifications/:uuid/unarchive` ⇒ 204 (idempotent; it comes back as read). */
|
|
375
|
+
async unarchive(authorization, rawUuid) {
|
|
376
|
+
const claims = await this.requireSession(authorization);
|
|
377
|
+
const store = this.requireStore();
|
|
378
|
+
const uuid = (0, uuid_pipe_js_1.uuidField)(rawUuid, 'uuid');
|
|
379
|
+
const found = await guarded(() => store.unarchive(claims.id, claims.tenantId, uuid));
|
|
380
|
+
if (!found)
|
|
381
|
+
notFound();
|
|
382
|
+
}
|
|
207
383
|
};
|
|
208
384
|
exports.NotificationsController = NotificationsController;
|
|
209
385
|
__decorate([
|
|
@@ -216,6 +392,15 @@ __decorate([
|
|
|
216
392
|
__metadata("design:paramtypes", [Object, Object]),
|
|
217
393
|
__metadata("design:returntype", Promise)
|
|
218
394
|
], NotificationsController.prototype, "list", null);
|
|
395
|
+
__decorate([
|
|
396
|
+
(0, classification_decorator_js_1.Public)(),
|
|
397
|
+
(0, common_1.Get)('kinds'),
|
|
398
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
399
|
+
__param(0, (0, common_1.Headers)('authorization')),
|
|
400
|
+
__metadata("design:type", Function),
|
|
401
|
+
__metadata("design:paramtypes", [Object]),
|
|
402
|
+
__metadata("design:returntype", Promise)
|
|
403
|
+
], NotificationsController.prototype, "kinds", null);
|
|
219
404
|
__decorate([
|
|
220
405
|
(0, classification_decorator_js_1.Public)(),
|
|
221
406
|
(0, common_1.Get)('unread-count'),
|
|
@@ -235,6 +420,16 @@ __decorate([
|
|
|
235
420
|
__metadata("design:paramtypes", [Object, Object]),
|
|
236
421
|
__metadata("design:returntype", Promise)
|
|
237
422
|
], NotificationsController.prototype, "readAll", null);
|
|
423
|
+
__decorate([
|
|
424
|
+
(0, classification_decorator_js_1.Public)(),
|
|
425
|
+
(0, common_1.Post)('bulk'),
|
|
426
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
427
|
+
__param(0, (0, common_1.Headers)('authorization')),
|
|
428
|
+
__param(1, (0, common_1.Body)()),
|
|
429
|
+
__metadata("design:type", Function),
|
|
430
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
431
|
+
__metadata("design:returntype", Promise)
|
|
432
|
+
], NotificationsController.prototype, "bulk", null);
|
|
238
433
|
__decorate([
|
|
239
434
|
(0, classification_decorator_js_1.Public)(),
|
|
240
435
|
(0, common_1.Post)(':uuid/read'),
|
|
@@ -245,6 +440,36 @@ __decorate([
|
|
|
245
440
|
__metadata("design:paramtypes", [Object, String]),
|
|
246
441
|
__metadata("design:returntype", Promise)
|
|
247
442
|
], NotificationsController.prototype, "read", null);
|
|
443
|
+
__decorate([
|
|
444
|
+
(0, classification_decorator_js_1.Public)(),
|
|
445
|
+
(0, common_1.Post)(':uuid/unread'),
|
|
446
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.NO_CONTENT),
|
|
447
|
+
__param(0, (0, common_1.Headers)('authorization')),
|
|
448
|
+
__param(1, (0, common_1.Param)('uuid')),
|
|
449
|
+
__metadata("design:type", Function),
|
|
450
|
+
__metadata("design:paramtypes", [Object, String]),
|
|
451
|
+
__metadata("design:returntype", Promise)
|
|
452
|
+
], NotificationsController.prototype, "unread", null);
|
|
453
|
+
__decorate([
|
|
454
|
+
(0, classification_decorator_js_1.Public)(),
|
|
455
|
+
(0, common_1.Post)(':uuid/archive'),
|
|
456
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.NO_CONTENT),
|
|
457
|
+
__param(0, (0, common_1.Headers)('authorization')),
|
|
458
|
+
__param(1, (0, common_1.Param)('uuid')),
|
|
459
|
+
__metadata("design:type", Function),
|
|
460
|
+
__metadata("design:paramtypes", [Object, String]),
|
|
461
|
+
__metadata("design:returntype", Promise)
|
|
462
|
+
], NotificationsController.prototype, "archive", null);
|
|
463
|
+
__decorate([
|
|
464
|
+
(0, classification_decorator_js_1.Public)(),
|
|
465
|
+
(0, common_1.Post)(':uuid/unarchive'),
|
|
466
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.NO_CONTENT),
|
|
467
|
+
__param(0, (0, common_1.Headers)('authorization')),
|
|
468
|
+
__param(1, (0, common_1.Param)('uuid')),
|
|
469
|
+
__metadata("design:type", Function),
|
|
470
|
+
__metadata("design:paramtypes", [Object, String]),
|
|
471
|
+
__metadata("design:returntype", Promise)
|
|
472
|
+
], NotificationsController.prototype, "unarchive", null);
|
|
248
473
|
exports.NotificationsController = NotificationsController = __decorate([
|
|
249
474
|
(0, common_1.Controller)('account/notifications'),
|
|
250
475
|
__param(0, (0, common_1.Optional)()),
|
|
@@ -253,5 +478,7 @@ exports.NotificationsController = NotificationsController = __decorate([
|
|
|
253
478
|
__param(1, (0, common_1.Inject)(tokens_js_2.SHIELD_NOTIFICATION_STORE)),
|
|
254
479
|
__param(2, (0, common_1.Optional)()),
|
|
255
480
|
__param(2, (0, common_1.Inject)(tokens_js_2.SHIELD_MFA_REQUIREMENT)),
|
|
256
|
-
|
|
481
|
+
__param(3, (0, common_1.Optional)()),
|
|
482
|
+
__param(3, (0, common_1.Inject)(tokens_js_2.SHIELD_NOTIFICATIONS)),
|
|
483
|
+
__metadata("design:paramtypes", [Function, Object, Object, Object])
|
|
257
484
|
], NotificationsController);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Notification store contract (G-027 step 2, notification-store SPEC §5A, §5B, §10
|
|
2
|
+
* Notification store contract (G-027 step 2, notification-store SPEC §5A, §5B, §10; G-035
|
|
3
|
+
* notification-center SPEC §5A, §5B: kind label / severity, list filters, unread, archive, bulk).
|
|
3
4
|
*
|
|
4
5
|
* One per-user, tenant-walled inbox in `<ns>_identity.user_notification` (identity migration
|
|
5
6
|
* 108). Every per-user statement is scoped by BOTH the user and the tenant (the session's active
|
|
@@ -11,10 +12,35 @@
|
|
|
11
12
|
/** The two inbox categories (SPEC §10). The category always comes from the kind registration. */
|
|
12
13
|
export declare const NOTIFICATION_CATEGORIES: readonly ["announcement", "personal"];
|
|
13
14
|
export type NotificationCategory = (typeof NOTIFICATION_CATEGORIES)[number];
|
|
15
|
+
/** How a notice type is marked in the UI (notification-center SPEC §10); default `info`. */
|
|
16
|
+
export declare const NOTIFICATION_SEVERITIES: readonly ["info", "success", "warning"];
|
|
17
|
+
export type NotificationSeverity = (typeof NOTIFICATION_SEVERITIES)[number];
|
|
18
|
+
/** The longest label (code points) an app may register (notification-center SPEC §5A). */
|
|
19
|
+
export declare const NOTIFICATION_LABEL_MAX = 40;
|
|
14
20
|
/** One `notificationKinds` registration (`ShieldModule.forRoot({ notificationKinds })`). */
|
|
15
21
|
export interface NotificationKindRegistration {
|
|
16
22
|
readonly kind: string;
|
|
17
23
|
readonly category: NotificationCategory;
|
|
24
|
+
/**
|
|
25
|
+
* Plain-text type name shown to every company (e.g. "Task assigned"), 1–40 characters, no
|
|
26
|
+
* control characters; no company or person names. Absent ⇒ generated from the kind's last
|
|
27
|
+
* segment (one boot warning lists such kinds).
|
|
28
|
+
*/
|
|
29
|
+
readonly label?: string;
|
|
30
|
+
/** Default `info`. */
|
|
31
|
+
readonly severity?: NotificationSeverity;
|
|
32
|
+
}
|
|
33
|
+
/** Status filter of the notice list (notification-center SPEC §10). Absent ⇒ not archived. */
|
|
34
|
+
export declare const NOTIFICATION_STATUSES: readonly ["unread", "read", "archived"];
|
|
35
|
+
export type NotificationStatus = (typeof NOTIFICATION_STATUSES)[number];
|
|
36
|
+
/** Bulk actions (notification-center SPEC §10); 1–100 uuids per call. */
|
|
37
|
+
export declare const NOTIFICATION_BULK_ACTIONS: readonly ["read", "unread", "archive", "unarchive"];
|
|
38
|
+
export type NotificationBulkAction = (typeof NOTIFICATION_BULK_ACTIONS)[number];
|
|
39
|
+
export declare const NOTIFICATION_BULK_MAX = 100;
|
|
40
|
+
/** One distinct type the user has notices of (`listKinds`). */
|
|
41
|
+
export interface NotificationKindSummary {
|
|
42
|
+
readonly kind: string;
|
|
43
|
+
readonly category: NotificationCategory;
|
|
18
44
|
}
|
|
19
45
|
/** A stored notice as the store returns it (no tenant id, user id or dedupe key). */
|
|
20
46
|
export interface NotificationRow {
|
|
@@ -27,6 +53,8 @@ export interface NotificationRow {
|
|
|
27
53
|
readonly createdAtMs: number;
|
|
28
54
|
/** `null` ⇒ unread. */
|
|
29
55
|
readonly readAtMs: number | null;
|
|
56
|
+
/** `null` ⇒ not archived. An archived notice is always read. */
|
|
57
|
+
readonly archivedAtMs: number | null;
|
|
30
58
|
}
|
|
31
59
|
/** A row to insert; every field already validated and server-stamped by the service. */
|
|
32
60
|
export interface NotificationInsert {
|
|
@@ -44,7 +72,18 @@ export interface NotificationInsert {
|
|
|
44
72
|
export interface NotificationListQuery {
|
|
45
73
|
/** Absent ⇒ both categories. */
|
|
46
74
|
readonly category?: NotificationCategory;
|
|
75
|
+
/** The dropdown's filter: unread (and so never archived) only. */
|
|
47
76
|
readonly unreadOnly: boolean;
|
|
77
|
+
/** Absent ⇒ every kind. */
|
|
78
|
+
readonly kind?: string;
|
|
79
|
+
/** Absent ⇒ not archived; `unread` / `read` also leave archived notices out. */
|
|
80
|
+
readonly status?: NotificationStatus;
|
|
81
|
+
/** Inclusive lower bound on the creation time (epoch ms). */
|
|
82
|
+
readonly fromMs?: number;
|
|
83
|
+
/** Inclusive upper bound on the creation time (epoch ms). */
|
|
84
|
+
readonly toMs?: number;
|
|
85
|
+
/** Plain text matched inside title or body (the store escapes `LIKE` wildcards); non-empty. */
|
|
86
|
+
readonly search?: string;
|
|
48
87
|
/** ≥ 1. */
|
|
49
88
|
readonly page: number;
|
|
50
89
|
/** 1–100. */
|
|
@@ -72,10 +111,21 @@ export interface NotificationWriteOptions {
|
|
|
72
111
|
/** The persistence port; `MariaDbNotificationStore` is the framework default. */
|
|
73
112
|
export interface NotificationStore {
|
|
74
113
|
list(userId: string, tenantId: string, query: NotificationListQuery): Promise<NotificationListResult>;
|
|
114
|
+
/** Unread, not archived, per category. */
|
|
75
115
|
countUnread(userId: string, tenantId: string): Promise<NotificationUnreadCounts>;
|
|
116
|
+
/** The distinct `(kind, category)` pairs of this user's notices in this tenant. */
|
|
117
|
+
listKinds(userId: string, tenantId: string): Promise<readonly NotificationKindSummary[]>;
|
|
76
118
|
/** `true` when the notice exists for this user in this tenant (read already or now). */
|
|
77
119
|
markRead(userId: string, tenantId: string, uuid: string, nowMs: number): Promise<boolean>;
|
|
78
|
-
/**
|
|
120
|
+
/** `true` when the notice exists for this user in this tenant (an archived one stays read). */
|
|
121
|
+
markUnread(userId: string, tenantId: string, uuid: string): Promise<boolean>;
|
|
122
|
+
/** `true` when the notice exists for this user in this tenant; also marks it read. */
|
|
123
|
+
archive(userId: string, tenantId: string, uuid: string, nowMs: number): Promise<boolean>;
|
|
124
|
+
/** `true` when the notice exists for this user in this tenant; it comes back as read. */
|
|
125
|
+
unarchive(userId: string, tenantId: string, uuid: string): Promise<boolean>;
|
|
126
|
+
/** One action on 1–100 of this user's notices in this tenant ⇒ the number changed. */
|
|
127
|
+
bulk(userId: string, tenantId: string, action: NotificationBulkAction, uuids: readonly string[], nowMs: number): Promise<number>;
|
|
128
|
+
/** Number of notices changed from unread to read (archived ones are skipped). */
|
|
79
129
|
markAllRead(userId: string, tenantId: string, category: NotificationCategory | undefined, nowMs: number): Promise<number>;
|
|
80
130
|
/** Inserted count; a repeated dedupe key is a no-op, not an error. */
|
|
81
131
|
insertMany(rows: readonly NotificationInsert[], opts?: NotificationWriteOptions): Promise<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ports.d.ts","sourceRoot":"","sources":["../../src/notifications/ports.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ports.d.ts","sourceRoot":"","sources":["../../src/notifications/ports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,iGAAiG;AACjG,eAAO,MAAM,uBAAuB,uCAAwC,CAAC;AAC7E,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,4FAA4F;AAC5F,eAAO,MAAM,uBAAuB,yCAA0C,CAAC;AAC/E,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,0FAA0F;AAC1F,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,4FAA4F;AAC5F,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB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C5F,qBAAa,2BAA4B,SAAQ,KAAK;IAGlD,QAAQ,CAAC,KAAK,EAAE,MAAM;IAFxB,SAAkB,IAAI,iCAAiC;gBAE5C,KAAK,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM;CAIjB;AAED,kFAAkF;AAClF,qBAAa,4BAA6B,SAAQ,KAAK;IACrD,SAAkB,IAAI,kCAAkC;;CAIzD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Notification store contract (G-027 step 2, notification-store SPEC §5A, §5B, §10
|
|
3
|
+
* Notification store contract (G-027 step 2, notification-store SPEC §5A, §5B, §10; G-035
|
|
4
|
+
* notification-center SPEC §5A, §5B: kind label / severity, list filters, unread, archive, bulk).
|
|
4
5
|
*
|
|
5
6
|
* One per-user, tenant-walled inbox in `<ns>_identity.user_notification` (identity migration
|
|
6
7
|
* 108). Every per-user statement is scoped by BOTH the user and the tenant (the session's active
|
|
@@ -10,9 +11,18 @@
|
|
|
10
11
|
* Errors carry the FIELD, kind or variable name only, never a submitted value (core 50 #10).
|
|
11
12
|
*/
|
|
12
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.NotificationUnavailableError = exports.NotificationValidationError = exports.NotificationKindError = exports.NOTIFICATION_KIND_MAX_LENGTH = exports.NOTIFICATION_KIND_PATTERN = exports.NOTIFICATION_CATEGORIES = void 0;
|
|
14
|
+
exports.NotificationUnavailableError = exports.NotificationValidationError = exports.NotificationKindError = exports.NOTIFICATION_KIND_MAX_LENGTH = exports.NOTIFICATION_KIND_PATTERN = exports.NOTIFICATION_BULK_MAX = exports.NOTIFICATION_BULK_ACTIONS = exports.NOTIFICATION_STATUSES = exports.NOTIFICATION_LABEL_MAX = exports.NOTIFICATION_SEVERITIES = exports.NOTIFICATION_CATEGORIES = void 0;
|
|
14
15
|
/** The two inbox categories (SPEC §10). The category always comes from the kind registration. */
|
|
15
16
|
exports.NOTIFICATION_CATEGORIES = ['announcement', 'personal'];
|
|
17
|
+
/** How a notice type is marked in the UI (notification-center SPEC §10); default `info`. */
|
|
18
|
+
exports.NOTIFICATION_SEVERITIES = ['info', 'success', 'warning'];
|
|
19
|
+
/** The longest label (code points) an app may register (notification-center SPEC §5A). */
|
|
20
|
+
exports.NOTIFICATION_LABEL_MAX = 40;
|
|
21
|
+
/** Status filter of the notice list (notification-center SPEC §10). Absent ⇒ not archived. */
|
|
22
|
+
exports.NOTIFICATION_STATUSES = ['unread', 'read', 'archived'];
|
|
23
|
+
/** Bulk actions (notification-center SPEC §10); 1–100 uuids per call. */
|
|
24
|
+
exports.NOTIFICATION_BULK_ACTIONS = ['read', 'unread', 'archive', 'unarchive'];
|
|
25
|
+
exports.NOTIFICATION_BULK_MAX = 100;
|
|
16
26
|
/** Kind pattern (SPEC §10): dotted lower-case segments, at least two. */
|
|
17
27
|
exports.NOTIFICATION_KIND_PATTERN = /^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$/;
|
|
18
28
|
exports.NOTIFICATION_KIND_MAX_LENGTH = 64;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astram/guard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Astram framework — the enforcement guard + real-world adapters (the 'hands'). One global deny-by-default gate every request passes through (ADR-0002), classification decorators, boot-pool assertion (ADR-0018), the forRoot() registration seam, and the DB/Redis/crypto adapters that connect the sealed core to a real backend. Depends on @astram/core (ADR-0003, ADR-0023).",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"argon2": "^0.41.1",
|
|
37
37
|
"ioredis": "^5.4.1",
|
|
38
38
|
"mariadb": "^3.5.4",
|
|
39
|
-
"@astram/
|
|
40
|
-
"@astram/
|
|
39
|
+
"@astram/engine": "0.16.2",
|
|
40
|
+
"@astram/core": "1.14.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@nestjs/common": "^11",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@nestjs/platform-express": "^11",
|
|
46
46
|
"reflect-metadata": "^0.2",
|
|
47
47
|
"rxjs": "^7",
|
|
48
|
-
"@astram/messaging": "^0.1.
|
|
48
|
+
"@astram/messaging": "^0.1.13"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"@astram/messaging": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"typescript": "^5.7.0",
|
|
69
69
|
"unplugin-swc": "^1.5.1",
|
|
70
70
|
"vitest": "^2.1.8",
|
|
71
|
-
"@astram/messaging": "0.1.
|
|
71
|
+
"@astram/messaging": "0.1.13"
|
|
72
72
|
},
|
|
73
73
|
"repository": {
|
|
74
74
|
"type": "git",
|