forked from jappel/leistungsbilanz-ts
Add Revit initial import wizard
This commit is contained in:
parent
8646f346e6
commit
ab2449419b
10 changed files with 481 additions and 32 deletions
|
|
@ -14,6 +14,7 @@ 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;
|
||||
|
|
@ -51,6 +52,36 @@ export interface ExternalCsvPreviewDto {
|
|||
suspectRowNumbers: number[];
|
||||
}
|
||||
|
||||
export type ExternalInitialImportPlanDto = ReturnType<
|
||||
typeof createExternalInitialImportPlan
|
||||
>;
|
||||
|
||||
export interface ApplyExternalInitialImportInput {
|
||||
expectedRevision: number;
|
||||
expectedConfigurationVersion: number;
|
||||
expectedSha256: string;
|
||||
fileName: string;
|
||||
contentBase64: string;
|
||||
sourceName: string;
|
||||
roomDecisions: Array<{
|
||||
sourceRoomKey: string;
|
||||
roomId: string | null;
|
||||
defaultDistributionBoardId: string | null;
|
||||
}>;
|
||||
familyProjectDeviceDecisions: Array<{
|
||||
familyAndType: string;
|
||||
projectDeviceId: string | null;
|
||||
}>;
|
||||
}
|
||||
|
||||
export interface ExternalInitialImportResultDto extends ProjectCommandResultDto {
|
||||
import: {
|
||||
sourceId: string;
|
||||
importBatchId: string;
|
||||
objectCount: number;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ProjectDto {
|
||||
id: string;
|
||||
name: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue