UNPKG

1.3 kBTypeScriptView Raw
1import { BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure';
2import { CommitSchema } from './Commits';
3import { PipelineSchema } from './Pipelines';
4import { UserSchema } from './Users';
5import { RunnerSchema } from './Runners';
6export declare type DeploymentStatus = 'created' | 'running' | 'success' | 'failed' | 'canceled';
7export interface DeploymentSchema {
8 id: number;
9 iid: number;
10 ref: string;
11 sha: string;
12 user: UserSchema;
13}
14export interface Deployable {
15 id: number;
16 ref: string;
17 name: string;
18 runner?: RunnerSchema;
19 stage?: string;
20 started_at?: Date;
21 status?: DeploymentStatus;
22 tag: boolean;
23 commit?: CommitSchema;
24 coverage?: string;
25 created_at?: Date;
26 finished_at?: Date;
27 user?: UserSchema;
28 pipeline?: PipelineSchema;
29}
30export declare class Deployments extends BaseService {
31 all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>;
32 show(projectId: string | number, deploymentId: number, options?: Sudo): Promise<import("../infrastructure").GetResponse>;
33 mergeRequests(projectId: string | number, deploymentId: number, options?: Sudo): Promise<import("../infrastructure").GetResponse>;
34}