@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.cjs +16 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +16 -0
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -2655,6 +2655,22 @@ function generateLrsBridgeCode(options) {
|
|
|
2655
2655
|
// This allows filtering by type (video, assessment, interaction) in Analytics
|
|
2656
2656
|
if (activityType) {
|
|
2657
2657
|
courseObj.definition.type = activityType;
|
|
2658
|
+
|
|
2659
|
+
// Also update resourceType extension to human-readable form for Bravais Type column
|
|
2660
|
+
courseObj.definition.extensions = courseObj.definition.extensions || {};
|
|
2661
|
+
var resourceTypeMap = {
|
|
2662
|
+
'https://w3id.org/xapi/video/activity-type/video': 'Video',
|
|
2663
|
+
'https://w3id.org/xapi/audio/activity-type/audio': 'Audio',
|
|
2664
|
+
'http://adlnet.gov/expapi/activities/media': 'Media',
|
|
2665
|
+
'http://adlnet.gov/expapi/activities/assessment': 'Assessment',
|
|
2666
|
+
'http://adlnet.gov/expapi/activities/question': 'Question',
|
|
2667
|
+
'http://adlnet.gov/expapi/activities/interaction': 'Interaction',
|
|
2668
|
+
'http://adlnet.gov/expapi/activities/lesson': 'Lesson',
|
|
2669
|
+
'http://adlnet.gov/expapi/activities/module': 'Module',
|
|
2670
|
+
'http://adlnet.gov/expapi/activities/course': 'Course',
|
|
2671
|
+
'http://xyleme.com/bravais/activities/document': 'Course'
|
|
2672
|
+
};
|
|
2673
|
+
courseObj.definition.extensions['resourceType'] = resourceTypeMap[activityType] || 'Course';
|
|
2658
2674
|
}
|
|
2659
2675
|
|
|
2660
2676
|
// Add activity-specific details to extensions
|