@hed-hog/lms 0.0.315 → 0.0.316

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.
@@ -169,11 +169,11 @@ export declare class ClassGroupController {
169
169
  created_at: Date;
170
170
  updated_at: Date;
171
171
  status: import("@prisma/client").$Enums.course_enrollment_status_22007f5947_enum;
172
+ completed_at: Date | null;
173
+ person_id: number;
172
174
  course_id: number;
173
175
  course_class_group_id: number | null;
174
- completed_at: Date | null;
175
176
  final_score: number | null;
176
- person_id: number;
177
177
  enrolled_at: Date;
178
178
  progress_percent: number;
179
179
  }>;
@@ -192,11 +192,11 @@ export declare class ClassGroupService {
192
192
  created_at: Date;
193
193
  updated_at: Date;
194
194
  status: import("@prisma/client").$Enums.course_enrollment_status_22007f5947_enum;
195
+ completed_at: Date | null;
196
+ person_id: number;
195
197
  course_id: number;
196
198
  course_class_group_id: number | null;
197
- completed_at: Date | null;
198
199
  final_score: number | null;
199
- person_id: number;
200
200
  enrolled_at: Date;
201
201
  progress_percent: number;
202
202
  }>;
@@ -36,4 +36,12 @@
36
36
  pt: Visualizador Enterprise LMS
37
37
  description:
38
38
  en: Enterprise account viewer with read-only access to their organization's data.
39
- pt: Visualizador da conta enterprise com acesso somente leitura aos dados da sua organização.
39
+ pt: Visualizador da conta enterprise com acesso somente leitura aos dados da sua organização.
40
+
41
+ - slug: lms-training-access
42
+ name:
43
+ en: LMS Training Access
44
+ pt: Acesso ao Treinamento LMS
45
+ description:
46
+ en: Role granted to any user with access to LMS training content, covering authentication routes.
47
+ pt: Papel concedido a qualquer usuário com acesso ao conteúdo de treinamento LMS, cobrindo rotas de autenticação.
@@ -957,19 +957,13 @@
957
957
  slug: admin-lms
958
958
  - where:
959
959
  slug: lms-enterprise-admin
960
- - url: /auth/verify
960
+ - url: /lms/enterprise/auth/profiles
961
961
  method: GET
962
962
  relations:
963
963
  role:
964
964
  - where:
965
- slug: lms-training-access
966
- - url: /auth/roles
967
- method: GET
968
- relations:
969
- role:
965
+ slug: admin
970
966
  - where:
971
- slug: lms-training-access
972
- - url: /lms/enterprise/auth/profiles
973
- method: GET
974
- relations:
975
- role:
967
+ slug: admin-lms
968
+ - where:
969
+ slug: lms-enterprise-admin
@@ -0,0 +1,15 @@
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
+ );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/lms",
3
- "version": "0.0.315",
3
+ "version": "0.0.316",
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/contact": "0.0.316",
13
+ "@hed-hog/api-pagination": "0.0.7",
12
14
  "@hed-hog/api": "0.0.6",
13
- "@hed-hog/contact": "0.0.315",
15
+ "@hed-hog/api-prisma": "0.0.6",
16
+ "@hed-hog/finance": "0.0.316",
14
17
  "@hed-hog/api-locale": "0.0.14",
15
- "@hed-hog/api-pagination": "0.0.7",
16
18
  "@hed-hog/api-types": "0.0.1",
17
- "@hed-hog/api-prisma": "0.0.6",
18
- "@hed-hog/finance": "0.0.315",
19
- "@hed-hog/category": "0.0.315",
20
- "@hed-hog/core": "0.0.315"
19
+ "@hed-hog/core": "0.0.316",
20
+ "@hed-hog/category": "0.0.316"
21
21
  },
22
22
  "exports": {
23
23
  ".": {