agregar modulo usuarios con AG Grid + tema shadcn + integracion KAPPA employees

This commit is contained in:
2026-05-26 08:02:50 -05:00
parent fbd128a19e
commit 04d9d6cabc
9 changed files with 413 additions and 0 deletions
+6
View File
@@ -9,6 +9,8 @@ import type {
KappaPlanningEntry,
KappaBusinessRule,
KappaRequirement,
KappaEmployee,
PaginatedResponse,
} from '@/types/kappa'
const BASE = '/api'
@@ -92,6 +94,10 @@ class KappaAPI {
return this.request<unknown[]>('GET', '/users/all/')
}
async getEmployees(page = 1): Promise<PaginatedResponse<KappaEmployee>> {
return this.request<PaginatedResponse<KappaEmployee>>('GET', `/employees/?page=${page}`)
}
async getUserStories(initiativeId?: number): Promise<KappaUserStory[]> {
const path = initiativeId ? `/userstorys/?initiative=${initiativeId}` : '/userstorys/'
return this.request<KappaUserStory[]>('GET', path)