cumulocity-cypress
Version:
Cypress commands for Cumulocity IoT
20 lines (19 loc) • 838 B
TypeScript
import { FetchClient, IAuthentication, IFetchOptions, IFetchResponse } from "@c8y/client";
import { C8yAuthOptions } from "../../shared/auth";
import { C8yBaseUrl } from "../../shared/types";
export declare class C8yPactFetchClient extends FetchClient {
private authentication?;
private cypresspact;
private authOptions;
private user;
private userAlias;
constructor(options: {
auth?: C8yAuthOptions | IAuthentication | string;
baseUrl?: C8yBaseUrl;
cypresspact?: CypressC8yPact;
});
protected getUser(): [string, string];
fetch(url: string, fetchOptions?: IFetchOptions): Promise<IFetchResponse>;
getFetchOptions(options?: IFetchOptions): IFetchOptions;
protected savePact(response: IFetchResponse, url: string, fetchOptions?: IFetchOptions): Promise<IFetchResponse>;
}