UNPKG

2.06 kBTypeScriptView Raw
1export declare enum AggregationType {
2 Hourly = 0,
3 Daily = 1
4}
5export interface AnalyzerDescriptor {
6 description?: string;
7 id: string;
8 majorVersion?: number;
9 minorVersion?: number;
10 name: string;
11 patchVersion?: number;
12}
13export interface CodeChangeTrendItem {
14 time?: Date;
15 value?: number;
16}
17export interface LanguageMetricsSecuredObject {
18 namespaceId?: string;
19 projectId?: string;
20 requiredPermissions?: number;
21}
22export interface LanguageStatistics extends LanguageMetricsSecuredObject {
23 bytes?: number;
24 files?: number;
25 filesPercentage?: number;
26 languagePercentage?: number;
27 name?: string;
28}
29export interface ProjectActivityMetrics {
30 authorsCount?: number;
31 codeChangesCount?: number;
32 codeChangesTrend?: CodeChangeTrendItem[];
33 projectId?: string;
34 pullRequestsCompletedCount?: number;
35 pullRequestsCreatedCount?: number;
36}
37export interface ProjectLanguageAnalytics extends LanguageMetricsSecuredObject {
38 id?: string;
39 languageBreakdown?: LanguageStatistics[];
40 repositoryLanguageAnalytics?: RepositoryLanguageAnalytics[];
41 resultPhase?: ResultPhase;
42 url?: string;
43}
44export interface RepositoryActivityMetrics {
45 codeChangesCount?: number;
46 codeChangesTrend?: CodeChangeTrendItem[];
47 repositoryId?: string;
48}
49export interface RepositoryLanguageAnalytics extends LanguageMetricsSecuredObject {
50 id?: string;
51 languageBreakdown?: LanguageStatistics[];
52 name?: string;
53 resultPhase?: ResultPhase;
54 updatedTime?: Date;
55}
56export declare enum ResultPhase {
57 Preliminary = 0,
58 Full = 1
59}
60export declare var TypeInfo: {
61 AggregationType: {
62 enumValues: {
63 hourly: number;
64 daily: number;
65 };
66 };
67 CodeChangeTrendItem: any;
68 ProjectActivityMetrics: any;
69 ProjectLanguageAnalytics: any;
70 RepositoryActivityMetrics: any;
71 RepositoryLanguageAnalytics: any;
72 ResultPhase: {
73 enumValues: {
74 preliminary: number;
75 full: number;
76 };
77 };
78};