import { WebmateAPISession } from "../webmate-api-session"; import { WebmateAPIClient } from "../webmate-api-client"; import { WebmateAuthInfo } from "../webmate-auth-info"; import { WebmateEnvironment } from "../webmate-environment"; import { ArtifactId, BrowserSessionId, ProjectId, TestRunId } from "../types"; import { Observable } from "rxjs"; import { Artifact, ArtifactInfo, ArtifactType } from "./artifact-types"; /** * Facade to webmate's Artifact subsystem. */ export declare class ArtifactClient { private session; private apiClient; /** * Creates an ArtifactClient based on a WebmateApiSession. * * @param session The WebmateApiSession used by the ArtifactClient */ constructor(session: WebmateAPISession); /** * Retrieve Artifact infos associated with test run and browser session in project. * * @param id project id * @param artifactTypes Types of artifacts to retrieve. If empty, artifacts of all types are retrieved. * @param associatedTestRun testRunId associated with artifacts. (Optional) * @param associatedBrowserSession browserSessionId associated with artifacts. (Optional) * @return artifactInfo array */ queryArtifacts(id: ProjectId, artifactTypes: Array, associatedTestRun?: TestRunId, associatedBrowserSession?: BrowserSessionId): Observable>; /** * Retrieve Artifact with id. * * @param id Id of Artifact. * @return Artifact */ getArtifact(id: ArtifactId): Observable; } export declare class ArtifactApiClient extends WebmateAPIClient { private queryArtifactsTemplate; private getArtifactTemplate; constructor(authInfo: WebmateAuthInfo, environment: WebmateEnvironment); queryArtifacts(id: ProjectId, artifactTypes: Array, associatedTestRun?: TestRunId, associatedBrowserSession?: BrowserSessionId): Observable>; getArtifact(id: ArtifactId): Observable; }