UNPKG

dots-wrapper

Version:

Digital Ocean v2 api wrapper - javascript - typescript - nodejs

20 lines (19 loc) 759 B
import { IResponse, IContext } from '../../types'; import { IGithubSource, IGitSource } from '..'; export interface IRunAppDetectionComponent { environment_slug: string; run_command: string; strategy: string; types: string[]; } export interface IRunAppDetectionApiResponse { components: IRunAppDetectionComponent[]; } export interface IRunAppDetectionApiRequest { commit_sha?: string; component_type?: string; git?: IGitSource; github?: IGithubSource; } export type RunAppDetectionResponse = IResponse<IRunAppDetectionApiResponse>; export declare const runAppDetection: ({ httpClient, }: IContext) => ({ commit_sha, component_type, git, github, }: IRunAppDetectionApiRequest) => Promise<Readonly<RunAppDetectionResponse>>;