agregar sprint, has_impairment, tabla impairments + sync pendings KAPPA

This commit is contained in:
2026-05-27 23:03:14 -05:00
parent 5cc7cf309e
commit 278d2bf075
7 changed files with 220 additions and 52 deletions
+10
View File
@@ -12,6 +12,8 @@ import type {
KappaBusinessRule,
KappaRequirement,
KappaEmployee,
KappaPending,
KappaTypeImpediment,
PaginatedResponse,
} from '@/types/kappa'
@@ -197,6 +199,14 @@ class KappaAPI {
async createRequirement(data: KappaRequirement): Promise<unknown> {
return this.request<unknown>('POST', '/functionalrequirements/create/', data)
}
async getPendings(huId: number, page = 1): Promise<PaginatedResponse<KappaPending>> {
return this.request<PaginatedResponse<KappaPending>>('GET', `/pendings/?hu=${huId}&page=${page}`)
}
async getTypeImpediments(): Promise<KappaTypeImpediment[]> {
return this.request<KappaTypeImpediment[]>('GET', '/typeimpediments/')
}
}
export const kappa = new KappaAPI()