@hed-hog/lms 0.0.338 → 0.0.347
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/class-group/class-group.controller.d.ts +11 -11
- package/dist/class-group/class-group.service.d.ts +11 -11
- package/dist/course/course.controller.d.ts +6 -1
- package/dist/course/course.controller.d.ts.map +1 -1
- package/dist/course/course.controller.js +19 -2
- package/dist/course/course.controller.js.map +1 -1
- package/dist/course/course.service.d.ts +6 -0
- package/dist/course/course.service.d.ts.map +1 -1
- package/dist/course/course.service.js +51 -8
- package/dist/course/course.service.js.map +1 -1
- package/dist/course/dto/create-course.dto.d.ts +1 -0
- package/dist/course/dto/create-course.dto.d.ts.map +1 -1
- package/dist/course/dto/create-course.dto.js +5 -0
- package/dist/course/dto/create-course.dto.js.map +1 -1
- package/dist/enterprise/enterprise.controller.d.ts +12 -12
- package/dist/enterprise/enterprise.service.d.ts +12 -12
- package/dist/enterprise/training/training-admin.controller.d.ts +7 -7
- package/dist/enterprise/training/training-admin.service.d.ts +7 -7
- package/dist/evaluation/evaluation.controller.d.ts +6 -6
- package/dist/evaluation/evaluation.service.d.ts +6 -6
- package/dist/instructor/instructor.controller.d.ts +1 -0
- package/dist/instructor/instructor.controller.d.ts.map +1 -1
- package/dist/instructor/instructor.service.d.ts +2 -0
- package/dist/instructor/instructor.service.d.ts.map +1 -1
- package/dist/instructor/instructor.service.js +9 -7
- package/dist/instructor/instructor.service.js.map +1 -1
- package/dist/training/dto/create-training.dto.d.ts +1 -0
- package/dist/training/dto/create-training.dto.d.ts.map +1 -1
- package/dist/training/dto/create-training.dto.js +5 -0
- package/dist/training/dto/create-training.dto.js.map +1 -1
- package/dist/training/training.controller.d.ts +4 -0
- package/dist/training/training.controller.d.ts.map +1 -1
- package/dist/training/training.service.d.ts +8 -0
- package/dist/training/training.service.d.ts.map +1 -1
- package/dist/training/training.service.js +71 -6
- package/dist/training/training.service.js.map +1 -1
- package/hedhog/frontend/app/_components/class-form-sheet.tsx.ejs +38 -9
- package/hedhog/frontend/app/certificates/models/page.tsx.ejs +33 -6
- package/hedhog/frontend/app/classes/[id]/page.tsx.ejs +1 -3
- package/hedhog/frontend/app/classes/page.tsx.ejs +28 -6
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-course.tsx.ejs +1 -1
- package/hedhog/frontend/app/exams/[id]/questions/page.tsx.ejs +25 -18
- package/hedhog/frontend/app/paths/page.tsx.ejs +68 -5
- package/hedhog/frontend/app/training/page.tsx.ejs +70 -6
- package/hedhog/frontend/messages/pt.json +14 -1
- package/hedhog/table/learning_path.yaml +4 -0
- package/package.json +6 -6
- package/src/course/course.controller.ts +18 -0
- package/src/course/course.service.ts +73 -2
- package/src/course/dto/create-course.dto.ts +4 -0
- package/src/instructor/instructor.service.ts +2 -0
- package/src/training/dto/create-training.dto.ts +4 -0
- package/src/training/training.service.ts +104 -5
|
@@ -122,6 +122,11 @@ __decorate([
|
|
|
122
122
|
(0, class_validator_1.IsOptional)(),
|
|
123
123
|
__metadata("design:type", Array)
|
|
124
124
|
], CreateCourseDto.prototype, "categorySlugs", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, class_validator_1.IsString)(),
|
|
127
|
+
(0, class_validator_1.IsOptional)(),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], CreateCourseDto.prototype, "certificateModel", void 0);
|
|
125
130
|
__decorate([
|
|
126
131
|
(0, class_validator_1.IsArray)(),
|
|
127
132
|
(0, class_validator_1.IsInt)({ each: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-course.dto.js","sourceRoot":"","sources":["../../../src/course/dto/create-course.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAUyB;AAEzB,MAAa,eAAe;
|
|
1
|
+
{"version":3,"file":"create-course.dto.js","sourceRoot":"","sources":["../../../src/course/dto/create-course.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAUyB;AAEzB,MA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FC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;iDACM;AAKnB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,EAAC,qBAAqB,CAAC;IAC9B,IAAA,4BAAU,GAAE;;qDACS;AAKtB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,EAAC,qBAAqB,CAAC;IAC9B,IAAA,4BAAU,GAAE;;6DACiB;AAK9B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,EAAC,qBAAqB,CAAC;IAC9B,IAAA,4BAAU,GAAE;;uDACW;AAKxB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,EAAC,qBAAqB,CAAC;IAC9B,IAAA,4BAAU,GAAE;;+DACmB;AAIhC;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;;sDACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACoB;AAKjC;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrB,IAAA,4BAAU,GAAE;;sDACY;AAIzB;IAFC,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;;mDACc;AAI3B;IAFC,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;;qDACgB"}
|
|
@@ -52,11 +52,11 @@ export declare class EnterpriseController {
|
|
|
52
52
|
}>;
|
|
53
53
|
create(dto: CreateEnterpriseDto): Promise<{
|
|
54
54
|
name: string;
|
|
55
|
+
status: import("@prisma/client").$Enums.enterprise_status_03616801ae_enum;
|
|
55
56
|
id: number;
|
|
56
57
|
created_at: Date;
|
|
57
58
|
updated_at: Date;
|
|
58
59
|
slug: string;
|
|
59
|
-
status: import("@prisma/client").$Enums.enterprise_status_03616801ae_enum;
|
|
60
60
|
notes: string | null;
|
|
61
61
|
crm_person_id: number | null;
|
|
62
62
|
portal_enabled: boolean;
|
|
@@ -167,11 +167,11 @@ export declare class EnterpriseController {
|
|
|
167
167
|
}>;
|
|
168
168
|
update(id: number, dto: UpdateEnterpriseDto): Promise<{
|
|
169
169
|
name: string;
|
|
170
|
+
status: import("@prisma/client").$Enums.enterprise_status_03616801ae_enum;
|
|
170
171
|
id: number;
|
|
171
172
|
created_at: Date;
|
|
172
173
|
updated_at: Date;
|
|
173
174
|
slug: string;
|
|
174
|
-
status: import("@prisma/client").$Enums.enterprise_status_03616801ae_enum;
|
|
175
175
|
notes: string | null;
|
|
176
176
|
crm_person_id: number | null;
|
|
177
177
|
portal_enabled: boolean;
|
|
@@ -179,11 +179,11 @@ export declare class EnterpriseController {
|
|
|
179
179
|
}>;
|
|
180
180
|
delete(id: number): Promise<{
|
|
181
181
|
name: string;
|
|
182
|
+
status: import("@prisma/client").$Enums.enterprise_status_03616801ae_enum;
|
|
182
183
|
id: number;
|
|
183
184
|
created_at: Date;
|
|
184
185
|
updated_at: Date;
|
|
185
186
|
slug: string;
|
|
186
|
-
status: import("@prisma/client").$Enums.enterprise_status_03616801ae_enum;
|
|
187
187
|
notes: string | null;
|
|
188
188
|
crm_person_id: number | null;
|
|
189
189
|
portal_enabled: boolean;
|
|
@@ -207,32 +207,32 @@ export declare class EnterpriseController {
|
|
|
207
207
|
}[];
|
|
208
208
|
}>;
|
|
209
209
|
addUser(id: number, dto: AddEnterpriseUserDto): Promise<{
|
|
210
|
+
status: import("@prisma/client").$Enums.enterprise_user_status_8a1e21341c_enum;
|
|
210
211
|
id: number;
|
|
212
|
+
role: import("@prisma/client").$Enums.enterprise_user_role_43b5c384bf_enum;
|
|
211
213
|
created_at: Date;
|
|
212
214
|
updated_at: Date;
|
|
213
|
-
status: import("@prisma/client").$Enums.enterprise_user_status_8a1e21341c_enum;
|
|
214
215
|
person_id: number | null;
|
|
215
|
-
role: import("@prisma/client").$Enums.enterprise_user_role_43b5c384bf_enum;
|
|
216
216
|
user_id: number;
|
|
217
217
|
enterprise_id: number;
|
|
218
218
|
}>;
|
|
219
219
|
updateUser(id: number, userId: number, dto: UpdateEnterpriseUserDto): Promise<{
|
|
220
|
+
status: import("@prisma/client").$Enums.enterprise_user_status_8a1e21341c_enum;
|
|
220
221
|
id: number;
|
|
222
|
+
role: import("@prisma/client").$Enums.enterprise_user_role_43b5c384bf_enum;
|
|
221
223
|
created_at: Date;
|
|
222
224
|
updated_at: Date;
|
|
223
|
-
status: import("@prisma/client").$Enums.enterprise_user_status_8a1e21341c_enum;
|
|
224
225
|
person_id: number | null;
|
|
225
|
-
role: import("@prisma/client").$Enums.enterprise_user_role_43b5c384bf_enum;
|
|
226
226
|
user_id: number;
|
|
227
227
|
enterprise_id: number;
|
|
228
228
|
}>;
|
|
229
229
|
removeUser(id: number, userId: number): Promise<{
|
|
230
|
+
status: import("@prisma/client").$Enums.enterprise_user_status_8a1e21341c_enum;
|
|
230
231
|
id: number;
|
|
232
|
+
role: import("@prisma/client").$Enums.enterprise_user_role_43b5c384bf_enum;
|
|
231
233
|
created_at: Date;
|
|
232
234
|
updated_at: Date;
|
|
233
|
-
status: import("@prisma/client").$Enums.enterprise_user_status_8a1e21341c_enum;
|
|
234
235
|
person_id: number | null;
|
|
235
|
-
role: import("@prisma/client").$Enums.enterprise_user_role_43b5c384bf_enum;
|
|
236
236
|
user_id: number;
|
|
237
237
|
enterprise_id: number;
|
|
238
238
|
}>;
|
|
@@ -323,26 +323,26 @@ export declare class EnterpriseController {
|
|
|
323
323
|
}[];
|
|
324
324
|
}>;
|
|
325
325
|
addStudent(id: number, dto: AddEnterpriseStudentDto): Promise<{
|
|
326
|
+
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
326
327
|
id: number;
|
|
327
328
|
created_at: Date;
|
|
328
329
|
updated_at: Date;
|
|
329
|
-
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
330
330
|
person_id: number;
|
|
331
331
|
enterprise_id: number;
|
|
332
332
|
}>;
|
|
333
333
|
updateStudent(id: number, personId: number, dto: UpdateEnterpriseStudentDto): Promise<{
|
|
334
|
+
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
334
335
|
id: number;
|
|
335
336
|
created_at: Date;
|
|
336
337
|
updated_at: Date;
|
|
337
|
-
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
338
338
|
person_id: number;
|
|
339
339
|
enterprise_id: number;
|
|
340
340
|
}>;
|
|
341
341
|
removeStudent(id: number, personId: number): Promise<{
|
|
342
|
+
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
342
343
|
id: number;
|
|
343
344
|
created_at: Date;
|
|
344
345
|
updated_at: Date;
|
|
345
|
-
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
346
346
|
person_id: number;
|
|
347
347
|
enterprise_id: number;
|
|
348
348
|
}>;
|
|
@@ -83,11 +83,11 @@ export declare class EnterpriseService {
|
|
|
83
83
|
}>;
|
|
84
84
|
create(dto: CreateEnterpriseDto): Promise<{
|
|
85
85
|
name: string;
|
|
86
|
+
status: import("@prisma/client").$Enums.enterprise_status_03616801ae_enum;
|
|
86
87
|
id: number;
|
|
87
88
|
created_at: Date;
|
|
88
89
|
updated_at: Date;
|
|
89
90
|
slug: string;
|
|
90
|
-
status: import("@prisma/client").$Enums.enterprise_status_03616801ae_enum;
|
|
91
91
|
notes: string | null;
|
|
92
92
|
crm_person_id: number | null;
|
|
93
93
|
portal_enabled: boolean;
|
|
@@ -95,11 +95,11 @@ export declare class EnterpriseService {
|
|
|
95
95
|
}>;
|
|
96
96
|
update(id: number, dto: UpdateEnterpriseDto): Promise<{
|
|
97
97
|
name: string;
|
|
98
|
+
status: import("@prisma/client").$Enums.enterprise_status_03616801ae_enum;
|
|
98
99
|
id: number;
|
|
99
100
|
created_at: Date;
|
|
100
101
|
updated_at: Date;
|
|
101
102
|
slug: string;
|
|
102
|
-
status: import("@prisma/client").$Enums.enterprise_status_03616801ae_enum;
|
|
103
103
|
notes: string | null;
|
|
104
104
|
crm_person_id: number | null;
|
|
105
105
|
portal_enabled: boolean;
|
|
@@ -169,11 +169,11 @@ export declare class EnterpriseService {
|
|
|
169
169
|
}>;
|
|
170
170
|
delete(id: number): Promise<{
|
|
171
171
|
name: string;
|
|
172
|
+
status: import("@prisma/client").$Enums.enterprise_status_03616801ae_enum;
|
|
172
173
|
id: number;
|
|
173
174
|
created_at: Date;
|
|
174
175
|
updated_at: Date;
|
|
175
176
|
slug: string;
|
|
176
|
-
status: import("@prisma/client").$Enums.enterprise_status_03616801ae_enum;
|
|
177
177
|
notes: string | null;
|
|
178
178
|
crm_person_id: number | null;
|
|
179
179
|
portal_enabled: boolean;
|
|
@@ -207,32 +207,32 @@ export declare class EnterpriseService {
|
|
|
207
207
|
}[];
|
|
208
208
|
}>;
|
|
209
209
|
addUser(enterpriseId: number, dto: AddEnterpriseUserDto): Promise<{
|
|
210
|
+
status: import("@prisma/client").$Enums.enterprise_user_status_8a1e21341c_enum;
|
|
210
211
|
id: number;
|
|
212
|
+
role: import("@prisma/client").$Enums.enterprise_user_role_43b5c384bf_enum;
|
|
211
213
|
created_at: Date;
|
|
212
214
|
updated_at: Date;
|
|
213
|
-
status: import("@prisma/client").$Enums.enterprise_user_status_8a1e21341c_enum;
|
|
214
215
|
person_id: number | null;
|
|
215
|
-
role: import("@prisma/client").$Enums.enterprise_user_role_43b5c384bf_enum;
|
|
216
216
|
user_id: number;
|
|
217
217
|
enterprise_id: number;
|
|
218
218
|
}>;
|
|
219
219
|
updateUser(enterpriseId: number, userId: number, dto: UpdateEnterpriseUserDto): Promise<{
|
|
220
|
+
status: import("@prisma/client").$Enums.enterprise_user_status_8a1e21341c_enum;
|
|
220
221
|
id: number;
|
|
222
|
+
role: import("@prisma/client").$Enums.enterprise_user_role_43b5c384bf_enum;
|
|
221
223
|
created_at: Date;
|
|
222
224
|
updated_at: Date;
|
|
223
|
-
status: import("@prisma/client").$Enums.enterprise_user_status_8a1e21341c_enum;
|
|
224
225
|
person_id: number | null;
|
|
225
|
-
role: import("@prisma/client").$Enums.enterprise_user_role_43b5c384bf_enum;
|
|
226
226
|
user_id: number;
|
|
227
227
|
enterprise_id: number;
|
|
228
228
|
}>;
|
|
229
229
|
removeUser(enterpriseId: number, userId: number): Promise<{
|
|
230
|
+
status: import("@prisma/client").$Enums.enterprise_user_status_8a1e21341c_enum;
|
|
230
231
|
id: number;
|
|
232
|
+
role: import("@prisma/client").$Enums.enterprise_user_role_43b5c384bf_enum;
|
|
231
233
|
created_at: Date;
|
|
232
234
|
updated_at: Date;
|
|
233
|
-
status: import("@prisma/client").$Enums.enterprise_user_status_8a1e21341c_enum;
|
|
234
235
|
person_id: number | null;
|
|
235
|
-
role: import("@prisma/client").$Enums.enterprise_user_role_43b5c384bf_enum;
|
|
236
236
|
user_id: number;
|
|
237
237
|
enterprise_id: number;
|
|
238
238
|
}>;
|
|
@@ -323,26 +323,26 @@ export declare class EnterpriseService {
|
|
|
323
323
|
}[];
|
|
324
324
|
}>;
|
|
325
325
|
addStudent(enterpriseId: number, dto: AddEnterpriseStudentDto): Promise<{
|
|
326
|
+
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
326
327
|
id: number;
|
|
327
328
|
created_at: Date;
|
|
328
329
|
updated_at: Date;
|
|
329
|
-
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
330
330
|
person_id: number;
|
|
331
331
|
enterprise_id: number;
|
|
332
332
|
}>;
|
|
333
333
|
updateStudent(enterpriseId: number, personId: number, dto: UpdateEnterpriseStudentDto): Promise<{
|
|
334
|
+
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
334
335
|
id: number;
|
|
335
336
|
created_at: Date;
|
|
336
337
|
updated_at: Date;
|
|
337
|
-
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
338
338
|
person_id: number;
|
|
339
339
|
enterprise_id: number;
|
|
340
340
|
}>;
|
|
341
341
|
removeStudent(enterpriseId: number, personId: number): Promise<{
|
|
342
|
+
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
342
343
|
id: number;
|
|
343
344
|
created_at: Date;
|
|
344
345
|
updated_at: Date;
|
|
345
|
-
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
346
346
|
person_id: number;
|
|
347
347
|
enterprise_id: number;
|
|
348
348
|
}>;
|
|
@@ -244,9 +244,9 @@ export declare class TrainingAdminController {
|
|
|
244
244
|
email?: string;
|
|
245
245
|
department?: string;
|
|
246
246
|
}): Promise<{
|
|
247
|
+
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
247
248
|
id: number;
|
|
248
249
|
created_at: Date;
|
|
249
|
-
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
250
250
|
person_id: number;
|
|
251
251
|
}>;
|
|
252
252
|
revokeLicense(userId: number, personId: number): Promise<{
|
|
@@ -264,14 +264,14 @@ export declare class TrainingAdminController {
|
|
|
264
264
|
enrollExistingStudent(userId: number, classGroupId: number, dto: {
|
|
265
265
|
personId: number;
|
|
266
266
|
}): Promise<{
|
|
267
|
+
status: import("@prisma/client").$Enums.course_enrollment_status_22007f5947_enum;
|
|
267
268
|
id: number;
|
|
268
269
|
created_at: Date;
|
|
269
270
|
updated_at: Date;
|
|
270
|
-
|
|
271
|
+
completed_at: Date | null;
|
|
271
272
|
person_id: number;
|
|
272
273
|
course_id: number;
|
|
273
274
|
course_class_group_id: number | null;
|
|
274
|
-
completed_at: Date | null;
|
|
275
275
|
final_score: number | null;
|
|
276
276
|
enrolled_at: Date;
|
|
277
277
|
progress_percent: number;
|
|
@@ -281,14 +281,14 @@ export declare class TrainingAdminController {
|
|
|
281
281
|
email?: string;
|
|
282
282
|
department?: string;
|
|
283
283
|
}): Promise<{
|
|
284
|
+
status: import("@prisma/client").$Enums.course_enrollment_status_22007f5947_enum;
|
|
284
285
|
id: number;
|
|
285
286
|
created_at: Date;
|
|
286
287
|
updated_at: Date;
|
|
287
|
-
|
|
288
|
+
completed_at: Date | null;
|
|
288
289
|
person_id: number;
|
|
289
290
|
course_id: number;
|
|
290
291
|
course_class_group_id: number | null;
|
|
291
|
-
completed_at: Date | null;
|
|
292
292
|
final_score: number | null;
|
|
293
293
|
enrolled_at: Date;
|
|
294
294
|
progress_percent: number;
|
|
@@ -400,10 +400,10 @@ export declare class TrainingAdminController {
|
|
|
400
400
|
department?: string;
|
|
401
401
|
role?: string;
|
|
402
402
|
}): Promise<{
|
|
403
|
-
id: number;
|
|
404
|
-
created_at: Date;
|
|
405
403
|
status: import("@prisma/client").$Enums.enterprise_user_status_8a1e21341c_enum;
|
|
404
|
+
id: number;
|
|
406
405
|
role: import("@prisma/client").$Enums.enterprise_user_role_43b5c384bf_enum;
|
|
406
|
+
created_at: Date;
|
|
407
407
|
}>;
|
|
408
408
|
updateAdminRole(userId: number, enterpriseUserId: number, role: string): Promise<{
|
|
409
409
|
id: number;
|
|
@@ -187,9 +187,9 @@ export declare class TrainingAdminService {
|
|
|
187
187
|
email?: string;
|
|
188
188
|
department?: string;
|
|
189
189
|
}): Promise<{
|
|
190
|
+
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
190
191
|
id: number;
|
|
191
192
|
created_at: Date;
|
|
192
|
-
status: import("@prisma/client").$Enums.enterprise_student_status_2597741ae7_enum;
|
|
193
193
|
person_id: number;
|
|
194
194
|
}>;
|
|
195
195
|
revokeLicense(userId: number, personId: number): Promise<{
|
|
@@ -210,14 +210,14 @@ export declare class TrainingAdminService {
|
|
|
210
210
|
hasAvailableSlot: boolean;
|
|
211
211
|
}>;
|
|
212
212
|
enrollExistingStudent(userId: number, classGroupId: number, personId: number): Promise<{
|
|
213
|
+
status: import("@prisma/client").$Enums.course_enrollment_status_22007f5947_enum;
|
|
213
214
|
id: number;
|
|
214
215
|
created_at: Date;
|
|
215
216
|
updated_at: Date;
|
|
216
|
-
|
|
217
|
+
completed_at: Date | null;
|
|
217
218
|
person_id: number;
|
|
218
219
|
course_id: number;
|
|
219
220
|
course_class_group_id: number | null;
|
|
220
|
-
completed_at: Date | null;
|
|
221
221
|
final_score: number | null;
|
|
222
222
|
enrolled_at: Date;
|
|
223
223
|
progress_percent: number;
|
|
@@ -227,14 +227,14 @@ export declare class TrainingAdminService {
|
|
|
227
227
|
email?: string;
|
|
228
228
|
department?: string;
|
|
229
229
|
}): Promise<{
|
|
230
|
+
status: import("@prisma/client").$Enums.course_enrollment_status_22007f5947_enum;
|
|
230
231
|
id: number;
|
|
231
232
|
created_at: Date;
|
|
232
233
|
updated_at: Date;
|
|
233
|
-
|
|
234
|
+
completed_at: Date | null;
|
|
234
235
|
person_id: number;
|
|
235
236
|
course_id: number;
|
|
236
237
|
course_class_group_id: number | null;
|
|
237
|
-
completed_at: Date | null;
|
|
238
238
|
final_score: number | null;
|
|
239
239
|
enrolled_at: Date;
|
|
240
240
|
progress_percent: number;
|
|
@@ -446,10 +446,10 @@ export declare class TrainingAdminService {
|
|
|
446
446
|
department?: string;
|
|
447
447
|
role?: string;
|
|
448
448
|
}): Promise<{
|
|
449
|
-
id: number;
|
|
450
|
-
created_at: Date;
|
|
451
449
|
status: import("@prisma/client").$Enums.enterprise_user_status_8a1e21341c_enum;
|
|
450
|
+
id: number;
|
|
452
451
|
role: import("@prisma/client").$Enums.enterprise_user_role_43b5c384bf_enum;
|
|
452
|
+
created_at: Date;
|
|
453
453
|
}>;
|
|
454
454
|
updateAdminRole(userId: number, enterpriseUserId: number, permission: string): Promise<{
|
|
455
455
|
id: number;
|
|
@@ -47,18 +47,18 @@ export declare class EvaluationController {
|
|
|
47
47
|
}>;
|
|
48
48
|
createTopic(dto: CreateEvaluationTopicDto): Promise<{
|
|
49
49
|
name: string;
|
|
50
|
-
id: number;
|
|
51
50
|
order: number;
|
|
51
|
+
id: number;
|
|
52
52
|
description: string | null;
|
|
53
53
|
created_at: Date;
|
|
54
54
|
updated_at: Date;
|
|
55
|
+
target_type: import("@prisma/client").$Enums.evaluation_topic_target_type_d1e6ae34ec_enum;
|
|
56
|
+
is_active: boolean;
|
|
55
57
|
course_id: number | null;
|
|
56
58
|
exam_id: number | null;
|
|
57
59
|
course_class_session_id: number | null;
|
|
58
60
|
course_lesson_id: number | null;
|
|
59
61
|
question_id: number | null;
|
|
60
|
-
target_type: import("@prisma/client").$Enums.evaluation_topic_target_type_d1e6ae34ec_enum;
|
|
61
|
-
is_active: boolean;
|
|
62
62
|
}>;
|
|
63
63
|
getTopicById(id: number): Promise<{
|
|
64
64
|
id: number;
|
|
@@ -76,18 +76,18 @@ export declare class EvaluationController {
|
|
|
76
76
|
}>;
|
|
77
77
|
updateTopic(id: number, dto: UpdateEvaluationTopicDto): Promise<{
|
|
78
78
|
name: string;
|
|
79
|
-
id: number;
|
|
80
79
|
order: number;
|
|
80
|
+
id: number;
|
|
81
81
|
description: string | null;
|
|
82
82
|
created_at: Date;
|
|
83
83
|
updated_at: Date;
|
|
84
|
+
target_type: import("@prisma/client").$Enums.evaluation_topic_target_type_d1e6ae34ec_enum;
|
|
85
|
+
is_active: boolean;
|
|
84
86
|
course_id: number | null;
|
|
85
87
|
exam_id: number | null;
|
|
86
88
|
course_class_session_id: number | null;
|
|
87
89
|
course_lesson_id: number | null;
|
|
88
90
|
question_id: number | null;
|
|
89
|
-
target_type: import("@prisma/client").$Enums.evaluation_topic_target_type_d1e6ae34ec_enum;
|
|
90
|
-
is_active: boolean;
|
|
91
91
|
}>;
|
|
92
92
|
deleteTopic(id: number): Promise<{
|
|
93
93
|
deleted: boolean;
|
|
@@ -100,33 +100,33 @@ export declare class EvaluationService {
|
|
|
100
100
|
}>;
|
|
101
101
|
createTopic(dto: CreateEvaluationTopicDto): Promise<{
|
|
102
102
|
name: string;
|
|
103
|
-
id: number;
|
|
104
103
|
order: number;
|
|
104
|
+
id: number;
|
|
105
105
|
description: string | null;
|
|
106
106
|
created_at: Date;
|
|
107
107
|
updated_at: Date;
|
|
108
|
+
target_type: import("@prisma/client").$Enums.evaluation_topic_target_type_d1e6ae34ec_enum;
|
|
109
|
+
is_active: boolean;
|
|
108
110
|
course_id: number | null;
|
|
109
111
|
exam_id: number | null;
|
|
110
112
|
course_class_session_id: number | null;
|
|
111
113
|
course_lesson_id: number | null;
|
|
112
114
|
question_id: number | null;
|
|
113
|
-
target_type: import("@prisma/client").$Enums.evaluation_topic_target_type_d1e6ae34ec_enum;
|
|
114
|
-
is_active: boolean;
|
|
115
115
|
}>;
|
|
116
116
|
updateTopic(id: number, dto: UpdateEvaluationTopicDto): Promise<{
|
|
117
117
|
name: string;
|
|
118
|
-
id: number;
|
|
119
118
|
order: number;
|
|
119
|
+
id: number;
|
|
120
120
|
description: string | null;
|
|
121
121
|
created_at: Date;
|
|
122
122
|
updated_at: Date;
|
|
123
|
+
target_type: import("@prisma/client").$Enums.evaluation_topic_target_type_d1e6ae34ec_enum;
|
|
124
|
+
is_active: boolean;
|
|
123
125
|
course_id: number | null;
|
|
124
126
|
exam_id: number | null;
|
|
125
127
|
course_class_session_id: number | null;
|
|
126
128
|
course_lesson_id: number | null;
|
|
127
129
|
question_id: number | null;
|
|
128
|
-
target_type: import("@prisma/client").$Enums.evaluation_topic_target_type_d1e6ae34ec_enum;
|
|
129
|
-
is_active: boolean;
|
|
130
130
|
}>;
|
|
131
131
|
reorderTopics(ids: number[]): Promise<{
|
|
132
132
|
reordered: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructor.controller.d.ts","sourceRoot":"","sources":["../../src/instructor/instructor.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,qBAEa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBA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AG,EAAE,mBAAmB;;;;;;;;;;;;;;;;;;IAOlC,MAAM,CAA4B,EAAE,EAAE,MAAM;IAI5C,OAAO,CAAC,OAAO;CAiBhB"}
|
|
@@ -17,6 +17,7 @@ export declare class InstructorService {
|
|
|
17
17
|
personId: number;
|
|
18
18
|
name: string;
|
|
19
19
|
avatarId: number;
|
|
20
|
+
userPhotoId: number;
|
|
20
21
|
email: string;
|
|
21
22
|
phone: string;
|
|
22
23
|
userId: number;
|
|
@@ -108,6 +109,7 @@ export declare class InstructorService {
|
|
|
108
109
|
personId: number;
|
|
109
110
|
name: string;
|
|
110
111
|
avatarId: number;
|
|
112
|
+
userPhotoId: number;
|
|
111
113
|
email: string;
|
|
112
114
|
phone: string;
|
|
113
115
|
userId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructor.service.d.ts","sourceRoot":"","sources":["../../src/instructor/instructor.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,KAAK,QAAQ,GAAG,aAAa,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAIzD,qBACa,iBAAiB;IAChB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAE5C,IAAI,CAAC,MAAM,EAAE;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC/B
|
|
1
|
+
{"version":3,"file":"instructor.service.d.ts","sourceRoot":"","sources":["../../src/instructor/instructor.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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Ac;IAKtB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,sBAAsB;YA8BhB,0BAA0B;YAe1B,wCAAwC;YAsCxC,4BAA4B;YAkD5B,mBAAmB;YAsBnB,kBAAkB;YA2BlB,qBAAqB;YAqBrB,oBAAoB;YAmDpB,oBAAoB;IA8B5B,wBAAwB,CAC5B,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE;QACP,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;KACZ;;;;;;;;;;;;;;;;;;;;CA2ET"}
|
|
@@ -95,6 +95,7 @@ let InstructorService = class InstructorService {
|
|
|
95
95
|
user_id: true,
|
|
96
96
|
user: {
|
|
97
97
|
select: {
|
|
98
|
+
photo_id: true,
|
|
98
99
|
role_user: {
|
|
99
100
|
where: { role: { slug: 'lms-instructor' } },
|
|
100
101
|
select: { id: true },
|
|
@@ -162,23 +163,24 @@ let InstructorService = class InstructorService {
|
|
|
162
163
|
return {
|
|
163
164
|
data: rows
|
|
164
165
|
.map((row) => {
|
|
165
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
166
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
166
167
|
const personUser = (_c = (_b = (_a = row.person) === null || _a === void 0 ? void 0 : _a.person_user) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : null;
|
|
167
168
|
return {
|
|
168
169
|
id: row.id,
|
|
169
170
|
personId: row.person_id,
|
|
170
171
|
name: ((_e = (_d = row.person) === null || _d === void 0 ? void 0 : _d.name) === null || _e === void 0 ? void 0 : _e.trim()) || `Instructor #${row.id}`,
|
|
171
172
|
avatarId: (_g = (_f = row.person) === null || _f === void 0 ? void 0 : _f.avatar_id) !== null && _g !== void 0 ? _g : null,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
userPhotoId: (_j = (_h = personUser === null || personUser === void 0 ? void 0 : personUser.user) === null || _h === void 0 ? void 0 : _h.photo_id) !== null && _j !== void 0 ? _j : null,
|
|
174
|
+
email: this.getPrimaryContactValue((_l = (_k = row.person) === null || _k === void 0 ? void 0 : _k.contact) !== null && _l !== void 0 ? _l : [], ['EMAIL']),
|
|
175
|
+
phone: this.getPrimaryContactValue((_o = (_m = row.person) === null || _m === void 0 ? void 0 : _m.contact) !== null && _o !== void 0 ? _o : [], ['PHONE', 'MOBILE', 'WHATSAPP']),
|
|
176
|
+
userId: (_p = personUser === null || personUser === void 0 ? void 0 : personUser.user_id) !== null && _p !== void 0 ? _p : null,
|
|
177
|
+
hasTrainingAccess: ((_s = (_r = (_q = personUser === null || personUser === void 0 ? void 0 : personUser.user) === null || _q === void 0 ? void 0 : _q.role_user) === null || _r === void 0 ? void 0 : _r.length) !== null && _s !== void 0 ? _s : 0) > 0,
|
|
176
178
|
status: row.status,
|
|
177
|
-
hourlyRate: (
|
|
179
|
+
hourlyRate: (_t = hourlyRateMap.get(row.id)) !== null && _t !== void 0 ? _t : null,
|
|
178
180
|
qualificationSlugs: [...new Set(row.instructor_qualification_assignment
|
|
179
181
|
.map((assignment) => assignment.instructor_qualification.slug)
|
|
180
182
|
.sort())],
|
|
181
|
-
skills: (
|
|
183
|
+
skills: (_u = skillsMap.get(row.id)) !== null && _u !== void 0 ? _u : [],
|
|
182
184
|
};
|
|
183
185
|
})
|
|
184
186
|
.sort((left, right) => left.name.localeCompare(right.name)),
|