Skip to content

The open alternative to Salesforce, designed for AI.

3.4 KB
Raw Blame
import { type TimelineActivityTypeSnapshot } from 'twenty-shared/timeline';

import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
import { type CustomWorkspaceEntity } from 'src/engine/twenty-orm/custom.workspace-entity';
import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
import { type CompanyWorkspaceEntity } from 'src/modules/company/standard-objects/company.workspace-entity';
import { type DashboardWorkspaceEntity } from 'src/modules/dashboard/standard-objects/dashboard.workspace-entity';
import { type MessageCampaignWorkspaceEntity } from 'src/modules/emailing/standard-objects/message-campaign.workspace-entity';
import { type MessageListWorkspaceEntity } from 'src/modules/emailing/standard-objects/message-list.workspace-entity';
import { type NoteWorkspaceEntity } from 'src/modules/note/standard-objects/note.workspace-entity';
import { type OpportunityWorkspaceEntity } from 'src/modules/opportunity/standard-objects/opportunity.workspace-entity';
import { type PersonWorkspaceEntity } from 'src/modules/person/standard-objects/person.workspace-entity';
import { type TaskWorkspaceEntity } from 'src/modules/task/standard-objects/task.workspace-entity';
import { type WorkflowRunWorkspaceEntity } from 'src/modules/workflow/common/standard-objects/workflow-run.workspace-entity';
import { type WorkflowVersionWorkspaceEntity } from 'src/modules/workflow/common/standard-objects/workflow-version.workspace-entity';
import { type WorkflowWorkspaceEntity } from 'src/modules/workflow/common/standard-objects/workflow.workspace-entity';
import { type WorkspaceMemberWorkspaceEntity } from 'src/modules/workspace-member/standard-objects/workspace-member.workspace-entity';

export class TimelineActivityWorkspaceEntity extends BaseWorkspaceEntity {
  happensAt: Date;
  timelineActivityTypeId: string | null;
  timelineActivityTypeSnapshot: TimelineActivityTypeSnapshot | null;
  properties: JSON | null;
  linkedRecordCachedName: string | null;
  linkedRecordId: string | null;
  linkedObjectMetadataId: string | null;
  workspaceMember: EntityRelation<WorkspaceMemberWorkspaceEntity> | null;
  workspaceMemberId: string | null;
  targetPerson: EntityRelation<PersonWorkspaceEntity> | null;
  targetPersonId: string | null;
  targetCompany: EntityRelation<CompanyWorkspaceEntity> | null;
  targetCompanyId: string | null;
  targetOpportunity: EntityRelation<OpportunityWorkspaceEntity> | null;
  targetOpportunityId: string | null;
  targetNote: EntityRelation<NoteWorkspaceEntity> | null;
  targetNoteId: string | null;
  targetTask: EntityRelation<TaskWorkspaceEntity> | null;
  targetTaskId: string | null;
  targetWorkflow: EntityRelation<WorkflowWorkspaceEntity> | null;
  targetWorkflowId: string | null;
  targetWorkflowVersion: EntityRelation<WorkflowVersionWorkspaceEntity> | null;
  targetWorkflowVersionId: string | null;
  targetWorkflowRun: EntityRelation<WorkflowRunWorkspaceEntity> | null;
  targetWorkflowRunId: string | null;
  targetDashboard: EntityRelation<DashboardWorkspaceEntity> | null;
  targetDashboardId: string | null;
  targetMessageList: EntityRelation<MessageListWorkspaceEntity> | null;
  targetMessageListId: string | null;
  targetMessageCampaign: EntityRelation<MessageCampaignWorkspaceEntity> | null;
  targetMessageCampaignId: string | null;
  custom: EntityRelation<CustomWorkspaceEntity>;
  targetCustom: EntityRelation<CustomWorkspaceEntity>;
}