@hed-hog/lms 0.0.317 → 0.0.318
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": "@hed-hog/lms",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.318",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
"@nestjs/core": "^11",
|
|
10
10
|
"@nestjs/jwt": "^11",
|
|
11
11
|
"@nestjs/mapped-types": "*",
|
|
12
|
+
"@hed-hog/api-types": "0.0.1",
|
|
13
|
+
"@hed-hog/contact": "0.0.318",
|
|
12
14
|
"@hed-hog/api": "0.0.6",
|
|
13
15
|
"@hed-hog/api-locale": "0.0.14",
|
|
14
|
-
"@hed-hog/contact": "0.0.317",
|
|
15
|
-
"@hed-hog/api-types": "0.0.1",
|
|
16
|
-
"@hed-hog/api-pagination": "0.0.7",
|
|
17
16
|
"@hed-hog/api-prisma": "0.0.6",
|
|
18
|
-
"@hed-hog/
|
|
19
|
-
"@hed-hog/
|
|
20
|
-
"@hed-hog/
|
|
17
|
+
"@hed-hog/core": "0.0.318",
|
|
18
|
+
"@hed-hog/category": "0.0.318",
|
|
19
|
+
"@hed-hog/api-pagination": "0.0.7",
|
|
20
|
+
"@hed-hog/finance": "0.0.318"
|
|
21
21
|
},
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
-- Adiciona a role lms-training-access nas rotas /auth/verify e /auth/roles
|
|
2
|
-
-- que já existem no core, sem recriar as rotas.
|
|
3
|
-
INSERT INTO role_route (role_id, route_id)
|
|
4
|
-
SELECT ro.id, r.id
|
|
5
|
-
FROM role ro
|
|
6
|
-
CROSS JOIN route r
|
|
7
|
-
WHERE ro.slug = 'lms-training-access'
|
|
8
|
-
AND (r.url, r.method) IN (
|
|
9
|
-
('/auth/verify', 'GET'),
|
|
10
|
-
('/auth/roles', 'GET')
|
|
11
|
-
)
|
|
12
|
-
AND NOT EXISTS (
|
|
13
|
-
SELECT 1 FROM role_route rr
|
|
14
|
-
WHERE rr.role_id = ro.id AND rr.route_id = r.id
|
|
15
|
-
);
|