@capgo/capacitor-health 8.2.18 → 8.3.1

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/README.md CHANGED
@@ -610,14 +610,14 @@ Supported on iOS (HealthKit) and Android (Health Connect).
610
610
 
611
611
  #### QueryWorkoutsOptions
612
612
 
613
- | Prop | Type | Description |
614
- | ----------------- | --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
615
- | **`workoutType`** | <code><a href="#workouttype">WorkoutType</a></code> | Optional workout type filter. If omitted, all workout types are returned. |
616
- | **`startDate`** | <code>string</code> | Inclusive ISO 8601 start date (defaults to now - 1 day). |
617
- | **`endDate`** | <code>string</code> | Exclusive ISO 8601 end date (defaults to now). |
618
- | **`limit`** | <code>number</code> | Maximum number of workouts to return (defaults to 100). |
619
- | **`ascending`** | <code>boolean</code> | Return results sorted ascending by start date (defaults to false). |
620
- | **`anchor`** | <code>string</code> | Anchor for pagination. Use the anchor returned from a previous query to continue from that point. On iOS, this uses HKQueryAnchor. On Android, this uses Health Connect's pageToken. Omit this parameter to start from the beginning. |
613
+ | Prop | Type | Description |
614
+ | ----------------- | --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
615
+ | **`workoutType`** | <code><a href="#workouttype">WorkoutType</a></code> | Optional workout type filter. If omitted, all workout types are returned. |
616
+ | **`startDate`** | <code>string</code> | Inclusive ISO 8601 start date (defaults to now - 1 day). |
617
+ | **`endDate`** | <code>string</code> | Exclusive ISO 8601 end date (defaults to now). |
618
+ | **`limit`** | <code>number</code> | Maximum number of workouts to return (defaults to 100). |
619
+ | **`ascending`** | <code>boolean</code> | Return results sorted ascending by start date (defaults to false). |
620
+ | **`anchor`** | <code>string</code> | Anchor for pagination. Use the anchor returned from a previous query to continue from that point. On iOS, this is the ISO 8601 cursor returned by the previous query. On Android, this uses Health Connect's pageToken. Omit this parameter to start from the beginning. |
621
621
 
622
622
 
623
623
  #### QueryAggregatedResult
@@ -675,7 +675,7 @@ Construct a type with a set of properties K of type T
675
675
 
676
676
  #### WorkoutType
677
677
 
678
- <code>'running' | 'cycling' | 'walking' | 'swimming' | 'yoga' | 'strengthTraining' | 'hiking' | 'tennis' | 'basketball' | 'soccer' | 'americanFootball' | 'baseball' | 'crossTraining' | 'elliptical' | 'rowing' | 'stairClimbing' | 'traditionalStrengthTraining' | 'waterFitness' | 'waterPolo' | 'waterSports' | 'wrestling' | 'other'</code>
678
+ <code>'americanFootball' | 'australianFootball' | 'badminton' | 'baseball' | 'basketball' | 'bowling' | 'boxing' | 'climbing' | 'cricket' | 'crossTraining' | 'curling' | 'cycling' | 'dance' | 'elliptical' | 'fencing' | 'functionalStrengthTraining' | 'golf' | 'gymnastics' | 'handball' | 'hiking' | 'hockey' | 'jumpRope' | 'kickboxing' | 'lacrosse' | 'martialArts' | 'pilates' | 'racquetball' | 'rowing' | 'rugby' | 'running' | 'sailing' | 'skatingSports' | 'skiing' | 'snowboarding' | 'soccer' | 'softball' | 'squash' | 'stairClimbing' | 'strengthTraining' | 'surfing' | 'swimming' | 'swimmingPool' | 'swimmingOpenWater' | 'tableTennis' | 'tennis' | 'trackAndField' | 'traditionalStrengthTraining' | 'volleyball' | 'walking' | 'waterFitness' | 'waterPolo' | 'waterSports' | 'weightlifting' | 'wheelchair' | 'yoga' | 'archery' | 'barre' | 'cooldown' | 'coreTraining' | 'crossCountrySkiing' | 'discSports' | 'downhillSkiing' | 'equestrianSports' | 'fishing' | 'fitnessGaming' | 'flexibility' | 'handCycling' | 'highIntensityIntervalTraining' | 'hunting' | 'mindAndBody' | 'mixedCardio' | 'paddleSports' | 'pickleball' | 'play' | 'preparationAndRecovery' | 'snowSports' | 'stairs' | 'stepTraining' | 'surfingSports' | 'taiChi' | 'transition' | 'underwaterDiving' | 'wheelchairRunPace' | 'wheelchairWalkPace' | 'wrestling' | 'cardioDance' | 'socialDance' | 'backExtension' | 'barbellShoulderPress' | 'benchPress' | 'benchSitUp' | 'bikingStationary' | 'bootCamp' | 'burpee' | 'calisthenics' | 'crunch' | 'dancing' | 'deadlift' | 'dumbbellCurlLeftArm' | 'dumbbellCurlRightArm' | 'dumbbellFrontRaise' | 'dumbbellLateralRaise' | 'dumbbellTricepsExtensionLeftArm' | 'dumbbellTricepsExtensionRightArm' | 'dumbbellTricepsExtensionTwoArm' | 'exerciseClass' | 'forwardTwist' | 'frisbeedisc' | 'guidedBreathing' | 'iceHockey' | 'iceSkating' | 'jumpingJack' | 'latPullDown' | 'lunge' | 'meditation' | 'paddling' | 'paraGliding' | 'plank' | 'rockClimbing' | 'rollerHockey' | 'rowingMachine' | 'runningTreadmill' | 'scubaDiving' | 'skating' | 'snowshoeing' | 'stairClimbingMachine' | 'stretching' | 'upperTwist' | 'other'</code>
679
679
 
