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 15:15:24 +05:00 committed by GitHub
parent e4a4630ee2
commit af2cbfe4be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,7 @@ import { generateClassNotificationTypes } from '@hcengineering/model-notificatio
import notification from '@hcengineering/notification' import notification from '@hcengineering/notification'
import lead from './plugin' import lead from './plugin'
import tracker from '@hcengineering/model-tracker' import tracker from '@hcengineering/model-tracker'
import { State } from '@hcengineering/task'
export { leadId } from '@hcengineering/lead' export { leadId } from '@hcengineering/lead'
export { leadOperation } from './migration' export { leadOperation } from './migration'
@ -79,6 +80,9 @@ export class TLead extends TTask implements Lead {
@Prop(TypeRef(contact.class.Employee), lead.string.Assignee) @Prop(TypeRef(contact.class.Employee), lead.string.Assignee)
declare assignee: Ref<Employee> | null 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) @Mixin(lead.mixin.Customer, contact.class.Contact)