@gooin/garmin-connect 1.6.9 → 1.6.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.
Files changed (62) hide show
  1. package/dist/common/HttpClient.d.ts +37 -37
  2. package/dist/common/HttpClient.js +345 -332
  3. package/dist/common/HttpClient.js.map +1 -1
  4. package/dist/garmin/GarminConnect.d.ts +84 -84
  5. package/dist/garmin/GarminConnect.js +470 -470
  6. package/dist/garmin/UrlClass.d.ts +43 -43
  7. package/dist/garmin/UrlClass.js +124 -124
  8. package/dist/garmin/common/DateUtils.d.ts +6 -6
  9. package/dist/garmin/common/DateUtils.js +37 -37
  10. package/dist/garmin/common/HydrationUtils.d.ts +2 -2
  11. package/dist/garmin/common/HydrationUtils.js +15 -15
  12. package/dist/garmin/common/WeightUtils.d.ts +1 -1
  13. package/dist/garmin/common/WeightUtils.js +8 -8
  14. package/dist/garmin/types/activity.d.ts +408 -408
  15. package/dist/garmin/types/activity.js +26 -26
  16. package/dist/garmin/types/course.d.ts +146 -146
  17. package/dist/garmin/types/course.js +2 -2
  18. package/dist/garmin/types/golf.d.ts +67 -67
  19. package/dist/garmin/types/golf.js +2 -2
  20. package/dist/garmin/types/heartrate.d.ts +22 -22
  21. package/dist/garmin/types/heartrate.js +1 -1
  22. package/dist/garmin/types/hydration.d.ts +28 -28
  23. package/dist/garmin/types/hydration.js +1 -1
  24. package/dist/garmin/types/index.d.ts +541 -541
  25. package/dist/garmin/types/index.js +16 -16
  26. package/dist/garmin/types/sleep.d.ts +120 -120
  27. package/dist/garmin/types/sleep.js +2 -2
  28. package/dist/garmin/types/weight.d.ts +42 -42
  29. package/dist/garmin/types/weight.js +2 -2
  30. package/dist/garmin/workouts/Running.d.ts +16 -16
  31. package/dist/garmin/workouts/Running.js +46 -46
  32. package/dist/garmin/workouts/templates/RunningTemplate.d.ts +68 -68
  33. package/dist/garmin/workouts/templates/RunningTemplate.js +77 -77
  34. package/dist/index.d.ts +1 -1
  35. package/dist/index.js +8 -8
  36. package/dist/utils.d.ts +3 -3
  37. package/dist/utils.js +36 -36
  38. package/package.json +1 -1
  39. package/dist/common/CFClient.d.ts +0 -22
  40. package/dist/common/CFClient.js +0 -137
  41. package/dist/common/CFClient.js.map +0 -1
  42. package/dist/common/DateUtils.d.ts +0 -1
  43. package/dist/common/DateUtils.js +0 -11
  44. package/dist/common/DateUtils.js.map +0 -1
  45. package/dist/garmin/GarminConnect copy.d.ts +0 -76
  46. package/dist/garmin/GarminConnect copy.js +0 -397
  47. package/dist/garmin/GarminConnect copy.js.map +0 -1
  48. package/dist/garmin/GarminConnect_new.d.ts +0 -76
  49. package/dist/garmin/GarminConnect_new.js +0 -397
  50. package/dist/garmin/GarminConnect_new.js.map +0 -1
  51. package/dist/garmin/GarminConnect_old.d.ts +0 -75
  52. package/dist/garmin/GarminConnect_old.js +0 -386
  53. package/dist/garmin/GarminConnect_old.js.map +0 -1
  54. package/dist/garmin/Urls copy.d.ts +0 -66
  55. package/dist/garmin/Urls copy.js +0 -109
  56. package/dist/garmin/Urls copy.js.map +0 -1
  57. package/dist/garmin/Urls.d.ts +0 -64
  58. package/dist/garmin/Urls.js +0 -104
  59. package/dist/garmin/Urls.js.map +0 -1
  60. package/dist/garmin/types.d.ts +0 -927
  61. package/dist/garmin/types.js +0 -17
  62. package/dist/garmin/types.js.map +0 -1
