Skip to content

The open alternative to Salesforce, designed for AI.

404 B
Raw Blame
import { Field, ObjectType, registerEnumType } from '@nestjs/graphql';

import {
  ALL_METADATA_NAME,
  type AllMetadataName,
} from 'twenty-shared/metadata';

registerEnumType(ALL_METADATA_NAME, {
  name: 'AllMetadataName',
});

@ObjectType('CollectionHash')
export class CollectionHashDTO {
  @Field(() => ALL_METADATA_NAME)
  collectionName: AllMetadataName;

  @Field(() => String)
  hash: string;
}