import { Field, Float, ObjectType } from '@nestjs/graphql';

@ObjectType('Metric')
export class MetricObjectType {
  @Field()
  label: string;
  @Field(() => Float)
  value: number;
}

@ObjectType('KpiInfo')
export class KpiInfoObjectType {
  @Field(() => MetricObjectType)
  main: MetricObjectType;
  @Field(() => MetricObjectType)
  secondary: MetricObjectType;
  @Field(() => [MetricObjectType])
  additional: MetricObjectType[];
}
