mario-education 2.4.169-level → 2.4.170-level

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.
@@ -323,7 +323,7 @@ export interface SessionCsv {
323
323
  teacherUserId: string;
324
324
  studentUserId: string;
325
325
  startTime: string;
326
- isUnlock: boolean;
326
+ isUnlocked: boolean;
327
327
  answers: SessionAnswerCsv[];
328
328
  strategyAnswers: SessionAnswerCsv[];
329
329
  }
package/dist/index.js CHANGED
@@ -32205,7 +32205,7 @@ var useExportSessionCsv = function useExportSessionCsv() {
32205
32205
  var questionSummarize = questions.filter(function (item) {
32206
32206
  return item.type == QuestionType.Summarize && !!item.isBeforeSession;
32207
32207
  });
32208
- var questionBlock2 = questions.filter(function (item) {
32208
+ var questionRatings2 = questions.filter(function (item) {
32209
32209
  return !!item.isBeforeSession;
32210
32210
  }).slice(7, !isCheckDomainIskenya ? 13 : 12);
32211
32211
  var afterSessionQuestions = questions.filter(function (item) {
@@ -32217,17 +32217,24 @@ var useExportSessionCsv = function useExportSessionCsv() {
32217
32217
  sessionQuestions.push(questionSummarize[0]);
32218
32218
  }
32219
32219
 
32220
- sessionQuestions = [].concat(sessionQuestions, questionRatings, questionBlock2);
32220
+ sessionQuestions = [].concat(sessionQuestions, questionRatings, questionRatings2);
32221
32221
  var content = sessions.map(function (session) {
32222
- var studentName = escapeCell(session.studentName);
32223
- var studentEmail = escapeCell(session.studentEmail ? session.studentEmail : "" + session.studentId);
32224
- var teacherName = escapeCell(session.teacherName);
32225
- var startTime = marioCore.utcToLocalTime(session.startTime, "DD-MM-YYYY HH:mm:ss");
32226
32222
  var answers = session.answers,
32227
- strategyAnswers = session.strategyAnswers;
32228
- var questionsContent = questionToCsv(sessionQuestions, answers, studentName, studentEmail, teacherName, startTime);
32229
- var learningStrategyQuestionsContent = strategyQuestionsToCsv(strategyQuestions, strategyAnswers, studentName, studentEmail, teacherName, startTime);
32230
- var afterSessionQuestionsContent = questionToCsv(afterSessionQuestions, answers, studentName, studentEmail, teacherName, startTime);
32223
+ isUnlocked = session.isUnlocked,
32224
+ startTime = session.startTime,
32225
+ studentId = session.studentId,
32226
+ studentName = session.studentName,
32227
+ teacherName = session.teacherName,
32228
+ studentEmail = session.studentEmail,
32229
+ strategyAnswers = session.strategyAnswers,
32230
+ isOneToOneConversation = session.isOneToOneConversation;
32231
+ var studentNameCell = escapeCell(studentName);
32232
+ var studentEmailCell = escapeCell(studentEmail ? studentEmail : "" + studentId);
32233
+ var teacherNameCell = escapeCell(teacherName);
32234
+ var startTimeCell = marioCore.utcToLocalTime(startTime, "DD-MM-YYYY HH:mm:ss");
32235
+ var questionsContent = questionToCsv(sessionQuestions, answers, studentNameCell, studentEmailCell, teacherNameCell, startTimeCell);
32236
+ var learningStrategyQuestionsContent = isOneToOneConversation ? strategyQuestionsToCsv(strategyQuestions, strategyAnswers, studentNameCell, studentEmailCell, teacherNameCell, startTimeCell) : '';
32237
+ var afterSessionQuestionsContent = isOneToOneConversation && isUnlocked ? questionToCsv(afterSessionQuestions, answers, studentNameCell, studentEmailCell, teacherNameCell, startTimeCell) : '';
32231
32238
  return "" + questionsContent + learningStrategyQuestionsContent + afterSessionQuestionsContent;
32232
32239
  }).join('');
32233
32240
  return "" + CSV_PREFIX + headers + encodeURIComponent(content);