@patch-adams/core 1.5.9 → 1.5.10

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
@@ -3710,6 +3710,22 @@ function generateLrsBridgeCode(options) {
3710
3710
  sendStatement(statement);
3711
3711
  };
3712
3712
 
3713
+ // Send a "launched" statement \u2014 called by skin after email gate / actor setup
3714
+ LRS.sendLaunchStatement = function(data) {
3715
+ data = data || {};
3716
+ var activityDetails = {
3717
+ launchSource: data.source || 'email-gate',
3718
+ employeeEmail: data.email || (LRS.actor && LRS.actor.mbox ? LRS.actor.mbox.replace('mailto:', '') : undefined),
3719
+ employeeId: data.employeeId || LRS.employeeId || undefined
3720
+ };
3721
+
3722
+ if (data.employeeName) activityDetails.employeeName = data.employeeName;
3723
+
3724
+ var statement = buildStatement('launched', ACTIVITY_TYPES.course, activityDetails, null, null);
3725
+ log('Sending launch statement for:', activityDetails.employeeEmail || '(unknown)');
3726
+ sendStatement(statement);
3727
+ };
3728
+
3713
3729
  /**
3714
3730
  * Re-extract actor from SCORM after LMSInitialize has been called.
3715
3731
  * Call this from the SCORM wrapper after scormInit() succeeds,