trainingpeaks-sdk
Version:
TypeScript SDK for TrainingPeaks API integration
115 lines (114 loc) • 4.45 kB
JavaScript
export var ElementType;
(function (ElementType) {
ElementType["STEP"] = "step";
ElementType["REPETITION"] = "repetition";
})(ElementType || (ElementType = {}));
export var LengthUnit;
(function (LengthUnit) {
LengthUnit["SECOND"] = "second";
LengthUnit["MINUTE"] = "minute";
LengthUnit["HOUR"] = "hour";
LengthUnit["REPETITION"] = "repetition";
LengthUnit["METER"] = "meter";
LengthUnit["KILOMETER"] = "kilometer";
LengthUnit["MILE"] = "mile";
})(LengthUnit || (LengthUnit = {}));
export var LengthMetric;
(function (LengthMetric) {
LengthMetric["DURATION"] = "duration";
LengthMetric["DISTANCE"] = "distance";
})(LengthMetric || (LengthMetric = {}));
export var IntensityMetric;
(function (IntensityMetric) {
IntensityMetric["PERCENT_OF_THRESHOLD_PACE"] = "percentOfThresholdPace";
IntensityMetric["PERCENT_OF_THRESHOLD_POWER"] = "percentOfThresholdPower";
IntensityMetric["HEART_RATE"] = "heartRate";
IntensityMetric["POWER"] = "power";
IntensityMetric["PACE"] = "pace";
IntensityMetric["SPEED"] = "speed";
})(IntensityMetric || (IntensityMetric = {}));
export var IntensityTargetType;
(function (IntensityTargetType) {
IntensityTargetType["TARGET"] = "target";
IntensityTargetType["RANGE"] = "range";
})(IntensityTargetType || (IntensityTargetType = {}));
export var IntensityClass;
(function (IntensityClass) {
IntensityClass["ACTIVE"] = "active";
IntensityClass["REST"] = "rest";
IntensityClass["WARM_UP"] = "warmUp";
IntensityClass["COOL_DOWN"] = "coolDown";
})(IntensityClass || (IntensityClass = {}));
export var Difficulty;
(function (Difficulty) {
Difficulty["EASY"] = "easy";
Difficulty["MODERATE"] = "moderate";
Difficulty["HARD"] = "hard";
Difficulty["EXTREME"] = "extreme";
})(Difficulty || (Difficulty = {}));
export var ActivityType;
(function (ActivityType) {
ActivityType["RUN"] = "run";
ActivityType["BIKE"] = "bike";
ActivityType["SWIM"] = "swim";
ActivityType["STRENGTH"] = "strength";
ActivityType["OTHER"] = "other";
})(ActivityType || (ActivityType = {}));
export var AuthMethod;
(function (AuthMethod) {
AuthMethod["WEB"] = "web";
AuthMethod["API"] = "api";
})(AuthMethod || (AuthMethod = {}));
export var ErrorType;
(function (ErrorType) {
ErrorType["VALIDATION_ERROR"] = "VALIDATION_ERROR";
ErrorType["AUTHENTICATION_ERROR"] = "AUTHENTICATION_ERROR";
ErrorType["AUTHORIZATION_ERROR"] = "AUTHORIZATION_ERROR";
ErrorType["NETWORK_ERROR"] = "NETWORK_ERROR";
ErrorType["UPLOAD_ERROR"] = "UPLOAD_ERROR";
ErrorType["RATE_LIMIT_ERROR"] = "RATE_LIMIT_ERROR";
ErrorType["ERROR"] = "ERROR";
})(ErrorType || (ErrorType = {}));
export var OperationType;
(function (OperationType) {
OperationType["LOGIN"] = "login";
OperationType["LOGOUT"] = "logout";
OperationType["GET_CURRENT_USER"] = "getCurrentUser";
OperationType["GET_CURRENT_TOKEN"] = "getCurrentToken";
OperationType["GET_USER_ID"] = "getUserId";
})(OperationType || (OperationType = {}));
export var WorkoutTypeInternal;
(function (WorkoutTypeInternal) {
WorkoutTypeInternal["STRUCTURED"] = "structured";
WorkoutTypeInternal["FILE"] = "file";
WorkoutTypeInternal["MANUAL"] = "manual";
WorkoutTypeInternal["FILE_BASED"] = "file-based";
WorkoutTypeInternal["SIMPLE"] = "simple";
})(WorkoutTypeInternal || (WorkoutTypeInternal = {}));
export var SortOption;
(function (SortOption) {
SortOption["DATE"] = "date";
SortOption["NAME"] = "name";
SortOption["DURATION"] = "duration";
SortOption["DISTANCE"] = "distance";
})(SortOption || (SortOption = {}));
export var LoginMethod;
(function (LoginMethod) {
LoginMethod["WEB"] = "web";
LoginMethod["CREDENTIALS"] = "credentials";
})(LoginMethod || (LoginMethod = {}));
export var SimpleWorkoutElementType;
(function (SimpleWorkoutElementType) {
SimpleWorkoutElementType["WARMUP"] = "warmup";
SimpleWorkoutElementType["INTERVAL"] = "interval";
SimpleWorkoutElementType["RECOVERY"] = "recovery";
SimpleWorkoutElementType["COOLDOWN"] = "cooldown";
SimpleWorkoutElementType["STEADY"] = "steady";
})(SimpleWorkoutElementType || (SimpleWorkoutElementType = {}));
export var WorkoutType;
(function (WorkoutType) {
WorkoutType["BIKE"] = "BIKE";
WorkoutType["RUN"] = "RUN";
WorkoutType["SWIM"] = "SWIM";
WorkoutType["OTHER"] = "OTHER";
})(WorkoutType || (WorkoutType = {}));