Model attributes type fix (#629)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov 2021-12-15 16:02:24 +06:00 committed by GitHub
parent 82f7dc70d1
commit 29a63e838c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 8 deletions

View File

@ -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",

View File

@ -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
}

View File

@ -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)

View File

@ -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)