agregar modulo usuarios con AG Grid + tema shadcn + integracion KAPPA employees
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user