// // Copyright © 2020, 2021 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. // import type { Plugin, StatusCode } from '@anticrm/platform' import { plugin } from '@anticrm/platform' import { Mixin, Version } from '.' import type { Account, ArrOf, AnyAttribute, AttachedDoc, Class, Doc, Interface, Obj, PropertyType, Ref, Space, Timestamp, Type, Collection, RefTo } from './classes' import type { Tx, TxBulkWrite, TxCollectionCUD, TxCreateDoc, TxCUD, TxMixin, TxPutBag, TxRemoveDoc, TxUpdateDoc } from './tx' /** * @public */ export const coreId = 'core' as Plugin export default plugin(coreId, { class: { Obj: '' as Ref>, Doc: '' as Ref>, AttachedDoc: '' as Ref>, Class: '' as Ref>>, Mixin: '' as Ref>>, Interface: '' as Ref>>, Attribute: '' as Ref>, Tx: '' as Ref>, TxBulkWrite: '' as Ref>, TxCUD: '' as Ref>>, TxCreateDoc: '' as Ref>>, TxCollectionCUD: '' as Ref>>, TxMixin: '' as Ref>>, TxUpdateDoc: '' as Ref>>, TxRemoveDoc: '' as Ref>>, TxPutBag: '' as Ref>>, Space: '' as Ref>, Account: '' as Ref>, TypeString: '' as Ref>>, TypeBoolean: '' as Ref>>, TypeTimestamp: '' as Ref>>, TypeDate: '' as Ref>>, RefTo: '' as Ref>>, ArrOf: '' as Ref>>, Collection: '' as Ref>>, Bag: '' as Ref>>>, Version: '' as Ref> }, space: { Tx: '' as Ref, DerivedTx: '' as Ref, Model: '' as Ref }, account: { System: '' as Ref }, status: { ObjectNotFound: '' as StatusCode<{ _id: Ref }>, ItemNotFound: '' as StatusCode<{ _id: Ref, _localId: string }> }, version: { Model: '' as Ref } })