forked from jappel/leistungsbilanz-ts
Replace Revit CSV backend with Linear XLSX
This commit is contained in:
parent
52d3b1a270
commit
1cfeb06ec7
65 changed files with 4764 additions and 3717 deletions
|
|
@ -19,7 +19,6 @@ import { externalModelSources } from "../src/db/schema/external-model-sources.js
|
|||
import { projectDevices } from "../src/db/schema/project-devices.js";
|
||||
import { projectRevisions } from "../src/db/schema/project-revisions.js";
|
||||
import { projects } from "../src/db/schema/projects.js";
|
||||
import { externalCsvTestConfiguration } from "./fixtures/revit-csv-fixtures.js";
|
||||
import {
|
||||
createProjectDeviceRowSyncProjectCommand,
|
||||
type ProjectDeviceSyncRowSnapshot,
|
||||
|
|
@ -178,7 +177,7 @@ function linkExternalObject(
|
|||
id: "source-1",
|
||||
projectId: "project-1",
|
||||
name: "Revit",
|
||||
sourceType: "revit_csv",
|
||||
sourceType: "revit_xlsx",
|
||||
})
|
||||
.run();
|
||||
context.db
|
||||
|
|
@ -189,13 +188,9 @@ function linkExternalObject(
|
|||
sourceId: "source-1",
|
||||
importKind: "initial",
|
||||
importedAtIso: "2026-08-02T16:00:00.000Z",
|
||||
fileName: "revit.csv",
|
||||
fileName: "revit.xlsx",
|
||||
sha256: "a".repeat(64),
|
||||
appliedProjectRevision: 0,
|
||||
configurationVersion: 1,
|
||||
configurationSnapshot: externalCsvTestConfiguration,
|
||||
originalBytes: Buffer.from("test"),
|
||||
document: { delimiter: ";", encoding: "utf-8", headers: [], rows: [] },
|
||||
objectCount: 1,
|
||||
})
|
||||
.run();
|
||||
context.db
|
||||
|
|
@ -204,7 +199,9 @@ function linkExternalObject(
|
|||
id: "object-1",
|
||||
projectId: "project-1",
|
||||
sourceId: "source-1",
|
||||
worksharingId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee-ffffffff",
|
||||
ifcGuid: "ifc-1",
|
||||
deviceTypeId: "device-type-1",
|
||||
lastSeenImportBatchId: "batch-1",
|
||||
lastAcceptedImportBatchId: "batch-1",
|
||||
acceptedSourceValues: {
|
||||
|
|
@ -213,14 +210,18 @@ function linkExternalObject(
|
|||
roomName: "Büro",
|
||||
familyAndType: "Leuchte: Standard",
|
||||
selectionMarker: "Leuchte",
|
||||
socketCount: String(effectiveQuantity),
|
||||
sourceRemark: null,
|
||||
circuitCombined: "-1F1",
|
||||
boardName: "UV 1",
|
||||
circuitIdentifier: "-1F1",
|
||||
power: "30",
|
||||
quantity: String(effectiveQuantity),
|
||||
additionalSourceValues: {},
|
||||
designation: null,
|
||||
electricalPowerW: "30",
|
||||
voltageV: 230,
|
||||
currentA: null,
|
||||
},
|
||||
planningValues: {
|
||||
displayName: "Leuchte",
|
||||
internalDeviceType: "luminaire",
|
||||
category: "single_phase",
|
||||
connectionKind: "fixed",
|
||||
effectiveQuantity,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue