incyclist-services 1.7.39 → 1.7.41
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/activities/index.js +1 -0
- package/lib/cjs/activities/page/index.js +17 -0
- package/lib/cjs/activities/page/service.js +169 -0
- package/lib/cjs/activities/page/types.js +2 -0
- package/lib/cjs/api/bindings/types.js +2 -0
- package/lib/cjs/api/form/types.js +2 -0
- package/lib/esm/activities/index.js +1 -0
- package/lib/esm/activities/page/index.js +1 -0
- package/lib/esm/activities/page/service.js +165 -0
- package/lib/esm/activities/page/types.js +1 -0
- package/lib/esm/api/bindings/types.js +1 -0
- package/lib/esm/api/form/types.js +1 -0
- package/lib/types/activities/base/convert/tcx/tcx.d.ts +1 -1
- package/lib/types/activities/index.d.ts +1 -0
- package/lib/types/activities/page/index.d.ts +1 -0
- package/lib/types/activities/page/service.d.ts +23 -0
- package/lib/types/activities/page/types.d.ts +10 -0
- package/lib/types/api/bindings/index.d.ts +1 -1
- package/lib/types/api/bindings/types.d.ts +14 -0
- package/lib/types/api/form/types.d.ts +6 -0
- package/lib/types/api/types.d.ts +1 -0
- package/lib/types/apps/base/api/base.d.ts +2 -2
- package/lib/types/apps/googleMaps/service.d.ts +1 -1
- package/lib/types/apps/intervals/IntervalsAppConnection.d.ts +1 -1
- package/lib/types/apps/komoot/KomootAppConnection.d.ts +1 -1
- package/lib/types/apps/strava/StravaAppConnection.d.ts +1 -1
- package/lib/types/apps/velohero/VeloHeroAppConnection.d.ts +1 -1
- package/lib/types/ride/route/RouteDisplayService.d.ts +1 -1
- package/lib/types/routes/base/parsers/epm.d.ts +1 -1
- package/lib/types/routes/list/loaders/StravaActivityLoader.d.ts +1 -1
- package/package.json +1 -1
|
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./active-rides"), exports);
|
|
18
18
|
__exportStar(require("./base"), exports);
|
|
19
19
|
__exportStar(require("./list"), exports);
|
|
20
|
+
__exportStar(require("./page"), exports);
|
|
20
21
|
__exportStar(require("./ride"), exports);
|
|
21
22
|
__exportStar(require("./upload"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./service"), exports);
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
3
|
+
var useValue = arguments.length > 2;
|
|
4
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
5
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
6
|
+
}
|
|
7
|
+
return useValue ? value : void 0;
|
|
8
|
+
};
|
|
9
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
10
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
11
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
12
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
13
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
14
|
+
var _, done = false;
|
|
15
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
16
|
+
var context = {};
|
|
17
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
18
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
19
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
20
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
21
|
+
if (kind === "accessor") {
|
|
22
|
+
if (result === void 0) continue;
|
|
23
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
24
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
25
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
26
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
27
|
+
}
|
|
28
|
+
else if (_ = accept(result)) {
|
|
29
|
+
if (kind === "field") initializers.unshift(_);
|
|
30
|
+
else descriptor[key] = _;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
34
|
+
done = true;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.getActivitiesPageService = exports.ActivitiesPageService = void 0;
|
|
38
|
+
const gd_eventlog_1 = require("gd-eventlog");
|
|
39
|
+
const decorators_1 = require("../../base/decorators");
|
|
40
|
+
const pages_1 = require("../../base/pages");
|
|
41
|
+
const list_1 = require("../list");
|
|
42
|
+
const sleep_1 = require("../../utils/sleep");
|
|
43
|
+
let ActivitiesPageService = (() => {
|
|
44
|
+
let _classDecorators = [decorators_1.Singleton];
|
|
45
|
+
let _classDescriptor;
|
|
46
|
+
let _classExtraInitializers = [];
|
|
47
|
+
let _classThis;
|
|
48
|
+
let _classSuper = pages_1.IncyclistPageService;
|
|
49
|
+
let _instanceExtraInitializers = [];
|
|
50
|
+
let _getActivityList_decorators;
|
|
51
|
+
var ActivitiesPageService = class extends _classSuper {
|
|
52
|
+
static { _classThis = this; }
|
|
53
|
+
static {
|
|
54
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
55
|
+
_getActivityList_decorators = [decorators_1.Injectable];
|
|
56
|
+
__esDecorate(this, null, _getActivityList_decorators, { kind: "method", name: "getActivityList", static: false, private: false, access: { has: obj => "getActivityList" in obj, get: obj => obj.getActivityList }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
57
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
58
|
+
ActivitiesPageService = _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
|
+
updateStateHandler = (__runInitializers(this, _instanceExtraInitializers), this.onStateUpdate.bind(this));
|
|
63
|
+
listState;
|
|
64
|
+
detailActivityId;
|
|
65
|
+
constructor() {
|
|
66
|
+
super('ActivitiesPage');
|
|
67
|
+
}
|
|
68
|
+
openPage() {
|
|
69
|
+
try {
|
|
70
|
+
this.logEvent({ message: 'page shown', page: 'Routes' });
|
|
71
|
+
gd_eventlog_1.EventLogger.setGlobalConfig('page', 'Routes');
|
|
72
|
+
super.openPage();
|
|
73
|
+
const service = this.getActivityList();
|
|
74
|
+
this.listState = service.openList();
|
|
75
|
+
this.startEventListener();
|
|
76
|
+
(0, sleep_1.sleep)(5).then(() => {
|
|
77
|
+
this.updatePageDisplay();
|
|
78
|
+
});
|
|
79
|
+
return this.getPageObserver();
|
|
80
|
+
}
|
|
81
|
+
catch (err) {
|
|
82
|
+
this.logError(err, 'openPage');
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
closePage() {
|
|
86
|
+
try {
|
|
87
|
+
gd_eventlog_1.EventLogger.setGlobalConfig('page', null);
|
|
88
|
+
this.logEvent({ message: 'page closed', page: 'Routes' });
|
|
89
|
+
this.getActivityList().closeList();
|
|
90
|
+
this.stopEventListener();
|
|
91
|
+
super.closePage();
|
|
92
|
+
}
|
|
93
|
+
catch (err) {
|
|
94
|
+
this.logError(err, 'closePage');
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
pausePage() {
|
|
98
|
+
try {
|
|
99
|
+
this.stopEventListener();
|
|
100
|
+
return super.pausePage();
|
|
101
|
+
}
|
|
102
|
+
catch (err) {
|
|
103
|
+
this.logError(err, 'pausePage');
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
resumePage() {
|
|
107
|
+
try {
|
|
108
|
+
this.startEventListener();
|
|
109
|
+
return super.resumePage();
|
|
110
|
+
}
|
|
111
|
+
catch (err) {
|
|
112
|
+
this.logError(err, 'resumePage');
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
getPageDisplayProps() {
|
|
116
|
+
const props = {
|
|
117
|
+
loading: this.listState.loading,
|
|
118
|
+
activities: this.listState.activities,
|
|
119
|
+
detailActivityId: this.detailActivityId
|
|
120
|
+
};
|
|
121
|
+
return props;
|
|
122
|
+
}
|
|
123
|
+
onOpenActivity(id) {
|
|
124
|
+
try {
|
|
125
|
+
this.detailActivityId = id === null ? undefined : id;
|
|
126
|
+
this.updatePageDisplay();
|
|
127
|
+
}
|
|
128
|
+
catch (err) {
|
|
129
|
+
this.logError(err, 'onOpenActivity');
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
onCloseActivity() {
|
|
133
|
+
try {
|
|
134
|
+
delete this.detailActivityId;
|
|
135
|
+
this.updatePageDisplay();
|
|
136
|
+
}
|
|
137
|
+
catch (err) {
|
|
138
|
+
this.logError(err, 'onCloseActivity');
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
updatePageDisplay() {
|
|
142
|
+
this.getPageObserver()?.emit('page-update');
|
|
143
|
+
}
|
|
144
|
+
onStateUpdate() {
|
|
145
|
+
this.updatePageDisplay();
|
|
146
|
+
}
|
|
147
|
+
startEventListener() {
|
|
148
|
+
const observer = this.getActivityList().getObserver();
|
|
149
|
+
if (!observer)
|
|
150
|
+
return;
|
|
151
|
+
observer.on('updated', this.updateStateHandler);
|
|
152
|
+
observer.on('loaded', this.updateStateHandler);
|
|
153
|
+
}
|
|
154
|
+
stopEventListener(final) {
|
|
155
|
+
const observer = this.getActivityList().getObserver();
|
|
156
|
+
if (!observer)
|
|
157
|
+
return;
|
|
158
|
+
observer.off('updated', this.updateStateHandler);
|
|
159
|
+
observer.off('loaded', this.updateStateHandler);
|
|
160
|
+
}
|
|
161
|
+
getActivityList() {
|
|
162
|
+
return (0, list_1.useActivityList)();
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
return ActivitiesPageService = _classThis;
|
|
166
|
+
})();
|
|
167
|
+
exports.ActivitiesPageService = ActivitiesPageService;
|
|
168
|
+
const getActivitiesPageService = () => new ActivitiesPageService();
|
|
169
|
+
exports.getActivitiesPageService = getActivitiesPageService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './service';
|
|
@@ -0,0 +1,165 @@
|
|
|
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 { EventLogger } from "gd-eventlog";
|
|
36
|
+
import { Injectable, Singleton } from "../../base/decorators";
|
|
37
|
+
import { IncyclistPageService } from "../../base/pages";
|
|
38
|
+
import { useActivityList } from "../list";
|
|
39
|
+
import { sleep } from "../../utils/sleep";
|
|
40
|
+
let ActivitiesPageService = (() => {
|
|
41
|
+
let _classDecorators = [Singleton];
|
|
42
|
+
let _classDescriptor;
|
|
43
|
+
let _classExtraInitializers = [];
|
|
44
|
+
let _classThis;
|
|
45
|
+
let _classSuper = IncyclistPageService;
|
|
46
|
+
let _instanceExtraInitializers = [];
|
|
47
|
+
let _getActivityList_decorators;
|
|
48
|
+
var ActivitiesPageService = class extends _classSuper {
|
|
49
|
+
static { _classThis = this; }
|
|
50
|
+
static {
|
|
51
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
52
|
+
_getActivityList_decorators = [Injectable];
|
|
53
|
+
__esDecorate(this, null, _getActivityList_decorators, { kind: "method", name: "getActivityList", static: false, private: false, access: { has: obj => "getActivityList" in obj, get: obj => obj.getActivityList }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
54
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
55
|
+
ActivitiesPageService = _classThis = _classDescriptor.value;
|
|
56
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
57
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
58
|
+
}
|
|
59
|
+
updateStateHandler = (__runInitializers(this, _instanceExtraInitializers), this.onStateUpdate.bind(this));
|
|
60
|
+
listState;
|
|
61
|
+
detailActivityId;
|
|
62
|
+
constructor() {
|
|
63
|
+
super('ActivitiesPage');
|
|
64
|
+
}
|
|
65
|
+
openPage() {
|
|
66
|
+
try {
|
|
67
|
+
this.logEvent({ message: 'page shown', page: 'Routes' });
|
|
68
|
+
EventLogger.setGlobalConfig('page', 'Routes');
|
|
69
|
+
super.openPage();
|
|
70
|
+
const service = this.getActivityList();
|
|
71
|
+
this.listState = service.openList();
|
|
72
|
+
this.startEventListener();
|
|
73
|
+
sleep(5).then(() => {
|
|
74
|
+
this.updatePageDisplay();
|
|
75
|
+
});
|
|
76
|
+
return this.getPageObserver();
|
|
77
|
+
}
|
|
78
|
+
catch (err) {
|
|
79
|
+
this.logError(err, 'openPage');
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
closePage() {
|
|
83
|
+
try {
|
|
84
|
+
EventLogger.setGlobalConfig('page', null);
|
|
85
|
+
this.logEvent({ message: 'page closed', page: 'Routes' });
|
|
86
|
+
this.getActivityList().closeList();
|
|
87
|
+
this.stopEventListener();
|
|
88
|
+
super.closePage();
|
|
89
|
+
}
|
|
90
|
+
catch (err) {
|
|
91
|
+
this.logError(err, 'closePage');
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
pausePage() {
|
|
95
|
+
try {
|
|
96
|
+
this.stopEventListener();
|
|
97
|
+
return super.pausePage();
|
|
98
|
+
}
|
|
99
|
+
catch (err) {
|
|
100
|
+
this.logError(err, 'pausePage');
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
resumePage() {
|
|
104
|
+
try {
|
|
105
|
+
this.startEventListener();
|
|
106
|
+
return super.resumePage();
|
|
107
|
+
}
|
|
108
|
+
catch (err) {
|
|
109
|
+
this.logError(err, 'resumePage');
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
getPageDisplayProps() {
|
|
113
|
+
const props = {
|
|
114
|
+
loading: this.listState.loading,
|
|
115
|
+
activities: this.listState.activities,
|
|
116
|
+
detailActivityId: this.detailActivityId
|
|
117
|
+
};
|
|
118
|
+
return props;
|
|
119
|
+
}
|
|
120
|
+
onOpenActivity(id) {
|
|
121
|
+
try {
|
|
122
|
+
this.detailActivityId = id === null ? undefined : id;
|
|
123
|
+
this.updatePageDisplay();
|
|
124
|
+
}
|
|
125
|
+
catch (err) {
|
|
126
|
+
this.logError(err, 'onOpenActivity');
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
onCloseActivity() {
|
|
130
|
+
try {
|
|
131
|
+
delete this.detailActivityId;
|
|
132
|
+
this.updatePageDisplay();
|
|
133
|
+
}
|
|
134
|
+
catch (err) {
|
|
135
|
+
this.logError(err, 'onCloseActivity');
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
updatePageDisplay() {
|
|
139
|
+
this.getPageObserver()?.emit('page-update');
|
|
140
|
+
}
|
|
141
|
+
onStateUpdate() {
|
|
142
|
+
this.updatePageDisplay();
|
|
143
|
+
}
|
|
144
|
+
startEventListener() {
|
|
145
|
+
const observer = this.getActivityList().getObserver();
|
|
146
|
+
if (!observer)
|
|
147
|
+
return;
|
|
148
|
+
observer.on('updated', this.updateStateHandler);
|
|
149
|
+
observer.on('loaded', this.updateStateHandler);
|
|
150
|
+
}
|
|
151
|
+
stopEventListener(final) {
|
|
152
|
+
const observer = this.getActivityList().getObserver();
|
|
153
|
+
if (!observer)
|
|
154
|
+
return;
|
|
155
|
+
observer.off('updated', this.updateStateHandler);
|
|
156
|
+
observer.off('loaded', this.updateStateHandler);
|
|
157
|
+
}
|
|
158
|
+
getActivityList() {
|
|
159
|
+
return useActivityList();
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
return ActivitiesPageService = _classThis;
|
|
163
|
+
})();
|
|
164
|
+
export { ActivitiesPageService };
|
|
165
|
+
export const getActivitiesPageService = () => new ActivitiesPageService();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -7,7 +7,7 @@ import { Step } from '../../../../workouts';
|
|
|
7
7
|
export declare class IncyclistAttribution extends AbstractSource {
|
|
8
8
|
toXml(): string;
|
|
9
9
|
constructor();
|
|
10
|
-
protected getAppInfo(): import("../../../../api
|
|
10
|
+
protected getAppInfo(): import("../../../../api").IAppInfo;
|
|
11
11
|
protected getBindings(): import("../../../../api").IncyclistBindings;
|
|
12
12
|
}
|
|
13
13
|
export declare class TcxConverter implements IActivityConverter {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './service';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IncyclistPageService } from "../../base/pages";
|
|
2
|
+
import { ActivitiesPageDisplayProps, IActivitiesPageService } from "./types";
|
|
3
|
+
import { IObserver } from "../../types";
|
|
4
|
+
import { ActivityListDisplayProperties } from "../list";
|
|
5
|
+
export declare class ActivitiesPageService extends IncyclistPageService implements IActivitiesPageService {
|
|
6
|
+
protected updateStateHandler: any;
|
|
7
|
+
protected listState: ActivityListDisplayProperties | undefined;
|
|
8
|
+
protected detailActivityId: string | undefined;
|
|
9
|
+
constructor();
|
|
10
|
+
openPage(): IObserver;
|
|
11
|
+
closePage(): void;
|
|
12
|
+
pausePage(): Promise<void>;
|
|
13
|
+
resumePage(): Promise<void>;
|
|
14
|
+
getPageDisplayProps(): ActivitiesPageDisplayProps;
|
|
15
|
+
onOpenActivity(id: string | null): void;
|
|
16
|
+
onCloseActivity(): void;
|
|
17
|
+
protected updatePageDisplay(): void;
|
|
18
|
+
protected onStateUpdate(): void;
|
|
19
|
+
protected startEventListener(): void;
|
|
20
|
+
protected stopEventListener(final?: boolean): void;
|
|
21
|
+
getActivityList(): import("../list").ActivityListService;
|
|
22
|
+
}
|
|
23
|
+
export declare const getActivitiesPageService: () => ActivitiesPageService;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPageService } from "../../base/pages";
|
|
2
|
+
import { ActivityInfoUI } from "../base";
|
|
3
|
+
export interface ActivitiesPageDisplayProps {
|
|
4
|
+
loading: boolean;
|
|
5
|
+
activities?: Array<ActivityInfoUI>;
|
|
6
|
+
detailActivityId?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IActivitiesPageService extends IPageService {
|
|
9
|
+
getPageDisplayProps(): ActivitiesPageDisplayProps;
|
|
10
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IAppInfo } from '../appInfo';
|
|
2
2
|
import type { IDownloadManager } from '../download';
|
|
3
|
-
import type { IFormPostBinding } from '../form';
|
|
3
|
+
import type { IFormPostBinding } from '../form/types';
|
|
4
4
|
import type { IFileSystem } from '../fs';
|
|
5
5
|
import type { ILogBinding } from '../logging/types';
|
|
6
6
|
import type { IMessageQueueBinding } from '../mq';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type * from '../appInfo';
|
|
2
|
+
export type * from '../download';
|
|
3
|
+
export type * from '../form/types';
|
|
4
|
+
export type * from '../fs';
|
|
5
|
+
export type * from '../logging/types';
|
|
6
|
+
export type * from '../mq';
|
|
7
|
+
export type { IPathBinding } from '../path';
|
|
8
|
+
export type * from '../repository/types';
|
|
9
|
+
export type * from '../ui';
|
|
10
|
+
export type * from '../video';
|
|
11
|
+
export type * from '../secret';
|
|
12
|
+
export type { ISerialBinding } from '../serial/types';
|
|
13
|
+
export type * from '../crypto/types';
|
|
14
|
+
export type { IUserSettingsBinding } from './index';
|
package/lib/types/api/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosResponse } from "axios";
|
|
2
|
-
import { Form } from "../../../api/form";
|
|
2
|
+
import type { Form } from "../../../api/form/types";
|
|
3
3
|
export declare class AppApiBase {
|
|
4
4
|
protected api: AxiosInstance;
|
|
5
5
|
protected getBaseUrl(): string;
|
|
@@ -9,5 +9,5 @@ export declare class AppApiBase {
|
|
|
9
9
|
protected createForm(url: string, uploadInfo: object, requestOpts?: {}): Promise<Form>;
|
|
10
10
|
protected getApi(): AxiosInstance;
|
|
11
11
|
protected getUserSettings(): import("../../../settings").UserSettingsService;
|
|
12
|
-
protected getFormBinding(): import("../../../api
|
|
12
|
+
protected getFormBinding(): import("../../../api").IFormPostBinding;
|
|
13
13
|
}
|
|
@@ -12,7 +12,7 @@ export declare class GoogleMapsService extends IncyclistService {
|
|
|
12
12
|
getMapsDownloadUrl(): any;
|
|
13
13
|
reload(): void;
|
|
14
14
|
protected getSecret(key: string): string;
|
|
15
|
-
protected getSecretBindings(): import("../../api
|
|
15
|
+
protected getSecretBindings(): import("../../api").ISecretBinding;
|
|
16
16
|
protected getUserSettings(): import("../../settings").UserSettingsService;
|
|
17
17
|
}
|
|
18
18
|
export declare const useGoogleMaps: () => GoogleMapsService;
|
|
@@ -19,5 +19,5 @@ export declare class IntervalsAppConnection extends ConnectedAppService<Interval
|
|
|
19
19
|
accessToken: string;
|
|
20
20
|
};
|
|
21
21
|
protected initApi(config: IntervalsConfig): void;
|
|
22
|
-
protected getSecretBindings(): import("../../api
|
|
22
|
+
protected getSecretBindings(): import("../../api").ISecretBinding;
|
|
23
23
|
}
|
|
@@ -21,5 +21,5 @@ export declare class KomootAppConnection extends ConnectedAppService<KomootCrede
|
|
|
21
21
|
protected getCrypto(): any;
|
|
22
22
|
protected encrypt(algo: string): KomootAuth;
|
|
23
23
|
protected decrypt(algo: string, auth: KomootAuth): KomootCredentials;
|
|
24
|
-
protected getSecretBindings(): import("../../api
|
|
24
|
+
protected getSecretBindings(): import("../../api").ISecretBinding;
|
|
25
25
|
}
|
|
@@ -24,5 +24,5 @@ export declare class StravaAppConnection extends ConnectedAppService<StravaCrede
|
|
|
24
24
|
expiration: Date;
|
|
25
25
|
};
|
|
26
26
|
protected initApi(config: StravaConfig): void;
|
|
27
|
-
protected getSecretBindings(): import("../../api
|
|
27
|
+
protected getSecretBindings(): import("../../api").ISecretBinding;
|
|
28
28
|
}
|
|
@@ -20,5 +20,5 @@ export declare class VeloHeroAppConnection extends ConnectedAppService<VeloHeroC
|
|
|
20
20
|
protected getCrypto(): any;
|
|
21
21
|
protected encrypt(algo: string): VeloHeroAuth;
|
|
22
22
|
protected decrypt(algo: string, auth: VeloHeroAuth): VeloHeroCredentials;
|
|
23
|
-
protected getSecretBindings(): import("../../api
|
|
23
|
+
protected getSecretBindings(): import("../../api").ISecretBinding;
|
|
24
24
|
}
|
|
@@ -63,7 +63,7 @@ export declare class RouteDisplayService extends RideModeService {
|
|
|
63
63
|
protected getRouteList(): import("../../routes").RouteListService;
|
|
64
64
|
protected getActiveRides(): import("../../activities").ActiveRidesService;
|
|
65
65
|
protected getDeviceRide(): import("../../devices").DeviceRideService;
|
|
66
|
-
protected getAppInfo(): import("../../api
|
|
66
|
+
protected getAppInfo(): import("../../api").IAppInfo;
|
|
67
67
|
protected getUnitConversionShortcuts(): any[];
|
|
68
68
|
protected getUnitConverter(): import("../../i18n").UnitConverterService;
|
|
69
69
|
}
|
|
@@ -24,5 +24,5 @@ export declare class EPMParser extends XMLParser {
|
|
|
24
24
|
protected buildInfo(context: EpmParserContext): Promise<RouteInfo>;
|
|
25
25
|
validate(context: EpmParserContext): void;
|
|
26
26
|
protected getChannel(): AppChannel;
|
|
27
|
-
protected getAppInfo(): import("../../../api
|
|
27
|
+
protected getAppInfo(): import("../../../api").IAppInfo;
|
|
28
28
|
}
|
|
@@ -38,7 +38,7 @@ export declare class StravaActivityLoader extends Loader<Activity> {
|
|
|
38
38
|
protected getCredentials(): StravaAuth;
|
|
39
39
|
protected getSecret(key: string): string;
|
|
40
40
|
protected getApi(): StravaApi;
|
|
41
|
-
getSecretBindings(): import("../../../api
|
|
41
|
+
getSecretBindings(): import("../../../api").ISecretBinding;
|
|
42
42
|
protected getUserSettings(): import("../../../settings").UserSettingsService;
|
|
43
43
|
}
|
|
44
44
|
export {};
|