Add explicit project device sync
This commit is contained in:
@@ -180,6 +180,36 @@ export interface CreateProjectDeviceInput {
|
||||
voltageV?: number;
|
||||
}
|
||||
|
||||
export interface ProjectDeviceSyncDifferenceDto {
|
||||
field: ProjectDeviceSyncField;
|
||||
currentValue: string | number | null;
|
||||
sourceValue: string | number | null;
|
||||
isOverridden: boolean;
|
||||
}
|
||||
|
||||
export interface ProjectDeviceSyncRowDto {
|
||||
rowId: string;
|
||||
circuitId: string;
|
||||
equipmentIdentifier: string;
|
||||
circuitDisplayName: string | null;
|
||||
circuitListId: string;
|
||||
circuitListName: string;
|
||||
distributionBoardId: string;
|
||||
distributionBoardName: string;
|
||||
rowDisplayName: string;
|
||||
overriddenFields: ProjectDeviceSyncField[];
|
||||
differences: ProjectDeviceSyncDifferenceDto[];
|
||||
}
|
||||
|
||||
export interface ProjectDeviceSyncPreviewDto {
|
||||
projectDevice: {
|
||||
id: string;
|
||||
name: string;
|
||||
displayName: string;
|
||||
};
|
||||
rows: ProjectDeviceSyncRowDto[];
|
||||
}
|
||||
|
||||
export interface CircuitTreeDeviceRowDto {
|
||||
id: string;
|
||||
linkedProjectDeviceId?: string;
|
||||
@@ -296,3 +326,4 @@ export interface CreateCircuitDeviceRowInputDto {
|
||||
}
|
||||
|
||||
export type UpdateCircuitDeviceRowInputDto = Partial<CreateCircuitDeviceRowInputDto>;
|
||||
import type { ProjectDeviceSyncField } from "../shared/constants/project-device-sync-fields";
|
||||
|
||||
Reference in New Issue
Block a user