39 lines
714 B
TypeScript
39 lines
714 B
TypeScript
import { ExpiryBaseInput } from "@/models/base.model";
|
|
import { InputType, Field, ID, Float } from "@nestjs/graphql";
|
|
import { Types } from "mongoose";
|
|
|
|
@InputType()
|
|
export class CreateBuildAreaInput extends ExpiryBaseInput {
|
|
|
|
@Field(() => ID, { nullable: false })
|
|
buildId: Types.ObjectId;
|
|
|
|
@Field(() => ID, { nullable: true })
|
|
partTypeId?: Types.ObjectId;
|
|
|
|
@Field()
|
|
areaName: string;
|
|
|
|
@Field()
|
|
areaCode: string;
|
|
|
|
@Field()
|
|
areaType: string;
|
|
|
|
@Field()
|
|
areaDirection: string;
|
|
|
|
@Field(() => Float)
|
|
areaGrossSize: number;
|
|
|
|
@Field(() => Float)
|
|
areaNetSize: number;
|
|
|
|
@Field(() => Float)
|
|
width: number;
|
|
|
|
@Field(() => Float)
|
|
size: number;
|
|
|
|
}
|