Skip to content

The open alternative to Salesforce, designed for AI.

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

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

@ObjectType('IngestedAppMessage')
export class IngestedAppMessageDTO {
  @Field()
  externalId: string;

  // stable across re-ingestion, so safe to hang timeline activities or app records off
  @Field(() => UUIDScalarType)
  messageId: string;

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

@ObjectType('IngestAppMessagesOutput')
export class IngestAppMessagesOutput {
  @Field(() => [IngestedAppMessageDTO])
  messages: IngestedAppMessageDTO[];
}