UBER-677: use State for Leads' status (like applicants do) (#3554)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov
2023-08-03 17:15:24 +07:00
committed by GitHub
parent e4a4630ee2
commit af2cbfe4be
+4
View File
@@ -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<Employee> | null
@Prop(TypeRef(task.class.State), task.string.TaskState, { _id: task.attribute.State })
declare status: Ref<State>
}
@Mixin(lead.mixin.Customer, contact.class.Contact)