gitlab_monitor/service/typings.d.ts
zhaoyingbo 9647f806ce
All checks were successful
CI Monitor CI/CD / build-image (push) Successful in 28s
CI Monitor CI/CD / deploy (push) Successful in 30s
feat: 优化GitLab徽章设置功能
2024-07-02 03:54:25 +00:00

72 lines
1.3 KiB
TypeScript

interface GitlabProjDetail {
id: number;
description: string;
name: string;
path_with_namespace: string;
web_url: string;
avatar_url?: any;
message?: string;
}
interface GitlabPipeline {
id: number;
project_id: number;
sha: string;
ref: string;
status: string;
source: string;
created_at: string;
updated_at: string;
web_url: string;
}
interface GitlabError {
message: string;
}
interface GitlabUser {
id: number;
username: string;
name: string;
state: string;
avatar_url: string;
web_url: string;
}
interface GitlabPipelineDetail {
id: number;
project_id: number;
ref: string;
status: string;
web_url: "https://git.n.xiaomi.com/miai-fe/fe/ai-scene-review-fe/-/pipelines/7646046";
user: GitlabUser;
started_at: string;
finished_at: string;
duration: number;
queued_duration: number;
message?: string;
}
interface GitlabPipelineDetailWithCreateAt extends GitlabPipelineDetail {
created_at: string;
}
interface GitlabBadge {
id: number;
name: string;
link_url: string;
image_url: string;
rendered_link_url: string;
rendered_image_url: string;
kind: "project" | "group";
}
interface GitlabBadgeSetParams {
id: number;
badge_id?: number;
link_url: string;
image_url: string;
rendered_link_url: string;
rendered_image_url: string;
}