incyclist-services 1.9.23 → 1.9.24
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/apps/base/app/index.js +6 -0
- package/lib/cjs/apps/intervals/IntervalsAppConnection.js +6 -0
- package/lib/cjs/apps/komoot/KomootAppConnection.js +6 -0
- package/lib/cjs/apps/service.js +48 -16
- package/lib/cjs/apps/strava/StravaAppConnection.js +6 -0
- package/lib/esm/apps/base/app/index.js +6 -0
- package/lib/esm/apps/intervals/IntervalsAppConnection.js +6 -0
- package/lib/esm/apps/komoot/KomootAppConnection.js +6 -0
- package/lib/esm/apps/service.js +48 -16
- package/lib/esm/apps/strava/StravaAppConnection.js +6 -0
- package/lib/types/apps/base/app/index.d.ts +3 -1
- package/lib/types/apps/intervals/IntervalsAppConnection.d.ts +3 -0
- package/lib/types/apps/komoot/KomootAppConnection.d.ts +3 -0
- package/lib/types/apps/service.d.ts +6 -2
- package/lib/types/apps/strava/StravaAppConnection.d.ts +3 -0
- package/lib/types/apps/types.d.ts +3 -1
- package/package.json +1 -1
|
@@ -99,6 +99,12 @@ let ConnectedAppService = (() => {
|
|
|
99
99
|
this.init();
|
|
100
100
|
return this.isInitialized;
|
|
101
101
|
}
|
|
102
|
+
getSupportedOperations() {
|
|
103
|
+
return [];
|
|
104
|
+
}
|
|
105
|
+
getDefaultOperations() {
|
|
106
|
+
return [];
|
|
107
|
+
}
|
|
102
108
|
getUserSettings() {
|
|
103
109
|
return (0, settings_1.useUserSettings)();
|
|
104
110
|
}
|
|
@@ -121,6 +121,12 @@ let IntervalsAppConnection = (() => {
|
|
|
121
121
|
this.api = new api_2.IntervalsApi();
|
|
122
122
|
return this.api;
|
|
123
123
|
}
|
|
124
|
+
getSupportedOperations() {
|
|
125
|
+
return ['ActivityUpload', 'WorkoutDownload'];
|
|
126
|
+
}
|
|
127
|
+
getDefaultOperations() {
|
|
128
|
+
return ['ActivityUpload', 'WorkoutDownload'];
|
|
129
|
+
}
|
|
124
130
|
initAuth() {
|
|
125
131
|
let isInitialized;
|
|
126
132
|
try {
|
|
@@ -109,6 +109,12 @@ let KomootAppConnection = (() => {
|
|
|
109
109
|
getApi() {
|
|
110
110
|
return this.api;
|
|
111
111
|
}
|
|
112
|
+
getSupportedOperations() {
|
|
113
|
+
return ['ActivityUpload', 'RouteDownload'];
|
|
114
|
+
}
|
|
115
|
+
getDefaultOperations() {
|
|
116
|
+
return ['RouteDownload'];
|
|
117
|
+
}
|
|
112
118
|
initAuth() {
|
|
113
119
|
const api = this.getApi();
|
|
114
120
|
if (this.credentials && api) {
|
package/lib/cjs/apps/service.js
CHANGED
|
@@ -65,18 +65,11 @@ let AppsService = (() => {
|
|
|
65
65
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
66
66
|
__runInitializers(_classThis, _classExtraInitializers);
|
|
67
67
|
}
|
|
68
|
-
|
|
69
|
-
ActivityUpload: ['strava', 'intervals', 'komoot'],
|
|
70
|
-
WorkoutUpload: [],
|
|
71
|
-
WorkoutDownload: ['intervals'],
|
|
72
|
-
ActivityDownload: [],
|
|
73
|
-
RouteDownload: ['komoot']
|
|
74
|
-
});
|
|
75
|
-
serviceMap = [
|
|
68
|
+
serviceMap = (__runInitializers(this, _instanceExtraInitializers), [
|
|
76
69
|
{ name: 'Strava', key: 'strava', iconUrl: 'https://static.cdnlogo.com/logos/s/42/strava-wordmark.svg', connection: new base_1.StravaAppConnection() },
|
|
77
70
|
{ name: 'Komoot', key: 'komoot', iconUrl: 'https://www.komoot.com/assets/4d8ae313eec53e6e.svg', connection: new komoot_1.KomootAppConnection() },
|
|
78
71
|
{ name: 'Intervals.icu', key: 'intervals', iconUrl: 'images/intervals.png', connection: new IntervalsAppConnection_1.IntervalsAppConnection() },
|
|
79
|
-
];
|
|
72
|
+
]);
|
|
80
73
|
constructor() {
|
|
81
74
|
super('AppsService');
|
|
82
75
|
}
|
|
@@ -100,6 +93,8 @@ let AppsService = (() => {
|
|
|
100
93
|
if (!entry?.connection)
|
|
101
94
|
return false;
|
|
102
95
|
const success = await entry.connection.connect(credentials);
|
|
96
|
+
if (!this.hasSettings(app))
|
|
97
|
+
this.storeInitialSettings(app);
|
|
103
98
|
this.emit('connected', app, success);
|
|
104
99
|
return success;
|
|
105
100
|
}
|
|
@@ -127,18 +122,22 @@ let AppsService = (() => {
|
|
|
127
122
|
isEnabled(app, operation) {
|
|
128
123
|
if (!this.isConnected(app))
|
|
129
124
|
return false;
|
|
125
|
+
if (!this.hasSettings(app))
|
|
126
|
+
this.storeInitialSettings(app);
|
|
130
127
|
const supported = this.getAppOperationSettings(app);
|
|
131
128
|
const config = supported.find(oc => oc.operation === operation);
|
|
132
129
|
return config?.enabled;
|
|
133
130
|
}
|
|
134
131
|
getAppOperationSettings(app) {
|
|
135
|
-
const
|
|
132
|
+
const connectedApp = this.getAppConnection(app);
|
|
133
|
+
if (!connectedApp)
|
|
134
|
+
return [];
|
|
135
|
+
const supported = connectedApp.getSupportedOperations();
|
|
136
|
+
const defaults = connectedApp.getDefaultOperations();
|
|
136
137
|
const operations = [];
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
operations.push({ operation, enabled });
|
|
141
|
-
}
|
|
138
|
+
supported.forEach(operation => {
|
|
139
|
+
const enabled = this.getSettings(`preferences.${app}.${operation}.enabled`, defaults.includes(operation));
|
|
140
|
+
operations.push({ operation, enabled });
|
|
142
141
|
});
|
|
143
142
|
return operations;
|
|
144
143
|
}
|
|
@@ -159,7 +158,14 @@ let AppsService = (() => {
|
|
|
159
158
|
return [];
|
|
160
159
|
}
|
|
161
160
|
getAvailableServices(operation) {
|
|
162
|
-
|
|
161
|
+
const serviceIds = this.getServiceIDs();
|
|
162
|
+
const supported = [];
|
|
163
|
+
serviceIds.forEach(serviceKey => {
|
|
164
|
+
if (this.getAppConnection(serviceKey)?.getSupportedOperations().includes(operation)) {
|
|
165
|
+
supported.push(serviceKey);
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
return supported;
|
|
163
169
|
}
|
|
164
170
|
getName(key) {
|
|
165
171
|
const found = this.serviceMap.find(r => r.key === key);
|
|
@@ -169,6 +175,32 @@ let AppsService = (() => {
|
|
|
169
175
|
const found = this.serviceMap.find(r => r.name === name);
|
|
170
176
|
return found ? found.key : name;
|
|
171
177
|
}
|
|
178
|
+
hasSettings(app) {
|
|
179
|
+
const settings = this.getUserSettings().getValue(`preferences.${app}`, null);
|
|
180
|
+
return settings !== null;
|
|
181
|
+
}
|
|
182
|
+
storeInitialSettings(app) {
|
|
183
|
+
if (this.hasSettings(app))
|
|
184
|
+
return;
|
|
185
|
+
const connection = this.getAppConnection(app);
|
|
186
|
+
if (!connection)
|
|
187
|
+
return;
|
|
188
|
+
const supported = connection.getSupportedOperations();
|
|
189
|
+
const defaults = connection.getDefaultOperations();
|
|
190
|
+
for (const operation of supported) {
|
|
191
|
+
const isDefault = defaults.includes(operation);
|
|
192
|
+
this.getUserSettings().set(`preferences.${app}.${operation}.enabled`, isDefault);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
getServiceIDs() {
|
|
196
|
+
return this.serviceMap.map(m => m.key);
|
|
197
|
+
}
|
|
198
|
+
getAppConnections() {
|
|
199
|
+
return this.serviceMap.map(m => m.connection);
|
|
200
|
+
}
|
|
201
|
+
getAppConnection(serviceKey) {
|
|
202
|
+
return this.serviceMap.find(m => serviceKey === m.key)?.connection;
|
|
203
|
+
}
|
|
172
204
|
getAppDisplayProps(key) {
|
|
173
205
|
const entry = this.serviceMap.find(e => e.key === key);
|
|
174
206
|
const { name, iconUrl } = entry;
|
|
@@ -119,6 +119,12 @@ let StravaAppConnection = (() => {
|
|
|
119
119
|
this.api = new api_2.StravaApi();
|
|
120
120
|
return this.api;
|
|
121
121
|
}
|
|
122
|
+
getSupportedOperations() {
|
|
123
|
+
return ['ActivityUpload'];
|
|
124
|
+
}
|
|
125
|
+
getDefaultOperations() {
|
|
126
|
+
return ['ActivityUpload'];
|
|
127
|
+
}
|
|
122
128
|
initAuth() {
|
|
123
129
|
let isInitialized;
|
|
124
130
|
try {
|
|
@@ -118,6 +118,12 @@ let IntervalsAppConnection = (() => {
|
|
|
118
118
|
this.api = new IntervalsApi();
|
|
119
119
|
return this.api;
|
|
120
120
|
}
|
|
121
|
+
getSupportedOperations() {
|
|
122
|
+
return ['ActivityUpload', 'WorkoutDownload'];
|
|
123
|
+
}
|
|
124
|
+
getDefaultOperations() {
|
|
125
|
+
return ['ActivityUpload', 'WorkoutDownload'];
|
|
126
|
+
}
|
|
121
127
|
initAuth() {
|
|
122
128
|
let isInitialized;
|
|
123
129
|
try {
|
|
@@ -106,6 +106,12 @@ let KomootAppConnection = (() => {
|
|
|
106
106
|
getApi() {
|
|
107
107
|
return this.api;
|
|
108
108
|
}
|
|
109
|
+
getSupportedOperations() {
|
|
110
|
+
return ['ActivityUpload', 'RouteDownload'];
|
|
111
|
+
}
|
|
112
|
+
getDefaultOperations() {
|
|
113
|
+
return ['RouteDownload'];
|
|
114
|
+
}
|
|
109
115
|
initAuth() {
|
|
110
116
|
const api = this.getApi();
|
|
111
117
|
if (this.credentials && api) {
|
package/lib/esm/apps/service.js
CHANGED
|
@@ -62,18 +62,11 @@ let AppsService = (() => {
|
|
|
62
62
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
63
63
|
__runInitializers(_classThis, _classExtraInitializers);
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
ActivityUpload: ['strava', 'intervals', 'komoot'],
|
|
67
|
-
WorkoutUpload: [],
|
|
68
|
-
WorkoutDownload: ['intervals'],
|
|
69
|
-
ActivityDownload: [],
|
|
70
|
-
RouteDownload: ['komoot']
|
|
71
|
-
});
|
|
72
|
-
serviceMap = [
|
|
65
|
+
serviceMap = (__runInitializers(this, _instanceExtraInitializers), [
|
|
73
66
|
{ name: 'Strava', key: 'strava', iconUrl: 'https://static.cdnlogo.com/logos/s/42/strava-wordmark.svg', connection: new StravaAppConnection() },
|
|
74
67
|
{ name: 'Komoot', key: 'komoot', iconUrl: 'https://www.komoot.com/assets/4d8ae313eec53e6e.svg', connection: new KomootAppConnection() },
|
|
75
68
|
{ name: 'Intervals.icu', key: 'intervals', iconUrl: 'images/intervals.png', connection: new IntervalsAppConnection() },
|
|
76
|
-
];
|
|
69
|
+
]);
|
|
77
70
|
constructor() {
|
|
78
71
|
super('AppsService');
|
|
79
72
|
}
|
|
@@ -97,6 +90,8 @@ let AppsService = (() => {
|
|
|
97
90
|
if (!entry?.connection)
|
|
98
91
|
return false;
|
|
99
92
|
const success = await entry.connection.connect(credentials);
|
|
93
|
+
if (!this.hasSettings(app))
|
|
94
|
+
this.storeInitialSettings(app);
|
|
100
95
|
this.emit('connected', app, success);
|
|
101
96
|
return success;
|
|
102
97
|
}
|
|
@@ -124,18 +119,22 @@ let AppsService = (() => {
|
|
|
124
119
|
isEnabled(app, operation) {
|
|
125
120
|
if (!this.isConnected(app))
|
|
126
121
|
return false;
|
|
122
|
+
if (!this.hasSettings(app))
|
|
123
|
+
this.storeInitialSettings(app);
|
|
127
124
|
const supported = this.getAppOperationSettings(app);
|
|
128
125
|
const config = supported.find(oc => oc.operation === operation);
|
|
129
126
|
return config?.enabled;
|
|
130
127
|
}
|
|
131
128
|
getAppOperationSettings(app) {
|
|
132
|
-
const
|
|
129
|
+
const connectedApp = this.getAppConnection(app);
|
|
130
|
+
if (!connectedApp)
|
|
131
|
+
return [];
|
|
132
|
+
const supported = connectedApp.getSupportedOperations();
|
|
133
|
+
const defaults = connectedApp.getDefaultOperations();
|
|
133
134
|
const operations = [];
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
operations.push({ operation, enabled });
|
|
138
|
-
}
|
|
135
|
+
supported.forEach(operation => {
|
|
136
|
+
const enabled = this.getSettings(`preferences.${app}.${operation}.enabled`, defaults.includes(operation));
|
|
137
|
+
operations.push({ operation, enabled });
|
|
139
138
|
});
|
|
140
139
|
return operations;
|
|
141
140
|
}
|
|
@@ -156,7 +155,14 @@ let AppsService = (() => {
|
|
|
156
155
|
return [];
|
|
157
156
|
}
|
|
158
157
|
getAvailableServices(operation) {
|
|
159
|
-
|
|
158
|
+
const serviceIds = this.getServiceIDs();
|
|
159
|
+
const supported = [];
|
|
160
|
+
serviceIds.forEach(serviceKey => {
|
|
161
|
+
if (this.getAppConnection(serviceKey)?.getSupportedOperations().includes(operation)) {
|
|
162
|
+
supported.push(serviceKey);
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
return supported;
|
|
160
166
|
}
|
|
161
167
|
getName(key) {
|
|
162
168
|
const found = this.serviceMap.find(r => r.key === key);
|
|
@@ -166,6 +172,32 @@ let AppsService = (() => {
|
|
|
166
172
|
const found = this.serviceMap.find(r => r.name === name);
|
|
167
173
|
return found ? found.key : name;
|
|
168
174
|
}
|
|
175
|
+
hasSettings(app) {
|
|
176
|
+
const settings = this.getUserSettings().getValue(`preferences.${app}`, null);
|
|
177
|
+
return settings !== null;
|
|
178
|
+
}
|
|
179
|
+
storeInitialSettings(app) {
|
|
180
|
+
if (this.hasSettings(app))
|
|
181
|
+
return;
|
|
182
|
+
const connection = this.getAppConnection(app);
|
|
183
|
+
if (!connection)
|
|
184
|
+
return;
|
|
185
|
+
const supported = connection.getSupportedOperations();
|
|
186
|
+
const defaults = connection.getDefaultOperations();
|
|
187
|
+
for (const operation of supported) {
|
|
188
|
+
const isDefault = defaults.includes(operation);
|
|
189
|
+
this.getUserSettings().set(`preferences.${app}.${operation}.enabled`, isDefault);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
getServiceIDs() {
|
|
193
|
+
return this.serviceMap.map(m => m.key);
|
|
194
|
+
}
|
|
195
|
+
getAppConnections() {
|
|
196
|
+
return this.serviceMap.map(m => m.connection);
|
|
197
|
+
}
|
|
198
|
+
getAppConnection(serviceKey) {
|
|
199
|
+
return this.serviceMap.find(m => serviceKey === m.key)?.connection;
|
|
200
|
+
}
|
|
169
201
|
getAppDisplayProps(key) {
|
|
170
202
|
const entry = this.serviceMap.find(e => e.key === key);
|
|
171
203
|
const { name, iconUrl } = entry;
|
|
@@ -116,6 +116,12 @@ let StravaAppConnection = (() => {
|
|
|
116
116
|
this.api = new StravaApi();
|
|
117
117
|
return this.api;
|
|
118
118
|
}
|
|
119
|
+
getSupportedOperations() {
|
|
120
|
+
return ['ActivityUpload'];
|
|
121
|
+
}
|
|
122
|
+
getDefaultOperations() {
|
|
123
|
+
return ['ActivityUpload'];
|
|
124
|
+
}
|
|
119
125
|
initAuth() {
|
|
120
126
|
let isInitialized;
|
|
121
127
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IncyclistService } from "../../../base/service";
|
|
2
|
-
import { IConnectedApp } from "../../types";
|
|
2
|
+
import { AppsOperation, IConnectedApp } from "../../types";
|
|
3
3
|
import { AppCredentials } from "../types";
|
|
4
4
|
export declare class ConnectedAppService<C extends AppCredentials> extends IncyclistService implements IConnectedApp {
|
|
5
5
|
protected service: any;
|
|
@@ -16,5 +16,7 @@ export declare class ConnectedAppService<C extends AppCredentials> extends Incyc
|
|
|
16
16
|
protected initAuth(): boolean;
|
|
17
17
|
protected checkAuth(): boolean;
|
|
18
18
|
protected ensureInitialized(): boolean;
|
|
19
|
+
getSupportedOperations(): AppsOperation[];
|
|
20
|
+
getDefaultOperations(): AppsOperation[];
|
|
19
21
|
protected getUserSettings(): import("../../../settings").UserSettingsService;
|
|
20
22
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IntervalsApi, IntervalsConfig } from "../base/api";
|
|
2
2
|
import { ConnectedAppService } from "../base/app";
|
|
3
|
+
import { AppsOperation } from "../types";
|
|
3
4
|
import { IntervalsCredentials } from "./types";
|
|
4
5
|
export declare class IntervalsAppConnection extends ConnectedAppService<IntervalsCredentials> {
|
|
5
6
|
protected config: IntervalsConfig;
|
|
@@ -11,6 +12,8 @@ export declare class IntervalsAppConnection extends ConnectedAppService<Interval
|
|
|
11
12
|
isConnected(): boolean;
|
|
12
13
|
getCredentials(): IntervalsCredentials;
|
|
13
14
|
getApi(): IntervalsApi;
|
|
15
|
+
getSupportedOperations(): AppsOperation[];
|
|
16
|
+
getDefaultOperations(): AppsOperation[];
|
|
14
17
|
protected initAuth(): boolean;
|
|
15
18
|
protected updateConfig(config: IntervalsConfig): void;
|
|
16
19
|
protected saveCredentials(config?: IntervalsConfig): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { KomootApi } from "../base/api";
|
|
2
2
|
import { ConnectedAppService } from "../base/app";
|
|
3
|
+
import { AppsOperation } from "../types";
|
|
3
4
|
import { KomootAuth, KomootCredentials } from "./types";
|
|
4
5
|
export declare class KomootAppConnection extends ConnectedAppService<KomootCredentials> {
|
|
5
6
|
protected _isConnecting: any;
|
|
@@ -11,6 +12,8 @@ export declare class KomootAppConnection extends ConnectedAppService<KomootCrede
|
|
|
11
12
|
isConnected(): boolean;
|
|
12
13
|
getCredentials(): KomootCredentials;
|
|
13
14
|
getApi(): KomootApi;
|
|
15
|
+
getSupportedOperations(): AppsOperation[];
|
|
16
|
+
getDefaultOperations(): AppsOperation[];
|
|
14
17
|
protected initAuth(): boolean;
|
|
15
18
|
protected checkAuth(): boolean;
|
|
16
19
|
protected getAuthConfig(): KomootAuth | KomootCredentials;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ActivityUploadFactory } from "../activities/upload";
|
|
2
2
|
import { IncyclistService } from "../base/service";
|
|
3
3
|
import { AppCredentials } from "./base/types";
|
|
4
|
-
import { AppDefinition,
|
|
4
|
+
import { AppDefinition, AppsOperation, IConnectedApp } from "./types";
|
|
5
5
|
export declare class AppsService extends IncyclistService {
|
|
6
|
-
protected readonly services: AppsIntergationSpec;
|
|
7
6
|
protected readonly serviceMap: Array<AppDefinition>;
|
|
8
7
|
constructor();
|
|
9
8
|
openSettings(): {
|
|
@@ -26,6 +25,11 @@ export declare class AppsService extends IncyclistService {
|
|
|
26
25
|
getAvailableServices(operation: AppsOperation): Array<string>;
|
|
27
26
|
getName(key: string): string;
|
|
28
27
|
getKey(name: string): string;
|
|
28
|
+
protected hasSettings(app: string): boolean;
|
|
29
|
+
protected storeInitialSettings(app: string): void;
|
|
30
|
+
protected getServiceIDs(): Array<string>;
|
|
31
|
+
protected getAppConnections(): Array<IConnectedApp>;
|
|
32
|
+
protected getAppConnection(serviceKey: string): IConnectedApp | undefined;
|
|
29
33
|
protected getAppDisplayProps(key: string): {
|
|
30
34
|
name: string;
|
|
31
35
|
key: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { StravaApi, StravaConfig } from "../base/api";
|
|
2
2
|
import { ConnectedAppService } from "../base/app";
|
|
3
|
+
import { AppsOperation } from "../types";
|
|
3
4
|
import { StravaCredentials } from "./types";
|
|
4
5
|
export declare class StravaAppConnection extends ConnectedAppService<StravaCredentials> {
|
|
5
6
|
protected config: StravaConfig;
|
|
@@ -12,6 +13,8 @@ export declare class StravaAppConnection extends ConnectedAppService<StravaCrede
|
|
|
12
13
|
isConnected(): boolean;
|
|
13
14
|
getCredentials(): StravaCredentials;
|
|
14
15
|
getApi(): StravaApi;
|
|
16
|
+
getSupportedOperations(): AppsOperation[];
|
|
17
|
+
getDefaultOperations(): AppsOperation[];
|
|
15
18
|
protected initAuth(): boolean;
|
|
16
19
|
protected updateConfig(config: StravaConfig): void;
|
|
17
20
|
protected saveCredentials(config?: StravaConfig): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConnectedAppService } from "./base";
|
|
2
2
|
export type AppsOperation = 'ActivityUpload' | 'WorkoutUpload' | 'WorkoutDownload' | 'RouteDownload' | 'ActivityDownload';
|
|
3
|
-
export type AppsIntergationSpec =
|
|
3
|
+
export type AppsIntergationSpec = Map<AppsOperation, Array<string>>;
|
|
4
4
|
export type AppDefinition = {
|
|
5
5
|
name: string;
|
|
6
6
|
key: string;
|
|
@@ -10,6 +10,8 @@ export type AppDefinition = {
|
|
|
10
10
|
export interface IConnectedApp {
|
|
11
11
|
isConnected(): boolean;
|
|
12
12
|
init(): boolean;
|
|
13
|
+
getSupportedOperations(): AppsOperation[];
|
|
14
|
+
getDefaultOperations(): AppsOperation[];
|
|
13
15
|
}
|
|
14
16
|
export type * from './strava/types';
|
|
15
17
|
export type * from './komoot/types';
|