Skip to content

The open alternative to Salesforce, designed for AI.

492 B
Raw Blame
import { Field, ObjectType } from '@nestjs/graphql';
import { ViewKey, ViewType } from 'twenty-shared/types';

import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';

@ObjectType('MinimalView')
export class MinimalViewDTO {
  @Field(() => UUIDScalarType)
  id: string;

  @Field(() => ViewType)
  type: ViewType;

  @Field(() => ViewKey, { nullable: true })
  key: ViewKey | null;

  @Field(() => UUIDScalarType)
  objectMetadataId: string;
}