UNPKG

1.02 kBTypeScriptView Raw
1import { Change, CriticalityLevel } from '@graphql-inspector/core';
2export interface WebhookNotification {
3 environment: string;
4 name?: string;
5 owner: string;
6 repo: string;
7 commit?: string;
8 changes: Array<{
9 message: string;
10 level: CriticalityLevel;
11 }>;
12}
13export declare function notifyWithWebhook({ url, changes, environment, repo, owner, commit, }: {
14 url: string;
15 changes: Change[];
16 environment?: string;
17 owner: string;
18 repo: string;
19 commit?: string;
20}): Promise<void>;
21export declare function notifyWithSlack({ url, changes, environment, repo, owner, commit, }: {
22 changes: Change[];
23 url: string;
24 environment?: string;
25 owner: string;
26 repo: string;
27 commit?: string;
28}): Promise<void>;
29export declare function notifyWithDiscord({ url, changes, environment, repo, owner, commit, }: {
30 changes: Change[];
31 url: string;
32 environment?: string;
33 owner: string;
34 repo: string;
35 commit?: string;
36}): Promise<void>;