feat(integrations): add mock integration (#3505)

This commit is contained in:
Meier Lukas authored and GitHub committed 2025-07-04 09:49:18 +02:00
1 parent 350a531d32
commit 58d5b14c51
73 files changed
+1049 -156

No files matched your search

@@ -8,10 +8,11 @@ import type { IntegrationTestingInput } from "../base/integration";
import { Integration } from "../base/integration";
import { TestConnectionError } from "../base/test-connection/test-connection-error";
import type { TestingResult } from "../base/test-connection/test-connection-service";
import type { CurrentSessionsInput, StreamSession } from "../interfaces/media-server/session";
import type { IMediaServerIntegration } from "../interfaces/media-server/media-server-integration";
import type { CurrentSessionsInput, StreamSession } from "../interfaces/media-server/media-server-types";
import type { PlexResponse } from "./interface";
export class PlexIntegration extends Integration {
export class PlexIntegration extends Integration implements IMediaServerIntegration {
public async getCurrentSessionsAsync(_options: CurrentSessionsInput): Promise<StreamSession[]> {
const token = super.getSecretValue("apiKey");