61 lines
991 B
TypeScript
61 lines
991 B
TypeScript
import { ObjectId } from "mongoose";
|
|
import { ComponentResponseDto } from "./components";
|
|
|
|
|
|
export enum UnitTypeDto {
|
|
BAND = 'Band',
|
|
BRECHER = 'Brecher',
|
|
WEICHE = 'Weiche',
|
|
SIEB = 'Sieb',
|
|
ANTRIEB = 'Antrieb',
|
|
}
|
|
|
|
|
|
|
|
//--- Unit
|
|
|
|
export class UnitResponseDto {
|
|
id!: string;
|
|
name!: string;
|
|
anlageId?: string;
|
|
bmk?: string;
|
|
prefix?: string;
|
|
postfix?: string;
|
|
info?: string;
|
|
type!: UnitTypeDto;
|
|
groupId!: string;
|
|
components!: ComponentResponseDto[];
|
|
}
|
|
|
|
export class UnitCreateDto {
|
|
name!: string;
|
|
anlageId?: string;
|
|
bmk?: string;
|
|
prefix?: string;
|
|
postfix?: string;
|
|
info?: string;
|
|
type!: UnitTypeDto;
|
|
groupId?: string;
|
|
components?: ComponentResponseDto[];
|
|
}
|
|
|
|
export class UnitUpdateBaseDto {
|
|
name?: string;
|
|
anlageId?: string;
|
|
bmk?: string;
|
|
prefix?: string;
|
|
postfix?: string;
|
|
info?: string;
|
|
|
|
type?: UnitTypeDto;
|
|
groupId?: string;
|
|
components?: ComponentResponseDto[];
|
|
}
|
|
|
|
export class UnitUpdateComponentDto {
|
|
name?: string;
|
|
type?: UnitTypeDto;
|
|
groupId?: string;
|
|
}
|
|
|