initial
This commit is contained in:
11
ts_interfaces/data/connection.ts
Normal file
11
ts_interfaces/data/connection.ts
Normal 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';
|
||||
}
|
||||
10
ts_interfaces/data/group.ts
Normal file
10
ts_interfaces/data/group.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export interface IGroup {
|
||||
id: string;
|
||||
name: string;
|
||||
fullPath: string;
|
||||
description: string;
|
||||
webUrl: string;
|
||||
connectionId: string;
|
||||
visibility: string;
|
||||
projectCount: number;
|
||||
}
|
||||
7
ts_interfaces/data/identity.ts
Normal file
7
ts_interfaces/data/identity.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export interface IIdentity {
|
||||
jwt: string;
|
||||
userId: string;
|
||||
username: string;
|
||||
expiresAt: number;
|
||||
role: 'admin' | 'user';
|
||||
}
|
||||
6
ts_interfaces/data/index.ts
Normal file
6
ts_interfaces/data/index.ts
Normal 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';
|
||||
32
ts_interfaces/data/pipeline.ts
Normal file
32
ts_interfaces/data/pipeline.ts
Normal 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;
|
||||
}
|
||||
12
ts_interfaces/data/project.ts
Normal file
12
ts_interfaces/data/project.ts
Normal 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;
|
||||
}
|
||||
10
ts_interfaces/data/secret.ts
Normal file
10
ts_interfaces/data/secret.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user