create application validation

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov
2021-09-16 11:46:04 +02:00
parent 3367f222ea
commit e28190ca52
2 changed files with 32 additions and 4 deletions
+6 -1
View File
@@ -14,13 +14,18 @@
//
import { mergeIds } from '@anticrm/platform'
import type { IntlString } from '@anticrm/platform'
import type { IntlString, StatusCode } from '@anticrm/platform'
import type { Ref, Class } from '@anticrm/core'
import type { AnyComponent } from '@anticrm/ui'
import type { Applicant, Candidate, Candidates, Vacancy } from '@anticrm/recruit'
import recruit, { recruitId } from '@anticrm/recruit'
export default mergeIds(recruitId, recruit, {
status: {
ApplicationExists: '' as StatusCode,
CandidateRequired: '' as StatusCode,
VacancyRequired: '' as StatusCode,
},
class: {
Vacancy: '' as Ref<Class<Vacancy>>,
Candidates: '' as Ref<Class<Candidates>>,