Files
wanderer/web/src/lib/models/integration.ts
slothful-vassal 369e71fcec hammerhead integration added (#628)
* hammerhead integration added

* typo corrected

* start date added, optimize some translations

* new option to send trail to hammerhead

* fix elevation information (was in cm)

* skip empty tracks on import

* update docs

* remove manual user-id input

* fix merge issues

* remove user-id from documentation

* fix hammerhead logo for light theme

* fix hammerhead logo for light theme

---------

Co-authored-by: Christian Beutel <>
Co-authored-by: Flomp <Flomp@users.noreply.github.com>
2026-03-20 13:58:34 +01:00

48 lines
1.1 KiB
TypeScript

export interface BaseIntegration {
active: boolean
}
export interface StravaIntegration extends BaseIntegration {
clientId: string | number;
clientSecret?: string;
routes: boolean;
activities: boolean;
accessToken?: string;
refreshToken?: string;
expiresAt?: number;
after?: string
privacy: "original" | "settings"
}
export interface KomootIntegration extends BaseIntegration {
email: string,
password: string,
completed: boolean,
planned: boolean
privacy: "original" | "settings"
}
export interface HammerheadIntegration extends BaseIntegration {
email: string,
password: string,
completed: boolean,
planned: boolean,
after?: string
}
export class Integration {
id?: string;
user: string;
strava?: StravaIntegration | null;
komoot?: KomootIntegration | null;
hammerhead?: HammerheadIntegration | null;
constructor(user: string, strava?: StravaIntegration, komoot?: KomootIntegration, hammerhead?: HammerheadIntegration) {
this.user = user;
this.strava = strava;
this.komoot = komoot;
this.hammerhead = hammerhead;
}
}