Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

631 B
Raw Blame
import { Field, ObjectType, registerEnumType } from '@nestjs/graphql';
import { AuthProvider } from 'src/auth/helper';
import { InfraConfigEnum } from 'src/types/InfraConfig';
import { ServiceStatus } from './helper';

@ObjectType()
export class InfraConfig {
  @Field(() => InfraConfigEnum, {
    description: 'Infra Config Name',
  })
  name: InfraConfigEnum;

  @Field({
    description: 'Infra Config Value',
  })
  value: string;
}

registerEnumType(InfraConfigEnum, {
  name: 'InfraConfigEnum',
});

registerEnumType(AuthProvider, {
  name: 'AuthProvider',
});

registerEnumType(ServiceStatus, {
  name: 'ServiceStatus',
});