quantified-self-lib
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -5,1 +5,8 @@ import { DataNumber } from './data.number'; | ||
} | ||
export declare enum Feelings { | ||
Poor = 0, | ||
Average = 1, | ||
Good = 2, | ||
'Very Good' = 3, | ||
Excellent = 4 | ||
} |
@@ -26,1 +26,9 @@ "use strict"; | ||
exports.DataFeeling = DataFeeling; | ||
var Feelings; | ||
(function (Feelings) { | ||
Feelings[Feelings["Poor"] = 0] = "Poor"; | ||
Feelings[Feelings["Average"] = 1] = "Average"; | ||
Feelings[Feelings["Good"] = 2] = "Good"; | ||
Feelings[Feelings["Very Good"] = 3] = "Very Good"; | ||
Feelings[Feelings["Excellent"] = 4] = "Excellent"; | ||
})(Feelings = exports.Feelings || (exports.Feelings = {})); |
@@ -100,2 +100,3 @@ "use strict"; | ||
var data_right_balance_1 = require("./data.right-balance"); | ||
var data_rpe_1 = require("./data.rpe"); | ||
/** | ||
@@ -256,3 +257,4 @@ * Only concrete classes no abstracts | ||
DataLeftBalance: data_left_balance_1.DataLeftBalance, | ||
DataRightBalance: data_right_balance_1.DataRightBalance | ||
DataRightBalance: data_right_balance_1.DataRightBalance, | ||
DataRPE: data_rpe_1.DataRPE | ||
}; | ||
@@ -259,0 +261,0 @@ var DynamicDataLoader = /** @class */ (function () { |
@@ -183,2 +183,3 @@ "use strict"; | ||
}; | ||
// @todo move this to a mapper | ||
EventImporterFIT.getStatsFromObject = function (object) { | ||
@@ -185,0 +186,0 @@ var stats = []; |
@@ -59,2 +59,3 @@ "use strict"; | ||
var data_swim_pace_avg_1 = require("../../data/data.swim-pace-avg"); | ||
var data_feeling_1 = require("../../data/data.feeling"); | ||
var EventUtilities = /** @class */ (function () { | ||
@@ -247,4 +248,2 @@ function EventUtilities() { | ||
} | ||
}); | ||
event.getActivities().forEach(function (activity) { | ||
var activityDescent = activity.getStat(data_descent_1.DataDescent.type); | ||
@@ -260,4 +259,2 @@ if (activityDescent) { | ||
} | ||
}); | ||
event.getActivities().forEach(function (activity) { | ||
var activityEnergy = activity.getStat(data_energy_1.DataEnergy.type); | ||
@@ -273,4 +270,2 @@ if (activityEnergy) { | ||
} | ||
}); | ||
event.getActivities().forEach(function (activity) { | ||
var activityAVGHeartRate = activity.getStat(data_heart_rate_avg_1.DataHeartRateAvg.type); | ||
@@ -286,2 +281,12 @@ if (activityAVGHeartRate) { | ||
} | ||
var activityFeeling = activity.getStat(data_feeling_1.DataFeeling.type); | ||
if (activityFeeling) { | ||
var feeling = event.getStat(data_feeling_1.DataFeeling.type); | ||
if (!feeling) { | ||
event.addStat(new data_feeling_1.DataFeeling(activityFeeling.getValue())); | ||
} | ||
else { | ||
event.addStat(new data_feeling_1.DataFeeling(Math.ceil((feeling.getValue() + activityFeeling.getValue()) / 2))); | ||
} | ||
} | ||
}); | ||
@@ -288,0 +293,0 @@ }; |
{ | ||
"name": "quantified-self-lib", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "A Library to for processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
532029
382
11218