incyclist-services 1.7.70 → 1.7.71
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/lib/cjs/ride/display/service.js +0 -1
- package/lib/cjs/ride/route/GpxDisplayService.js +16 -16
- package/lib/cjs/settings/display/ride/service.js +20 -2
- package/lib/esm/ride/display/service.js +0 -1
- package/lib/esm/ride/route/GpxDisplayService.js +16 -16
- package/lib/esm/settings/display/ride/service.js +20 -2
- package/lib/types/ride/route/GpxDisplayService.d.ts +3 -3
- package/lib/types/settings/display/ride/service.d.ts +5 -2
- package/package.json +1 -1
- package/lib/esm/package.json +0 -68
- package/lib/esm/settings/display/gear/index.js +0 -0
- package/lib/esm/settings/display/gear/service.js +0 -127
- package/lib/esm/settings/display/gear/types.js +0 -1
- package/lib/esm/src/activities/active-rides/index.js +0 -2
- package/lib/esm/src/activities/active-rides/mq.js +0 -187
- package/lib/esm/src/activities/active-rides/service.js +0 -870
- package/lib/esm/src/activities/active-rides/sessions.js +0 -0
- package/lib/esm/src/activities/active-rides/types.js +0 -1
- package/lib/esm/src/activities/base/api/active-rides/api.js +0 -118
- package/lib/esm/src/activities/base/api/active-rides/index.js +0 -2
- package/lib/esm/src/activities/base/api/active-rides/types.js +0 -1
- package/lib/esm/src/activities/base/api/fitconvert/consts.js +0 -2
- package/lib/esm/src/activities/base/api/fitconvert/fitconvert.js +0 -94
- package/lib/esm/src/activities/base/api/fitconvert/index.js +0 -1
- package/lib/esm/src/activities/base/api/index.js +0 -1
- package/lib/esm/src/activities/base/convert/converter.js +0 -17
- package/lib/esm/src/activities/base/convert/factory.js +0 -72
- package/lib/esm/src/activities/base/convert/fit/index.js +0 -2
- package/lib/esm/src/activities/base/convert/fit/local-fit.js +0 -237
- package/lib/esm/src/activities/base/convert/fit/remote-fit.js +0 -51
- package/lib/esm/src/activities/base/convert/index.js +0 -4
- package/lib/esm/src/activities/base/convert/tcx/index.js +0 -1
- package/lib/esm/src/activities/base/convert/tcx/tcx.js +0 -206
- package/lib/esm/src/activities/base/convert/tcx/types.js +0 -1
- package/lib/esm/src/activities/base/convert/types.js +0 -5
- package/lib/esm/src/activities/base/index.js +0 -5
- package/lib/esm/src/activities/base/model/index.js +0 -6
- package/lib/esm/src/activities/base/repo/db.js +0 -518
- package/lib/esm/src/activities/base/repo/index.js +0 -2
- package/lib/esm/src/activities/base/repo/migration/factory.js +0 -21
- package/lib/esm/src/activities/base/repo/migration/types.js +0 -13
- package/lib/esm/src/activities/base/repo/migration/v0.js +0 -14
- package/lib/esm/src/activities/base/repo/migration/v1.js +0 -15
- package/lib/esm/src/activities/base/repo/migration/v2.js +0 -7
- package/lib/esm/src/activities/base/repo/migration/v3.js +0 -23
- package/lib/esm/src/activities/base/repo/types.js +0 -1
- package/lib/esm/src/activities/base/utils/activity.js +0 -324
- package/lib/esm/src/activities/base/utils/helpers.js +0 -47
- package/lib/esm/src/activities/base/utils/index.js +0 -2
- package/lib/esm/src/activities/index.js +0 -6
- package/lib/esm/src/activities/list/index.js +0 -2
- package/lib/esm/src/activities/list/service.js +0 -458
- package/lib/esm/src/activities/list/types.js +0 -1
- package/lib/esm/src/activities/list/utils.js +0 -81
- package/lib/esm/src/activities/page/index.js +0 -1
- package/lib/esm/src/activities/page/service.js +0 -173
- package/lib/esm/src/activities/page/types.js +0 -1
- package/lib/esm/src/activities/ride/duration.js +0 -136
- package/lib/esm/src/activities/ride/index.js +0 -1
- package/lib/esm/src/activities/ride/service.js +0 -1324
- package/lib/esm/src/activities/ride/stats.js +0 -189
- package/lib/esm/src/activities/ride/types.js +0 -1
- package/lib/esm/src/activities/types.js +0 -2
- package/lib/esm/src/activities/upload/factory.js +0 -90
- package/lib/esm/src/activities/upload/index.js +0 -5
- package/lib/esm/src/activities/upload/intervals.js +0 -141
- package/lib/esm/src/activities/upload/strava.js +0 -151
- package/lib/esm/src/activities/upload/types.js +0 -1
- package/lib/esm/src/activities/upload/velohero.js +0 -133
- package/lib/esm/src/api/appInfo/index.js +0 -1
- package/lib/esm/src/api/bindings/index.js +0 -74
- package/lib/esm/src/api/bindings/types.js +0 -1
- package/lib/esm/src/api/crypto/types.js +0 -1
- package/lib/esm/src/api/download/index.js +0 -1
- package/lib/esm/src/api/form/types.js +0 -1
- package/lib/esm/src/api/fs/index.js +0 -1
- package/lib/esm/src/api/index.js +0 -4
- package/lib/esm/src/api/logging/types.js +0 -1
- package/lib/esm/src/api/mq/index.js +0 -1
- package/lib/esm/src/api/path/index.js +0 -18
- package/lib/esm/src/api/repository/index.js +0 -3
- package/lib/esm/src/api/repository/json/index.js +0 -117
- package/lib/esm/src/api/repository/types.js +0 -1
- package/lib/esm/src/api/rest/RestApiClient.js +0 -12
- package/lib/esm/src/api/rest/api.js +0 -67
- package/lib/esm/src/api/rest/incyclist.js +0 -33
- package/lib/esm/src/api/rest/index.js +0 -3
- package/lib/esm/src/api/rest/types.js +0 -1
- package/lib/esm/src/api/secret/index.js +0 -1
- package/lib/esm/src/api/serial/types.js +0 -1
- package/lib/esm/src/api/types.js +0 -1
- package/lib/esm/src/api/ui/index.js +0 -1
- package/lib/esm/src/api/video/index.js +0 -1
- package/lib/esm/src/apps/base/api/base.js +0 -58
- package/lib/esm/src/apps/base/api/index.js +0 -4
- package/lib/esm/src/apps/base/api/intervals/api.js +0 -127
- package/lib/esm/src/apps/base/api/intervals/index.js +0 -2
- package/lib/esm/src/apps/base/api/intervals/types.js +0 -11
- package/lib/esm/src/apps/base/api/komoot/api.js +0 -137
- package/lib/esm/src/apps/base/api/komoot/index.js +0 -2
- package/lib/esm/src/apps/base/api/komoot/types.js +0 -1
- package/lib/esm/src/apps/base/api/strava/api.js +0 -217
- package/lib/esm/src/apps/base/api/strava/index.js +0 -2
- package/lib/esm/src/apps/base/api/strava/types.js +0 -7
- package/lib/esm/src/apps/base/api/velohero/api.js +0 -80
- package/lib/esm/src/apps/base/api/velohero/index.js +0 -2
- package/lib/esm/src/apps/base/api/velohero/types.js +0 -1
- package/lib/esm/src/apps/base/app/index.js +0 -104
- package/lib/esm/src/apps/base/index.js +0 -3
- package/lib/esm/src/apps/base/types.js +0 -1
- package/lib/esm/src/apps/googleMaps/index.js +0 -1
- package/lib/esm/src/apps/googleMaps/service.js +0 -121
- package/lib/esm/src/apps/index.js +0 -5
- package/lib/esm/src/apps/intervals/IntervalsAppConnection.js +0 -183
- package/lib/esm/src/apps/intervals/index.js +0 -0
- package/lib/esm/src/apps/intervals/types.js +0 -1
- package/lib/esm/src/apps/komoot/KomootAppConnection.js +0 -245
- package/lib/esm/src/apps/komoot/index.js +0 -2
- package/lib/esm/src/apps/komoot/types.js +0 -1
- package/lib/esm/src/apps/service.js +0 -189
- package/lib/esm/src/apps/strava/StravaAppConnection.js +0 -190
- package/lib/esm/src/apps/strava/index.js +0 -2
- package/lib/esm/src/apps/strava/types.js +0 -1
- package/lib/esm/src/apps/types.js +0 -1
- package/lib/esm/src/apps/velohero/VeloHeroAppConnection.js +0 -229
- package/lib/esm/src/apps/velohero/index.js +0 -2
- package/lib/esm/src/apps/velohero/types.js +0 -1
- package/lib/esm/src/appstate/index.js +0 -2
- package/lib/esm/src/appstate/service.js +0 -107
- package/lib/esm/src/appstate/types.js +0 -1
- package/lib/esm/src/autoupdate/api.js +0 -176
- package/lib/esm/src/autoupdate/autoupdate.js +0 -21
- package/lib/esm/src/autoupdate/index.js +0 -2
- package/lib/esm/src/avatars/index.js +0 -2
- package/lib/esm/src/avatars/service.js +0 -134
- package/lib/esm/src/avatars/types.js +0 -1
- package/lib/esm/src/base/cardlist/index.js +0 -39
- package/lib/esm/src/base/cardlist/types.js +0 -1
- package/lib/esm/src/base/decorators/Injection.js +0 -23
- package/lib/esm/src/base/decorators/index.js +0 -2
- package/lib/esm/src/base/pages/index.js +0 -1
- package/lib/esm/src/base/pages/service.js +0 -124
- package/lib/esm/src/base/pages/types.js +0 -1
- package/lib/esm/src/base/service.js +0 -32
- package/lib/esm/src/base/typedefs.js +0 -1
- package/lib/esm/src/base/types/index.js +0 -3
- package/lib/esm/src/base/types/lists.js +0 -18
- package/lib/esm/src/base/types/observer.js +0 -75
- package/lib/esm/src/base/types/singleton.js +0 -20
- package/lib/esm/src/coaches/coach.js +0 -161
- package/lib/esm/src/coaches/index.js +0 -3
- package/lib/esm/src/coaches/service.js +0 -294
- package/lib/esm/src/coaches/types.js +0 -1
- package/lib/esm/src/devices/access/index.js +0 -2
- package/lib/esm/src/devices/access/model.js +0 -1
- package/lib/esm/src/devices/access/service.js +0 -512
- package/lib/esm/src/devices/configuration/index.js +0 -2
- package/lib/esm/src/devices/configuration/model/app/index.js +0 -1
- package/lib/esm/src/devices/configuration/model/index.js +0 -3
- package/lib/esm/src/devices/configuration/model/repository/index.js +0 -1
- package/lib/esm/src/devices/configuration/model/repository/legacy.js +0 -1
- package/lib/esm/src/devices/configuration/model/service/index.js +0 -1
- package/lib/esm/src/devices/configuration/service.js +0 -997
- package/lib/esm/src/devices/configuration/types.js +0 -1
- package/lib/esm/src/devices/index.js +0 -5
- package/lib/esm/src/devices/page/index.js +0 -1
- package/lib/esm/src/devices/page/logobserver.js +0 -15
- package/lib/esm/src/devices/page/service.js +0 -422
- package/lib/esm/src/devices/page/statemachine.js +0 -335
- package/lib/esm/src/devices/page/types.js +0 -1
- package/lib/esm/src/devices/pairing/index.js +0 -2
- package/lib/esm/src/devices/pairing/model.js +0 -1
- package/lib/esm/src/devices/pairing/service.js +0 -1502
- package/lib/esm/src/devices/ride/index.js +0 -1
- package/lib/esm/src/devices/ride/service.js +0 -1395
- package/lib/esm/src/devices/ride/types.js +0 -1
- package/lib/esm/src/devices/types.js +0 -1
- package/lib/esm/src/i18n/countries/countries.json +0 -255
- package/lib/esm/src/i18n/countries/index.js +0 -1
- package/lib/esm/src/i18n/countries/model.js +0 -1
- package/lib/esm/src/i18n/countries/service.js +0 -118
- package/lib/esm/src/i18n/index.js +0 -3
- package/lib/esm/src/i18n/localization/index.js +0 -2
- package/lib/esm/src/i18n/localization/service.js +0 -125
- package/lib/esm/src/i18n/localization/types.js +0 -1
- package/lib/esm/src/i18n/units/converter.js +0 -172
- package/lib/esm/src/i18n/units/index.js +0 -2
- package/lib/esm/src/i18n/units/types.js +0 -1
- package/lib/esm/src/index.js +0 -22
- package/lib/esm/src/maps/MapArea/MapArea.js +0 -396
- package/lib/esm/src/maps/MapArea/consts.js +0 -8
- package/lib/esm/src/maps/MapArea/index.js +0 -3
- package/lib/esm/src/maps/MapArea/options.js +0 -410
- package/lib/esm/src/maps/MapArea/service.js +0 -292
- package/lib/esm/src/maps/MapArea/types.js +0 -1
- package/lib/esm/src/maps/MapArea/utils.js +0 -565
- package/lib/esm/src/maps/index.js +0 -1
- package/lib/esm/src/monitoring/index.js +0 -1
- package/lib/esm/src/monitoring/online/index.js +0 -1
- package/lib/esm/src/monitoring/online/service.js +0 -113
- package/lib/esm/src/ride/base/base.js +0 -228
- package/lib/esm/src/ride/base/index.js +0 -1
- package/lib/esm/src/ride/base/types.js +0 -1
- package/lib/esm/src/ride/display/index.js +0 -1
- package/lib/esm/src/ride/display/service.js +0 -1135
- package/lib/esm/src/ride/index.js +0 -3
- package/lib/esm/src/ride/page/index.js +0 -1
- package/lib/esm/src/ride/page/service.js +0 -376
- package/lib/esm/src/ride/page/types.js +0 -1
- package/lib/esm/src/ride/route/FollowRouteDisplayService.js +0 -32
- package/lib/esm/src/ride/route/FreeRideDisplayService.js +0 -596
- package/lib/esm/src/ride/route/GpxDisplayService.js +0 -319
- package/lib/esm/src/ride/route/RLVDisplayService.js +0 -588
- package/lib/esm/src/ride/route/RouteDisplayService.js +0 -413
- package/lib/esm/src/ride/route/types.js +0 -1
- package/lib/esm/src/ride/types.js +0 -1
- package/lib/esm/src/ride/workout/WorkoutDisplayService.js +0 -94
- package/lib/esm/src/routes/base/api/consts.js +0 -9
- package/lib/esm/src/routes/base/api/index.js +0 -156
- package/lib/esm/src/routes/base/api/types.js +0 -1
- package/lib/esm/src/routes/base/model/route.js +0 -114
- package/lib/esm/src/routes/base/model/tacx.js +0 -28
- package/lib/esm/src/routes/base/model/types.js +0 -1
- package/lib/esm/src/routes/base/parsers/bikelab.js +0 -103
- package/lib/esm/src/routes/base/parsers/epm.js +0 -243
- package/lib/esm/src/routes/base/parsers/factory.js +0 -50
- package/lib/esm/src/routes/base/parsers/geometry.js +0 -130
- package/lib/esm/src/routes/base/parsers/gpx.js +0 -216
- package/lib/esm/src/routes/base/parsers/incyclist.js +0 -190
- package/lib/esm/src/routes/base/parsers/index.js +0 -50
- package/lib/esm/src/routes/base/parsers/kwt.js +0 -4
- package/lib/esm/src/routes/base/parsers/multixml.js +0 -42
- package/lib/esm/src/routes/base/parsers/tacx/TacxParser.js +0 -326
- package/lib/esm/src/routes/base/parsers/tacx/TacxReader.js +0 -79
- package/lib/esm/src/routes/base/parsers/tacx/pgmf.js +0 -65
- package/lib/esm/src/routes/base/parsers/tacx/rlv.js +0 -80
- package/lib/esm/src/routes/base/parsers/types.js +0 -1
- package/lib/esm/src/routes/base/parsers/utils.js +0 -235
- package/lib/esm/src/routes/base/parsers/xml.js +0 -354
- package/lib/esm/src/routes/base/types/index.js +0 -2
- package/lib/esm/src/routes/base/utils/index.js +0 -1
- package/lib/esm/src/routes/base/utils/localization.js +0 -35
- package/lib/esm/src/routes/base/utils/points.js +0 -296
- package/lib/esm/src/routes/base/utils/route.js +0 -558
- package/lib/esm/src/routes/download/service.js +0 -256
- package/lib/esm/src/routes/download/types.js +0 -15
- package/lib/esm/src/routes/free-ride/index.js +0 -1
- package/lib/esm/src/routes/free-ride/service.js +0 -545
- package/lib/esm/src/routes/index.js +0 -5
- package/lib/esm/src/routes/library/service.js +0 -635
- package/lib/esm/src/routes/library/types.js +0 -1
- package/lib/esm/src/routes/list/RouteListObserver.js +0 -18
- package/lib/esm/src/routes/list/cards/ActiveImportCard.js +0 -84
- package/lib/esm/src/routes/list/cards/FreeRideCard.js +0 -114
- package/lib/esm/src/routes/list/cards/RouteCard.js +0 -914
- package/lib/esm/src/routes/list/cards/RouteImportCard.js +0 -36
- package/lib/esm/src/routes/list/cards/base.js +0 -68
- package/lib/esm/src/routes/list/cards/types.js +0 -1
- package/lib/esm/src/routes/list/index.js +0 -1
- package/lib/esm/src/routes/list/lists/alternatives.js +0 -38
- package/lib/esm/src/routes/list/lists/myroutes.js +0 -55
- package/lib/esm/src/routes/list/lists/selected.js +0 -35
- package/lib/esm/src/routes/list/loaders/DBLoader.js +0 -47
- package/lib/esm/src/routes/list/loaders/LegacyDB.js +0 -138
- package/lib/esm/src/routes/list/loaders/StravaActivityLoader.js +0 -284
- package/lib/esm/src/routes/list/loaders/api.js +0 -217
- package/lib/esm/src/routes/list/loaders/db.js +0 -336
- package/lib/esm/src/routes/list/loaders/types.js +0 -114
- package/lib/esm/src/routes/list/service.js +0 -1359
- package/lib/esm/src/routes/list/types.js +0 -1
- package/lib/esm/src/routes/list/utils.js +0 -36
- package/lib/esm/src/routes/page/index.js +0 -1
- package/lib/esm/src/routes/page/service.js +0 -457
- package/lib/esm/src/routes/page/types.js +0 -1
- package/lib/esm/src/routes/sync/factory.js +0 -119
- package/lib/esm/src/routes/sync/index.js +0 -2
- package/lib/esm/src/routes/sync/komoot/provider.js +0 -362
- package/lib/esm/src/routes/sync/types.js +0 -1
- package/lib/esm/src/routes/types.js +0 -1
- package/lib/esm/src/services/index.js +0 -1
- package/lib/esm/src/services/overpass/index.js +0 -1
- package/lib/esm/src/services/overpass/overpass.js +0 -212
- package/lib/esm/src/settings/bindings/index.js +0 -1
- package/lib/esm/src/settings/bindings/json.js +0 -98
- package/lib/esm/src/settings/bindings/types.js +0 -5
- package/lib/esm/src/settings/display/index.js +0 -2
- package/lib/esm/src/settings/display/support/index.js +0 -1
- package/lib/esm/src/settings/display/support/service.js +0 -111
- package/lib/esm/src/settings/display/support/types.js +0 -1
- package/lib/esm/src/settings/display/user/index.js +0 -2
- package/lib/esm/src/settings/display/user/service.js +0 -157
- package/lib/esm/src/settings/display/user/types.js +0 -1
- package/lib/esm/src/settings/index.js +0 -2
- package/lib/esm/src/settings/service/index.js +0 -1
- package/lib/esm/src/settings/service/mock.js +0 -31
- package/lib/esm/src/settings/service/service.js +0 -228
- package/lib/esm/src/settings/types.js +0 -1
- package/lib/esm/src/types.js +0 -1
- package/lib/esm/src/ui/index.js +0 -1
- package/lib/esm/src/ui/service.js +0 -504
- package/lib/esm/src/ui/types.js +0 -1
- package/lib/esm/src/utils/calc.js +0 -34
- package/lib/esm/src/utils/clone.js +0 -5
- package/lib/esm/src/utils/fileinfo.js +0 -9
- package/lib/esm/src/utils/formatting.js +0 -73
- package/lib/esm/src/utils/geo.js +0 -131
- package/lib/esm/src/utils/index.js +0 -10
- package/lib/esm/src/utils/logging.js +0 -18
- package/lib/esm/src/utils/math.js +0 -26
- package/lib/esm/src/utils/merge.js +0 -26
- package/lib/esm/src/utils/nextTick.js +0 -1
- package/lib/esm/src/utils/sleep.js +0 -1
- package/lib/esm/src/utils/string.js +0 -4
- package/lib/esm/src/utils/time.js +0 -20
- package/lib/esm/src/utils/valid.js +0 -11
- package/lib/esm/src/utils/vector.js +0 -200
- package/lib/esm/src/utils/xml.js +0 -105
- package/lib/esm/src/video/VideoConversion.js +0 -167
- package/lib/esm/src/video/VideoSyncHelper.js +0 -661
- package/lib/esm/src/video/index.js +0 -3
- package/lib/esm/src/video/types.js +0 -1
- package/lib/esm/src/workouts/base/api/consts.js +0 -9
- package/lib/esm/src/workouts/base/api/index.js +0 -127
- package/lib/esm/src/workouts/base/model/Segment.js +0 -137
- package/lib/esm/src/workouts/base/model/Step.js +0 -158
- package/lib/esm/src/workouts/base/model/Workout.js +0 -109
- package/lib/esm/src/workouts/base/model/index.js +0 -4
- package/lib/esm/src/workouts/base/model/types.js +0 -1
- package/lib/esm/src/workouts/base/parsers/factory.js +0 -87
- package/lib/esm/src/workouts/base/parsers/incyclist/Json.js +0 -58
- package/lib/esm/src/workouts/base/parsers/index.js +0 -35
- package/lib/esm/src/workouts/base/parsers/intervals/parser.js +0 -294
- package/lib/esm/src/workouts/base/parsers/intervals/types.js +0 -6
- package/lib/esm/src/workouts/base/parsers/types.js +0 -1
- package/lib/esm/src/workouts/base/parsers/zwo/zwo.js +0 -247
- package/lib/esm/src/workouts/calendar/index.js +0 -3
- package/lib/esm/src/workouts/calendar/service.js +0 -355
- package/lib/esm/src/workouts/calendar/sync/factory.js +0 -124
- package/lib/esm/src/workouts/calendar/sync/index.js +0 -2
- package/lib/esm/src/workouts/calendar/sync/intervals/provider.js +0 -208
- package/lib/esm/src/workouts/calendar/sync/types.js +0 -1
- package/lib/esm/src/workouts/calendar/types.js +0 -1
- package/lib/esm/src/workouts/index.js +0 -3
- package/lib/esm/src/workouts/list/cards/ActiveImportCard.js +0 -68
- package/lib/esm/src/workouts/list/cards/ScheduledWorkoutCard.js +0 -38
- package/lib/esm/src/workouts/list/cards/WorkoutCard.js +0 -284
- package/lib/esm/src/workouts/list/cards/WorkoutCreateCard.js +0 -96
- package/lib/esm/src/workouts/list/cards/WorkoutImportCard.js +0 -37
- package/lib/esm/src/workouts/list/cards/base.js +0 -54
- package/lib/esm/src/workouts/list/cards/index.js +0 -4
- package/lib/esm/src/workouts/list/cards/types.js +0 -6
- package/lib/esm/src/workouts/list/index.js +0 -2
- package/lib/esm/src/workouts/list/loaders/api.js +0 -46
- package/lib/esm/src/workouts/list/loaders/db.js +0 -185
- package/lib/esm/src/workouts/list/loaders/loader.js +0 -17
- package/lib/esm/src/workouts/list/service.js +0 -658
- package/lib/esm/src/workouts/list/types.js +0 -1
- package/lib/esm/src/workouts/ride/index.js +0 -2
- package/lib/esm/src/workouts/ride/service.js +0 -608
- package/lib/esm/src/workouts/ride/types.js +0 -1
- package/lib/types/settings/display/gear/index.d.ts +0 -0
- package/lib/types/settings/display/gear/service.d.ts +0 -21
- package/lib/types/settings/display/gear/types.d.ts +0 -5
- package/lib/types/src/activities/active-rides/index.d.ts +0 -2
- package/lib/types/src/activities/active-rides/mq.d.ts +0 -28
- package/lib/types/src/activities/active-rides/service.d.ts +0 -116
- package/lib/types/src/activities/active-rides/sessions.d.ts +0 -0
- package/lib/types/src/activities/active-rides/types.d.ts +0 -103
- package/lib/types/src/activities/base/api/active-rides/api.d.ts +0 -13
- package/lib/types/src/activities/base/api/active-rides/index.d.ts +0 -2
- package/lib/types/src/activities/base/api/active-rides/types.d.ts +0 -5
- package/lib/types/src/activities/base/api/fitconvert/consts.d.ts +0 -2
- package/lib/types/src/activities/base/api/fitconvert/fitconvert.d.ts +0 -9
- package/lib/types/src/activities/base/api/fitconvert/index.d.ts +0 -1
- package/lib/types/src/activities/base/api/index.d.ts +0 -1
- package/lib/types/src/activities/base/convert/converter.d.ts +0 -7
- package/lib/types/src/activities/base/convert/factory.d.ts +0 -8
- package/lib/types/src/activities/base/convert/fit/index.d.ts +0 -2
- package/lib/types/src/activities/base/convert/fit/local-fit.d.ts +0 -16
- package/lib/types/src/activities/base/convert/fit/remote-fit.d.ts +0 -13
- package/lib/types/src/activities/base/convert/index.d.ts +0 -4
- package/lib/types/src/activities/base/convert/tcx/index.d.ts +0 -1
- package/lib/types/src/activities/base/convert/tcx/tcx.d.ts +0 -25
- package/lib/types/src/activities/base/convert/tcx/types.d.ts +0 -5
- package/lib/types/src/activities/base/convert/types.d.ts +0 -7
- package/lib/types/src/activities/base/index.d.ts +0 -5
- package/lib/types/src/activities/base/model/index.d.ts +0 -210
- package/lib/types/src/activities/base/repo/db.d.ts +0 -60
- package/lib/types/src/activities/base/repo/index.d.ts +0 -2
- package/lib/types/src/activities/base/repo/migration/factory.d.ts +0 -7
- package/lib/types/src/activities/base/repo/migration/types.d.ts +0 -15
- package/lib/types/src/activities/base/repo/migration/v0.d.ts +0 -5
- package/lib/types/src/activities/base/repo/migration/v1.d.ts +0 -5
- package/lib/types/src/activities/base/repo/migration/v2.d.ts +0 -5
- package/lib/types/src/activities/base/repo/migration/v3.d.ts +0 -5
- package/lib/types/src/activities/base/repo/types.d.ts +0 -14
- package/lib/types/src/activities/base/utils/activity.d.ts +0 -50
- package/lib/types/src/activities/base/utils/helpers.d.ts +0 -4
- package/lib/types/src/activities/base/utils/index.d.ts +0 -2
- package/lib/types/src/activities/index.d.ts +0 -6
- package/lib/types/src/activities/list/index.d.ts +0 -2
- package/lib/types/src/activities/list/service.d.ts +0 -59
- package/lib/types/src/activities/list/types.d.ts +0 -94
- package/lib/types/src/activities/list/utils.d.ts +0 -5
- package/lib/types/src/activities/page/index.d.ts +0 -1
- package/lib/types/src/activities/page/service.d.ts +0 -24
- package/lib/types/src/activities/page/types.d.ts +0 -10
- package/lib/types/src/activities/ride/duration.d.ts +0 -32
- package/lib/types/src/activities/ride/index.d.ts +0 -1
- package/lib/types/src/activities/ride/service.d.ts +0 -216
- package/lib/types/src/activities/ride/stats.d.ts +0 -37
- package/lib/types/src/activities/ride/types.d.ts +0 -47
- package/lib/types/src/activities/types.d.ts +0 -2
- package/lib/types/src/activities/upload/factory.d.ts +0 -12
- package/lib/types/src/activities/upload/index.d.ts +0 -5
- package/lib/types/src/activities/upload/intervals.d.ts +0 -18
- package/lib/types/src/activities/upload/strava.d.ts +0 -18
- package/lib/types/src/activities/upload/types.d.ts +0 -25
- package/lib/types/src/activities/upload/velohero.d.ts +0 -18
- package/lib/types/src/api/appInfo/index.d.ts +0 -17
- package/lib/types/src/api/bindings/index.d.ts +0 -40
- package/lib/types/src/api/bindings/types.d.ts +0 -14
- package/lib/types/src/api/crypto/types.d.ts +0 -46
- package/lib/types/src/api/download/index.d.ts +0 -12
- package/lib/types/src/api/form/types.d.ts +0 -6
- package/lib/types/src/api/fs/index.d.ts +0 -26
- package/lib/types/src/api/index.d.ts +0 -5
- package/lib/types/src/api/logging/types.d.ts +0 -8
- package/lib/types/src/api/mq/index.d.ts +0 -9
- package/lib/types/src/api/path/index.d.ts +0 -11
- package/lib/types/src/api/repository/index.d.ts +0 -8
- package/lib/types/src/api/repository/json/index.d.ts +0 -23
- package/lib/types/src/api/repository/types.d.ts +0 -35
- package/lib/types/src/api/rest/RestApiClient.d.ts +0 -7
- package/lib/types/src/api/rest/api.d.ts +0 -15
- package/lib/types/src/api/rest/incyclist.d.ts +0 -7
- package/lib/types/src/api/rest/index.d.ts +0 -3
- package/lib/types/src/api/rest/types.d.ts +0 -10
- package/lib/types/src/api/secret/index.d.ts +0 -6
- package/lib/types/src/api/serial/types.d.ts +0 -3
- package/lib/types/src/api/types.d.ts +0 -7
- package/lib/types/src/api/ui/index.d.ts +0 -22
- package/lib/types/src/api/video/index.d.ts +0 -21
- package/lib/types/src/apps/base/api/base.d.ts +0 -13
- package/lib/types/src/apps/base/api/index.d.ts +0 -4
- package/lib/types/src/apps/base/api/intervals/api.d.ts +0 -23
- package/lib/types/src/apps/base/api/intervals/index.d.ts +0 -2
- package/lib/types/src/apps/base/api/intervals/types.d.ts +0 -121
- package/lib/types/src/apps/base/api/komoot/api.d.ts +0 -21
- package/lib/types/src/apps/base/api/komoot/index.d.ts +0 -2
- package/lib/types/src/apps/base/api/komoot/types.d.ts +0 -94
- package/lib/types/src/apps/base/api/strava/api.d.ts +0 -40
- package/lib/types/src/apps/base/api/strava/index.d.ts +0 -2
- package/lib/types/src/apps/base/api/strava/types.d.ts +0 -143
- package/lib/types/src/apps/base/api/velohero/api.d.ts +0 -12
- package/lib/types/src/apps/base/api/velohero/index.d.ts +0 -2
- package/lib/types/src/apps/base/api/velohero/types.d.ts +0 -14
- package/lib/types/src/apps/base/app/index.d.ts +0 -20
- package/lib/types/src/apps/base/index.d.ts +0 -3
- package/lib/types/src/apps/base/types.d.ts +0 -2
- package/lib/types/src/apps/googleMaps/index.d.ts +0 -1
- package/lib/types/src/apps/googleMaps/service.d.ts +0 -18
- package/lib/types/src/apps/index.d.ts +0 -5
- package/lib/types/src/apps/intervals/IntervalsAppConnection.d.ts +0 -23
- package/lib/types/src/apps/intervals/index.d.ts +0 -0
- package/lib/types/src/apps/intervals/types.d.ts +0 -6
- package/lib/types/src/apps/komoot/KomootAppConnection.d.ts +0 -25
- package/lib/types/src/apps/komoot/index.d.ts +0 -2
- package/lib/types/src/apps/komoot/types.d.ts +0 -10
- package/lib/types/src/apps/service.d.ts +0 -38
- package/lib/types/src/apps/strava/StravaAppConnection.d.ts +0 -28
- package/lib/types/src/apps/strava/index.d.ts +0 -2
- package/lib/types/src/apps/strava/types.d.ts +0 -6
- package/lib/types/src/apps/types.d.ts +0 -16
- package/lib/types/src/apps/velohero/VeloHeroAppConnection.d.ts +0 -24
- package/lib/types/src/apps/velohero/index.d.ts +0 -2
- package/lib/types/src/apps/velohero/types.d.ts +0 -9
- package/lib/types/src/appstate/index.d.ts +0 -2
- package/lib/types/src/appstate/service.d.ts +0 -17
- package/lib/types/src/appstate/types.d.ts +0 -12
- package/lib/types/src/autoupdate/api.d.ts +0 -22
- package/lib/types/src/autoupdate/autoupdate.d.ts +0 -6
- package/lib/types/src/autoupdate/index.d.ts +0 -2
- package/lib/types/src/avatars/index.d.ts +0 -2
- package/lib/types/src/avatars/service.d.ts +0 -17
- package/lib/types/src/avatars/types.d.ts +0 -10
- package/lib/types/src/base/cardlist/index.d.ts +0 -33
- package/lib/types/src/base/cardlist/types.d.ts +0 -4
- package/lib/types/src/base/decorators/Injection.d.ts +0 -2
- package/lib/types/src/base/decorators/index.d.ts +0 -2
- package/lib/types/src/base/pages/index.d.ts +0 -2
- package/lib/types/src/base/pages/service.d.ts +0 -23
- package/lib/types/src/base/pages/types.d.ts +0 -8
- package/lib/types/src/base/service.d.ts +0 -13
- package/lib/types/src/base/typedefs.d.ts +0 -7
- package/lib/types/src/base/types/index.d.ts +0 -3
- package/lib/types/src/base/types/lists.d.ts +0 -14
- package/lib/types/src/base/types/observer.d.ts +0 -20
- package/lib/types/src/base/types/singleton.d.ts +0 -1
- package/lib/types/src/coaches/coach.d.ts +0 -37
- package/lib/types/src/coaches/index.d.ts +0 -3
- package/lib/types/src/coaches/service.d.ts +0 -39
- package/lib/types/src/coaches/types.d.ts +0 -25
- package/lib/types/src/devices/access/index.d.ts +0 -2
- package/lib/types/src/devices/access/model.d.ts +0 -37
- package/lib/types/src/devices/access/service.d.ts +0 -42
- package/lib/types/src/devices/configuration/index.d.ts +0 -2
- package/lib/types/src/devices/configuration/model/app/index.d.ts +0 -17
- package/lib/types/src/devices/configuration/model/index.d.ts +0 -3
- package/lib/types/src/devices/configuration/model/repository/index.d.ts +0 -36
- package/lib/types/src/devices/configuration/model/repository/legacy.d.ts +0 -57
- package/lib/types/src/devices/configuration/model/service/index.d.ts +0 -18
- package/lib/types/src/devices/configuration/service.d.ts +0 -102
- package/lib/types/src/devices/configuration/types.d.ts +0 -2
- package/lib/types/src/devices/index.d.ts +0 -5
- package/lib/types/src/devices/page/index.d.ts +0 -1
- package/lib/types/src/devices/page/logobserver.d.ts +0 -8
- package/lib/types/src/devices/page/service.d.ts +0 -55
- package/lib/types/src/devices/page/statemachine.d.ts +0 -47
- package/lib/types/src/devices/page/types.d.ts +0 -74
- package/lib/types/src/devices/pairing/index.d.ts +0 -2
- package/lib/types/src/devices/pairing/model.d.ts +0 -84
- package/lib/types/src/devices/pairing/service.d.ts +0 -150
- package/lib/types/src/devices/ride/index.d.ts +0 -2
- package/lib/types/src/devices/ride/service.d.ts +0 -140
- package/lib/types/src/devices/ride/types.d.ts +0 -54
- package/lib/types/src/devices/types.d.ts +0 -5
- package/lib/types/src/i18n/countries/index.d.ts +0 -1
- package/lib/types/src/i18n/countries/model.d.ts +0 -21
- package/lib/types/src/i18n/countries/service.d.ts +0 -18
- package/lib/types/src/i18n/index.d.ts +0 -3
- package/lib/types/src/i18n/localization/index.d.ts +0 -2
- package/lib/types/src/i18n/localization/service.d.ts +0 -17
- package/lib/types/src/i18n/localization/types.d.ts +0 -3
- package/lib/types/src/i18n/units/converter.d.ts +0 -17
- package/lib/types/src/i18n/units/index.d.ts +0 -2
- package/lib/types/src/i18n/units/types.d.ts +0 -17
- package/lib/types/src/index.d.ts +0 -23
- package/lib/types/src/maps/MapArea/MapArea.d.ts +0 -34
- package/lib/types/src/maps/MapArea/consts.d.ts +0 -11
- package/lib/types/src/maps/MapArea/index.d.ts +0 -3
- package/lib/types/src/maps/MapArea/options.d.ts +0 -24
- package/lib/types/src/maps/MapArea/service.d.ts +0 -55
- package/lib/types/src/maps/MapArea/types.d.ts +0 -136
- package/lib/types/src/maps/MapArea/utils.d.ts +0 -44
- package/lib/types/src/maps/index.d.ts +0 -1
- package/lib/types/src/monitoring/index.d.ts +0 -1
- package/lib/types/src/monitoring/online/index.d.ts +0 -1
- package/lib/types/src/monitoring/online/service.d.ts +0 -19
- package/lib/types/src/ride/base/base.d.ts +0 -49
- package/lib/types/src/ride/base/index.d.ts +0 -1
- package/lib/types/src/ride/base/types.d.ts +0 -183
- package/lib/types/src/ride/display/index.d.ts +0 -1
- package/lib/types/src/ride/display/service.d.ts +0 -138
- package/lib/types/src/ride/index.d.ts +0 -3
- package/lib/types/src/ride/page/index.d.ts +0 -1
- package/lib/types/src/ride/page/service.d.ts +0 -49
- package/lib/types/src/ride/page/types.d.ts +0 -45
- package/lib/types/src/ride/route/FollowRouteDisplayService.d.ts +0 -5
- package/lib/types/src/ride/route/FreeRideDisplayService.d.ts +0 -87
- package/lib/types/src/ride/route/GpxDisplayService.d.ts +0 -67
- package/lib/types/src/ride/route/RLVDisplayService.d.ts +0 -101
- package/lib/types/src/ride/route/RouteDisplayService.d.ts +0 -73
- package/lib/types/src/ride/route/types.d.ts +0 -25
- package/lib/types/src/ride/types.d.ts +0 -3
- package/lib/types/src/ride/workout/WorkoutDisplayService.d.ts +0 -15
- package/lib/types/src/routes/base/api/consts.d.ts +0 -9
- package/lib/types/src/routes/base/api/index.d.ts +0 -24
- package/lib/types/src/routes/base/api/types.d.ts +0 -77
- package/lib/types/src/routes/base/model/route.d.ts +0 -20
- package/lib/types/src/routes/base/model/tacx.d.ts +0 -92
- package/lib/types/src/routes/base/model/types.d.ts +0 -13
- package/lib/types/src/routes/base/parsers/bikelab.d.ts +0 -12
- package/lib/types/src/routes/base/parsers/epm.d.ts +0 -30
- package/lib/types/src/routes/base/parsers/factory.d.ts +0 -15
- package/lib/types/src/routes/base/parsers/geometry.d.ts +0 -31
- package/lib/types/src/routes/base/parsers/gpx.d.ts +0 -28
- package/lib/types/src/routes/base/parsers/incyclist.d.ts +0 -16
- package/lib/types/src/routes/base/parsers/index.d.ts +0 -9
- package/lib/types/src/routes/base/parsers/kwt.d.ts +0 -4
- package/lib/types/src/routes/base/parsers/multixml.d.ts +0 -15
- package/lib/types/src/routes/base/parsers/tacx/TacxParser.d.ts +0 -35
- package/lib/types/src/routes/base/parsers/tacx/TacxReader.d.ts +0 -12
- package/lib/types/src/routes/base/parsers/tacx/pgmf.d.ts +0 -8
- package/lib/types/src/routes/base/parsers/tacx/rlv.d.ts +0 -10
- package/lib/types/src/routes/base/parsers/types.d.ts +0 -29
- package/lib/types/src/routes/base/parsers/utils.d.ts +0 -28
- package/lib/types/src/routes/base/parsers/xml.d.ts +0 -36
- package/lib/types/src/routes/base/types/index.d.ts +0 -125
- package/lib/types/src/routes/base/utils/index.d.ts +0 -1
- package/lib/types/src/routes/base/utils/localization.d.ts +0 -4
- package/lib/types/src/routes/base/utils/points.d.ts +0 -24
- package/lib/types/src/routes/base/utils/route.d.ts +0 -44
- package/lib/types/src/routes/download/service.d.ts +0 -36
- package/lib/types/src/routes/download/types.d.ts +0 -8
- package/lib/types/src/routes/free-ride/index.d.ts +0 -1
- package/lib/types/src/routes/free-ride/service.d.ts +0 -58
- package/lib/types/src/routes/index.d.ts +0 -5
- package/lib/types/src/routes/library/service.d.ts +0 -44
- package/lib/types/src/routes/library/types.d.ts +0 -73
- package/lib/types/src/routes/list/RouteListObserver.d.ts +0 -13
- package/lib/types/src/routes/list/cards/ActiveImportCard.d.ts +0 -32
- package/lib/types/src/routes/list/cards/FreeRideCard.d.ts +0 -40
- package/lib/types/src/routes/list/cards/RouteCard.d.ts +0 -119
- package/lib/types/src/routes/list/cards/RouteImportCard.d.ts +0 -19
- package/lib/types/src/routes/list/cards/base.d.ts +0 -24
- package/lib/types/src/routes/list/cards/types.d.ts +0 -103
- package/lib/types/src/routes/list/index.d.ts +0 -1
- package/lib/types/src/routes/list/lists/alternatives.d.ts +0 -5
- package/lib/types/src/routes/list/lists/myroutes.d.ts +0 -10
- package/lib/types/src/routes/list/lists/selected.d.ts +0 -5
- package/lib/types/src/routes/list/loaders/DBLoader.d.ts +0 -22
- package/lib/types/src/routes/list/loaders/LegacyDB.d.ts +0 -17
- package/lib/types/src/routes/list/loaders/StravaActivityLoader.d.ts +0 -44
- package/lib/types/src/routes/list/loaders/api.d.ts +0 -28
- package/lib/types/src/routes/list/loaders/db.d.ts +0 -41
- package/lib/types/src/routes/list/loaders/types.d.ts +0 -43
- package/lib/types/src/routes/list/service.d.ts +0 -173
- package/lib/types/src/routes/list/types.d.ts +0 -93
- package/lib/types/src/routes/list/utils.d.ts +0 -5
- package/lib/types/src/routes/page/index.d.ts +0 -1
- package/lib/types/src/routes/page/service.d.ts +0 -66
- package/lib/types/src/routes/page/types.d.ts +0 -41
- package/lib/types/src/routes/sync/factory.d.ts +0 -14
- package/lib/types/src/routes/sync/index.d.ts +0 -2
- package/lib/types/src/routes/sync/komoot/provider.d.ts +0 -51
- package/lib/types/src/routes/sync/types.d.ts +0 -11
- package/lib/types/src/routes/types.d.ts +0 -9
- package/lib/types/src/services/index.d.ts +0 -1
- package/lib/types/src/services/overpass/index.d.ts +0 -1
- package/lib/types/src/services/overpass/overpass.d.ts +0 -30
- package/lib/types/src/settings/bindings/index.d.ts +0 -1
- package/lib/types/src/settings/bindings/json.d.ts +0 -15
- package/lib/types/src/settings/bindings/types.d.ts +0 -8
- package/lib/types/src/settings/display/index.d.ts +0 -2
- package/lib/types/src/settings/display/support/index.d.ts +0 -1
- package/lib/types/src/settings/display/support/service.d.ts +0 -17
- package/lib/types/src/settings/display/support/types.d.ts +0 -14
- package/lib/types/src/settings/display/user/index.d.ts +0 -2
- package/lib/types/src/settings/display/user/service.d.ts +0 -23
- package/lib/types/src/settings/display/user/types.d.ts +0 -22
- package/lib/types/src/settings/index.d.ts +0 -2
- package/lib/types/src/settings/service/index.d.ts +0 -1
- package/lib/types/src/settings/service/mock.d.ts +0 -13
- package/lib/types/src/settings/service/service.d.ts +0 -48
- package/lib/types/src/settings/types.d.ts +0 -2
- package/lib/types/src/types.d.ts +0 -8
- package/lib/types/src/ui/index.d.ts +0 -1
- package/lib/types/src/ui/service.d.ts +0 -60
- package/lib/types/src/ui/types.d.ts +0 -1
- package/lib/types/src/utils/calc.d.ts +0 -8
- package/lib/types/src/utils/clone.d.ts +0 -1
- package/lib/types/src/utils/fileinfo.d.ts +0 -2
- package/lib/types/src/utils/formatting.d.ts +0 -5
- package/lib/types/src/utils/geo.d.ts +0 -15
- package/lib/types/src/utils/index.d.ts +0 -10
- package/lib/types/src/utils/logging.d.ts +0 -2
- package/lib/types/src/utils/math.d.ts +0 -7
- package/lib/types/src/utils/merge.d.ts +0 -1
- package/lib/types/src/utils/nextTick.d.ts +0 -1
- package/lib/types/src/utils/sleep.d.ts +0 -1
- package/lib/types/src/utils/string.d.ts +0 -1
- package/lib/types/src/utils/time.d.ts +0 -4
- package/lib/types/src/utils/valid.d.ts +0 -1
- package/lib/types/src/utils/vector.d.ts +0 -25
- package/lib/types/src/utils/xml.d.ts +0 -18
- package/lib/types/src/video/VideoConversion.d.ts +0 -23
- package/lib/types/src/video/VideoSyncHelper.d.ts +0 -76
- package/lib/types/src/video/index.d.ts +0 -3
- package/lib/types/src/video/types.d.ts +0 -41
- package/lib/types/src/workouts/base/api/consts.d.ts +0 -9
- package/lib/types/src/workouts/base/api/index.d.ts +0 -17
- package/lib/types/src/workouts/base/model/Segment.d.ts +0 -18
- package/lib/types/src/workouts/base/model/Step.d.ts +0 -35
- package/lib/types/src/workouts/base/model/Workout.d.ts +0 -26
- package/lib/types/src/workouts/base/model/index.d.ts +0 -4
- package/lib/types/src/workouts/base/model/types.d.ts +0 -61
- package/lib/types/src/workouts/base/parsers/factory.d.ts +0 -11
- package/lib/types/src/workouts/base/parsers/incyclist/Json.d.ts +0 -12
- package/lib/types/src/workouts/base/parsers/index.d.ts +0 -5
- package/lib/types/src/workouts/base/parsers/intervals/parser.d.ts +0 -59
- package/lib/types/src/workouts/base/parsers/intervals/types.d.ts +0 -57
- package/lib/types/src/workouts/base/parsers/types.d.ts +0 -8
- package/lib/types/src/workouts/base/parsers/zwo/zwo.d.ts +0 -37
- package/lib/types/src/workouts/calendar/index.d.ts +0 -3
- package/lib/types/src/workouts/calendar/service.d.ts +0 -50
- package/lib/types/src/workouts/calendar/sync/factory.d.ts +0 -10
- package/lib/types/src/workouts/calendar/sync/index.d.ts +0 -2
- package/lib/types/src/workouts/calendar/sync/intervals/provider.d.ts +0 -22
- package/lib/types/src/workouts/calendar/sync/types.d.ts +0 -10
- package/lib/types/src/workouts/calendar/types.d.ts +0 -15
- package/lib/types/src/workouts/index.d.ts +0 -3
- package/lib/types/src/workouts/list/cards/ActiveImportCard.d.ts +0 -27
- package/lib/types/src/workouts/list/cards/ScheduledWorkoutCard.d.ts +0 -13
- package/lib/types/src/workouts/list/cards/WorkoutCard.d.ts +0 -45
- package/lib/types/src/workouts/list/cards/WorkoutCreateCard.d.ts +0 -21
- package/lib/types/src/workouts/list/cards/WorkoutImportCard.d.ts +0 -19
- package/lib/types/src/workouts/list/cards/base.d.ts +0 -22
- package/lib/types/src/workouts/list/cards/index.d.ts +0 -4
- package/lib/types/src/workouts/list/cards/types.d.ts +0 -56
- package/lib/types/src/workouts/list/index.d.ts +0 -2
- package/lib/types/src/workouts/list/loaders/api.d.ts +0 -11
- package/lib/types/src/workouts/list/loaders/db.d.ts +0 -27
- package/lib/types/src/workouts/list/loaders/loader.d.ts +0 -10
- package/lib/types/src/workouts/list/service.d.ts +0 -90
- package/lib/types/src/workouts/list/types.d.ts +0 -12
- package/lib/types/src/workouts/ride/index.d.ts +0 -2
- package/lib/types/src/workouts/ride/service.d.ts +0 -69
- package/lib/types/src/workouts/ride/types.d.ts +0 -25
|
@@ -40,7 +40,7 @@ const apps_1 = require("../../apps");
|
|
|
40
40
|
const decorators_1 = require("../../base/decorators");
|
|
41
41
|
const types_1 = require("../../base/types");
|
|
42
42
|
const routes_1 = require("../../routes");
|
|
43
|
-
const
|
|
43
|
+
const display_1 = require("../../settings/display");
|
|
44
44
|
const RouteDisplayService_1 = require("./RouteDisplayService");
|
|
45
45
|
const SV_UPDATE_FREQ = 3000;
|
|
46
46
|
const SV_MIN_READY = 1500;
|
|
@@ -48,18 +48,18 @@ const SV_MIN_DELAY = 1000;
|
|
|
48
48
|
let GpxDisplayService = (() => {
|
|
49
49
|
let _classSuper = RouteDisplayService_1.RouteDisplayService;
|
|
50
50
|
let _instanceExtraInitializers = [];
|
|
51
|
-
let _getUserSettings_decorators;
|
|
52
51
|
let _getGoogleMaps_decorators;
|
|
53
52
|
let _getBindings_decorators;
|
|
53
|
+
let _getRideSettingsDisplay_decorators;
|
|
54
54
|
return class GpxDisplayService extends _classSuper {
|
|
55
55
|
static {
|
|
56
56
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
57
|
-
_getUserSettings_decorators = [decorators_1.Injectable];
|
|
58
57
|
_getGoogleMaps_decorators = [decorators_1.Injectable];
|
|
59
58
|
_getBindings_decorators = [decorators_1.Injectable];
|
|
60
|
-
|
|
59
|
+
_getRideSettingsDisplay_decorators = [decorators_1.Injectable];
|
|
61
60
|
__esDecorate(this, null, _getGoogleMaps_decorators, { kind: "method", name: "getGoogleMaps", static: false, private: false, access: { has: obj => "getGoogleMaps" in obj, get: obj => obj.getGoogleMaps }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
62
61
|
__esDecorate(this, null, _getBindings_decorators, { kind: "method", name: "getBindings", static: false, private: false, access: { has: obj => "getBindings" in obj, get: obj => obj.getBindings }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
62
|
+
__esDecorate(this, null, _getRideSettingsDisplay_decorators, { kind: "method", name: "getRideSettingsDisplay", static: false, private: false, access: { has: obj => "getRideSettingsDisplay" in obj, get: obj => obj.getRideSettingsDisplay }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
63
63
|
if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
64
64
|
}
|
|
65
65
|
mapLoaded = (__runInitializers(this, _instanceExtraInitializers), false);
|
|
@@ -78,7 +78,7 @@ let GpxDisplayService = (() => {
|
|
|
78
78
|
}
|
|
79
79
|
initView() {
|
|
80
80
|
try {
|
|
81
|
-
const rideView = this.getRideView();
|
|
81
|
+
const rideView = this.getRideSettingsDisplay().getRideView();
|
|
82
82
|
if (rideView === 'sv') {
|
|
83
83
|
const updateFreq = this.getDefaultUpdateFrequency();
|
|
84
84
|
const minimalPause = this.getMinimalPause();
|
|
@@ -121,7 +121,7 @@ let GpxDisplayService = (() => {
|
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
getStartOverlayProps() {
|
|
124
|
-
const rideView = this.getRideView();
|
|
124
|
+
const rideView = this.getRideSettingsDisplay().getRideView();
|
|
125
125
|
if (rideView === 'map' || this.isMobile()) {
|
|
126
126
|
return {
|
|
127
127
|
mapType: this.getRideViewName(),
|
|
@@ -135,7 +135,7 @@ let GpxDisplayService = (() => {
|
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
isStartRideCompleted() {
|
|
138
|
-
const rideView = this.getRideView();
|
|
138
|
+
const rideView = this.getRideSettingsDisplay().getRideView();
|
|
139
139
|
if (rideView === 'map' || this.isMobile()) {
|
|
140
140
|
this.mapLoaded = true;
|
|
141
141
|
return true;
|
|
@@ -144,7 +144,7 @@ let GpxDisplayService = (() => {
|
|
|
144
144
|
}
|
|
145
145
|
getDisplayProperties(props) {
|
|
146
146
|
let routeProps = super.getDisplayProperties(props);
|
|
147
|
-
const rideView = this.getRideView();
|
|
147
|
+
const rideView = this.getRideSettingsDisplay().getRideView();
|
|
148
148
|
if (rideView === 'sv') {
|
|
149
149
|
routeProps = { ...routeProps, ...this.getStreetViewProps(props) };
|
|
150
150
|
}
|
|
@@ -160,13 +160,10 @@ let GpxDisplayService = (() => {
|
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
getRideView() {
|
|
163
|
-
|
|
164
|
-
return 'sv';
|
|
165
|
-
const rideView = this.getUserSettings().get('preferences.rideView', 'sv');
|
|
166
|
-
return rideView;
|
|
163
|
+
return this.getRideSettingsDisplay().getRideView();
|
|
167
164
|
}
|
|
168
165
|
getRideViewName() {
|
|
169
|
-
const rideView = this.getRideView();
|
|
166
|
+
const rideView = this.getRideSettingsDisplay().getRideView();
|
|
170
167
|
const map = {
|
|
171
168
|
map: 'Map',
|
|
172
169
|
sv: 'Street View',
|
|
@@ -261,7 +258,7 @@ let GpxDisplayService = (() => {
|
|
|
261
258
|
}
|
|
262
259
|
onPositionUpdate(state) {
|
|
263
260
|
const { route, position } = state ?? {};
|
|
264
|
-
const rideView = this.getRideView();
|
|
261
|
+
const rideView = this.getRideSettingsDisplay().getRideView();
|
|
265
262
|
if (rideView === 'sv') {
|
|
266
263
|
const sincePrev = Date.now() - (this.tsPrevSVUpdate ?? 0);
|
|
267
264
|
if (sincePrev > this.getStreetViewUpdateDelay() - 25) {
|
|
@@ -308,8 +305,8 @@ let GpxDisplayService = (() => {
|
|
|
308
305
|
isMobile() {
|
|
309
306
|
return this.getBindings().appInfo?.getChannel() === 'mobile';
|
|
310
307
|
}
|
|
311
|
-
|
|
312
|
-
return (
|
|
308
|
+
isIOS() {
|
|
309
|
+
return this.getBindings().appInfo?.getOS().platform === 'ios';
|
|
313
310
|
}
|
|
314
311
|
getGoogleMaps() {
|
|
315
312
|
return (0, apps_1.useGoogleMaps)();
|
|
@@ -317,6 +314,9 @@ let GpxDisplayService = (() => {
|
|
|
317
314
|
getBindings() {
|
|
318
315
|
return (0, api_1.getBindings)();
|
|
319
316
|
}
|
|
317
|
+
getRideSettingsDisplay() {
|
|
318
|
+
return (0, display_1.useRideSettingsDisplay)();
|
|
319
|
+
}
|
|
320
320
|
};
|
|
321
321
|
})();
|
|
322
322
|
exports.GpxDisplayService = GpxDisplayService;
|
|
@@ -83,8 +83,10 @@ let RideSettingsDisplayService = (() => {
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
setRideView(rideView) {
|
|
86
|
+
if (this.isRestricted())
|
|
87
|
+
return;
|
|
86
88
|
try {
|
|
87
|
-
this.getUserSettings().
|
|
89
|
+
this.getUserSettings().set('preferences.rideView', rideView);
|
|
88
90
|
}
|
|
89
91
|
catch (err) {
|
|
90
92
|
this.logError(err, 'setRideView');
|
|
@@ -95,6 +97,8 @@ let RideSettingsDisplayService = (() => {
|
|
|
95
97
|
this.observer.emit('changed', this.getDisplayProps());
|
|
96
98
|
}
|
|
97
99
|
getRideView() {
|
|
100
|
+
if (this.isRestricted())
|
|
101
|
+
return 'map';
|
|
98
102
|
if (this.isMobile() && !this.isAndroid())
|
|
99
103
|
return 'map';
|
|
100
104
|
const rideView = this.getUserSettings().get('preferences.rideView', 'sv');
|
|
@@ -102,6 +106,10 @@ let RideSettingsDisplayService = (() => {
|
|
|
102
106
|
}
|
|
103
107
|
getRideViewOptions() {
|
|
104
108
|
const map = new Map();
|
|
109
|
+
if (this.isRestricted()) {
|
|
110
|
+
map.set('map', 'Map');
|
|
111
|
+
return map;
|
|
112
|
+
}
|
|
105
113
|
if (!this.isIOS())
|
|
106
114
|
map.set('sv', 'Street View');
|
|
107
115
|
map.set('map', 'Map');
|
|
@@ -109,6 +117,13 @@ let RideSettingsDisplayService = (() => {
|
|
|
109
117
|
map.set('sat', 'Satellite View');
|
|
110
118
|
return map;
|
|
111
119
|
}
|
|
120
|
+
isRestricted() {
|
|
121
|
+
if (this.isMobile()) {
|
|
122
|
+
const secretsStatus = this.getSecretBinding()?.getSecretsStatus?.();
|
|
123
|
+
return (secretsStatus === 'stale' || secretsStatus === 'missing' || secretsStatus === undefined);
|
|
124
|
+
}
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
112
127
|
isMobile() {
|
|
113
128
|
return this.getBindings().appInfo?.getChannel() === 'mobile';
|
|
114
129
|
}
|
|
@@ -116,7 +131,7 @@ let RideSettingsDisplayService = (() => {
|
|
|
116
131
|
return this.getBindings().appInfo?.getOS()?.platform === 'android';
|
|
117
132
|
}
|
|
118
133
|
isIOS() {
|
|
119
|
-
return this.getBindings().appInfo?.getOS()?.platform === '
|
|
134
|
+
return this.getBindings().appInfo?.getOS()?.platform === 'ios';
|
|
120
135
|
}
|
|
121
136
|
getUserSettings() {
|
|
122
137
|
return (0, service_2.useUserSettings)();
|
|
@@ -124,6 +139,9 @@ let RideSettingsDisplayService = (() => {
|
|
|
124
139
|
getBindings() {
|
|
125
140
|
return (0, api_1.getBindings)();
|
|
126
141
|
}
|
|
142
|
+
getSecretBinding() {
|
|
143
|
+
return this.getBindings().secret;
|
|
144
|
+
}
|
|
127
145
|
};
|
|
128
146
|
return RideSettingsDisplayService = _classThis;
|
|
129
147
|
})();
|
|
@@ -37,7 +37,7 @@ import { useGoogleMaps } from "../../apps";
|
|
|
37
37
|
import { Injectable } from "../../base/decorators";
|
|
38
38
|
import { Observer } from "../../base/types";
|
|
39
39
|
import { getHeading } from "../../routes";
|
|
40
|
-
import {
|
|
40
|
+
import { useRideSettingsDisplay } from "../../settings/display";
|
|
41
41
|
import { RouteDisplayService } from "./RouteDisplayService";
|
|
42
42
|
const SV_UPDATE_FREQ = 3000;
|
|
43
43
|
const SV_MIN_READY = 1500;
|
|
@@ -45,18 +45,18 @@ const SV_MIN_DELAY = 1000;
|
|
|
45
45
|
let GpxDisplayService = (() => {
|
|
46
46
|
let _classSuper = RouteDisplayService;
|
|
47
47
|
let _instanceExtraInitializers = [];
|
|
48
|
-
let _getUserSettings_decorators;
|
|
49
48
|
let _getGoogleMaps_decorators;
|
|
50
49
|
let _getBindings_decorators;
|
|
50
|
+
let _getRideSettingsDisplay_decorators;
|
|
51
51
|
return class GpxDisplayService extends _classSuper {
|
|
52
52
|
static {
|
|
53
53
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
54
|
-
_getUserSettings_decorators = [Injectable];
|
|
55
54
|
_getGoogleMaps_decorators = [Injectable];
|
|
56
55
|
_getBindings_decorators = [Injectable];
|
|
57
|
-
|
|
56
|
+
_getRideSettingsDisplay_decorators = [Injectable];
|
|
58
57
|
__esDecorate(this, null, _getGoogleMaps_decorators, { kind: "method", name: "getGoogleMaps", static: false, private: false, access: { has: obj => "getGoogleMaps" in obj, get: obj => obj.getGoogleMaps }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
59
58
|
__esDecorate(this, null, _getBindings_decorators, { kind: "method", name: "getBindings", static: false, private: false, access: { has: obj => "getBindings" in obj, get: obj => obj.getBindings }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
59
|
+
__esDecorate(this, null, _getRideSettingsDisplay_decorators, { kind: "method", name: "getRideSettingsDisplay", static: false, private: false, access: { has: obj => "getRideSettingsDisplay" in obj, get: obj => obj.getRideSettingsDisplay }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
60
60
|
if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
61
61
|
}
|
|
62
62
|
mapLoaded = (__runInitializers(this, _instanceExtraInitializers), false);
|
|
@@ -75,7 +75,7 @@ let GpxDisplayService = (() => {
|
|
|
75
75
|
}
|
|
76
76
|
initView() {
|
|
77
77
|
try {
|
|
78
|
-
const rideView = this.getRideView();
|
|
78
|
+
const rideView = this.getRideSettingsDisplay().getRideView();
|
|
79
79
|
if (rideView === 'sv') {
|
|
80
80
|
const updateFreq = this.getDefaultUpdateFrequency();
|
|
81
81
|
const minimalPause = this.getMinimalPause();
|
|
@@ -118,7 +118,7 @@ let GpxDisplayService = (() => {
|
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
getStartOverlayProps() {
|
|
121
|
-
const rideView = this.getRideView();
|
|
121
|
+
const rideView = this.getRideSettingsDisplay().getRideView();
|
|
122
122
|
if (rideView === 'map' || this.isMobile()) {
|
|
123
123
|
return {
|
|
124
124
|
mapType: this.getRideViewName(),
|
|
@@ -132,7 +132,7 @@ let GpxDisplayService = (() => {
|
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
isStartRideCompleted() {
|
|
135
|
-
const rideView = this.getRideView();
|
|
135
|
+
const rideView = this.getRideSettingsDisplay().getRideView();
|
|
136
136
|
if (rideView === 'map' || this.isMobile()) {
|
|
137
137
|
this.mapLoaded = true;
|
|
138
138
|
return true;
|
|
@@ -141,7 +141,7 @@ let GpxDisplayService = (() => {
|
|
|
141
141
|
}
|
|
142
142
|
getDisplayProperties(props) {
|
|
143
143
|
let routeProps = super.getDisplayProperties(props);
|
|
144
|
-
const rideView = this.getRideView();
|
|
144
|
+
const rideView = this.getRideSettingsDisplay().getRideView();
|
|
145
145
|
if (rideView === 'sv') {
|
|
146
146
|
routeProps = { ...routeProps, ...this.getStreetViewProps(props) };
|
|
147
147
|
}
|
|
@@ -157,13 +157,10 @@ let GpxDisplayService = (() => {
|
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
getRideView() {
|
|
160
|
-
|
|
161
|
-
return 'sv';
|
|
162
|
-
const rideView = this.getUserSettings().get('preferences.rideView', 'sv');
|
|
163
|
-
return rideView;
|
|
160
|
+
return this.getRideSettingsDisplay().getRideView();
|
|
164
161
|
}
|
|
165
162
|
getRideViewName() {
|
|
166
|
-
const rideView = this.getRideView();
|
|
163
|
+
const rideView = this.getRideSettingsDisplay().getRideView();
|
|
167
164
|
const map = {
|
|
168
165
|
map: 'Map',
|
|
169
166
|
sv: 'Street View',
|
|
@@ -258,7 +255,7 @@ let GpxDisplayService = (() => {
|
|
|
258
255
|
}
|
|
259
256
|
onPositionUpdate(state) {
|
|
260
257
|
const { route, position } = state ?? {};
|
|
261
|
-
const rideView = this.getRideView();
|
|
258
|
+
const rideView = this.getRideSettingsDisplay().getRideView();
|
|
262
259
|
if (rideView === 'sv') {
|
|
263
260
|
const sincePrev = Date.now() - (this.tsPrevSVUpdate ?? 0);
|
|
264
261
|
if (sincePrev > this.getStreetViewUpdateDelay() - 25) {
|
|
@@ -305,8 +302,8 @@ let GpxDisplayService = (() => {
|
|
|
305
302
|
isMobile() {
|
|
306
303
|
return this.getBindings().appInfo?.getChannel() === 'mobile';
|
|
307
304
|
}
|
|
308
|
-
|
|
309
|
-
return
|
|
305
|
+
isIOS() {
|
|
306
|
+
return this.getBindings().appInfo?.getOS().platform === 'ios';
|
|
310
307
|
}
|
|
311
308
|
getGoogleMaps() {
|
|
312
309
|
return useGoogleMaps();
|
|
@@ -314,6 +311,9 @@ let GpxDisplayService = (() => {
|
|
|
314
311
|
getBindings() {
|
|
315
312
|
return getBindings();
|
|
316
313
|
}
|
|
314
|
+
getRideSettingsDisplay() {
|
|
315
|
+
return useRideSettingsDisplay();
|
|
316
|
+
}
|
|
317
317
|
};
|
|
318
318
|
})();
|
|
319
319
|
export { GpxDisplayService };
|
|
@@ -80,8 +80,10 @@ let RideSettingsDisplayService = (() => {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
setRideView(rideView) {
|
|
83
|
+
if (this.isRestricted())
|
|
84
|
+
return;
|
|
83
85
|
try {
|
|
84
|
-
this.getUserSettings().
|
|
86
|
+
this.getUserSettings().set('preferences.rideView', rideView);
|
|
85
87
|
}
|
|
86
88
|
catch (err) {
|
|
87
89
|
this.logError(err, 'setRideView');
|
|
@@ -92,6 +94,8 @@ let RideSettingsDisplayService = (() => {
|
|
|
92
94
|
this.observer.emit('changed', this.getDisplayProps());
|
|
93
95
|
}
|
|
94
96
|
getRideView() {
|
|
97
|
+
if (this.isRestricted())
|
|
98
|
+
return 'map';
|
|
95
99
|
if (this.isMobile() && !this.isAndroid())
|
|
96
100
|
return 'map';
|
|
97
101
|
const rideView = this.getUserSettings().get('preferences.rideView', 'sv');
|
|
@@ -99,6 +103,10 @@ let RideSettingsDisplayService = (() => {
|
|
|
99
103
|
}
|
|
100
104
|
getRideViewOptions() {
|
|
101
105
|
const map = new Map();
|
|
106
|
+
if (this.isRestricted()) {
|
|
107
|
+
map.set('map', 'Map');
|
|
108
|
+
return map;
|
|
109
|
+
}
|
|
102
110
|
if (!this.isIOS())
|
|
103
111
|
map.set('sv', 'Street View');
|
|
104
112
|
map.set('map', 'Map');
|
|
@@ -106,6 +114,13 @@ let RideSettingsDisplayService = (() => {
|
|
|
106
114
|
map.set('sat', 'Satellite View');
|
|
107
115
|
return map;
|
|
108
116
|
}
|
|
117
|
+
isRestricted() {
|
|
118
|
+
if (this.isMobile()) {
|
|
119
|
+
const secretsStatus = this.getSecretBinding()?.getSecretsStatus?.();
|
|
120
|
+
return (secretsStatus === 'stale' || secretsStatus === 'missing' || secretsStatus === undefined);
|
|
121
|
+
}
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
109
124
|
isMobile() {
|
|
110
125
|
return this.getBindings().appInfo?.getChannel() === 'mobile';
|
|
111
126
|
}
|
|
@@ -113,7 +128,7 @@ let RideSettingsDisplayService = (() => {
|
|
|
113
128
|
return this.getBindings().appInfo?.getOS()?.platform === 'android';
|
|
114
129
|
}
|
|
115
130
|
isIOS() {
|
|
116
|
-
return this.getBindings().appInfo?.getOS()?.platform === '
|
|
131
|
+
return this.getBindings().appInfo?.getOS()?.platform === 'ios';
|
|
117
132
|
}
|
|
118
133
|
getUserSettings() {
|
|
119
134
|
return useUserSettings();
|
|
@@ -121,6 +136,9 @@ let RideSettingsDisplayService = (() => {
|
|
|
121
136
|
getBindings() {
|
|
122
137
|
return getBindings();
|
|
123
138
|
}
|
|
139
|
+
getSecretBinding() {
|
|
140
|
+
return this.getBindings().secret;
|
|
141
|
+
}
|
|
124
142
|
};
|
|
125
143
|
return RideSettingsDisplayService = _classThis;
|
|
126
144
|
})();
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GoogleMapsService } from "../../apps";
|
|
2
2
|
import { Observer } from "../../base/types";
|
|
3
3
|
import { Route } from "../../routes/base/model/route";
|
|
4
|
-
import { UserSettingsService } from "../../settings";
|
|
5
4
|
import { RoutePoint } from "../../types";
|
|
6
5
|
import { CurrentRideDisplayProps, GpxDisplayProps } from "../base";
|
|
7
6
|
import { RouteDisplayService } from "./RouteDisplayService";
|
|
@@ -45,7 +44,7 @@ export declare class GpxDisplayService extends RouteDisplayService {
|
|
|
45
44
|
};
|
|
46
45
|
isStartRideCompleted(): boolean;
|
|
47
46
|
getDisplayProperties(props: CurrentRideDisplayProps): GpxDisplayProps;
|
|
48
|
-
protected getRideView():
|
|
47
|
+
protected getRideView(): import("../../types").TRideView;
|
|
49
48
|
protected getRideViewName(): string;
|
|
50
49
|
protected onSatelliteViewEvent(state: SatelliteViewEvent, error?: string): void;
|
|
51
50
|
protected onMapViewEvent(state: SatelliteViewEvent, _error?: string): void;
|
|
@@ -61,7 +60,8 @@ export declare class GpxDisplayService extends RouteDisplayService {
|
|
|
61
60
|
protected getBestCaseUpdateFrequency(): number;
|
|
62
61
|
protected getNumSetting(key: string): number | undefined;
|
|
63
62
|
protected isMobile(): boolean;
|
|
64
|
-
protected
|
|
63
|
+
protected isIOS(): boolean;
|
|
65
64
|
protected getGoogleMaps(): GoogleMapsService;
|
|
66
65
|
protected getBindings(): import("../../api").IncyclistBindings;
|
|
66
|
+
protected getRideSettingsDisplay(): import("../../settings/display").RideSettingsDisplayService;
|
|
67
67
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ISecretBinding } from "../../../api";
|
|
1
2
|
import { IncyclistService } from "../../../base/service";
|
|
2
3
|
import { Observer } from "../../../base/types";
|
|
3
4
|
import { IObserver } from "../../../types";
|
|
@@ -11,12 +12,14 @@ export declare class RideSettingsDisplayService extends IncyclistService {
|
|
|
11
12
|
getDisplayProps(): RideSettingsDisplayProps;
|
|
12
13
|
setRideView(rideView: TRideView): void;
|
|
13
14
|
protected emitChanged(): void;
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
getRideView(): TRideView;
|
|
16
|
+
getRideViewOptions(): Map<TRideView, string>;
|
|
17
|
+
protected isRestricted(): boolean;
|
|
16
18
|
protected isMobile(): boolean;
|
|
17
19
|
protected isAndroid(): boolean;
|
|
18
20
|
protected isIOS(): boolean;
|
|
19
21
|
protected getUserSettings(): UserSettingsService;
|
|
20
22
|
protected getBindings(): import("../../../api").IncyclistBindings;
|
|
23
|
+
protected getSecretBinding(): ISecretBinding | undefined;
|
|
21
24
|
}
|
|
22
25
|
export declare const useRideSettingsDisplay: () => RideSettingsDisplayService;
|
package/package.json
CHANGED
package/lib/esm/package.json
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "incyclist-services",
|
|
3
|
-
"version": "1.7.65",
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"gd-eventlog": "^0.1.27"
|
|
6
|
-
},
|
|
7
|
-
"dependencies": {
|
|
8
|
-
"@garmin/fitsdk": "^21.200.0",
|
|
9
|
-
"axios": "^1.15.2",
|
|
10
|
-
"incyclist-devices": "^3.0.21",
|
|
11
|
-
"promise.any": "^2.0.6",
|
|
12
|
-
"semver": "^7.7.4",
|
|
13
|
-
"tcx-builder": "^1.1.1",
|
|
14
|
-
"uuid": "^14.0.0",
|
|
15
|
-
"xml2js": "^0.6.2"
|
|
16
|
-
},
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"@serialport/binding-mock": "^10.2.2",
|
|
19
|
-
"@serialport/bindings-interface": "^1.2.2",
|
|
20
|
-
"@types/jest": "^30.0.0",
|
|
21
|
-
"@types/node": "^25.6.0",
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "^8.58.2",
|
|
23
|
-
"@typescript-eslint/parser": "^8.58.2",
|
|
24
|
-
"dotenv": "^17.4.2",
|
|
25
|
-
"eslint": "^9.39.4",
|
|
26
|
-
"formdata-node": "^6.0.3",
|
|
27
|
-
"jest": "^30.3.0",
|
|
28
|
-
"jsdoc": "^4.0.5",
|
|
29
|
-
"ts-jest": "^29.4.9",
|
|
30
|
-
"typedoc": "^0.28.19",
|
|
31
|
-
"typedoc-plugin-markdown": "^4.11.0",
|
|
32
|
-
"typedoc-plugin-no-inherit": "^1.6.1",
|
|
33
|
-
"typescript": "^5.9.3",
|
|
34
|
-
"typescript-eslint": "^8.58.2"
|
|
35
|
-
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"lint": "eslint . --quiet",
|
|
38
|
-
"buildx": "npm run lint && tsc",
|
|
39
|
-
"build": "npm run build:esm && npm run build:cjs",
|
|
40
|
-
"build:esm": "tsc -p tsconfig.esm.json",
|
|
41
|
-
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
42
|
-
"test:all": "npx jest",
|
|
43
|
-
"test:e2e": "npx jest --coverage -c jest.e2e-config.cjs --coverageDirectory coverage.e2e",
|
|
44
|
-
"test:unit": "npx jest --coverage -c jest.unit-config.cjs ",
|
|
45
|
-
"test": "npx jest --coverage -c jest.unit-config.cjs ",
|
|
46
|
-
"dev": "tsc -p tsconfig.esm.json --watch",
|
|
47
|
-
"docgen": "typedoc --options typedoc.json",
|
|
48
|
-
"docgen1": "typedoc --readme none --excludeProtected --excludePrivate --plugin typedoc-plugin-no-inherit --plugin typedoc-plugin-markdown src/index.ts",
|
|
49
|
-
"postversion": "git push --tags"
|
|
50
|
-
},
|
|
51
|
-
"files": [
|
|
52
|
-
"lib/"
|
|
53
|
-
],
|
|
54
|
-
"module": "./lib/esm/index.js",
|
|
55
|
-
"main": "./lib/cjs/index.js",
|
|
56
|
-
"types": "./lib/types/index.d.ts",
|
|
57
|
-
"exports": {
|
|
58
|
-
".": {
|
|
59
|
-
"types": "./lib/types/index.d.ts",
|
|
60
|
-
"import": "./lib/esm/index.js",
|
|
61
|
-
"require": "./lib/cjs/index.js"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"directories": {
|
|
65
|
-
"example": "./sample",
|
|
66
|
-
"lib": "./src"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
File without changes
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
2
|
-
var useValue = arguments.length > 2;
|
|
3
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
4
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
5
|
-
}
|
|
6
|
-
return useValue ? value : void 0;
|
|
7
|
-
};
|
|
8
|
-
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
9
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
10
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
11
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
12
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
13
|
-
var _, done = false;
|
|
14
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
15
|
-
var context = {};
|
|
16
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
17
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
18
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
19
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
20
|
-
if (kind === "accessor") {
|
|
21
|
-
if (result === void 0) continue;
|
|
22
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
23
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
24
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
25
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
26
|
-
}
|
|
27
|
-
else if (_ = accept(result)) {
|
|
28
|
-
if (kind === "field") initializers.unshift(_);
|
|
29
|
-
else descriptor[key] = _;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
33
|
-
done = true;
|
|
34
|
-
};
|
|
35
|
-
import { getBindings } from "../../../api";
|
|
36
|
-
import { Injectable, Singleton } from "../../../base/decorators";
|
|
37
|
-
import { IncyclistService } from "../../../base/service";
|
|
38
|
-
import { Observer } from "../../../base/types";
|
|
39
|
-
import { useUserSettings } from "../../service";
|
|
40
|
-
let GearSettingsDisplayService = (() => {
|
|
41
|
-
let _classDecorators = [Singleton];
|
|
42
|
-
let _classDescriptor;
|
|
43
|
-
let _classExtraInitializers = [];
|
|
44
|
-
let _classThis;
|
|
45
|
-
let _classSuper = IncyclistService;
|
|
46
|
-
let _instanceExtraInitializers = [];
|
|
47
|
-
let _getUserSettings_decorators;
|
|
48
|
-
let _getBindings_decorators;
|
|
49
|
-
var GearSettingsDisplayService = class extends _classSuper {
|
|
50
|
-
static { _classThis = this; }
|
|
51
|
-
static {
|
|
52
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
53
|
-
_getUserSettings_decorators = [Injectable];
|
|
54
|
-
_getBindings_decorators = [Injectable];
|
|
55
|
-
__esDecorate(this, null, _getUserSettings_decorators, { kind: "method", name: "getUserSettings", static: false, private: false, access: { has: obj => "getUserSettings" in obj, get: obj => obj.getUserSettings }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
56
|
-
__esDecorate(this, null, _getBindings_decorators, { kind: "method", name: "getBindings", static: false, private: false, access: { has: obj => "getBindings" in obj, get: obj => obj.getBindings }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
57
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
58
|
-
GearSettingsDisplayService = _classThis = _classDescriptor.value;
|
|
59
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
60
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
61
|
-
}
|
|
62
|
-
observer = __runInitializers(this, _instanceExtraInitializers);
|
|
63
|
-
constructor() {
|
|
64
|
-
super('GearSettings');
|
|
65
|
-
}
|
|
66
|
-
open() {
|
|
67
|
-
if (this.observer)
|
|
68
|
-
this.close();
|
|
69
|
-
this.observer = new Observer();
|
|
70
|
-
return this.observer;
|
|
71
|
-
}
|
|
72
|
-
close() {
|
|
73
|
-
this.observer.stop();
|
|
74
|
-
delete this.observer;
|
|
75
|
-
}
|
|
76
|
-
getDisplayProps() {
|
|
77
|
-
return {
|
|
78
|
-
rideView: this.getRideView(),
|
|
79
|
-
rideViewOptions: this.getRideViewOptions()
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
setRideView(rideView) {
|
|
83
|
-
try {
|
|
84
|
-
this.getUserSettings().get('preferences.rideView', rideView);
|
|
85
|
-
}
|
|
86
|
-
catch (err) {
|
|
87
|
-
this.logError(err, 'setRideView');
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
emitChanged() {
|
|
91
|
-
if (this.observer)
|
|
92
|
-
this.observer.emit('changed', this.getDisplayProps());
|
|
93
|
-
}
|
|
94
|
-
getRideView() {
|
|
95
|
-
if (this.isMobile() && !this.isAndroid())
|
|
96
|
-
return 'map';
|
|
97
|
-
const rideView = this.getUserSettings().get('preferences.rideView', 'sv');
|
|
98
|
-
return rideView;
|
|
99
|
-
}
|
|
100
|
-
getRideViewOptions() {
|
|
101
|
-
const map = new Map();
|
|
102
|
-
if (!this.isIOS())
|
|
103
|
-
map.set('sv', 'Street View');
|
|
104
|
-
map.set('map', 'Map');
|
|
105
|
-
if (!this.isMobile())
|
|
106
|
-
map.set('sat', 'Satellite View');
|
|
107
|
-
return map;
|
|
108
|
-
}
|
|
109
|
-
isMobile() {
|
|
110
|
-
return this.getBindings().appInfo?.getChannel() === 'mobile';
|
|
111
|
-
}
|
|
112
|
-
isAndroid() {
|
|
113
|
-
return this.getBindings().appInfo?.getOS()?.platform === 'android';
|
|
114
|
-
}
|
|
115
|
-
isIOS() {
|
|
116
|
-
return this.getBindings().appInfo?.getOS()?.platform === 'darwin';
|
|
117
|
-
}
|
|
118
|
-
getUserSettings() {
|
|
119
|
-
return useUserSettings();
|
|
120
|
-
}
|
|
121
|
-
getBindings() {
|
|
122
|
-
return getBindings();
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
return GearSettingsDisplayService = _classThis;
|
|
126
|
-
})();
|
|
127
|
-
export { GearSettingsDisplayService };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|