// // 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 type { Account, Class, Doc, Obj, Ref, Space, AnyAttribute, State, Type, PropertyType, SpaceWithStates } from './classes' import type { Tx, 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>, Class: '' as Ref>>, Attribute: '' as Ref>, Tx: '' as Ref>, TxCUD: '' as Ref>>, TxCreateDoc: '' as Ref>>, TxMixin: '' as Ref>>, TxUpdateDoc: '' as Ref>>, TxRemoveDoc: '' as Ref>>, TxPutBag: '' as Ref>>, Space: '' as Ref>, SpaceWithStates: '' as Ref>, Account: '' as Ref>, State: '' as Ref>, TypeString: '' as Ref>>, TypeBoolean: '' as Ref>>, Bag: '' as Ref>>> }, space: { Tx: '' as Ref, Model: '' as Ref }, account: { System: '' as Ref }, status: { ObjectNotFound: '' as StatusCode<{ _id: Ref }>, ItemNotFound: '' as StatusCode<{ _id: Ref, _localId: string }> } })