import { ObjectType, Field, Int } from 'type-graphql'

import { Process } from '../process/process'

@ObjectType()
export class ProcessFavorite extends Process {
  @Field({ nullable: true })
  favoriteId?: string
}

@ObjectType()
export class ProcessFavoriteList {
  @Field(type => [ProcessFavorite])
  items: ProcessFavorite[]

  @Field(type => Int)
  total: number
}
