Add virtualized Revit object planning
This commit is contained in:
parent
bfdd048269
commit
4ac32e103d
17 changed files with 277 additions and 9 deletions
|
|
@ -43,6 +43,7 @@ import type {
|
|||
ExternalInitialImportResultDto,
|
||||
ExternalInitialImportStatusDto,
|
||||
ApplyExternalInitialImportInput,
|
||||
ExternalProjectObjectsDto,
|
||||
CreateEstimateBalanceInput,
|
||||
EstimateBalanceCommandResultDto,
|
||||
EstimateBalanceDto,
|
||||
|
|
@ -236,6 +237,14 @@ async function fileToBase64(file: File) {
|
|||
return btoa(binary);
|
||||
}
|
||||
|
||||
export function getExternalProjectObjects(projectId: string) {
|
||||
return request<ExternalProjectObjectsDto>(`/api/projects/${projectId}/external-model/objects`);
|
||||
}
|
||||
|
||||
export function updateExternalProjectObjects(projectId: string, expectedRevision: number, objectIds: string[], patch: Record<string, unknown>) {
|
||||
return request<ProjectCommandResultDto>(`/api/projects/${projectId}/external-model/objects`, { method: "PUT", body: JSON.stringify({ expectedRevision, objectIds, patch }) });
|
||||
}
|
||||
|
||||
export function getProjectHistory(projectId: string) {
|
||||
return request<ProjectHistoryStateDto>(
|
||||
`/api/projects/${projectId}/history`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue