1 | import { AxiosPromise } from "axios";
|
2 | import { WrapOptions } from "retry";
|
3 |
|
4 |
|
5 |
|
6 | export declare function webhookBaseUrl(): string;
|
7 |
|
8 |
|
9 |
|
10 | export declare type AtomistWebhookType = "application" | "build" | "link-image";
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export declare function postAtomistWebhook(webhook: AtomistWebhookType, payload: any, workspaceId: string, retryOptions?: WrapOptions): AxiosPromise<any>;
|
22 |
|
23 |
|
24 |
|
25 | export interface AtomistBuildRepository {
|
26 | owner_name: string;
|
27 | name: string;
|
28 | }
|
29 |
|
30 |
|
31 |
|
32 | export declare type AtomistBuildType = "cron" | "pull_request" | "push" | "tag" | "manual";
|
33 |
|
34 |
|
35 |
|
36 | export declare type AtomistBuildStatus = "started" | "failed" | "error" | "passed" | "canceled";
|
37 |
|
38 |
|
39 |
|
40 | export interface AtomistBuild {
|
41 | repository: AtomistBuildRepository;
|
42 | number?: number;
|
43 | name?: string;
|
44 | compare_url?: string;
|
45 | type: AtomistBuildType;
|
46 | pull_request_number?: number;
|
47 | build_url?: string;
|
48 | status: AtomistBuildStatus;
|
49 | id?: string;
|
50 | commit: string;
|
51 | tag?: string;
|
52 | branch?: string;
|
53 | provider?: string;
|
54 | }
|
55 |
|
56 |
|
57 |
|
58 | export interface AtomistLinkImageGit {
|
59 | owner: string;
|
60 | repo: string;
|
61 | sha: string;
|
62 | }
|
63 |
|
64 |
|
65 |
|
66 | export interface AtomistLinkImageDocker {
|
67 | image: string;
|
68 | }
|
69 |
|
70 |
|
71 |
|
72 | export interface AtomistLinkImage {
|
73 | git: AtomistLinkImageGit;
|
74 | docker: AtomistLinkImageDocker;
|
75 | type: "link-image";
|
76 | }
|