@hed-hog/core 0.0.395 → 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/hedhog/data/route.yaml +0 -37
- package/jest.config.ts +3 -0
- package/package.json +9 -8
- 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/hedhog/data/route.yaml
CHANGED
|
@@ -741,11 +741,6 @@
|
|
|
741
741
|
slug: admin
|
|
742
742
|
- where:
|
|
743
743
|
slug: admin-access
|
|
744
|
-
# O editor do CMS sobe capa de post e imagem de Open Graph por aqui.
|
|
745
|
-
- where:
|
|
746
|
-
slug: admin-cms
|
|
747
|
-
- where:
|
|
748
|
-
slug: cms-editor
|
|
749
744
|
- url: /file
|
|
750
745
|
method: DELETE
|
|
751
746
|
type: HTTP
|
|
@@ -1625,38 +1620,6 @@
|
|
|
1625
1620
|
slug: admin
|
|
1626
1621
|
- where:
|
|
1627
1622
|
slug: admin-access
|
|
1628
|
-
- where:
|
|
1629
|
-
slug: admin-campaign
|
|
1630
|
-
- where:
|
|
1631
|
-
slug: admin-cms
|
|
1632
|
-
- where:
|
|
1633
|
-
slug: cms-editor
|
|
1634
|
-
- where:
|
|
1635
|
-
slug: cms-publisher
|
|
1636
|
-
- where:
|
|
1637
|
-
slug: admin-finance
|
|
1638
|
-
- where:
|
|
1639
|
-
slug: admin-finance-operator
|
|
1640
|
-
- where:
|
|
1641
|
-
slug: finance-statements-editor
|
|
1642
|
-
- where:
|
|
1643
|
-
slug: admin-inbox
|
|
1644
|
-
- where:
|
|
1645
|
-
slug: inbox-owner
|
|
1646
|
-
- where:
|
|
1647
|
-
slug: admin-lms
|
|
1648
|
-
- where:
|
|
1649
|
-
slug: lms-instructor
|
|
1650
|
-
- where:
|
|
1651
|
-
slug: admin-operations-director
|
|
1652
|
-
- where:
|
|
1653
|
-
slug: admin-operations-project-manager
|
|
1654
|
-
- where:
|
|
1655
|
-
slug: operations-collaborator
|
|
1656
|
-
- where:
|
|
1657
|
-
slug: admin-sac
|
|
1658
|
-
- where:
|
|
1659
|
-
slug: sac-agent
|
|
1660
1623
|
- url: /integration-event-catalog
|
|
1661
1624
|
method: GET
|
|
1662
1625
|
type: HTTP
|
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/api-prisma": "0.0.
|
|
48
|
+
"@hed-hog/api-prisma": "0.0.7",
|
|
49
|
+
"@hed-hog/api-locale": "0.0.15",
|
|
50
|
+
"@hed-hog/api-mail": "0.0.11",
|
|
49
51
|
"@hed-hog/vault-crypto": "0.0.1",
|
|
50
|
-
"@hed-hog/api
|
|
51
|
-
"@hed-hog/api-
|
|
52
|
-
"@hed-hog/api": "0.0.
|
|
53
|
-
"@hed-hog/api-pagination": "0.0.7",
|
|
54
|
-
"@hed-hog/api-types": "0.0.1"
|
|
52
|
+
"@hed-hog/api": "0.0.9",
|
|
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) {}
|