UNPKG

angles-javascript-client

Version:

This is the javascript client for the Angles Dashboard. It allows you to store your test results.

22 lines (21 loc) 1.1 kB
import { AxiosInstance } from 'axios'; import { BaseRequests } from './BaseRequests'; import { Baseline } from '../models/Baseline'; import { Screenshot } from '../models/Screenshot'; import { IgnoreBox } from '../models/IgnoreBox'; import { DefaultResponse } from "../models/response/DefaultResponse"; export declare class BaselineRequests extends BaseRequests { constructor(axiosInstance: AxiosInstance); setBaseline(screenshot: Screenshot): Promise<Baseline>; getBaselineForScreenshot(screenshot: Screenshot): Promise<Baseline[]>; getBaselines(): Promise<Baseline[]>; getBaseline(baselineId: string): Promise<Baseline>; deleteBaseline(baselineId: string): Promise<DefaultResponse>; /** * * @param {string} baselineId the id of the baseline you want to update. * @param {string} [screenshotId] the new screenshot you want to set as the baseline. * @param {IgnoreBox[]} [ignoreBoxes] the ignoreboxes you want to set for the baseline. */ updateBaseline(baselineId: string, screenshotId: string, ignoreBoxes: IgnoreBox[]): Promise<Baseline>; }