@patch-adams/core 1.4.8 → 1.4.9

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/cli.js CHANGED
@@ -2646,6 +2646,22 @@ function generateLrsBridgeCode(options) {
2646
2646
  // This allows filtering by type (video, assessment, interaction) in Analytics
2647
2647
  if (activityType) {
2648
2648
  courseObj.definition.type = activityType;
2649
+
2650
+ // Also update resourceType extension to human-readable form for Bravais Type column
2651
+ courseObj.definition.extensions = courseObj.definition.extensions || {};
2652
+ var resourceTypeMap = {
2653
+ 'https://w3id.org/xapi/video/activity-type/video': 'Video',
2654
+ 'https://w3id.org/xapi/audio/activity-type/audio': 'Audio',
2655
+ 'http://adlnet.gov/expapi/activities/media': 'Media',
2656
+ 'http://adlnet.gov/expapi/activities/assessment': 'Assessment',
2657
+ 'http://adlnet.gov/expapi/activities/question': 'Question',
2658
+ 'http://adlnet.gov/expapi/activities/interaction': 'Interaction',
2659
+ 'http://adlnet.gov/expapi/activities/lesson': 'Lesson',
2660
+ 'http://adlnet.gov/expapi/activities/module': 'Module',
2661
+ 'http://adlnet.gov/expapi/activities/course': 'Course',
2662
+ 'http://xyleme.com/bravais/activities/document': 'Course'
2663
+ };
2664
+ courseObj.definition.extensions['resourceType'] = resourceTypeMap[activityType] || 'Course';
2649
2665
  }
2650
2666
 
2651
2667
  // Add activity-specific details to extensions