@hed-hog/core 0.0.396 → 0.0.397
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/presence/presence.controller.d.ts +3 -0
- package/dist/presence/presence.controller.d.ts.map +1 -1
- package/dist/presence/presence.controller.js +4 -0
- package/dist/presence/presence.controller.js.map +1 -1
- package/jest.config.ts +3 -0
- package/package.json +6 -5
- package/src/presence/presence.controller.ts +5 -1
|
@@ -2,6 +2,9 @@ import { PresenceService } from './presence.service';
|
|
|
2
2
|
/**
|
|
3
3
|
* Presence endpoints — authenticated (no @Role): any signed-in user may send
|
|
4
4
|
* their own heartbeat and read presence for a set of users.
|
|
5
|
+
*
|
|
6
|
+
* @NoRole() states that intent to the RoleGuard and to the route.yaml drift
|
|
7
|
+
* check; without it both routes read as protected-but-undeclared.
|
|
5
8
|
*/
|
|
6
9
|
export declare class PresenceController {
|
|
7
10
|
private readonly presence;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presence.controller.d.ts","sourceRoot":"","sources":["../../src/presence/presence.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD
|
|
1
|
+
{"version":3,"file":"presence.controller.d.ts","sourceRoot":"","sources":["../../src/presence/presence.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;;GAMG;AACH,qBAEa,kBAAkB;IACjB,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,eAAe;IAEtD,wEAAwE;IAElE,SAAS,CAAS,IAAI,EAAE,GAAG;;;IAKjC,yDAAyD;IAEnD,WAAW,CAAmB,OAAO,CAAC,EAAE,MAAM;CAOrD"}
|
|
@@ -19,6 +19,9 @@ const presence_service_1 = require("./presence.service");
|
|
|
19
19
|
/**
|
|
20
20
|
* Presence endpoints — authenticated (no @Role): any signed-in user may send
|
|
21
21
|
* their own heartbeat and read presence for a set of users.
|
|
22
|
+
*
|
|
23
|
+
* @NoRole() states that intent to the RoleGuard and to the route.yaml drift
|
|
24
|
+
* check; without it both routes read as protected-but-undeclared.
|
|
22
25
|
*/
|
|
23
26
|
let PresenceController = class PresenceController {
|
|
24
27
|
constructor(presence) {
|
|
@@ -54,6 +57,7 @@ __decorate([
|
|
|
54
57
|
__metadata("design:returntype", Promise)
|
|
55
58
|
], PresenceController.prototype, "getStatuses", null);
|
|
56
59
|
exports.PresenceController = PresenceController = __decorate([
|
|
60
|
+
(0, api_1.NoRole)(),
|
|
57
61
|
(0, common_1.Controller)('presence'),
|
|
58
62
|
__metadata("design:paramtypes", [presence_service_1.PresenceService])
|
|
59
63
|
], PresenceController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presence.controller.js","sourceRoot":"","sources":["../../src/presence/presence.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"presence.controller.js","sourceRoot":"","sources":["../../src/presence/presence.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA4C;AAC5C,2CAA8D;AAC9D,yDAAqD;AAErD;;;;;;GAMG;AAGI,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YAA6B,QAAyB;QAAzB,aAAQ,GAAR,QAAQ,CAAiB;IAAG,CAAC;IAE1D,wEAAwE;IAElE,AAAN,KAAK,CAAC,SAAS,CAAS,IAAS;QAC/B,MAAM,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;QACrD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;IACtB,CAAC;IAED,yDAAyD;IAEnD,AAAN,KAAK,CAAC,WAAW,CAAmB,OAAgB;QAClD,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;aAC9B,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;aAC5B,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAC/C,OAAO,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACxC,CAAC;CACF,CAAA;AAnBY,gDAAkB;AAKvB;IADL,IAAA,aAAI,EAAC,WAAW,CAAC;IACD,WAAA,IAAA,UAAI,GAAE,CAAA;;;;mDAGtB;AAIK;IADL,IAAA,YAAG,GAAE;IACa,WAAA,IAAA,cAAK,EAAC,SAAS,CAAC,CAAA;;;;qDAMlC;6BAlBU,kBAAkB;IAF9B,IAAA,YAAM,GAAE;IACR,IAAA,mBAAU,EAAC,UAAU,CAAC;qCAEkB,kCAAe;GAD3C,kBAAkB,CAmB9B"}
|
package/jest.config.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.397",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"speakeasy": "^2.0.0",
|
|
46
46
|
"ua-parser-js": "^2.0.10",
|
|
47
47
|
"uuid": "^11.1.0",
|
|
48
|
-
"@hed-hog/vault-crypto": "0.0.1",
|
|
49
48
|
"@hed-hog/api-prisma": "0.0.7",
|
|
50
49
|
"@hed-hog/api-locale": "0.0.15",
|
|
51
50
|
"@hed-hog/api-mail": "0.0.11",
|
|
52
|
-
"@hed-hog/
|
|
51
|
+
"@hed-hog/vault-crypto": "0.0.1",
|
|
53
52
|
"@hed-hog/api": "0.0.9",
|
|
54
|
-
"@hed-hog/api-pagination": "0.0.8"
|
|
53
|
+
"@hed-hog/api-pagination": "0.0.8",
|
|
54
|
+
"@hed-hog/api-types": "0.0.2"
|
|
55
55
|
},
|
|
56
56
|
"exports": {
|
|
57
57
|
".": {
|
|
@@ -79,7 +79,8 @@
|
|
|
79
79
|
"files": [
|
|
80
80
|
"dist",
|
|
81
81
|
"src",
|
|
82
|
-
"hedhog"
|
|
82
|
+
"hedhog",
|
|
83
|
+
"jest.config.ts"
|
|
83
84
|
],
|
|
84
85
|
"devDependencies": {
|
|
85
86
|
"@jest/globals": "^29.7.0",
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { User } from '@hed-hog/api';
|
|
1
|
+
import { NoRole, User } from '@hed-hog/api';
|
|
2
2
|
import { Controller, Get, Post, Query } from '@nestjs/common';
|
|
3
3
|
import { PresenceService } from './presence.service';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Presence endpoints — authenticated (no @Role): any signed-in user may send
|
|
7
7
|
* their own heartbeat and read presence for a set of users.
|
|
8
|
+
*
|
|
9
|
+
* @NoRole() states that intent to the RoleGuard and to the route.yaml drift
|
|
10
|
+
* check; without it both routes read as protected-but-undeclared.
|
|
8
11
|
*/
|
|
12
|
+
@NoRole()
|
|
9
13
|
@Controller('presence')
|
|
10
14
|
export class PresenceController {
|
|
11
15
|
constructor(private readonly presence: PresenceService) {}
|