2021-08-07 17:03:06 +00:00
|
|
|
//
|
|
|
|
// Copyright © 2020 Anticrm Platform Contributors.
|
|
|
|
//
|
|
|
|
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License. You may
|
|
|
|
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
//
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
//
|
|
|
|
|
2022-01-06 11:38:40 +00:00
|
|
|
import type { Client, Doc, Ref } from '@anticrm/core'
|
2021-12-20 09:37:15 +00:00
|
|
|
import type { IntlString, Resource, Status } from '@anticrm/platform'
|
2021-12-03 10:16:16 +00:00
|
|
|
import { mergeIds } from '@anticrm/platform'
|
2021-08-07 17:03:06 +00:00
|
|
|
import { recruitId } from '@anticrm/recruit'
|
|
|
|
import recruit from '@anticrm/recruit-resources/src/plugin'
|
2022-01-06 11:38:40 +00:00
|
|
|
import { KanbanTemplate } from '@anticrm/task'
|
2021-12-03 10:16:16 +00:00
|
|
|
import type { AnyComponent } from '@anticrm/ui'
|
|
|
|
import type { Action } from '@anticrm/view'
|
2021-12-15 09:04:43 +00:00
|
|
|
import { Application } from '@anticrm/workbench'
|
2022-01-21 09:05:55 +00:00
|
|
|
import { ObjectSearchFactory, ObjectSearchCategory } from '@anticrm/model-presentation'
|
2021-08-07 17:03:06 +00:00
|
|
|
|
|
|
|
export default mergeIds(recruitId, recruit, {
|
2021-12-15 09:04:43 +00:00
|
|
|
app: {
|
|
|
|
Recruit: '' as Ref<Application>
|
|
|
|
},
|
2021-09-25 18:33:36 +00:00
|
|
|
action: {
|
|
|
|
CreateApplication: '' as Ref<Action>
|
|
|
|
},
|
|
|
|
actionImpl: {
|
|
|
|
CreateApplication: '' as Resource<(object: Doc) => Promise<void>>
|
|
|
|
},
|
2021-08-07 17:03:06 +00:00
|
|
|
string: {
|
|
|
|
RecruitApplication: '' as IntlString,
|
|
|
|
Vacancies: '' as IntlString,
|
2022-01-21 09:05:55 +00:00
|
|
|
CandidatePools: '' as IntlString,
|
2022-02-07 09:21:32 +00:00
|
|
|
SearchApplication: '' as IntlString,
|
|
|
|
Application: '' as IntlString,
|
|
|
|
AssignedRecruiter: '' as IntlString
|
2021-08-07 17:03:06 +00:00
|
|
|
},
|
2021-12-20 09:37:15 +00:00
|
|
|
validator: {
|
|
|
|
ApplicantValidator: '' as Resource<<T extends Doc>(doc: T, client: Client) => Promise<Status>>
|
|
|
|
},
|
2021-08-07 17:03:06 +00:00
|
|
|
component: {
|
|
|
|
CreateVacancy: '' as AnyComponent,
|
|
|
|
CreateApplication: '' as AnyComponent,
|
2021-09-08 11:24:49 +00:00
|
|
|
KanbanCard: '' as AnyComponent,
|
2021-09-26 11:18:19 +00:00
|
|
|
ApplicationPresenter: '' as AnyComponent,
|
2021-12-02 09:09:37 +00:00
|
|
|
ApplicationsPresenter: '' as AnyComponent,
|
2022-02-11 09:19:21 +00:00
|
|
|
VacancyPresenter: '' as AnyComponent,
|
2021-12-17 09:04:49 +00:00
|
|
|
EditApplication: '' as AnyComponent,
|
2021-12-15 09:15:43 +00:00
|
|
|
TemplatesIcon: '' as AnyComponent,
|
2022-01-06 11:38:40 +00:00
|
|
|
Applications: '' as AnyComponent,
|
2022-01-11 09:05:53 +00:00
|
|
|
Candidates: '' as AnyComponent,
|
|
|
|
CreateCandidate: '' as AnyComponent
|
2021-12-22 09:04:07 +00:00
|
|
|
},
|
|
|
|
template: {
|
|
|
|
DefaultVacancy: '' as Ref<KanbanTemplate>
|
2022-01-21 09:05:55 +00:00
|
|
|
},
|
|
|
|
completion: {
|
|
|
|
ApplicationQuery: '' as Resource<ObjectSearchFactory>,
|
|
|
|
ApplicationCategory: '' as Ref<ObjectSearchCategory>
|
2021-08-07 17:03:06 +00:00
|
|
|
}
|
|
|
|
})
|