Files
gitops/ts_interfaces/data/connection.ts

14 lines
466 B
TypeScript

export type TProviderType = 'gitea' | 'gitlab';
export interface IProviderConnection {
id: string;
name: string;
providerType: TProviderType;
baseUrl: string;
token: string;
createdAt: number;
status: 'connected' | 'disconnected' | 'error' | 'paused';
groupFilter?: string; // Restricts which repos this connection can see (e.g. "foss.global")
groupFilterId?: string; // Resolved filter group ID (numeric for GitLab, org name for Gitea)
}