This commit is contained in:
2026-02-24 12:29:58 +00:00
commit 3fad287a29
58 changed files with 3999 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
export type TProviderType = 'gitea' | 'gitlab';
export interface IProviderConnection {
id: string;
name: string;
providerType: TProviderType;
baseUrl: string;
token: string;
createdAt: number;
status: 'connected' | 'disconnected' | 'error';
}

View File

@@ -0,0 +1,10 @@
export interface IGroup {
id: string;
name: string;
fullPath: string;
description: string;
webUrl: string;
connectionId: string;
visibility: string;
projectCount: number;
}

View File

@@ -0,0 +1,7 @@
export interface IIdentity {
jwt: string;
userId: string;
username: string;
expiresAt: number;
role: 'admin' | 'user';
}

View File

@@ -0,0 +1,6 @@
export * from './identity.ts';
export * from './connection.ts';
export * from './project.ts';
export * from './group.ts';
export * from './secret.ts';
export * from './pipeline.ts';

View File

@@ -0,0 +1,32 @@
export type TPipelineStatus =
| 'pending'
| 'running'
| 'success'
| 'failed'
| 'canceled'
| 'skipped'
| 'waiting'
| 'manual';
export interface IPipeline {
id: string;
projectId: string;
projectName: string;
connectionId: string;
status: TPipelineStatus;
ref: string;
sha: string;
webUrl: string;
duration: number;
createdAt: string;
source: string;
}
export interface IPipelineJob {
id: string;
pipelineId: string;
name: string;
stage: string;
status: TPipelineStatus;
duration: number;
}

View File

@@ -0,0 +1,12 @@
export interface IProject {
id: string;
name: string;
fullPath: string;
description: string;
defaultBranch: string;
webUrl: string;
connectionId: string;
visibility: string;
topics: string[];
lastActivity: string;
}

View File

@@ -0,0 +1,10 @@
export interface ISecret {
key: string;
value: string;
protected: boolean;
masked: boolean;
scope: 'project' | 'group';
scopeId: string;
connectionId: string;
environment: string;
}