UNPKG

stash-connector

Version:

Module to handle and work with Atlassian Stash projects and repositories throug REST API. Admin your repositories and projects in Stash easy. This project is not an Atlassian official project but use the Atlassian Stash REST API

26 lines (25 loc) 1.16 kB
import { Basic, EndpointService } from "../types"; /** * Class to manage and expose all endpoits and operations below '/rest/api/1.0/hooks' */ export declare class HooksEndpoint extends EndpointService { /** * Contains all operations related with hooks avatar * All paths and operations from '/rest/api/1.0/hooks/{hookKey}/avatar'. * @returns {HookAvatarEndpoint} Get all operations about hooks avatar */ avatar: (hookKey: string) => HookAvatarEndpoint; constructor(auth: Basic); } /** * Class to manage and expose all endpoits and operations below '/rest/api/1.0/hooks/{hookKey}/avatar' */ export declare class HookAvatarEndpoint extends EndpointService { constructor(auth: Basic, hookKey: string); /** * Retrieve the avatar for the hook matching the supplied hookKey * @param {number} [version] Optional version used for HTTP caching only - any non-blank version will result in a large max-age Cache-Control header. Note that this does not affect the Last-Modified header. * @returns {Promise<any>} Promise with the image data */ get(version?: number): Promise<any>; }