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
|
|
@ -14,7 +14,6 @@ import type {
|
|||
ExternalCsvConfiguration,
|
||||
ExternalCsvDialect,
|
||||
} from "../external-model/csv/external-csv-contracts";
|
||||
import type { createExternalInitialImportPlan } from "../external-model/application/external-initial-import-plan";
|
||||
|
||||
export interface ExternalCsvConfigurationSnapshotDto {
|
||||
id: string;
|
||||
|
|
@ -52,9 +51,80 @@ export interface ExternalCsvPreviewDto {
|
|||
suspectRowNumbers: number[];
|
||||
}
|
||||
|
||||
export type ExternalInitialImportPlanDto = ReturnType<
|
||||
typeof createExternalInitialImportPlan
|
||||
>;
|
||||
export interface ExternalInitialImportPlanDto {
|
||||
configurationVersion: number;
|
||||
fileName: string;
|
||||
sha256: string;
|
||||
byteLength: number;
|
||||
rowCount: number;
|
||||
objectCount: number;
|
||||
passthroughCount: number;
|
||||
suspectObjectCount: number;
|
||||
suspectRowNumbers: number[];
|
||||
sourceRooms: Array<{
|
||||
sourceRoomKey: string;
|
||||
roomNumber: string;
|
||||
roomName: string;
|
||||
objectCount: number;
|
||||
suggestedRoomId: string | null;
|
||||
matchStatus: "exact-number" | "ambiguous-number" | "new";
|
||||
candidateRoomIds: string[];
|
||||
}>;
|
||||
familyGroups: Array<{
|
||||
familyAndType: string;
|
||||
objectCount: number;
|
||||
classified: boolean;
|
||||
category: string | null;
|
||||
connectionKind: string | null;
|
||||
internalDeviceType: string | null;
|
||||
}>;
|
||||
issueCounts: {
|
||||
unknownFamilyAndType: number;
|
||||
invalidPower: number;
|
||||
invalidQuantity: number;
|
||||
missingRoom: number;
|
||||
};
|
||||
objects: Array<{
|
||||
ifcGuid: string;
|
||||
sourceRoomKey: string | null;
|
||||
sourceValues: ExternalCsvPreviewObjectDto;
|
||||
suggestedPlanningValues: {
|
||||
displayName: string | null;
|
||||
internalDeviceType: string | null;
|
||||
category: CircuitGroupCategory | null;
|
||||
connectionKind: string | null;
|
||||
effectiveQuantity: number;
|
||||
powerPerUnitW: number | null;
|
||||
simultaneityFactor: number;
|
||||
cosPhi: number | null;
|
||||
costGroup: string | null;
|
||||
remark: string | null;
|
||||
};
|
||||
issues: string[];
|
||||
}>;
|
||||
existing: {
|
||||
floors: Array<{ id: string; name: string; sortOrder: number }>;
|
||||
rooms: Array<{
|
||||
id: string;
|
||||
floorId: string | null;
|
||||
roomNumber: string;
|
||||
roomName: string;
|
||||
}>;
|
||||
distributionBoards: Array<{
|
||||
id: string;
|
||||
name: string;
|
||||
floorId: string | null;
|
||||
}>;
|
||||
projectDevices: Array<{
|
||||
id: string;
|
||||
name: string;
|
||||
displayName: string;
|
||||
category: string | null;
|
||||
connectionKind: string | null;
|
||||
powerPerUnit: number;
|
||||
}>;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApplyExternalInitialImportInput {
|
||||
expectedRevision: number;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue