@memberjunction/actions-bizapps-lms 2.55.0 → 2.56.0
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +15 -0
- package/README.md +321 -0
- package/dist/providers/learnworlds/actions/create-user.action.d.ts +20 -0
- package/dist/providers/learnworlds/actions/create-user.action.d.ts.map +1 -0
- package/dist/providers/learnworlds/actions/create-user.action.js +243 -0
- package/dist/providers/learnworlds/actions/create-user.action.js.map +1 -0
- package/dist/providers/learnworlds/actions/enroll-user.action.d.ts +20 -0
- package/dist/providers/learnworlds/actions/enroll-user.action.d.ts.map +1 -0
- package/dist/providers/learnworlds/actions/enroll-user.action.js +208 -0
- package/dist/providers/learnworlds/actions/enroll-user.action.js.map +1 -0
- package/dist/providers/learnworlds/actions/get-certificates.action.d.ts +20 -0
- package/dist/providers/learnworlds/actions/get-certificates.action.d.ts.map +1 -0
- package/dist/providers/learnworlds/actions/get-certificates.action.js +301 -0
- package/dist/providers/learnworlds/actions/get-certificates.action.js.map +1 -0
- package/dist/providers/learnworlds/actions/get-course-analytics.action.d.ts +36 -0
- package/dist/providers/learnworlds/actions/get-course-analytics.action.d.ts.map +1 -0
- package/dist/providers/learnworlds/actions/get-course-analytics.action.js +333 -0
- package/dist/providers/learnworlds/actions/get-course-analytics.action.js.map +1 -0
- package/dist/providers/learnworlds/actions/get-course-details.action.d.ts +28 -0
- package/dist/providers/learnworlds/actions/get-course-details.action.d.ts.map +1 -0
- package/dist/providers/learnworlds/actions/get-course-details.action.js +237 -0
- package/dist/providers/learnworlds/actions/get-course-details.action.js.map +1 -0
- package/dist/providers/learnworlds/actions/get-quiz-results.action.d.ts +28 -0
- package/dist/providers/learnworlds/actions/get-quiz-results.action.d.ts.map +1 -0
- package/dist/providers/learnworlds/actions/get-quiz-results.action.js +368 -0
- package/dist/providers/learnworlds/actions/get-quiz-results.action.js.map +1 -0
- package/dist/providers/learnworlds/actions/get-user-enrollments.action.d.ts +20 -0
- package/dist/providers/learnworlds/actions/get-user-enrollments.action.d.ts.map +1 -0
- package/dist/providers/learnworlds/actions/get-user-enrollments.action.js +228 -0
- package/dist/providers/learnworlds/actions/get-user-enrollments.action.js.map +1 -0
- package/dist/providers/learnworlds/actions/index.d.ts +8 -0
- package/dist/providers/learnworlds/actions/index.d.ts.map +1 -1
- package/dist/providers/learnworlds/actions/index.js +8 -0
- package/dist/providers/learnworlds/actions/index.js.map +1 -1
- package/dist/providers/learnworlds/actions/update-user-progress.action.d.ts +20 -0
- package/dist/providers/learnworlds/actions/update-user-progress.action.d.ts.map +1 -0
- package/dist/providers/learnworlds/actions/update-user-progress.action.js +254 -0
- package/dist/providers/learnworlds/actions/update-user-progress.action.js.map +1 -0
- package/package.json +6 -6
- package/src/providers/learnworlds/actions/create-user.action.ts +249 -0
- package/src/providers/learnworlds/actions/enroll-user.action.ts +233 -0
- package/src/providers/learnworlds/actions/get-certificates.action.ts +332 -0
- package/src/providers/learnworlds/actions/get-course-analytics.action.ts +359 -0
- package/src/providers/learnworlds/actions/get-course-details.action.ts +267 -0
- package/src/providers/learnworlds/actions/get-quiz-results.action.ts +399 -0
- package/src/providers/learnworlds/actions/get-user-enrollments.action.ts +242 -0
- package/src/providers/learnworlds/actions/index.ts +9 -1
- package/src/providers/learnworlds/actions/update-user-progress.action.ts +277 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-quiz-results.action.d.ts","sourceRoot":"","sources":["../../../../src/providers/learnworlds/actions/get-quiz-results.action.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEhG;;GAEG;AACH,qBACa,oBAAqB,SAAQ,qBAAqB;IAC3D;;OAEG;IACU,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA4QpF;;OAEG;IACH,OAAO,CAAC,eAAe;IAWvB;;OAEG;IACH,OAAO,CAAC,aAAa;IAerB;;OAEG;IACH,IAAW,MAAM,IAAI,WAAW,EAAE,CA2EjC;IAED;;OAEG;IACH,IAAW,WAAW,IAAI,MAAM,CAE/B;CACJ"}
|
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.GetQuizResultsAction = void 0;
|
|
10
|
+
const global_1 = require("@memberjunction/global");
|
|
11
|
+
const learnworlds_base_action_1 = require("../learnworlds-base.action");
|
|
12
|
+
/**
|
|
13
|
+
* Action to retrieve quiz/assessment results from LearnWorlds
|
|
14
|
+
*/
|
|
15
|
+
let GetQuizResultsAction = class GetQuizResultsAction extends learnworlds_base_action_1.LearnWorldsBaseAction {
|
|
16
|
+
/**
|
|
17
|
+
* Get quiz results for a user, course, or specific quiz
|
|
18
|
+
*/
|
|
19
|
+
async InternalRunAction(params) {
|
|
20
|
+
const { Params, ContextUser } = params;
|
|
21
|
+
this.params = Params;
|
|
22
|
+
try {
|
|
23
|
+
// Extract and validate parameters
|
|
24
|
+
const userId = this.getParamValue(Params, 'UserID');
|
|
25
|
+
const courseId = this.getParamValue(Params, 'CourseID');
|
|
26
|
+
const quizId = this.getParamValue(Params, 'QuizID');
|
|
27
|
+
const includeQuestions = this.getParamValue(Params, 'IncludeQuestions') !== false;
|
|
28
|
+
const includeAnswers = this.getParamValue(Params, 'IncludeAnswers') !== false;
|
|
29
|
+
const passingOnly = this.getParamValue(Params, 'PassingOnly') === true;
|
|
30
|
+
const dateFrom = this.getParamValue(Params, 'DateFrom');
|
|
31
|
+
const dateTo = this.getParamValue(Params, 'DateTo');
|
|
32
|
+
const sortBy = this.getParamValue(Params, 'SortBy') || 'completed_at';
|
|
33
|
+
const sortOrder = this.getParamValue(Params, 'SortOrder') || 'desc';
|
|
34
|
+
const maxResults = this.getParamValue(Params, 'MaxResults') || 100;
|
|
35
|
+
// Require at least one identifier
|
|
36
|
+
if (!userId && !courseId && !quizId) {
|
|
37
|
+
return {
|
|
38
|
+
Success: false,
|
|
39
|
+
ResultCode: 'VALIDATION_ERROR',
|
|
40
|
+
Message: 'At least one of UserID, CourseID, or QuizID is required',
|
|
41
|
+
Params
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
// Build query parameters
|
|
45
|
+
const queryParams = {
|
|
46
|
+
limit: Math.min(maxResults, 100),
|
|
47
|
+
sort: sortBy,
|
|
48
|
+
order: sortOrder
|
|
49
|
+
};
|
|
50
|
+
if (passingOnly) {
|
|
51
|
+
queryParams.passed = true;
|
|
52
|
+
}
|
|
53
|
+
if (dateFrom) {
|
|
54
|
+
queryParams.completed_after = new Date(dateFrom).toISOString();
|
|
55
|
+
}
|
|
56
|
+
if (dateTo) {
|
|
57
|
+
queryParams.completed_before = new Date(dateTo).toISOString();
|
|
58
|
+
}
|
|
59
|
+
// Determine endpoint based on parameters
|
|
60
|
+
let endpoint = '/quiz-results';
|
|
61
|
+
if (quizId) {
|
|
62
|
+
endpoint = `/quizzes/${quizId}/results`;
|
|
63
|
+
if (userId) {
|
|
64
|
+
queryParams.user_id = userId;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
else if (userId && courseId) {
|
|
68
|
+
endpoint = `/users/${userId}/courses/${courseId}/quiz-results`;
|
|
69
|
+
}
|
|
70
|
+
else if (userId) {
|
|
71
|
+
endpoint = `/users/${userId}/quiz-results`;
|
|
72
|
+
}
|
|
73
|
+
else if (courseId) {
|
|
74
|
+
endpoint = `/courses/${courseId}/quiz-results`;
|
|
75
|
+
}
|
|
76
|
+
// Build query string
|
|
77
|
+
const queryString = Object.keys(queryParams).length > 0
|
|
78
|
+
? '?' + new URLSearchParams(queryParams).toString()
|
|
79
|
+
: '';
|
|
80
|
+
// Get quiz results
|
|
81
|
+
const resultsResponse = await this.makeLearnWorldsRequest(endpoint + queryString, 'GET', null, ContextUser);
|
|
82
|
+
if (!resultsResponse.success) {
|
|
83
|
+
return {
|
|
84
|
+
Success: false,
|
|
85
|
+
ResultCode: 'API_ERROR',
|
|
86
|
+
Message: resultsResponse.message || 'Failed to retrieve quiz results',
|
|
87
|
+
Params
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
const results = resultsResponse.data?.data || resultsResponse.data || [];
|
|
91
|
+
const formattedResults = [];
|
|
92
|
+
// Process each quiz result
|
|
93
|
+
for (const result of results) {
|
|
94
|
+
const formattedResult = {
|
|
95
|
+
id: result.id || result.result_id,
|
|
96
|
+
userId: result.user_id || userId,
|
|
97
|
+
courseId: result.course_id || courseId,
|
|
98
|
+
quizId: result.quiz_id || quizId,
|
|
99
|
+
attemptNumber: result.attempt_number || result.attempt || 1,
|
|
100
|
+
score: result.score || 0,
|
|
101
|
+
maxScore: result.max_score || result.total_points || 100,
|
|
102
|
+
percentage: result.percentage || ((result.score / (result.max_score || 100)) * 100),
|
|
103
|
+
passed: result.passed || result.is_passing || false,
|
|
104
|
+
passingScore: result.passing_score || result.passing_percentage || 70,
|
|
105
|
+
startedAt: result.started_at,
|
|
106
|
+
completedAt: result.completed_at || result.submitted_at,
|
|
107
|
+
duration: result.duration || result.time_spent,
|
|
108
|
+
durationText: this.formatDuration(result.duration || result.time_spent || 0)
|
|
109
|
+
};
|
|
110
|
+
// Add user info if available
|
|
111
|
+
if (result.user && !formattedResult.user) {
|
|
112
|
+
formattedResult.user = {
|
|
113
|
+
id: result.user.id,
|
|
114
|
+
email: result.user.email,
|
|
115
|
+
name: result.user.name || `${result.user.first_name || ''} ${result.user.last_name || ''}`.trim()
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
// Add quiz info if available
|
|
119
|
+
if (result.quiz) {
|
|
120
|
+
formattedResult.quiz = {
|
|
121
|
+
id: result.quiz.id,
|
|
122
|
+
title: result.quiz.title || result.quiz.name,
|
|
123
|
+
type: result.quiz.type || 'quiz',
|
|
124
|
+
questionCount: result.quiz.question_count || result.quiz.total_questions
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
else if (!quizId && result.quiz_id) {
|
|
128
|
+
// Try to get quiz info
|
|
129
|
+
const quizResponse = await this.makeLearnWorldsRequest(`/quizzes/${result.quiz_id}`, 'GET', null, ContextUser);
|
|
130
|
+
if (quizResponse.success && quizResponse.data) {
|
|
131
|
+
const quiz = quizResponse.data;
|
|
132
|
+
formattedResult.quiz = {
|
|
133
|
+
id: quiz.id,
|
|
134
|
+
title: quiz.title || quiz.name,
|
|
135
|
+
type: quiz.type || 'quiz',
|
|
136
|
+
questionCount: quiz.question_count || quiz.total_questions
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
// Add questions and answers if requested
|
|
141
|
+
if (includeQuestions || includeAnswers) {
|
|
142
|
+
const detailsResponse = await this.makeLearnWorldsRequest(`/quiz-results/${formattedResult.id}/details`, 'GET', null, ContextUser);
|
|
143
|
+
if (detailsResponse.success && detailsResponse.data) {
|
|
144
|
+
const details = detailsResponse.data;
|
|
145
|
+
if (includeQuestions) {
|
|
146
|
+
formattedResult.questions = this.formatQuestions(details.questions || details.answers || []);
|
|
147
|
+
}
|
|
148
|
+
if (includeAnswers) {
|
|
149
|
+
formattedResult.answers = this.formatAnswers(details.answers || details.questions || []);
|
|
150
|
+
// Calculate additional metrics
|
|
151
|
+
const answers = formattedResult.answers || [];
|
|
152
|
+
formattedResult.metrics = {
|
|
153
|
+
correctAnswers: answers.filter((a) => a.isCorrect).length,
|
|
154
|
+
incorrectAnswers: answers.filter((a) => !a.isCorrect).length,
|
|
155
|
+
totalQuestions: answers.length,
|
|
156
|
+
accuracyRate: answers.length > 0
|
|
157
|
+
? (answers.filter((a) => a.isCorrect).length / answers.length * 100).toFixed(1)
|
|
158
|
+
: 0
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
formattedResults.push(formattedResult);
|
|
164
|
+
}
|
|
165
|
+
// Calculate summary statistics
|
|
166
|
+
const totalResults = formattedResults.length;
|
|
167
|
+
const passedResults = formattedResults.filter(r => r.passed).length;
|
|
168
|
+
const averageScore = totalResults > 0
|
|
169
|
+
? formattedResults.reduce((sum, r) => sum + r.percentage, 0) / totalResults
|
|
170
|
+
: 0;
|
|
171
|
+
const averageDuration = totalResults > 0
|
|
172
|
+
? formattedResults.reduce((sum, r) => sum + (r.duration || 0), 0) / totalResults
|
|
173
|
+
: 0;
|
|
174
|
+
// Group results by quiz if multiple quizzes
|
|
175
|
+
const resultsByQuiz = {};
|
|
176
|
+
if (!quizId) {
|
|
177
|
+
formattedResults.forEach(result => {
|
|
178
|
+
const quizTitle = result.quiz?.title || 'Unknown Quiz';
|
|
179
|
+
if (!resultsByQuiz[quizTitle]) {
|
|
180
|
+
resultsByQuiz[quizTitle] = {
|
|
181
|
+
results: [],
|
|
182
|
+
stats: {
|
|
183
|
+
attempts: 0,
|
|
184
|
+
averageScore: 0,
|
|
185
|
+
passRate: 0
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
resultsByQuiz[quizTitle].results.push(result);
|
|
190
|
+
});
|
|
191
|
+
// Calculate stats for each quiz
|
|
192
|
+
Object.keys(resultsByQuiz).forEach(quizTitle => {
|
|
193
|
+
const quizResults = resultsByQuiz[quizTitle].results;
|
|
194
|
+
resultsByQuiz[quizTitle].stats = {
|
|
195
|
+
attempts: quizResults.length,
|
|
196
|
+
averageScore: (quizResults.reduce((sum, r) => sum + r.percentage, 0) / quizResults.length).toFixed(1),
|
|
197
|
+
passRate: ((quizResults.filter((r) => r.passed).length / quizResults.length) * 100).toFixed(1)
|
|
198
|
+
};
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
// Create summary
|
|
202
|
+
const summary = {
|
|
203
|
+
totalResults: totalResults,
|
|
204
|
+
passedResults: passedResults,
|
|
205
|
+
failedResults: totalResults - passedResults,
|
|
206
|
+
passRate: totalResults > 0 ? ((passedResults / totalResults) * 100).toFixed(1) : 0,
|
|
207
|
+
averageScore: averageScore.toFixed(1),
|
|
208
|
+
averageDuration: averageDuration,
|
|
209
|
+
averageDurationText: this.formatDuration(Math.round(averageDuration)),
|
|
210
|
+
dateRange: {
|
|
211
|
+
from: dateFrom || 'all-time',
|
|
212
|
+
to: dateTo || 'current'
|
|
213
|
+
},
|
|
214
|
+
filterType: userId ? (courseId ? 'user-course' : 'user') : (courseId ? 'course' : 'all'),
|
|
215
|
+
quizBreakdown: !quizId ? resultsByQuiz : null
|
|
216
|
+
};
|
|
217
|
+
// Update output parameters
|
|
218
|
+
const outputParams = [...Params];
|
|
219
|
+
const quizResultsParam = outputParams.find(p => p.Name === 'QuizResults');
|
|
220
|
+
if (quizResultsParam) {
|
|
221
|
+
quizResultsParam.Value = formattedResults;
|
|
222
|
+
}
|
|
223
|
+
const totalCountParam = outputParams.find(p => p.Name === 'TotalCount');
|
|
224
|
+
if (totalCountParam) {
|
|
225
|
+
totalCountParam.Value = totalResults;
|
|
226
|
+
}
|
|
227
|
+
const summaryParam = outputParams.find(p => p.Name === 'Summary');
|
|
228
|
+
if (summaryParam) {
|
|
229
|
+
summaryParam.Value = summary;
|
|
230
|
+
}
|
|
231
|
+
return {
|
|
232
|
+
Success: true,
|
|
233
|
+
ResultCode: 'SUCCESS',
|
|
234
|
+
Message: `Retrieved ${totalResults} quiz result(s)`,
|
|
235
|
+
Params: outputParams
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
catch (error) {
|
|
239
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
240
|
+
return {
|
|
241
|
+
Success: false,
|
|
242
|
+
ResultCode: 'EXECUTION_ERROR',
|
|
243
|
+
Message: `Error retrieving quiz results: ${errorMessage}`,
|
|
244
|
+
Params
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Format quiz questions
|
|
250
|
+
*/
|
|
251
|
+
formatQuestions(questions) {
|
|
252
|
+
return questions.map((q, index) => ({
|
|
253
|
+
questionNumber: q.question_number || index + 1,
|
|
254
|
+
questionId: q.question_id || q.id,
|
|
255
|
+
questionText: q.question_text || q.question || q.text,
|
|
256
|
+
questionType: q.question_type || q.type || 'multiple-choice',
|
|
257
|
+
points: q.points || q.score || 1,
|
|
258
|
+
difficulty: q.difficulty || 'medium'
|
|
259
|
+
}));
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Format user answers
|
|
263
|
+
*/
|
|
264
|
+
formatAnswers(answers) {
|
|
265
|
+
return answers.map((a, index) => ({
|
|
266
|
+
questionNumber: a.question_number || index + 1,
|
|
267
|
+
questionId: a.question_id,
|
|
268
|
+
userAnswer: a.user_answer || a.answer || a.selected_answer,
|
|
269
|
+
correctAnswer: a.correct_answer,
|
|
270
|
+
isCorrect: a.is_correct || a.correct || false,
|
|
271
|
+
pointsEarned: a.points_earned || (a.is_correct ? (a.points || 1) : 0),
|
|
272
|
+
pointsPossible: a.points_possible || a.points || 1,
|
|
273
|
+
feedback: a.feedback,
|
|
274
|
+
timeSpent: a.time_spent,
|
|
275
|
+
answeredAt: a.answered_at
|
|
276
|
+
}));
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Define the parameters this action expects
|
|
280
|
+
*/
|
|
281
|
+
get Params() {
|
|
282
|
+
const baseParams = this.getCommonLMSParams();
|
|
283
|
+
const specificParams = [
|
|
284
|
+
{
|
|
285
|
+
Name: 'UserID',
|
|
286
|
+
Type: 'Input',
|
|
287
|
+
Value: null
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
Name: 'CourseID',
|
|
291
|
+
Type: 'Input',
|
|
292
|
+
Value: null
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
Name: 'QuizID',
|
|
296
|
+
Type: 'Input',
|
|
297
|
+
Value: null
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
Name: 'IncludeQuestions',
|
|
301
|
+
Type: 'Input',
|
|
302
|
+
Value: true
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
Name: 'IncludeAnswers',
|
|
306
|
+
Type: 'Input',
|
|
307
|
+
Value: true
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
Name: 'PassingOnly',
|
|
311
|
+
Type: 'Input',
|
|
312
|
+
Value: false
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
Name: 'DateFrom',
|
|
316
|
+
Type: 'Input',
|
|
317
|
+
Value: null
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
Name: 'DateTo',
|
|
321
|
+
Type: 'Input',
|
|
322
|
+
Value: null
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
Name: 'SortBy',
|
|
326
|
+
Type: 'Input',
|
|
327
|
+
Value: 'completed_at'
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
Name: 'SortOrder',
|
|
331
|
+
Type: 'Input',
|
|
332
|
+
Value: 'desc'
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
Name: 'MaxResults',
|
|
336
|
+
Type: 'Input',
|
|
337
|
+
Value: 100
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
Name: 'QuizResults',
|
|
341
|
+
Type: 'Output',
|
|
342
|
+
Value: null
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
Name: 'TotalCount',
|
|
346
|
+
Type: 'Output',
|
|
347
|
+
Value: null
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
Name: 'Summary',
|
|
351
|
+
Type: 'Output',
|
|
352
|
+
Value: null
|
|
353
|
+
}
|
|
354
|
+
];
|
|
355
|
+
return [...baseParams, ...specificParams];
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Metadata about this action
|
|
359
|
+
*/
|
|
360
|
+
get Description() {
|
|
361
|
+
return 'Retrieves quiz and assessment results from LearnWorlds with detailed question/answer information';
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
exports.GetQuizResultsAction = GetQuizResultsAction;
|
|
365
|
+
exports.GetQuizResultsAction = GetQuizResultsAction = __decorate([
|
|
366
|
+
(0, global_1.RegisterClass)(learnworlds_base_action_1.LearnWorldsBaseAction, 'GetQuizResultsAction')
|
|
367
|
+
], GetQuizResultsAction);
|
|
368
|
+
//# sourceMappingURL=get-quiz-results.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-quiz-results.action.js","sourceRoot":"","sources":["../../../../src/providers/learnworlds/actions/get-quiz-results.action.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mDAAuD;AACvD,wEAAmE;AAGnE;;GAEG;AAEI,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,+CAAqB;IAC3D;;OAEG;IACI,KAAK,CAAC,iBAAiB,CAAC,MAAuB;QAClD,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,IAAI,CAAC;YACD,kCAAkC;YAClC,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YACpD,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;YACxD,MAAM,MAAM,GAAG,I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ACb,KAAK,EAAE,IAAI;aACd;YACD;gBACI,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,KAAK;aACf;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,IAAI;aACd;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,IAAI;aACd;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,cAAc;aACxB;YACD;gBACI,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,MAAM;aAChB;YACD;gBACI,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,GAAG;aACb;YACD;gBACI,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,IAAI;aACd;YACD;gBACI,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,IAAI;aACd;YACD;gBACI,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,IAAI;aACd;SACJ,CAAC;QACF,OAAO,CAAC,GAAG,UAAU,EAAE,GAAG,cAAc,CAAC,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,IAAW,WAAW;QAClB,OAAO,kGAAkG,CAAC;IAC9G,CAAC;CACJ,CAAA;AAtYY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,sBAAa,EAAC,+CAAqB,EAAE,sBAAsB,CAAC;GAChD,oBAAoB,CAsYhC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LearnWorldsBaseAction } from '../learnworlds-base.action';
|
|
2
|
+
import { ActionParam, ActionResultSimple, RunActionParams } from '@memberjunction/actions-base';
|
|
3
|
+
/**
|
|
4
|
+
* Action to retrieve all course enrollments for a specific user
|
|
5
|
+
*/
|
|
6
|
+
export declare class GetUserEnrollmentsAction extends LearnWorldsBaseAction {
|
|
7
|
+
/**
|
|
8
|
+
* Get all enrollments for a user
|
|
9
|
+
*/
|
|
10
|
+
protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
|
|
11
|
+
/**
|
|
12
|
+
* Define the parameters this action expects
|
|
13
|
+
*/
|
|
14
|
+
get Params(): ActionParam[];
|
|
15
|
+
/**
|
|
16
|
+
* Metadata about this action
|
|
17
|
+
*/
|
|
18
|
+
get Description(): string;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=get-user-enrollments.action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user-enrollments.action.d.ts","sourceRoot":"","sources":["../../../../src/providers/learnworlds/actions/get-user-enrollments.action.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEhG;;GAEG;AACH,qBACa,wBAAyB,SAAQ,qBAAqB;IAC/D;;OAEG;cACa,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAmKvF;;OAEG;IACH,IAAW,MAAM,IAAI,WAAW,EAAE,CAuDjC;IAED;;OAEG;IACH,IAAW,WAAW,IAAI,MAAM,CAE/B;CACJ"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.GetUserEnrollmentsAction = void 0;
|
|
10
|
+
const global_1 = require("@memberjunction/global");
|
|
11
|
+
const learnworlds_base_action_1 = require("../learnworlds-base.action");
|
|
12
|
+
/**
|
|
13
|
+
* Action to retrieve all course enrollments for a specific user
|
|
14
|
+
*/
|
|
15
|
+
let GetUserEnrollmentsAction = class GetUserEnrollmentsAction extends learnworlds_base_action_1.LearnWorldsBaseAction {
|
|
16
|
+
/**
|
|
17
|
+
* Get all enrollments for a user
|
|
18
|
+
*/
|
|
19
|
+
async InternalRunAction(params) {
|
|
20
|
+
const { Params, ContextUser } = params;
|
|
21
|
+
this.params = Params; // Set params for base class to use
|
|
22
|
+
try {
|
|
23
|
+
// Extract and validate parameters
|
|
24
|
+
const userId = this.getParamValue(Params, 'UserID');
|
|
25
|
+
const status = this.getParamValue(Params, 'Status');
|
|
26
|
+
const includeExpired = this.getParamValue(Params, 'IncludeExpired') || false;
|
|
27
|
+
const includeCourseDetails = this.getParamValue(Params, 'IncludeCourseDetails') !== false;
|
|
28
|
+
const sortBy = this.getParamValue(Params, 'SortBy') || 'enrolled_at';
|
|
29
|
+
const sortOrder = this.getParamValue(Params, 'SortOrder') || 'desc';
|
|
30
|
+
const maxResults = this.getParamValue(Params, 'MaxResults') || 100;
|
|
31
|
+
if (!userId) {
|
|
32
|
+
return {
|
|
33
|
+
Success: false,
|
|
34
|
+
ResultCode: 'VALIDATION_ERROR',
|
|
35
|
+
Message: 'UserID is required',
|
|
36
|
+
Params
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
// Build query parameters
|
|
40
|
+
const queryParams = {
|
|
41
|
+
limit: Math.min(maxResults, 100),
|
|
42
|
+
sort: sortBy,
|
|
43
|
+
order: sortOrder
|
|
44
|
+
};
|
|
45
|
+
if (status) {
|
|
46
|
+
queryParams.status = status;
|
|
47
|
+
}
|
|
48
|
+
if (!includeExpired) {
|
|
49
|
+
queryParams.hide_expired = true;
|
|
50
|
+
}
|
|
51
|
+
// Get user enrollments
|
|
52
|
+
const enrollmentsData = await this.makeLearnWorldsPaginatedRequest(`users/${userId}/enrollments`, queryParams, ContextUser);
|
|
53
|
+
const enrollments = enrollmentsData || [];
|
|
54
|
+
const formattedEnrollments = [];
|
|
55
|
+
// Process each enrollment
|
|
56
|
+
for (const enrollment of enrollments) {
|
|
57
|
+
const formattedEnrollment = {
|
|
58
|
+
id: enrollment.id,
|
|
59
|
+
courseId: enrollment.course_id,
|
|
60
|
+
enrolledAt: enrollment.enrolled_at || enrollment.created_at,
|
|
61
|
+
startsAt: enrollment.starts_at,
|
|
62
|
+
expiresAt: enrollment.expires_at,
|
|
63
|
+
status: enrollment.status || 'active',
|
|
64
|
+
progress: {
|
|
65
|
+
percentage: enrollment.progress_percentage || 0,
|
|
66
|
+
completedUnits: enrollment.completed_units || 0,
|
|
67
|
+
totalUnits: enrollment.total_units || 0,
|
|
68
|
+
completedLessons: enrollment.completed_lessons || 0,
|
|
69
|
+
totalLessons: enrollment.total_lessons || 0,
|
|
70
|
+
lastAccessedAt: enrollment.last_accessed_at,
|
|
71
|
+
totalTimeSpent: enrollment.total_time_spent || 0,
|
|
72
|
+
totalTimeSpentText: this.formatDuration(enrollment.total_time_spent || 0)
|
|
73
|
+
},
|
|
74
|
+
grade: enrollment.grade,
|
|
75
|
+
certificateEligible: enrollment.certificate_eligible || false,
|
|
76
|
+
certificateIssuedAt: enrollment.certificate_issued_at,
|
|
77
|
+
completedAt: enrollment.completed_at
|
|
78
|
+
};
|
|
79
|
+
// Get course details if requested
|
|
80
|
+
if (includeCourseDetails && enrollment.course_id) {
|
|
81
|
+
try {
|
|
82
|
+
const course = await this.makeLearnWorldsRequest(`courses/${enrollment.course_id}`, 'GET', undefined, ContextUser);
|
|
83
|
+
formattedEnrollment.course = {
|
|
84
|
+
id: course.id,
|
|
85
|
+
title: course.title,
|
|
86
|
+
description: course.short_description || course.description,
|
|
87
|
+
imageUrl: course.image_url,
|
|
88
|
+
level: course.level,
|
|
89
|
+
duration: course.duration,
|
|
90
|
+
durationText: this.formatDuration(course.duration),
|
|
91
|
+
instructorName: course.instructor_name,
|
|
92
|
+
certificateEnabled: course.certificate_enabled || false
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
catch (error) {
|
|
96
|
+
// Log error but continue processing
|
|
97
|
+
console.warn(`Failed to get course details for ${enrollment.course_id}:`, error);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
formattedEnrollments.push(formattedEnrollment);
|
|
101
|
+
}
|
|
102
|
+
// Calculate summary statistics
|
|
103
|
+
const totalEnrollments = formattedEnrollments.length;
|
|
104
|
+
const activeEnrollments = formattedEnrollments.filter(e => e.status === 'active').length;
|
|
105
|
+
const completedEnrollments = formattedEnrollments.filter(e => e.progress.percentage >= 100 || e.completedAt).length;
|
|
106
|
+
const expiredEnrollments = formattedEnrollments.filter(e => e.status === 'expired').length;
|
|
107
|
+
const averageProgress = totalEnrollments > 0
|
|
108
|
+
? formattedEnrollments.reduce((sum, e) => sum + e.progress.percentage, 0) / totalEnrollments
|
|
109
|
+
: 0;
|
|
110
|
+
const totalTimeSpent = formattedEnrollments.reduce((sum, e) => sum + (e.progress.totalTimeSpent || 0), 0);
|
|
111
|
+
const certificatesEarned = formattedEnrollments.filter(e => e.certificateIssuedAt).length;
|
|
112
|
+
// Create summary
|
|
113
|
+
const summary = {
|
|
114
|
+
userId: userId,
|
|
115
|
+
totalEnrollments: totalEnrollments,
|
|
116
|
+
activeEnrollments: activeEnrollments,
|
|
117
|
+
completedEnrollments: completedEnrollments,
|
|
118
|
+
expiredEnrollments: expiredEnrollments,
|
|
119
|
+
inProgressEnrollments: activeEnrollments - completedEnrollments,
|
|
120
|
+
averageProgressPercentage: Math.round(averageProgress * 100) / 100,
|
|
121
|
+
totalTimeSpent: totalTimeSpent,
|
|
122
|
+
totalTimeSpentText: this.formatDuration(totalTimeSpent),
|
|
123
|
+
certificatesEarned: certificatesEarned,
|
|
124
|
+
enrollmentsByStatus: {
|
|
125
|
+
active: activeEnrollments,
|
|
126
|
+
completed: completedEnrollments,
|
|
127
|
+
expired: expiredEnrollments
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
// Update output parameters
|
|
131
|
+
const outputParams = [...Params];
|
|
132
|
+
const enrollmentsParam = outputParams.find(p => p.Name === 'Enrollments');
|
|
133
|
+
if (enrollmentsParam)
|
|
134
|
+
enrollmentsParam.Value = formattedEnrollments;
|
|
135
|
+
const totalCountParam = outputParams.find(p => p.Name === 'TotalCount');
|
|
136
|
+
if (totalCountParam)
|
|
137
|
+
totalCountParam.Value = totalEnrollments;
|
|
138
|
+
const summaryParam = outputParams.find(p => p.Name === 'Summary');
|
|
139
|
+
if (summaryParam)
|
|
140
|
+
summaryParam.Value = summary;
|
|
141
|
+
return {
|
|
142
|
+
Success: true,
|
|
143
|
+
ResultCode: 'SUCCESS',
|
|
144
|
+
Message: `Retrieved ${totalEnrollments} enrollments for user`,
|
|
145
|
+
Params: outputParams
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
catch (error) {
|
|
149
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
150
|
+
return {
|
|
151
|
+
Success: false,
|
|
152
|
+
ResultCode: 'ERROR',
|
|
153
|
+
Message: `Error retrieving enrollments: ${errorMessage}`,
|
|
154
|
+
Params
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Define the parameters this action expects
|
|
160
|
+
*/
|
|
161
|
+
get Params() {
|
|
162
|
+
const baseParams = this.getCommonLMSParams();
|
|
163
|
+
const specificParams = [
|
|
164
|
+
{
|
|
165
|
+
Name: 'UserID',
|
|
166
|
+
Type: 'Input',
|
|
167
|
+
Value: null
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
Name: 'Status',
|
|
171
|
+
Type: 'Input',
|
|
172
|
+
Value: null
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
Name: 'IncludeExpired',
|
|
176
|
+
Type: 'Input',
|
|
177
|
+
Value: false
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
Name: 'IncludeCourseDetails',
|
|
181
|
+
Type: 'Input',
|
|
182
|
+
Value: true
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
Name: 'SortBy',
|
|
186
|
+
Type: 'Input',
|
|
187
|
+
Value: 'enrolled_at'
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
Name: 'SortOrder',
|
|
191
|
+
Type: 'Input',
|
|
192
|
+
Value: 'desc'
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
Name: 'MaxResults',
|
|
196
|
+
Type: 'Input',
|
|
197
|
+
Value: 100
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
Name: 'Enrollments',
|
|
201
|
+
Type: 'Output',
|
|
202
|
+
Value: null
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
Name: 'TotalCount',
|
|
206
|
+
Type: 'Output',
|
|
207
|
+
Value: null
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
Name: 'Summary',
|
|
211
|
+
Type: 'Output',
|
|
212
|
+
Value: null
|
|
213
|
+
}
|
|
214
|
+
];
|
|
215
|
+
return [...baseParams, ...specificParams];
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Metadata about this action
|
|
219
|
+
*/
|
|
220
|
+
get Description() {
|
|
221
|
+
return 'Retrieves all course enrollments for a specific LearnWorlds user with detailed progress information';
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
exports.GetUserEnrollmentsAction = GetUserEnrollmentsAction;
|
|
225
|
+
exports.GetUserEnrollmentsAction = GetUserEnrollmentsAction = __decorate([
|
|
226
|
+
(0, global_1.RegisterClass)(learnworlds_base_action_1.LearnWorldsBaseAction, 'GetUserEnrollmentsAction')
|
|
227
|
+
], GetUserEnrollmentsAction);
|
|
228
|
+
//# sourceMappingURL=get-user-enrollments.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user-enrollments.action.js","sourceRoot":"","sources":["../../../../src/providers/learnworlds/actions/get-user-enrollments.action.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mDAAuD;AACvD,wEAAmE;AAGnE;;GAEG;AAEI,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,+CAAqB;IAC/D;;OAEG;IACO,KAAK,CAAC,iBAAiB,CAAC,MAAuB;QACrD,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,mCAAmC;QAEzD,IAAI,CAAC;YACD,kCAAkC;YAClC,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YACpD,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YACpD,MAAM,cAAc,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,gBAAgB,CAAC,IAAI,KAAK,CAAC;YAC7E,MAAM,oBAAoB,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,sBAAsB,CAAC,KAAK,KAAK,CAAC;YAC1F,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,aAAa,CAAC;YACrE,MAAM,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,WAAW,CAAC,IAAI,MAAM,CAAC;YACpE,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,YAAY,CAAC,IAAI,GAAG,CAAC;YAEnE,IAAI,CAAC,MAAM,E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