Files
huly-platform/models/server-templates/src/index.ts
T
2024-02-05 15:47:52 +07:00

32 lines
1.3 KiB
TypeScript

//
// Copyright © 2024 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 { Mixin, type Builder } from '@hcengineering/model'
import { TTemplateField } from '@hcengineering/model-templates'
import { type Resource } from '@hcengineering/platform'
import serverTemplates, { type TemplateFieldServerFunc } from '@hcengineering/server-templates'
import templates, { type TemplateField } from '@hcengineering/templates'
@Mixin(serverTemplates.mixin.ServerTemplateField, templates.class.TemplateField)
export class TServerTemplateField extends TTemplateField implements TemplateField {
serverFunc!: Resource<TemplateFieldServerFunc>
}
export { serverTemplatesId } from '@hcengineering/server-templates'
export function createModel (builder: Builder): void {
builder.createModel(TServerTemplateField)
}