import { type ActorMetadata, type CurrencyMetadata } from 'twenty-shared/types'; import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity'; import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface'; import { type AttachmentWorkspaceEntity } from 'src/modules/attachment/standard-objects/attachment.workspace-entity'; import { type CompanyWorkspaceEntity } from 'src/modules/company/standard-objects/company.workspace-entity'; import { type NoteTargetWorkspaceEntity } from 'src/modules/note/standard-objects/note-target.workspace-entity'; import { type CalendarEventTargetWorkspaceEntity } from 'src/modules/calendar/common/standard-objects/calendar-event-target.workspace-entity'; import { type MessageThreadTargetWorkspaceEntity } from 'src/modules/messaging/common/standard-objects/message-thread-target.workspace-entity'; import { type PersonWorkspaceEntity } from 'src/modules/person/standard-objects/person.workspace-entity'; import { type TaskTargetWorkspaceEntity } from 'src/modules/task/standard-objects/task-target.workspace-entity'; import { type TimelineActivityWorkspaceEntity } from 'src/modules/timeline/standard-objects/timeline-activity.workspace-entity'; import { type WorkspaceMemberWorkspaceEntity } from 'src/modules/workspace-member/standard-objects/workspace-member.workspace-entity'; export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity { name: string; amount: CurrencyMetadata | null; closeDate: Date | null; stage: string; position: number; createdBy: ActorMetadata; updatedBy: ActorMetadata; pointOfContact: EntityRelation | null; pointOfContactId: string | null; company: EntityRelation | null; companyId: string | null; taskTargets: EntityRelation; noteTargets: EntityRelation; calendarEventTargets: EntityRelation; messageThreadTargets: EntityRelation; attachments: EntityRelation; timelineActivities: EntityRelation; owner: EntityRelation | null; ownerId: string | null; /** @deprecated */ probability: string; searchVector: string; }