chore: Unused package and entire files
This commit is contained in:
@@ -1,66 +0,0 @@
|
||||
/**
|
||||
* Client HTTP pour TFS/Azure DevOps
|
||||
* Gère les appels API côté frontend
|
||||
*/
|
||||
|
||||
import { HttpClient } from './base/http-client';
|
||||
|
||||
export interface TfsSchedulerStatus {
|
||||
running: boolean;
|
||||
lastSync?: string;
|
||||
nextSync?: string;
|
||||
interval: 'hourly' | 'daily' | 'weekly';
|
||||
tfsConfigured: boolean;
|
||||
}
|
||||
|
||||
export class TfsClient extends HttpClient {
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Lance la synchronisation manuelle des Pull Requests TFS
|
||||
*/
|
||||
async syncPullRequests() {
|
||||
return this.post('/api/tfs/sync', {});
|
||||
}
|
||||
|
||||
/**
|
||||
* Teste la connexion TFS
|
||||
*/
|
||||
async testConnection() {
|
||||
return this.get('/api/tfs/sync');
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure le scheduler TFS
|
||||
*/
|
||||
async configureScheduler(enabled: boolean, interval: 'hourly' | 'daily' | 'weekly') {
|
||||
return this.post('/api/tfs/sync', {
|
||||
action: 'config',
|
||||
tfsAutoSync: enabled,
|
||||
tfsSyncInterval: interval
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Démarre/arrête le scheduler TFS
|
||||
*/
|
||||
async toggleScheduler(enabled: boolean) {
|
||||
return this.post('/api/tfs/sync', {
|
||||
action: 'scheduler',
|
||||
enabled
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Récupère le statut du scheduler TFS
|
||||
*/
|
||||
async getSchedulerStatus(): Promise<TfsSchedulerStatus> {
|
||||
return this.get<TfsSchedulerStatus>('/api/tfs/scheduler/status');
|
||||
}
|
||||
}
|
||||
|
||||
// Export d'une instance singleton
|
||||
export const tfsClient = new TfsClient();
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
import { httpClient } from './base/http-client';
|
||||
import { UserPreferences } from '@/lib/types';
|
||||
|
||||
export interface UserPreferencesResponse {
|
||||
success: boolean;
|
||||
data?: UserPreferences;
|
||||
message?: string;
|
||||
error?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Client HTTP pour les préférences utilisateur (lecture seule)
|
||||
* Les mutations sont gérées par les server actions dans actions/preferences.ts
|
||||
*/
|
||||
export const userPreferencesClient = {
|
||||
/**
|
||||
* Récupère toutes les préférences utilisateur
|
||||
*/
|
||||
async getPreferences(): Promise<UserPreferences> {
|
||||
const response = await httpClient.get<UserPreferencesResponse>('/user-preferences');
|
||||
|
||||
if (!response.success || !response.data) {
|
||||
throw new Error(response.error || 'Erreur lors de la récupération des préférences');
|
||||
}
|
||||
|
||||
return response.data;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user