mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-21 17:17:54 +02:00
Switch to typescript 5.8.3 (#9152)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import { Class, Doc, Ref } from '@hcengineering/core'
|
||||
import { type Class, type Doc, type Ref } from '@hcengineering/core'
|
||||
import { EmptyMarkup, MarkupNodeType, jsonToMarkup } from '@hcengineering/text-core'
|
||||
|
||||
import { getReferencesData } from '../references'
|
||||
|
||||
@@ -14,33 +14,33 @@
|
||||
//
|
||||
|
||||
import activity, {
|
||||
ActivityMessage,
|
||||
ActivityMessageControl,
|
||||
DocAttributeUpdates,
|
||||
DocUpdateMessage,
|
||||
Reaction
|
||||
type ActivityMessage,
|
||||
type ActivityMessageControl,
|
||||
type DocAttributeUpdates,
|
||||
type DocUpdateMessage,
|
||||
type Reaction
|
||||
} from '@hcengineering/activity'
|
||||
import core, {
|
||||
PersonId,
|
||||
AttachedDoc,
|
||||
Class,
|
||||
Collection,
|
||||
Data,
|
||||
Doc,
|
||||
Hierarchy,
|
||||
type PersonId,
|
||||
type AttachedDoc,
|
||||
type Class,
|
||||
type Collection,
|
||||
type Data,
|
||||
type Doc,
|
||||
type Hierarchy,
|
||||
matchQuery,
|
||||
MeasureContext,
|
||||
Ref,
|
||||
Space,
|
||||
Tx,
|
||||
TxCreateDoc,
|
||||
TxCUD,
|
||||
type MeasureContext,
|
||||
type Ref,
|
||||
type Space,
|
||||
type Tx,
|
||||
type TxCreateDoc,
|
||||
type TxCUD,
|
||||
TxProcessor
|
||||
} from '@hcengineering/core'
|
||||
import { getAccountBySocialId } from '@hcengineering/server-contact'
|
||||
import notification, { NotificationContent } from '@hcengineering/notification'
|
||||
import notification, { type NotificationContent } from '@hcengineering/notification'
|
||||
import { getResource, translate } from '@hcengineering/platform'
|
||||
import { ActivityControl, DocObjectCache } from '@hcengineering/server-activity'
|
||||
import { type ActivityControl, type DocObjectCache } from '@hcengineering/server-activity'
|
||||
import type { TriggerControl } from '@hcengineering/server-core'
|
||||
import {
|
||||
createCollabDocInfo,
|
||||
@@ -48,8 +48,8 @@ import {
|
||||
getTextPresenter,
|
||||
removeDocInboxNotifications
|
||||
} from '@hcengineering/server-notification-resources'
|
||||
import { Card } from '@hcengineering/card'
|
||||
import { Person } from '@hcengineering/contact'
|
||||
import { type Card } from '@hcengineering/card'
|
||||
import { type Person } from '@hcengineering/contact'
|
||||
|
||||
import { ReferenceTrigger } from './references'
|
||||
import { getAttrName, getCollectionAttribute, getDocUpdateAction, getTxAttributesUpdates } from './utils'
|
||||
|
||||
@@ -1,13 +1,22 @@
|
||||
import core, { Class, Doc, Hierarchy, Ref, systemAccount, TxCreateDoc, TxCUD, TxProcessor } from '@hcengineering/core'
|
||||
import { Card } from '@hcengineering/card'
|
||||
import { TriggerControl } from '@hcengineering/server-core'
|
||||
import core, {
|
||||
type Class,
|
||||
type Doc,
|
||||
type Hierarchy,
|
||||
type Ref,
|
||||
systemAccount,
|
||||
type TxCreateDoc,
|
||||
type TxCUD,
|
||||
TxProcessor
|
||||
} from '@hcengineering/core'
|
||||
import { type Card } from '@hcengineering/card'
|
||||
import { type TriggerControl } from '@hcengineering/server-core'
|
||||
import activity from '@hcengineering/activity'
|
||||
import { ActivityControl } from '@hcengineering/server-activity'
|
||||
import { ServerApi as CommunicationApi, MessageRequestEventType } from '@hcengineering/communication-sdk-types'
|
||||
import { type ActivityControl } from '@hcengineering/server-activity'
|
||||
import { type ServerApi as CommunicationApi, MessageRequestEventType } from '@hcengineering/communication-sdk-types'
|
||||
import {
|
||||
ActivityAttributeUpdate,
|
||||
ActivityMessageData,
|
||||
ActivityUpdate,
|
||||
type ActivityAttributeUpdate,
|
||||
type ActivityMessageData,
|
||||
type ActivityUpdate,
|
||||
ActivityUpdateType,
|
||||
MessageType
|
||||
} from '@hcengineering/communication-types'
|
||||
|
||||
@@ -13,33 +13,33 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import activity, { ActivityMessage, ActivityReference, UserMentionInfo } from '@hcengineering/activity'
|
||||
import contact, { Employee, Person } from '@hcengineering/contact'
|
||||
import activity, { type ActivityMessage, type ActivityReference, type UserMentionInfo } from '@hcengineering/activity'
|
||||
import contact, { type Employee, type Person } from '@hcengineering/contact'
|
||||
import core, {
|
||||
PersonId,
|
||||
Blob,
|
||||
Class,
|
||||
Data,
|
||||
Doc,
|
||||
Hierarchy,
|
||||
Markup,
|
||||
Ref,
|
||||
Space,
|
||||
Tx,
|
||||
TxCreateDoc,
|
||||
TxCUD,
|
||||
type PersonId,
|
||||
type Blob,
|
||||
type Class,
|
||||
type Data,
|
||||
type Doc,
|
||||
type Hierarchy,
|
||||
type Markup,
|
||||
type Ref,
|
||||
type Space,
|
||||
type Tx,
|
||||
type TxCreateDoc,
|
||||
type TxCUD,
|
||||
TxFactory,
|
||||
TxMixin,
|
||||
type TxMixin,
|
||||
TxProcessor,
|
||||
TxRemoveDoc,
|
||||
TxUpdateDoc,
|
||||
Type,
|
||||
type TxRemoveDoc,
|
||||
type TxUpdateDoc,
|
||||
type Type,
|
||||
type MeasureContext,
|
||||
AccountUuid
|
||||
type AccountUuid
|
||||
} from '@hcengineering/core'
|
||||
import notification, { MentionInboxNotification, NotificationType } from '@hcengineering/notification'
|
||||
import notification, { type MentionInboxNotification, type NotificationType } from '@hcengineering/notification'
|
||||
import { getPerson } from '@hcengineering/server-contact'
|
||||
import { StorageAdapter, TriggerControl } from '@hcengineering/server-core'
|
||||
import { type StorageAdapter, type TriggerControl } from '@hcengineering/server-core'
|
||||
import {
|
||||
getCommonNotificationTxes,
|
||||
getNotificationProviderControl,
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
import { ActivityMessageControl, DocAttributeUpdates, DocUpdateAction } from '@hcengineering/activity'
|
||||
import cardPlugin, { Card, Tag } from '@hcengineering/card'
|
||||
import { ActivityUpdate, ActivityUpdateType } from '@hcengineering/communication-types'
|
||||
import { type ActivityMessageControl, type DocAttributeUpdates, type DocUpdateAction } from '@hcengineering/activity'
|
||||
import cardPlugin, { type Card, type Tag } from '@hcengineering/card'
|
||||
import { type ActivityUpdate, ActivityUpdateType } from '@hcengineering/communication-types'
|
||||
import core, {
|
||||
AttachedDoc,
|
||||
type AttachedDoc,
|
||||
type Attribute,
|
||||
Class,
|
||||
Collection,
|
||||
Doc,
|
||||
Hierarchy,
|
||||
MeasureContext,
|
||||
Mixin,
|
||||
Ref,
|
||||
RefTo,
|
||||
TxCreateDoc,
|
||||
TxCUD,
|
||||
TxMixin,
|
||||
type Class,
|
||||
type Collection,
|
||||
type Doc,
|
||||
type Hierarchy,
|
||||
type MeasureContext,
|
||||
type Mixin,
|
||||
type Ref,
|
||||
type RefTo,
|
||||
type TxCreateDoc,
|
||||
type TxCUD,
|
||||
type TxMixin,
|
||||
TxProcessor,
|
||||
TxUpdateDoc,
|
||||
type TxUpdateDoc,
|
||||
combineAttributes,
|
||||
ArrOf,
|
||||
AccountUuid
|
||||
type ArrOf,
|
||||
type AccountUuid
|
||||
} from '@hcengineering/core'
|
||||
import notification from '@hcengineering/notification'
|
||||
import { translate } from '@hcengineering/platform'
|
||||
import { ActivityControl, DocObjectCache, getAllObjectTransactions } from '@hcengineering/server-activity'
|
||||
import { TriggerControl } from '@hcengineering/server-core'
|
||||
import { type ActivityControl, type DocObjectCache, getAllObjectTransactions } from '@hcengineering/server-activity'
|
||||
import { type TriggerControl } from '@hcengineering/server-core'
|
||||
import { getDocCollaborators } from '@hcengineering/server-notification-resources'
|
||||
|
||||
function getAvailableAttributesKeys (tx: TxCUD<Doc>, hierarchy: Hierarchy): string[] {
|
||||
|
||||
Reference in New Issue
Block a user