2026_08_31
This commit is contained in:
commit
73015386e9
2320 files changed
+80291
No files matched your search
@@ -0,0 +1,49 @@
|
||||
export enum ComponentTypes {
|
||||
UNKNOWN = "unknown",
|
||||
ANTRIEB = "Antrieb",
|
||||
FREQUENZUMRICHTER = "Frequenzumrichter",
|
||||
REPARATUR_SCHALTER = "Reparaturschalter",
|
||||
LIMIT_SWITCH = "Endschalter",
|
||||
SCHIEFLAUF = "Schieflaufwächter",
|
||||
REISSLEINE = "Reißleine",
|
||||
DREHZALHL = "Drehzahl",
|
||||
VORORT = "Vorortbedienung",
|
||||
UEBERWACHUNG = "Überwachung",
|
||||
|
||||
}
|
||||
|
||||
export class ComponentOfUnitDto {
|
||||
unitId?:string;
|
||||
component?:ComponentResponseDto;
|
||||
|
||||
}
|
||||
export class ComponentResponseDto {
|
||||
id?: string
|
||||
name!: string;
|
||||
prefix?: string;
|
||||
postfix?: string;
|
||||
index?:number;
|
||||
type!: ComponentTypes;
|
||||
signalIds!: string[];
|
||||
properties?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export class ComponentUpdateDto {
|
||||
name?: string;
|
||||
prefix?: string;
|
||||
postfix?: string;
|
||||
index?:number;
|
||||
type?: ComponentTypes;
|
||||
signalIds?: string[];
|
||||
properties?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export class ComponentCreateDto {
|
||||
name!: string;
|
||||
prefix?: string;
|
||||
postfix?: string;
|
||||
index?:number;
|
||||
type!: ComponentTypes;
|
||||
signalIds?: string[];
|
||||
properties?: Record<string, unknown>;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { ObjectId } from "mongoose";
|
||||
|
||||
|
||||
export class GroupResponseDto {
|
||||
id!: string;
|
||||
name!: string;
|
||||
nr!: string;
|
||||
container!: boolean;
|
||||
parentId?: string;
|
||||
}
|
||||
|
||||
export class GroupCreateDto {
|
||||
name!: string;
|
||||
nr!: string;
|
||||
container!: boolean;
|
||||
parentId?: string;
|
||||
}
|
||||
|
||||
export class GroupUpdateDto {
|
||||
name?: string;
|
||||
nr?: string;
|
||||
container?: boolean;
|
||||
parentId?: string;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
|
||||
export enum IOType {
|
||||
DIGITAL_INPUT = 'DigitalInput',
|
||||
DIGITAL_OUTPUT = 'DigitalOutput',
|
||||
ANALOG_INPUT = 'AnalogInput',
|
||||
ANALOG_OUTPUT = 'AnalogOutput',
|
||||
}
|
||||
|
||||
export class IoResponseDto {
|
||||
id!:string;
|
||||
anlageId!: string;
|
||||
|
||||
type!: IOType;
|
||||
address!: number;
|
||||
adrBit?: number;
|
||||
plcId?: string;
|
||||
moduleId?: string;
|
||||
channel?: number;
|
||||
text?: string;
|
||||
seite?: number;
|
||||
seiteName?: string;
|
||||
excelData?: string;
|
||||
plcData?: string;
|
||||
}
|
||||
|
||||
export class IoCreateDto {
|
||||
//anlageId!: string;
|
||||
type!: IOType;
|
||||
address!: number;
|
||||
adrBit?: number;
|
||||
plcId?: string;
|
||||
moduleId?: string;
|
||||
channel?: number;
|
||||
text?: string;
|
||||
seite?: number;
|
||||
seiteName?: string;
|
||||
excelData?: string;
|
||||
plcData?: string;
|
||||
}
|
||||
|
||||
export class IoUpdateDto {
|
||||
anlageId?: string;
|
||||
type?: IOType;
|
||||
address?: number;
|
||||
adrBit?: number;
|
||||
plcId?: string;
|
||||
moduleId?: string;
|
||||
channel?: number;
|
||||
text?: string;
|
||||
seite?: number;
|
||||
seiteName?: string;
|
||||
excelData?: string;
|
||||
plcData?: string;
|
||||
}
|
||||
|
||||
//--- n.v.
|
||||
export class PlcDto {
|
||||
|
||||
name!: string;
|
||||
type!: string;
|
||||
ipAddress?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
|
||||
export enum SignalType {
|
||||
DIGITAL_INPUT = 'DigitalInput',
|
||||
DIGITAL_OUTPUT = 'DigitalOutput',
|
||||
ANALOG_INPUT = 'AnalogInput',
|
||||
ANALOG_OUTPUT = 'AnalogOutput',
|
||||
}
|
||||
|
||||
export class SignalResponseDto {
|
||||
id!: string;
|
||||
anlageId!: string;
|
||||
|
||||
name!: string;
|
||||
type!: SignalType;
|
||||
description?: string;
|
||||
ioId?: string;
|
||||
componentId?: string;
|
||||
}
|
||||
|
||||
|
||||
export class SignalCreateDto {
|
||||
// anlageId?: string;
|
||||
name!: string;
|
||||
type!: SignalType;
|
||||
description?: string;
|
||||
ioId?: string;
|
||||
componentId?: string;
|
||||
}
|
||||
|
||||
export class SignalUpdateDto {
|
||||
anlageId!: string;
|
||||
name!: string;
|
||||
type!: SignalType;
|
||||
description?: string;
|
||||
ioId?: string;
|
||||
componentId?: string;
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
import { ObjectId } from "mongoose";
|
||||
import { ComponentResponseDto } from "./components";
|
||||
|
||||
|
||||
export enum UnitTypeDto {
|
||||
BAND = 'Band',
|
||||
BRECHER = 'Brecher',
|
||||
WEICHE = 'Weiche',
|
||||
SIEB = 'Sieb',
|
||||
}
|
||||
|
||||
|
||||
|
||||
//--- Unit
|
||||
|
||||
export class UnitResponseDto {
|
||||
id!: string;
|
||||
name!: string;
|
||||
anlageId?: string;
|
||||
bmk?: string;
|
||||
prefix?: string;
|
||||
info?: string;
|
||||
type!: UnitTypeDto;
|
||||
groupId!: string;
|
||||
components!: ComponentResponseDto[];
|
||||
}
|
||||
|
||||
export class UnitCreateDto {
|
||||
name!: string;
|
||||
anlageId?: string;
|
||||
bmk!: string;
|
||||
prefix!: string;
|
||||
info!: string;
|
||||
type!: UnitTypeDto;
|
||||
groupId!: string;
|
||||
components!: ComponentResponseDto[];
|
||||
}
|
||||
|
||||
export class UnitUpdateBaseDto {
|
||||
name?: string;
|
||||
anlageId?: string;
|
||||
bmk!: string;
|
||||
prefix!: string;
|
||||
info!: string;
|
||||
|
||||
type?: UnitTypeDto;
|
||||
groupId?: string;
|
||||
components?: ComponentResponseDto[];
|
||||
}
|
||||
|
||||
export class UnitUpdateComponentDto {
|
||||
name?: string;
|
||||
type?: UnitTypeDto;
|
||||
groupId?: string;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user