Replaces legacy @mojoio/gitlab with modern ESM TypeScript client supporting projects, groups, CI/CD variables, and pipelines.
77 lines
1.3 KiB
TypeScript
77 lines
1.3 KiB
TypeScript
export interface IGitLabUser {
|
|
id: number;
|
|
username: string;
|
|
name: string;
|
|
email: string;
|
|
avatar_url: string;
|
|
web_url: string;
|
|
state: string;
|
|
}
|
|
|
|
export interface IGitLabProject {
|
|
id: number;
|
|
name: string;
|
|
path_with_namespace: string;
|
|
description: string;
|
|
default_branch: string;
|
|
web_url: string;
|
|
visibility: string;
|
|
topics: string[];
|
|
last_activity_at: string;
|
|
}
|
|
|
|
export interface IGitLabGroup {
|
|
id: number;
|
|
name: string;
|
|
full_path: string;
|
|
description: string;
|
|
web_url: string;
|
|
visibility: string;
|
|
}
|
|
|
|
export interface IGitLabVariable {
|
|
key: string;
|
|
value: string;
|
|
variable_type: string;
|
|
protected: boolean;
|
|
masked: boolean;
|
|
environment_scope: string;
|
|
}
|
|
|
|
export interface IVariableOptions {
|
|
protected?: boolean;
|
|
masked?: boolean;
|
|
environment_scope?: string;
|
|
}
|
|
|
|
export interface IGitLabPipeline {
|
|
id: number;
|
|
project_id: number;
|
|
status: string;
|
|
ref: string;
|
|
sha: string;
|
|
web_url: string;
|
|
duration: number;
|
|
created_at: string;
|
|
source: string;
|
|
}
|
|
|
|
export interface IGitLabJob {
|
|
id: number;
|
|
name: string;
|
|
stage: string;
|
|
status: string;
|
|
duration: number;
|
|
}
|
|
|
|
export interface ITestConnectionResult {
|
|
ok: boolean;
|
|
error?: string;
|
|
}
|
|
|
|
export interface IListOptions {
|
|
search?: string;
|
|
page?: number;
|
|
perPage?: number;
|
|
}
|