agregar sprint, has_impairment, tabla impairments + sync pendings KAPPA
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user