refactor: remove prefixes

This commit is contained in:
Karl-Philipp Wulfert
2018-11-29 12:57:29 +01:00
parent 8a823f0e3c
commit fd9fd8dbd9

View File

@@ -24,7 +24,7 @@ export interface Label {
/** /**
* GitLab commit * GitLab commit
*/ */
export interface GitLabCommit { export interface Commit {
author_email: string; author_email: string;
author_name: string; author_name: string;
authored_date: string; authored_date: string;
@@ -40,7 +40,7 @@ export interface GitLabCommit {
* GitLab tag * GitLab tag
*/ */
export interface Tag { export interface Tag {
commit: GitLabCommit; commit: Commit;
message: string | null; message: string | null;
name: string; name: string;
release: null; release: null;
@@ -49,7 +49,7 @@ export interface Tag {
/** /**
* GitLab namespace * GitLab namespace
*/ */
export interface GitLabNamespace { export interface Namespace {
full_path: string; full_path: string;
id: number; id: number;
kind: string; kind: string;
@@ -78,7 +78,7 @@ export interface Project {
merge_requests_enabled: boolean; merge_requests_enabled: boolean;
name: string; name: string;
name_with_namespace: string; name_with_namespace: string;
namespace: GitLabNamespace; namespace: Namespace;
only_allow_merge_if_all_discussions_are_resolved: boolean; only_allow_merge_if_all_discussions_are_resolved: boolean;
only_allow_merge_if_pipeline_succeeds: boolean; only_allow_merge_if_pipeline_succeeds: boolean;
open_issues_count: number; open_issues_count: number;
@@ -111,7 +111,7 @@ export interface TreeFile {
/** /**
* A member of a group or a project * A member of a group or a project
*/ */
export interface Member extends GitLabUser { export interface Member extends User {
access_level: AccessLevel; access_level: AccessLevel;
expires_at: string; expires_at: string;
} }
@@ -147,7 +147,7 @@ export interface Milestone {
* A GitLab branch * A GitLab branch
*/ */
export interface Branch { export interface Branch {
commit: GitLabCommit; commit: Commit;
developers_can_merge: boolean; developers_can_merge: boolean;
developers_can_push: boolean; developers_can_push: boolean;
merged: boolean; merged: boolean;
@@ -158,7 +158,7 @@ export interface Branch {
/** /**
* A GitLab user * A GitLab user
*/ */
export interface GitLabUser { export interface User {
avatar_url: string; avatar_url: string;
id: number; id: number;
name: string; name: string;
@@ -170,10 +170,10 @@ export interface GitLabUser {
/** /**
* A GitLab issue * A GitLab issue
*/ */
export interface Issue extends GitLabThingWithTimeStats { export interface Issue extends ThingWithTimeStats {
assignee: GitLabUser; assignee: User;
assignees: GitLabUser[]; assignees: User[];
author: GitLabUser; author: User;
closed_at: string | null; closed_at: string | null;
confidential: boolean; confidential: boolean;
created_at: string; created_at: string;
@@ -197,9 +197,9 @@ export interface Issue extends GitLabThingWithTimeStats {
/** /**
* A GitLab merge request * A GitLab merge request
*/ */
export interface MergeRequest extends GitLabThingWithTimeStats { export interface MergeRequest extends ThingWithTimeStats {
assignee: GitLabUser; assignee: User;
author: GitLabUser; author: User;
created_at: string; created_at: string;
description: string | null; description: string | null;
discussion_locked: boolean | null; discussion_locked: boolean | null;
@@ -231,7 +231,7 @@ export interface MergeRequest extends GitLabThingWithTimeStats {
/** /**
* A GitLab thing with time stats * A GitLab thing with time stats
*/ */
export interface GitLabThingWithTimeStats { export interface ThingWithTimeStats {
time_stats: { time_stats: {
human_time_estimate: number | null; human_time_estimate: number | null;
human_total_time_spent: number | null; human_total_time_spent: number | null;