platform/models/server-tracker/src/index.ts
Vyacheslav Tumanov 93305b512a
Remove team (#2625)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
2023-02-13 15:18:31 +07:00

44 lines
1.6 KiB
TypeScript

//
// Copyright © 2022 Hardcore Engineering Inc.
//
// 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.
//
import { Builder } from '@hcengineering/model'
import core from '@hcengineering/core'
import serverCore from '@hcengineering/server-core'
import serverTracker from '@hcengineering/server-tracker'
import tracker from '@hcengineering/tracker'
import serverNotification from '@hcengineering/server-notification'
export function createModel (builder: Builder): void {
builder.mixin(tracker.class.Issue, core.class.Class, serverNotification.mixin.HTMLPresenter, {
presenter: serverTracker.function.IssueHTMLPresenter
})
builder.mixin(tracker.class.Issue, core.class.Class, serverNotification.mixin.TextPresenter, {
presenter: serverTracker.function.IssueTextPresenter
})
builder.createDoc(serverCore.class.Trigger, core.space.Model, {
trigger: serverTracker.trigger.OnIssueUpdate
})
builder.createDoc(serverCore.class.Trigger, core.space.Model, {
trigger: serverTracker.trigger.OnProjectRemove
})
builder.createDoc(serverCore.class.Trigger, core.space.Model, {
trigger: serverTracker.trigger.OnTeamDelete
})
}