diff --git a/models/lead/src/index.ts b/models/lead/src/index.ts index 9a5471746e..4328121a13 100644 --- a/models/lead/src/index.ts +++ b/models/lead/src/index.ts @@ -44,6 +44,7 @@ import { generateClassNotificationTypes } from '@hcengineering/model-notificatio import notification from '@hcengineering/notification' import lead from './plugin' import tracker from '@hcengineering/model-tracker' +import { State } from '@hcengineering/task' export { leadId } from '@hcengineering/lead' export { leadOperation } from './migration' @@ -79,6 +80,9 @@ export class TLead extends TTask implements Lead { @Prop(TypeRef(contact.class.Employee), lead.string.Assignee) declare assignee: Ref | null + + @Prop(TypeRef(task.class.State), task.string.TaskState, { _id: task.attribute.State }) + declare status: Ref } @Mixin(lead.mixin.Customer, contact.class.Contact)