mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-27 11:06:50 +03:00
Model attributes type fix (#629)
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
parent
82f7dc70d1
commit
29a63e838c
@ -26,6 +26,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@anticrm/model-core": "~0.6.0",
|
||||
"@anticrm/model-chunter": "~0.6.0",
|
||||
"@anticrm/model-workbench": "~0.6.0",
|
||||
"@anticrm/model-attachment": "~0.6.0",
|
||||
"@anticrm/model-view": "~0.6.0",
|
||||
|
@ -19,7 +19,7 @@ import type { Contact } from '@anticrm/contact'
|
||||
import type { Doc, FindOptions, Ref } from '@anticrm/core'
|
||||
import type { Funnel, Lead } from '@anticrm/lead'
|
||||
import { createKanban } from '@anticrm/lead'
|
||||
import { Builder, Model, Prop, TypeRef, TypeString, UX } from '@anticrm/model'
|
||||
import { Builder, Collection, Model, Prop, TypeRef, TypeString, UX } from '@anticrm/model'
|
||||
import attachment from '@anticrm/model-attachment'
|
||||
import chunter from '@anticrm/model-chunter'
|
||||
import contact from '@anticrm/model-contact'
|
||||
@ -44,10 +44,10 @@ export class TLead extends TTask implements Lead {
|
||||
@Prop(TypeRef(contact.class.Contact), lead.string.Customer)
|
||||
customer!: Ref<Contact>
|
||||
|
||||
@Prop(TypeString(), 'Comments' as IntlString)
|
||||
@Prop(Collection(chunter.class.Comment), 'Comments' as IntlString)
|
||||
comments?: number
|
||||
|
||||
@Prop(TypeString(), 'Attachments' as IntlString)
|
||||
@Prop(Collection(attachment.class.Attachment), 'Attachments' as IntlString)
|
||||
attachments?: number
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ export class TVacancy extends TSpaceWithStates implements Vacancy {
|
||||
@Prop(TypeString(), 'Full description' as IntlString)
|
||||
fullDescription?: string
|
||||
|
||||
@Prop(TypeString(), 'Attachments' as IntlString)
|
||||
@Prop(Collection(attachment.class.Attachment), 'Attachments' as IntlString)
|
||||
attachments?: number
|
||||
|
||||
@Prop(TypeDate(), 'Due date' as IntlString, recruit.icon.Calendar)
|
||||
@ -76,10 +76,10 @@ export class TApplicant extends TTask implements Applicant {
|
||||
@Prop(TypeRef(recruit.class.Candidate), 'Candidate' as IntlString)
|
||||
declare attachedTo: Ref<Candidate>
|
||||
|
||||
@Prop(TypeString(), 'Attachments' as IntlString)
|
||||
@Prop(Collection(attachment.class.Attachment), 'Attachments' as IntlString)
|
||||
attachments?: number
|
||||
|
||||
@Prop(TypeString(), 'Comments' as IntlString)
|
||||
@Prop(Collection(chunter.class.Comment), 'Comments' as IntlString)
|
||||
comments?: number
|
||||
|
||||
@Prop(TypeRef(contact.class.Employee), 'Assigned recruiter' as IntlString)
|
||||
|
@ -97,10 +97,10 @@ export class TIssue extends TTask implements Issue {
|
||||
@Prop(TypeString(), 'Description' as IntlString)
|
||||
description!: string
|
||||
|
||||
@Prop(TypeString(), 'Comments' as IntlString)
|
||||
@Prop(Collection(chunter.class.Comment), 'Comments' as IntlString)
|
||||
comments!: number
|
||||
|
||||
@Prop(TypeString(), 'Attachments' as IntlString)
|
||||
@Prop(Collection(attachment.class.Attachment), 'Attachments' as IntlString)
|
||||
attachments!: number
|
||||
|
||||
@Prop(TypeString(), 'Labels' as IntlString)
|
||||
|
Loading…
Reference in New Issue
Block a user