agregar endpoint crear epica /epicdevelopment/create/
This commit is contained in:
@@ -4,6 +4,7 @@ import type {
|
||||
KappaInitiative,
|
||||
KappaUserStory,
|
||||
KappaEpicDevelopment,
|
||||
KappaCreateEpicPayload,
|
||||
KappaLogbookMaster,
|
||||
KappaLogbookEntry,
|
||||
KappaPlanningMaster,
|
||||
@@ -133,6 +134,10 @@ class KappaAPI {
|
||||
return all
|
||||
}
|
||||
|
||||
async createEpicDevelopment(data: KappaCreateEpicPayload): Promise<KappaEpicDevelopment> {
|
||||
return this.request<KappaEpicDevelopment>('POST', '/epicdevelopment/create/', data)
|
||||
}
|
||||
|
||||
async getLogbooks(initiativeId?: number): Promise<KappaLogbookEntry[]> {
|
||||
const path = initiativeId ? `/logbooks/?initiative=${initiativeId}` : '/logbooks/'
|
||||
return this.request<KappaLogbookEntry[]>('GET', path)
|
||||
|
||||
@@ -71,6 +71,17 @@ export interface KappaEpicDevelopment {
|
||||
updated_at?: string
|
||||
}
|
||||
|
||||
export interface KappaCreateEpicPayload {
|
||||
initiative: number | string
|
||||
name: string
|
||||
description?: string
|
||||
stimated_start_date?: string
|
||||
stimated_end_date?: string
|
||||
client_taker?: number
|
||||
hu?: number[]
|
||||
status?: boolean
|
||||
}
|
||||
|
||||
export interface KappaLogbookMaster {
|
||||
id?: number
|
||||
initiative: number | string
|
||||
|
||||
Reference in New Issue
Block a user