-
Notifications
You must be signed in to change notification settings - Fork 36
/
types.ts
80 lines (68 loc) · 1.51 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import { IntegrationsGetResponseType } from './snyk/types/org';
export type ContributorMap = Map<Username, Contributor>;
export type Username = string;
export interface Contributor {
email: string;
alternateEmails?: string[];
contributionsCount: number;
reposContributedTo: string[];
}
export interface ContributorMapWithSummary {
contributorsCount: number;
repoCount: number;
repoList: string[];
exclusionCount: number;
contributorsDetails: ContributorMap;
}
export interface Output {
privateRepoList: string[];
publicRepoList: string[];
contributorsCount: number;
repoCount: number;
undefinedRepoList: string[];
exclusionCount: number;
contributorsDetails: [string, Contributor][];
}
export interface Integration {
org: {
name: string;
id: string;
};
integrations: IntegrationsGetResponseType;
}
export interface BitbucketServerTarget {
token: string;
url: string;
projectKeys?: string[];
repo?: string;
}
export interface AzureDevopsTarget {
token: string;
OrgName: string;
projectKeys?: string[];
repo?: string;
}
export interface BitbucketCloudTarget {
user: string;
password: string;
workspaces?: string[];
repo?: string;
}
export interface GitlabTarget {
token: string;
url?: string;
groups?: string[];
project?: string;
}
export interface GithubTarget {
token: string;
orgs?: string[];
repo?: string;
}
export interface GithubEnterpriseTarget {
url: string;
token: string;
orgs?: string[];
repo?: string;
fetchAllOrgs?: boolean;
}