@@ -1,17 +1,17 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UploadFileType = exports.ExportFileType = void 0;
4
- var ExportFileType;
5
- (function (ExportFileType) {
6
- ExportFileType["tcx"] = "tcx";
7
- ExportFileType["gpx"] = "gpx";
8
- ExportFileType["kml"] = "kml";
9
- ExportFileType["zip"] = "zip";
10
- })(ExportFileType = exports.ExportFileType || (exports.ExportFileType = {}));
11
- var UploadFileType;
12
- (function (UploadFileType) {
13
- UploadFileType["tcx"] = "tcx";
14
- UploadFileType["gpx"] = "gpx";
15
- UploadFileType["fit"] = "fit";
16
- })(UploadFileType = exports.UploadFileType || (exports.UploadFileType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UploadFileType = exports.ExportFileType = void 0;
4
+ var ExportFileType;
5
+ (function (ExportFileType) {
6
+ ExportFileType["tcx"] = "tcx";
7
+ ExportFileType["gpx"] = "gpx";
8
+ ExportFileType["kml"] = "kml";
9
+ ExportFileType["zip"] = "zip";
10
+ })(ExportFileType = exports.ExportFileType || (exports.ExportFileType = {}));
11
+ var UploadFileType;
12
+ (function (UploadFileType) {
13
+ UploadFileType["tcx"] = "tcx";
14
+ UploadFileType["gpx"] = "gpx";
15
+ UploadFileType["fit"] = "fit";
16
+ })(UploadFileType = exports.UploadFileType || (exports.UploadFileType = {}));
17
17
  //# sourceMappingURL=index.js.map
@@ -1,120 +1,120 @@
1
- export interface SleepDTO {
2
- id: number;
3
- userProfilePK: number;
4
- calendarDate: string;
5
- sleepTimeSeconds: number;
6
- napTimeSeconds: number;
7
- sleepWindowConfirmed: boolean;
8
- sleepWindowConfirmationType: string;
9
- sleepStartTimestampGMT: number;
10
- sleepEndTimestampGMT: number;
11
- sleepStartTimestampLocal: number;
12
- sleepEndTimestampLocal: number;
13
- autoSleepStartTimestampGMT: number | null;
14
- autoSleepEndTimestampGMT: number | null;
15
- sleepQualityTypePK: number | null;
16
- sleepResultTypePK: number | null;
17
- unmeasurableSleepSeconds: number;
18
- deepSleepSeconds: number;
19
- lightSleepSeconds: number;
20
- remSleepSeconds: number;
21
- awakeSleepSeconds: number;
22
- deviceRemCapable: boolean;
23
- retro: boolean;
24
- sleepFromDevice: boolean;
25
- averageRespirationValue: number;
26
- lowestRespirationValue: number;
27
- highestRespirationValue: number;
28
- awakeCount: number;
29
- avgSleepStress: number;
30
- ageGroup: string;
31
- sleepScoreFeedback: string;
32
- sleepScoreInsight: string;
33
- sleepScores: {
34
- totalDuration: {
35
- qualifierKey: string;
36
- optimalStart: number;
37
- optimalEnd: number;
38
- };
39
- stress: {
40
- qualifierKey: string;
41
- optimalStart: number;
42
- optimalEnd: number;
43
- };
44
- awakeCount: {
45
- qualifierKey: string;
46
- optimalStart: number;
47
- optimalEnd: number;
48
- };
49
- overall: {
50
- value: number;
51
- qualifierKey: string;
52
- };
53
- remPercentage: {
54
- value: number;
55
- qualifierKey: string;
56
- optimalStart: number;
57
- optimalEnd: number;
58
- idealStartInSeconds: number;
59
- idealEndInSeconds: number;
60
- };
61
- restlessness: {
62
- qualifierKey: string;
63
- optimalStart: number;
64
- optimalEnd: number;
65
- };
66
- lightPercentage: {
67
- value: number;
68
- qualifierKey: string;
69
- optimalStart: number;
70
- optimalEnd: number;
71
- idealStartInSeconds: number;
72
- idealEndInSeconds: number;
73
- };
74
- deepPercentage: {
75
- value: number;
76
- qualifierKey: string;
77
- optimalStart: number;
78
- optimalEnd: number;
79
- idealStartInSeconds: number;
80
- idealEndInSeconds: number;
81
- };
82
- };
83
- sleepVersion: number;
84
- }
85
- export interface SleepMovement {
86
- startGMT: string;
87
- endGMT: string;
88
- activityLevel: number;
89
- }
90
- export interface SleepLevels {
91
- startGMT: string;
92
- endGMT: string;
93
- activityLevel: number;
94
- }
95
- export interface WellnessEpochRespirationDataDTO {
96
- startTimeGMT: number;
97
- respirationValue: number;
98
- }
99
- export interface SleepHeartRate {
100
- value: number;
101
- startGMT: number;
102
- }
103
- export interface SleepBodyBattery {
104
- value: number;
105
- startGMT: number;
106
- }
107
- export interface SleepData {
108
- dailySleepDTO: SleepDTO;
109
- sleepMovement: SleepMovement[];
110
- remSleepData: boolean;
111
- sleepLevels: SleepLevels[];
112
- restlessMomentsCount: number;
113
- wellnessEpochRespirationDataDTOList: WellnessEpochRespirationDataDTO[];
114
- sleepHeartRate: SleepHeartRate[];
115
- sleepBodyBattery: SleepBodyBattery[];
116
- avgOvernightHrv: number;
117
- hrvStatus: string;
118
- bodyBatteryChange: number;
119
- restingHeartRate: number;
120
- }
1
+ export interface SleepDTO {
2
+ id: number;
3
+ userProfilePK: number;
4
+ calendarDate: string;
5
+ sleepTimeSeconds: number;
6
+ napTimeSeconds: number;
7
+ sleepWindowConfirmed: boolean;
8
+ sleepWindowConfirmationType: string;
9
+ sleepStartTimestampGMT: number;
10
+ sleepEndTimestampGMT: number;
11
+ sleepStartTimestampLocal: number;
12
+ sleepEndTimestampLocal: number;
13
+ autoSleepStartTimestampGMT: number | null;
14
+ autoSleepEndTimestampGMT: number | null;
15
+ sleepQualityTypePK: number | null;
16
+ sleepResultTypePK: number | null;
17
+ unmeasurableSleepSeconds: number;
18
+ deepSleepSeconds: number;
19
+ lightSleepSeconds: number;
20
+ remSleepSeconds: number;
21
+ awakeSleepSeconds: number;
22
+ deviceRemCapable: boolean;
23
+ retro: boolean;
24
+ sleepFromDevice: boolean;
25
+ averageRespirationValue: number;
26
+ lowestRespirationValue: number;
27
+ highestRespirationValue: number;
28
+ awakeCount: number;
29
+ avgSleepStress: number;
30
+ ageGroup: string;
31
+ sleepScoreFeedback: string;
32
+ sleepScoreInsight: string;
33
+ sleepScores: {
34
+ totalDuration: {
35
+ qualifierKey: string;
36
+ optimalStart: number;
37
+ optimalEnd: number;
38
+ };
39
+ stress: {
40
+ qualifierKey: string;
41
+ optimalStart: number;
42
+ optimalEnd: number;
43
+ };
44
+ awakeCount: {
45
+ qualifierKey: string;
46
+ optimalStart: number;
47
+ optimalEnd: number;
48
+ };
49
+ overall: {
50
+ value: number;
51
+ qualifierKey: string;
52
+ };
53
+ remPercentage: {
54
+ value: number;
55
+ qualifierKey: string;
56
+ optimalStart: number;
57
+ optimalEnd: number;
58
+ idealStartInSeconds: number;
59
+ idealEndInSeconds: number;
60
+ };
61
+ restlessness: {
62
+ qualifierKey: string;
63
+ optimalStart: number;
64
+ optimalEnd: number;
65
+ };
66
+ lightPercentage: {
67
+ value: number;
68
+ qualifierKey: string;
69
+ optimalStart: number;
70
+ optimalEnd: number;
71
+ idealStartInSeconds: number;
72
+ idealEndInSeconds: number;
73
+ };
74
+ deepPercentage: {
75
+ value: number;
76
+ qualifierKey: string;
77
+ optimalStart: number;
78
+ optimalEnd: number;
79
+ idealStartInSeconds: number;
80
+ idealEndInSeconds: number;
81
+ };
82
+ };
83
+ sleepVersion: number;
84
+ }
85
+ export interface SleepMovement {
86
+ startGMT: string;
87
+ endGMT: string;
88
+ activityLevel: number;
89
+ }
90
+ export interface SleepLevels {
91
+ startGMT: string;
92
+ endGMT: string;
93
+ activityLevel: number;
94
+ }
95
+ export interface WellnessEpochRespirationDataDTO {
96
+ startTimeGMT: number;
97
+ respirationValue: number;
98
+ }
99
+ export interface SleepHeartRate {
100
+ value: number;
101
+ startGMT: number;
102
+ }
103
+ export interface SleepBodyBattery {
104
+ value: number;
105
+ startGMT: number;
106
+ }
107
+ export interface SleepData {
108
+ dailySleepDTO: SleepDTO;
109
+ sleepMovement: SleepMovement[];
110
+ remSleepData: boolean;
111
+ sleepLevels: SleepLevels[];
112
+ restlessMomentsCount: number;
113
+ wellnessEpochRespirationDataDTOList: WellnessEpochRespirationDataDTO[];
114
+ sleepHeartRate: SleepHeartRate[];
115
+ sleepBodyBattery: SleepBodyBattery[];
116
+ avgOvernightHrv: number;
117
+ hrvStatus: string;
118
+ bodyBatteryChange: number;
119
+ restingHeartRate: number;
120
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=sleep.js.map
@@ -1,42 +1,42 @@
1
- interface DateWeight {
2
- samplePk: number;
3
- date: number;
4
- calendarDate: string;
5
- weight: number;
6
- bmi: number | null;
7
- bodyFat: number | null;
8
- bodyWater: number | null;
9
- boneMass: number | null;
10
- muscleMass: number | null;
11
- physiqueRating: number | null;
12
- visceralFat: number | null;
13
- metabolicAge: number | null;
14
- sourceType: string;
15
- timestampGMT: number;
16
- weightDelta: number;
17
- }
18
- interface TotalAverage {
19
- from: number;
20
- until: number;
21
- weight: number;
22
- bmi: number | null;
23
- bodyFat: number | null;
24
- bodyWater: number | null;
25
- boneMass: number | null;
26
- muscleMass: number | null;
27
- physiqueRating: number | null;
28
- visceralFat: number | null;
29
- metabolicAge: number | null;
30
- }
31
- interface WeightData {
32
- startDate: string;
33
- endDate: string;
34
- dateWeightList: DateWeight[];
35
- totalAverage: TotalAverage;
36
- }
37
- interface UpdateWeight {
38
- dateTimestamp: string;
39
- gmtTimestamp: string;
40
- unitKey: string;
41
- value: number;
42
- }
1
+ interface DateWeight {
2
+ samplePk: number;
3
+ date: number;
4
+ calendarDate: string;
5
+ weight: number;
6
+ bmi: number | null;
7
+ bodyFat: number | null;
8
+ bodyWater: number | null;
9
+ boneMass: number | null;
10
+ muscleMass: number | null;
11
+ physiqueRating: number | null;
12
+ visceralFat: number | null;
13
+ metabolicAge: number | null;
14
+ sourceType: string;
15
+ timestampGMT: number;
16
+ weightDelta: number;
17
+ }
18
+ interface TotalAverage {
19
+ from: number;
20
+ until: number;
21
+ weight: number;
22
+ bmi: number | null;
23
+ bodyFat: number | null;
24
+ bodyWater: number | null;
25
+ boneMass: number | null;
26
+ muscleMass: number | null;
27
+ physiqueRating: number | null;
28
+ visceralFat: number | null;
29
+ metabolicAge: number | null;
30
+ }
31
+ interface WeightData {
32
+ startDate: string;
33
+ endDate: string;
34
+ dateWeightList: DateWeight[];
35
+ totalAverage: TotalAverage;
36
+ }
37
+ interface UpdateWeight {
38
+ dateTimestamp: string;
39
+ gmtTimestamp: string;
40
+ unitKey: string;
41
+ value: number;
42
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- // weight-service/weight/dayview/2023-12-28
1
+ "use strict";
2
+ // weight-service/weight/dayview/2023-12-28
3
3
  //# sourceMappingURL=weight.js.map
@@ -1,16 +1,16 @@
1
- import { IRunningWorkout } from './templates/RunningTemplate';
2
- export default class Running {
3
- private data;
4
- constructor();
5
- get name(): string;
6
- set name(name: string);
7
- get distance(): number;
8
- set distance(meters: number);
9
- get workoutId(): string | undefined;
10
- set workoutId(workoutId: string | undefined);
11
- get description(): string | undefined;
12
- set description(description: string | undefined);
13
- isValid(): boolean;
14
- toJson(): IRunningWorkout;
15
- toString(): string;
16
- }
1
+ import { IRunningWorkout } from './templates/RunningTemplate';
2
+ export default class Running {
3
+ private data;
4
+ constructor();
5
+ get name(): string;
6
+ set name(name: string);
7
+ get distance(): number;
8
+ set distance(meters: number);
9
+ get workoutId(): string | undefined;
10
+ set workoutId(workoutId: string | undefined);
11
+ get description(): string | undefined;
12
+ set description(description: string | undefined);
13
+ isValid(): boolean;
14
+ toJson(): IRunningWorkout;
15
+ toString(): string;
16
+ }
@@ -1,47 +1,47 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const RunningTemplate_1 = __importDefault(require("./templates/RunningTemplate"));
7
- class Running {
8
- constructor() {
9
- this.data = (0, RunningTemplate_1.default)();
10
- }
11
- get name() {
12
- return this.data.workoutName;
13
- }
14
- set name(name) {
15
- this.data.workoutName = `${name}`;
16
- }
17
- get distance() {
18
- return (this.data.workoutSegments[0].workoutSteps[0].endConditionValue || 0);
19
- }
20
- set distance(meters) {
21
- this.data.workoutSegments[0].workoutSteps[0].endConditionValue =
22
- Math.round(meters);
23
- }
24
- get workoutId() {
25
- return this.data.workoutId;
26
- }
27
- set workoutId(workoutId) {
28
- this.data.workoutId = workoutId;
29
- }
30
- get description() {
31
- return this.data.description;
32
- }
33
- set description(description) {
34
- this.data.description = description;
35
- }
36
- isValid() {
37
- return !!(this.name && this.distance);
38
- }
39
- toJson() {
40
- return this.data;
41
- }
42
- toString() {
43
- return `${this.name}, ${(this.distance / 1000).toFixed(2)}km`;
44
- }
45
- }
46
- exports.default = Running;
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const RunningTemplate_1 = __importDefault(require("./templates/RunningTemplate"));
7
+ class Running {
8
+ constructor() {
9
+ this.data = (0, RunningTemplate_1.default)();
10
+ }
11
+ get name() {
12
+ return this.data.workoutName;
13
+ }
14
+ set name(name) {
15
+ this.data.workoutName = `${name}`;
16
+ }
17
+ get distance() {
18
+ return (this.data.workoutSegments[0].workoutSteps[0].endConditionValue || 0);
19
+ }
20
+ set distance(meters) {
21
+ this.data.workoutSegments[0].workoutSteps[0].endConditionValue =
22
+ Math.round(meters);
23
+ }
24
+ get workoutId() {
25
+ return this.data.workoutId;
26
+ }
27
+ set workoutId(workoutId) {
28
+ this.data.workoutId = workoutId;
29
+ }
30
+ get description() {
31
+ return this.data.description;
32
+ }
33
+ set description(description) {
34
+ this.data.description = description;
35
+ }
36
+ isValid() {
37
+ return !!(this.name && this.distance);
38
+ }
39
+ toJson() {
40
+ return this.data;
41
+ }
42
+ toString() {
43
+ return `${this.name}, ${(this.distance / 1000).toFixed(2)}km`;
44
+ }
45
+ }
46
+ exports.default = Running;
47
47
  //# sourceMappingURL=Running.js.map
@@ -1,68 +1,68 @@
1
- export interface ISportType {
2
- sportTypeId: number;
3
- sportTypeKey: SportTypeKey;
4
- }
5
- declare enum SportTypeKey {
6
- running = "running"
7
- }
8
- export interface IRunningWorkout {
9
- workoutId: string | undefined;
10
- description: string | undefined;
11
- sportType: ISportType;
12
- workoutName: string;
13
- workoutSegments: IWorkoutSegment[];
14
- }
15
- export interface IWorkoutSegment {
16
- segmentOrder: number;
17
- sportType: ISportType;
18
- workoutSteps: IWorkoutStep[];
19
- }
20
- export interface IWorkoutStep {
21
- type: WorkoutStepType;
22
- stepId: unknown;
23
- stepOrder: number;
24
- childStepId: unknown;
25
- description: string | null;
26
- stepType: IStepType;
27
- endCondition: IEndCondition;
28
- preferredEndConditionUnit: IPreferredEndConditionUnit;
29
- endConditionValue: number | null;
30
- endConditionCompare: null;
31
- endConditionZone: null;
32
- targetType: ITargetType;
33
- targetValueOne: null;
34
- targetValueTwo: null;
35
- zoneNumber: null;
36
- }
37
- declare enum WorkoutStepType {
38
- executableStepDTO = "ExecutableStepDTO"
39
- }
40
- export interface IStepType {
41
- stepTypeId: number;
42
- stepTypeKey: StepTypeKey;
43
- }
44
- declare enum StepTypeKey {
45
- interval = "interval"
46
- }
47
- export interface IEndCondition {
48
- conditionTypeKey: ConditionTypeKey;
49
- conditionTypeId: number;
50
- }
51
- declare enum ConditionTypeKey {
52
- distance = "distance"
53
- }
54
- export interface IPreferredEndConditionUnit {
55
- unitKey: UnitKey;
56
- }
57
- declare enum UnitKey {
58
- kilometer = "kilometer"
59
- }
60
- export interface ITargetType {
61
- workoutTargetTypeId: number;
62
- workoutTargetTypeKey: WorkoutTargetTypeKey;
63
- }
64
- declare enum WorkoutTargetTypeKey {
65
- noTarget = "no.target"
66
- }
67
- export default function (): IRunningWorkout;
68
- export {};
1
+ export interface ISportType {
2
+ sportTypeId: number;
3
+ sportTypeKey: SportTypeKey;
4
+ }
5
+ declare enum SportTypeKey {
6
+ running = "running"
7
+ }
8
+ export interface IRunningWorkout {
9
+ workoutId: string | undefined;
10
+ description: string | undefined;
11
+ sportType: ISportType;
12
+ workoutName: string;
13
+ workoutSegments: IWorkoutSegment[];
14
+ }
15
+ export interface IWorkoutSegment {
16
+ segmentOrder: number;
17
+ sportType: ISportType;
18
+ workoutSteps: IWorkoutStep[];
19
+ }
20
+ export interface IWorkoutStep {
21
+ type: WorkoutStepType;
22
+ stepId: unknown;
23
+ stepOrder: number;
24
+ childStepId: unknown;
25
+ description: string | null;
26
+ stepType: IStepType;
27
+ endCondition: IEndCondition;
28
+ preferredEndConditionUnit: IPreferredEndConditionUnit;
29
+ endConditionValue: number | null;
30
+ endConditionCompare: null;
31
+ endConditionZone: null;
32
+ targetType: ITargetType;
33
+ targetValueOne: null;
34
+ targetValueTwo: null;
35
+ zoneNumber: null;
36
+ }
37
+ declare enum WorkoutStepType {
38
+ executableStepDTO = "ExecutableStepDTO"
39
+ }
40
+ export interface IStepType {
41
+ stepTypeId: number;
42
+ stepTypeKey: StepTypeKey;
43
+ }
44
+ declare enum StepTypeKey {
45
+ interval = "interval"
46
+ }
47
+ export interface IEndCondition {
48
+ conditionTypeKey: ConditionTypeKey;
49
+ conditionTypeId: number;
50
+ }
51
+ declare enum ConditionTypeKey {
52
+ distance = "distance"
53
+ }
54
+ export interface IPreferredEndConditionUnit {
55
+ unitKey: UnitKey;
56
+ }
57
+ declare enum UnitKey {
58
+ kilometer = "kilometer"
59
+ }
60
+ export interface ITargetType {
61
+ workoutTargetTypeId: number;
62
+ workoutTargetTypeKey: WorkoutTargetTypeKey;
63
+ }
64
+ declare enum WorkoutTargetTypeKey {
65
+ noTarget = "no.target"
66
+ }
67
+ export default function (): IRunningWorkout;
68
+ export {};