680
680
 
681
681
  #### BucketType
@@ -2,32 +2,113 @@ package app.capgo.plugin.health
2
2
 
3
3
  import androidx.health.connect.client.records.ExerciseSessionRecord
4
4
 
5
+ /**
6
+ * Maps plugin workout strings to Android Health Connect exercise types.
7
+ *
8
+ * Several plugin workout types intentionally share the same Android exercise type. The plugin
9
+ * accepts both cross-platform names and platform-specific aliases when filtering workouts.
10
+ */
5
11
  object WorkoutType {
6
12
  fun fromString(type: String?): Int? {
7
13
  if (type.isNullOrBlank()) return null
8
-
14
+
9
15
  return when (type) {
10
- "running" -> ExerciseSessionRecord.EXERCISE_TYPE_RUNNING
11
- "cycling" -> ExerciseSessionRecord.EXERCISE_TYPE_BIKING
12
- "walking" -> ExerciseSessionRecord.EXERCISE_TYPE_WALKING
13
- "swimming" -> ExerciseSessionRecord.EXERCISE_TYPE_SWIMMING_POOL
14
- "yoga" -> ExerciseSessionRecord.EXERCISE_TYPE_YOGA
15
- "strengthTraining" -> ExerciseSessionRecord.EXERCISE_TYPE_STRENGTH_TRAINING
16
- "hiking" -> ExerciseSessionRecord.EXERCISE_TYPE_HIKING
17
- "tennis" -> ExerciseSessionRecord.EXERCISE_TYPE_TENNIS
18
- "basketball" -> ExerciseSessionRecord.EXERCISE_TYPE_BASKETBALL
19
- "soccer" -> ExerciseSessionRecord.EXERCISE_TYPE_SOCCER
20
16
  "americanFootball" -> ExerciseSessionRecord.EXERCISE_TYPE_FOOTBALL_AMERICAN
17
+ "australianFootball" -> ExerciseSessionRecord.EXERCISE_TYPE_FOOTBALL_AUSTRALIAN
18
+ "badminton" -> ExerciseSessionRecord.EXERCISE_TYPE_BADMINTON
21
19
  "baseball" -> ExerciseSessionRecord.EXERCISE_TYPE_BASEBALL
22
- "crossTraining" -> ExerciseSessionRecord.EXERCISE_TYPE_HIGH_INTENSITY_INTERVAL_TRAINING
20
+ "basketball" -> ExerciseSessionRecord.EXERCISE_TYPE_BASKETBALL
21
+ "bowling" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
22
+ "boxing" -> ExerciseSessionRecord.EXERCISE_TYPE_BOXING
23
+ "climbing", "rockClimbing" -> ExerciseSessionRecord.EXERCISE_TYPE_ROCK_CLIMBING
24
+ "cricket" -> ExerciseSessionRecord.EXERCISE_TYPE_CRICKET
25
+ "crossTraining", "highIntensityIntervalTraining" -> ExerciseSessionRecord.EXERCISE_TYPE_HIGH_INTENSITY_INTERVAL_TRAINING
26
+ "curling" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
27
+ "cycling" -> ExerciseSessionRecord.EXERCISE_TYPE_BIKING
28
+ "dancing", "dance", "cardioDance", "socialDance" -> ExerciseSessionRecord.EXERCISE_TYPE_DANCING
23
29
  "elliptical" -> ExerciseSessionRecord.EXERCISE_TYPE_ELLIPTICAL
30
+ "fencing" -> ExerciseSessionRecord.EXERCISE_TYPE_FENCING
31
+ "functionalStrengthTraining", "strengthTraining", "traditionalStrengthTraining", "coreTraining" -> ExerciseSessionRecord.EXERCISE_TYPE_STRENGTH_TRAINING
32
+ "golf" -> ExerciseSessionRecord.EXERCISE_TYPE_GOLF
33
+ "gymnastics" -> ExerciseSessionRecord.EXERCISE_TYPE_GYMNASTICS
34
+ "handball" -> ExerciseSessionRecord.EXERCISE_TYPE_HANDBALL
35
+ "hiking" -> ExerciseSessionRecord.EXERCISE_TYPE_HIKING
36
+ "hockey", "iceHockey" -> ExerciseSessionRecord.EXERCISE_TYPE_ICE_HOCKEY
37
+ "jumpRope" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
38
+ "kickboxing", "martialArts", "taiChi", "wrestling" -> ExerciseSessionRecord.EXERCISE_TYPE_MARTIAL_ARTS
39
+ "lacrosse" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
40
+ "mindAndBody", "meditation" -> ExerciseSessionRecord.EXERCISE_TYPE_YOGA
41
+ "mixedCardio", "calisthenics" -> ExerciseSessionRecord.EXERCISE_TYPE_CALISTHENICS
42
+ "paddleSports", "paddling" -> ExerciseSessionRecord.EXERCISE_TYPE_PADDLING
43
+ "pickleball" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
44
+ "pilates" -> ExerciseSessionRecord.EXERCISE_TYPE_PILATES
45
+ "play" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
46
+ "preparationAndRecovery", "flexibility", "stretching" -> ExerciseSessionRecord.EXERCISE_TYPE_STRETCHING
47
+ "racquetball" -> ExerciseSessionRecord.EXERCISE_TYPE_RACQUETBALL
24
48
  "rowing" -> ExerciseSessionRecord.EXERCISE_TYPE_ROWING
25
- "stairClimbing" -> ExerciseSessionRecord.EXERCISE_TYPE_STAIR_CLIMBING
26
- "traditionalStrengthTraining" -> ExerciseSessionRecord.EXERCISE_TYPE_STRENGTH_TRAINING
27
- "waterFitness" -> ExerciseSessionRecord.EXERCISE_TYPE_SWIMMING_POOL
49
+ "rowingMachine" -> ExerciseSessionRecord.EXERCISE_TYPE_ROWING_MACHINE
50
+ "rugby" -> ExerciseSessionRecord.EXERCISE_TYPE_RUGBY
51
+ "running" -> ExerciseSessionRecord.EXERCISE_TYPE_RUNNING
52
+ "runningTreadmill" -> ExerciseSessionRecord.EXERCISE_TYPE_RUNNING_TREADMILL
53
+ "sailing" -> ExerciseSessionRecord.EXERCISE_TYPE_SAILING
54
+ "skatingSports" -> ExerciseSessionRecord.EXERCISE_TYPE_SKATING
55
+ "skating" -> ExerciseSessionRecord.EXERCISE_TYPE_SKATING
56
+ "skiing", "crossCountrySkiing", "downhillSkiing" -> ExerciseSessionRecord.EXERCISE_TYPE_SKIING
57
+ "snowboarding" -> ExerciseSessionRecord.EXERCISE_TYPE_SNOWBOARDING
58
+ "snowSports", "snowshoeing" -> ExerciseSessionRecord.EXERCISE_TYPE_SNOWSHOEING
59
+ "soccer" -> ExerciseSessionRecord.EXERCISE_TYPE_SOCCER
60
+ "softball" -> ExerciseSessionRecord.EXERCISE_TYPE_SOFTBALL
61
+ "squash" -> ExerciseSessionRecord.EXERCISE_TYPE_SQUASH
62
+ "stairClimbing", "stairs" -> ExerciseSessionRecord.EXERCISE_TYPE_STAIR_CLIMBING
63
+ "stepTraining", "stairClimbingMachine" -> ExerciseSessionRecord.EXERCISE_TYPE_STAIR_CLIMBING_MACHINE
64
+ "surfing", "surfingSports" -> ExerciseSessionRecord.EXERCISE_TYPE_SURFING
65
+ "swimming", "swimmingPool", "waterFitness" -> ExerciseSessionRecord.EXERCISE_TYPE_SWIMMING_POOL
66
+ "swimmingOpenWater", "waterSports" -> ExerciseSessionRecord.EXERCISE_TYPE_SWIMMING_OPEN_WATER
67
+ "tableTennis" -> ExerciseSessionRecord.EXERCISE_TYPE_TABLE_TENNIS
68
+ "tennis" -> ExerciseSessionRecord.EXERCISE_TYPE_TENNIS
69
+ "trackAndField" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
70
+ "underwaterDiving", "scubaDiving" -> ExerciseSessionRecord.EXERCISE_TYPE_SCUBA_DIVING
71
+ "volleyball" -> ExerciseSessionRecord.EXERCISE_TYPE_VOLLEYBALL
72
+ "walking" -> ExerciseSessionRecord.EXERCISE_TYPE_WALKING
28
73
  "waterPolo" -> ExerciseSessionRecord.EXERCISE_TYPE_WATER_POLO
29
- "waterSports" -> ExerciseSessionRecord.EXERCISE_TYPE_SWIMMING_OPEN_WATER
30
- "wrestling" -> ExerciseSessionRecord.EXERCISE_TYPE_MARTIAL_ARTS
74
+ "weightlifting" -> ExerciseSessionRecord.EXERCISE_TYPE_WEIGHTLIFTING
75
+ "wheelchair", "wheelchairRunPace", "wheelchairWalkPace", "handCycling" -> ExerciseSessionRecord.EXERCISE_TYPE_WHEELCHAIR
76
+ "yoga" -> ExerciseSessionRecord.EXERCISE_TYPE_YOGA
77
+ "archery" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
78
+ "barre" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
79
+ "cooldown" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
80
+ "discSports", "frisbeedisc" -> ExerciseSessionRecord.EXERCISE_TYPE_FRISBEE_DISC
81
+ "equestrianSports" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
82
+ "fishing" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
83
+ "fitnessGaming" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
84
+ "hunting" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
85
+ "transition" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
86
+ "backExtension",
87
+ "barbellShoulderPress",
88
+ "benchPress",
89
+ "benchSitUp",
90
+ "crunch",
91
+ "deadlift",
92
+ "dumbbellCurlLeftArm",
93
+ "dumbbellCurlRightArm",
94
+ "dumbbellFrontRaise",
95
+ "dumbbellLateralRaise",
96
+ "dumbbellTricepsExtensionLeftArm",
97
+ "dumbbellTricepsExtensionRightArm",
98
+ "dumbbellTricepsExtensionTwoArm",
99
+ "forwardTwist",
100
+ "latPullDown",
101
+ "lunge",
102
+ "plank",
103
+ "upperTwist" -> ExerciseSessionRecord.EXERCISE_TYPE_STRENGTH_TRAINING
104
+ "bikingStationary" -> ExerciseSessionRecord.EXERCISE_TYPE_BIKING_STATIONARY
105
+ "bootCamp" -> ExerciseSessionRecord.EXERCISE_TYPE_BOOT_CAMP
106
+ "burpee", "jumpingJack" -> ExerciseSessionRecord.EXERCISE_TYPE_CALISTHENICS
107
+ "exerciseClass" -> ExerciseSessionRecord.EXERCISE_TYPE_EXERCISE_CLASS
108
+ "guidedBreathing" -> ExerciseSessionRecord.EXERCISE_TYPE_GUIDED_BREATHING
109
+ "iceSkating" -> ExerciseSessionRecord.EXERCISE_TYPE_ICE_SKATING
110
+ "paraGliding" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
111
+ "rollerHockey" -> ExerciseSessionRecord.EXERCISE_TYPE_ROLLER_HOCKEY
31
112
  "other" -> ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT
32
113
  else -> null
33
114
  }
@@ -35,28 +116,65 @@ object WorkoutType {
35
116
 
36
117
  fun toWorkoutTypeString(exerciseType: Int): String {
37
118
  return when (exerciseType) {
38
- ExerciseSessionRecord.EXERCISE_TYPE_RUNNING -> "running"
39
- ExerciseSessionRecord.EXERCISE_TYPE_BIKING -> "cycling"
40
- ExerciseSessionRecord.EXERCISE_TYPE_BIKING_STATIONARY -> "cycling"
41
- ExerciseSessionRecord.EXERCISE_TYPE_WALKING -> "walking"
42
- ExerciseSessionRecord.EXERCISE_TYPE_SWIMMING_POOL -> "swimming"
43
- ExerciseSessionRecord.EXERCISE_TYPE_SWIMMING_OPEN_WATER -> "swimming"
44
- ExerciseSessionRecord.EXERCISE_TYPE_YOGA -> "yoga"
45
- ExerciseSessionRecord.EXERCISE_TYPE_STRENGTH_TRAINING -> "strengthTraining"
46
- ExerciseSessionRecord.EXERCISE_TYPE_HIKING -> "hiking"
47
- ExerciseSessionRecord.EXERCISE_TYPE_TENNIS -> "tennis"
48
- ExerciseSessionRecord.EXERCISE_TYPE_BASKETBALL -> "basketball"
49
- ExerciseSessionRecord.EXERCISE_TYPE_SOCCER -> "soccer"
50
119
  ExerciseSessionRecord.EXERCISE_TYPE_FOOTBALL_AMERICAN -> "americanFootball"
120
+ ExerciseSessionRecord.EXERCISE_TYPE_FOOTBALL_AUSTRALIAN -> "australianFootball"
121
+ ExerciseSessionRecord.EXERCISE_TYPE_BADMINTON -> "badminton"
51
122
  ExerciseSessionRecord.EXERCISE_TYPE_BASEBALL -> "baseball"
123
+ ExerciseSessionRecord.EXERCISE_TYPE_BASKETBALL -> "basketball"
124
+ ExerciseSessionRecord.EXERCISE_TYPE_BOXING -> "boxing"
125
+ ExerciseSessionRecord.EXERCISE_TYPE_ROCK_CLIMBING -> "climbing"
126
+ ExerciseSessionRecord.EXERCISE_TYPE_CRICKET -> "cricket"
52
127
  ExerciseSessionRecord.EXERCISE_TYPE_HIGH_INTENSITY_INTERVAL_TRAINING -> "crossTraining"
128
+ ExerciseSessionRecord.EXERCISE_TYPE_BIKING -> "cycling"
129
+ ExerciseSessionRecord.EXERCISE_TYPE_BIKING_STATIONARY -> "bikingStationary"
130
+ ExerciseSessionRecord.EXERCISE_TYPE_DANCING -> "dancing"
53
131
  ExerciseSessionRecord.EXERCISE_TYPE_ELLIPTICAL -> "elliptical"
132
+ ExerciseSessionRecord.EXERCISE_TYPE_FENCING -> "fencing"
133
+ ExerciseSessionRecord.EXERCISE_TYPE_GOLF -> "golf"
134
+ ExerciseSessionRecord.EXERCISE_TYPE_GYMNASTICS -> "gymnastics"
135
+ ExerciseSessionRecord.EXERCISE_TYPE_HANDBALL -> "handball"
136
+ ExerciseSessionRecord.EXERCISE_TYPE_HIKING -> "hiking"
137
+ ExerciseSessionRecord.EXERCISE_TYPE_ICE_HOCKEY -> "iceHockey"
138
+ ExerciseSessionRecord.EXERCISE_TYPE_ICE_SKATING -> "iceSkating"
139
+ ExerciseSessionRecord.EXERCISE_TYPE_MARTIAL_ARTS -> "martialArts"
140
+ ExerciseSessionRecord.EXERCISE_TYPE_PILATES -> "pilates"
141
+ ExerciseSessionRecord.EXERCISE_TYPE_RACQUETBALL -> "racquetball"
54
142
  ExerciseSessionRecord.EXERCISE_TYPE_ROWING -> "rowing"
55
- ExerciseSessionRecord.EXERCISE_TYPE_ROWING_MACHINE -> "rowing"
143
+ ExerciseSessionRecord.EXERCISE_TYPE_ROWING_MACHINE -> "rowingMachine"
144
+ ExerciseSessionRecord.EXERCISE_TYPE_RUGBY -> "rugby"
145
+ ExerciseSessionRecord.EXERCISE_TYPE_RUNNING -> "running"
146
+ ExerciseSessionRecord.EXERCISE_TYPE_RUNNING_TREADMILL -> "runningTreadmill"
147
+ ExerciseSessionRecord.EXERCISE_TYPE_SAILING -> "sailing"
148
+ ExerciseSessionRecord.EXERCISE_TYPE_SKATING -> "skating"
149
+ ExerciseSessionRecord.EXERCISE_TYPE_SKIING -> "skiing"
150
+ ExerciseSessionRecord.EXERCISE_TYPE_SNOWBOARDING -> "snowboarding"
151
+ ExerciseSessionRecord.EXERCISE_TYPE_SNOWSHOEING -> "snowshoeing"
152
+ ExerciseSessionRecord.EXERCISE_TYPE_SOCCER -> "soccer"
153
+ ExerciseSessionRecord.EXERCISE_TYPE_SOFTBALL -> "softball"
154
+ ExerciseSessionRecord.EXERCISE_TYPE_SQUASH -> "squash"
56
155
  ExerciseSessionRecord.EXERCISE_TYPE_STAIR_CLIMBING -> "stairClimbing"
57
- ExerciseSessionRecord.EXERCISE_TYPE_STAIR_CLIMBING_MACHINE -> "stairClimbing"
156
+ ExerciseSessionRecord.EXERCISE_TYPE_STAIR_CLIMBING_MACHINE -> "stairClimbingMachine"
157
+ ExerciseSessionRecord.EXERCISE_TYPE_STRENGTH_TRAINING -> "strengthTraining"
158
+ ExerciseSessionRecord.EXERCISE_TYPE_STRETCHING -> "stretching"
159
+ ExerciseSessionRecord.EXERCISE_TYPE_SURFING -> "surfing"
160
+ ExerciseSessionRecord.EXERCISE_TYPE_SWIMMING_POOL -> "swimmingPool"
161
+ ExerciseSessionRecord.EXERCISE_TYPE_SWIMMING_OPEN_WATER -> "swimmingOpenWater"
162
+ ExerciseSessionRecord.EXERCISE_TYPE_TABLE_TENNIS -> "tableTennis"
163
+ ExerciseSessionRecord.EXERCISE_TYPE_TENNIS -> "tennis"
164
+ ExerciseSessionRecord.EXERCISE_TYPE_VOLLEYBALL -> "volleyball"
165
+ ExerciseSessionRecord.EXERCISE_TYPE_WALKING -> "walking"
58
166
  ExerciseSessionRecord.EXERCISE_TYPE_WATER_POLO -> "waterPolo"
59
- ExerciseSessionRecord.EXERCISE_TYPE_MARTIAL_ARTS -> "wrestling"
167
+ ExerciseSessionRecord.EXERCISE_TYPE_WEIGHTLIFTING -> "weightlifting"
168
+ ExerciseSessionRecord.EXERCISE_TYPE_WHEELCHAIR -> "wheelchair"
169
+ ExerciseSessionRecord.EXERCISE_TYPE_YOGA -> "yoga"
170
+ ExerciseSessionRecord.EXERCISE_TYPE_BOOT_CAMP -> "bootCamp"
171
+ ExerciseSessionRecord.EXERCISE_TYPE_CALISTHENICS -> "calisthenics"
172
+ ExerciseSessionRecord.EXERCISE_TYPE_EXERCISE_CLASS -> "exerciseClass"
173
+ ExerciseSessionRecord.EXERCISE_TYPE_FRISBEE_DISC -> "frisbeedisc"
174
+ ExerciseSessionRecord.EXERCISE_TYPE_GUIDED_BREATHING -> "guidedBreathing"
175
+ ExerciseSessionRecord.EXERCISE_TYPE_PADDLING -> "paddling"
176
+ ExerciseSessionRecord.EXERCISE_TYPE_ROLLER_HOCKEY -> "rollerHockey"
177
+ ExerciseSessionRecord.EXERCISE_TYPE_SCUBA_DIVING -> "scubaDiving"
60
178
  ExerciseSessionRecord.EXERCISE_TYPE_OTHER_WORKOUT -> "other"
61
179
  else -> "other"
62
180
  }