forked from jappel/leistungsbilanz-ts
All first todos completed
This commit is contained in:
parent
65819900b1
commit
18a4fdd893
29 changed files with 1263 additions and 160 deletions
|
|
@ -143,6 +143,12 @@ export function deleteGlobalDevice(globalDeviceId: string) {
|
|||
return request<void>(`/api/global-devices/${globalDeviceId}`, { method: "DELETE" });
|
||||
}
|
||||
|
||||
export function copyProjectDeviceToGlobal(projectId: string, projectDeviceId: string) {
|
||||
return request<GlobalDeviceDto>(`/api/global-devices/import-project/${projectId}/${projectDeviceId}`, {
|
||||
method: "POST",
|
||||
});
|
||||
}
|
||||
|
||||
export function listProjectDevices(projectId: string) {
|
||||
return request<ProjectDeviceDto[]>(`/api/project-devices/projects/${projectId}`);
|
||||
}
|
||||
|
|
@ -170,3 +176,9 @@ export function deleteProjectDevice(projectId: string, projectDeviceId: string)
|
|||
method: "DELETE",
|
||||
});
|
||||
}
|
||||
|
||||
export function copyGlobalDeviceToProject(projectId: string, globalDeviceId: string) {
|
||||
return request<ProjectDeviceDto>(`/api/project-devices/projects/${projectId}/import-global/${globalDeviceId}`, {
|
||||
method: "POST",
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue