Skip to content
Snippets Groups Projects
Commit 7e33f906 authored by michael.minelli's avatar michael.minelli
Browse files

Types => Add Gitlab interfaces

parent 72a22f2d
No related branches found
No related tags found
No related merge requests found
interface GitlabGroup {
group_id: number,
group_name: string,
group_full_path: string,
group_access_level: number,
expires_at: string
}
export default GitlabGroup;
\ No newline at end of file
import GitlabUser from './GitlabUser';
interface GitlabMember extends GitlabUser {
'access_level': number,
'created_at': string,
'created_by': GitlabUser,
'expires_at': string
}
export default GitlabMember;
\ No newline at end of file
interface GitlabNamespace {
id: number,
name: string,
path: string,
kind: string,
full_path: string,
parent_id: number,
avatar_url: string,
web_url: string
}
export default GitlabNamespace;
\ No newline at end of file
import GitlabGroup from './GitlabGroup';
import GitlabNamespace from './GitlabNamespace';
interface GitlabRepository {
id: number,
description: string,
name: string,
name_with_namespace: string,
path: string,
path_with_namespace: string,
created_at: string,
default_branch: string,
tag_list: Array<string>,
topics: Array<string>,
ssh_url_to_repo: string,
http_url_to_repo: string,
web_url: string,
readme_url: string,
forks_count: number,
avatar_url: string,
star_count: number,
last_activity_at: string,
namespace: GitlabNamespace,
_links: {
self: string, issues: string, merge_requests: string, repo_branches: string, labels: string, events: string, members: string, cluster_agents: string
},
packages_enabled: boolean,
empty_repo: boolean,
archived: boolean,
visibility: string,
resolve_outdated_diff_discussions: boolean,
container_expiration_policy: {
cadence: string, enabled: boolean, keep_n: number, older_than: string, name_regex: string, name_regex_keep: string, next_run_at: string
},
issues_enabled: boolean,
merge_requests_enabled: boolean,
wiki_enabled: boolean,
jobs_enabled: boolean,
snippets_enabled: boolean,
container_registry_enabled: boolean,
service_desk_enabled: boolean,
service_desk_address: string,
can_create_merge_request_in: boolean,
issues_access_level: string,
repository_access_level: string,
merge_requests_access_level: string,
forking_access_level: string,
wiki_access_level: string,
builds_access_level: string,
snippets_access_level: string,
pages_access_level: string,
operations_access_level: string,
analytics_access_level: string,
container_registry_access_level: string,
security_and_compliance_access_level: string,
releases_access_level: string,
environments_access_level: string,
feature_flags_access_level: string,
infrastructure_access_level: string,
monitor_access_level: string,
emails_disabled: boolean,
shared_runners_enabled: boolean,
lfs_enabled: boolean,
creator_id: number,
import_url: string,
import_type: string,
import_status: string,
import_error: string,
open_issues_count: number,
runners_token: string,
ci_default_git_depth: number,
ci_forward_deployment_enabled: boolean,
ci_job_token_scope_enabled: boolean,
ci_separated_caches: boolean,
ci_opt_in_jwt: boolean,
ci_allow_fork_pipelines_to_run_in_parent_project: boolean,
public_jobs: boolean,
build_git_strategy: string,
build_timeout: number,
auto_cancel_pending_pipelines: string,
ci_config_path: string,
shared_with_groups: Array<GitlabGroup>,
only_allow_merge_if_pipeline_succeeds: boolean,
allow_merge_on_skipped_pipeline: boolean,
restrict_user_defined_variables: boolean,
request_access_enabled: boolean,
only_allow_merge_if_all_discussions_are_resolved: boolean,
remove_source_branch_after_merge: boolean,
printing_merge_request_link_enabled: boolean,
merge_method: string,
squash_option: string,
enforce_auth_checks_on_uploads: boolean,
suggestion_commit_message: string,
merge_commit_template: string,
squash_commit_template: string,
issue_branch_template: string,
auto_devops_enabled: boolean,
auto_devops_deploy_strategy: string,
autoclose_referenced_issues: boolean,
keep_latest_artifact: boolean,
runner_token_expiration_interval: number,
}
export default GitlabRepository;
\ No newline at end of file
interface GitlabUser {
id: number,
username: string,
name: string,
state: string,
avatar_url: string,
web_url: string,
}
export default GitlabUser;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment