wallee
Version:
TypeScript/JavaScript client for wallee
55 lines (54 loc) • 2.49 kB
TypeScript
import http = require("http");
import Promise = require("bluebird");
import { Authentication } from '../auth/Authentication';
import { WebAppConfirmationRequest } from '../models/WebAppConfirmationRequest';
import { WebAppConfirmationResponse } from '../models/WebAppConfirmationResponse';
declare class WebAppService {
protected _basePath: string;
protected _defaultHeaders: any;
protected _useQuerystring: boolean;
protected _timeout: number;
protected _defaultAuthentication: Authentication;
constructor(configuration: any);
/**
* Set timeout in seconds. Default timeout: 25 seconds
* @param {number} timeout
*/
set timeout(timeout: number);
private setTimeout;
set basePath(basePath: string);
get basePath(): string;
protected setDefaultAuthentication(auth: Authentication): void;
private getVersion;
/**
* This operation returns true when the app is installed in given space. The web app is implied by the client ID resp. user ID that is been used to invoke this operation.
* @summary Check Installation
* @param spaceId This parameter identifies the space which should be checked if the web app is installed.
* @param {*} [options] Override http request options.
*/
checkInstallation(spaceId: number, options?: any): Promise<{
response: http.IncomingMessage;
body: boolean;
}>;
/**
* This operation confirms the app installation. This method has to be invoked after the user returns to the web app. The request of the user will contain the code as a request parameter. The web app is implied by the client ID resp. user ID that is been used to invoke this operation.
* @summary Confirm
* @param request
* @param {*} [options] Override http request options.
*/
confirm(request: WebAppConfirmationRequest, options?: any): Promise<{
response: http.IncomingMessage;
body: WebAppConfirmationResponse;
}>;
/**
* This operation uninstalls the web app from the provided space. The web app is implied by the client ID resp. user ID that is been used to invoke this operation.
* @summary Uninstall
* @param spaceId This parameter identifies the space within which the web app should be uninstalled.
* @param {*} [options] Override http request options.
*/
uninstall(spaceId: number, options?: any): Promise<{
response: http.IncomingMessage;
body?: any;
}>;
}
export { WebAppService };