Switch to typescript 5.8.3 (#9152)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-06-04 17:57:10 +05:00
committed by GitHub
parent 07c364c776
commit fcb67d20f8
562 changed files with 5212 additions and 5273 deletions
+10 -5
View File
@@ -15,16 +15,21 @@
import {
AccountRole,
Doc,
type Doc,
DOMAIN_CONFIGURATION,
MeasureContext,
Tx,
TxCUD,
type MeasureContext,
type Tx,
type TxCUD,
TxProcessor,
type SessionData
} from '@hcengineering/core'
import platform, { PlatformError, Severity, Status } from '@hcengineering/platform'
import { BaseMiddleware, Middleware, TxMiddlewareResult, type PipelineContext } from '@hcengineering/server-core'
import {
BaseMiddleware,
type Middleware,
type TxMiddlewareResult,
type PipelineContext
} from '@hcengineering/server-core'
export const configurationAccountEmail = '#configurator@hc.engineering'
/**
+1 -1
View File
@@ -14,7 +14,7 @@
//
import core, {
Domain,
type Domain,
DOMAIN_MODEL,
groupByArray,
TxProcessor,
+13 -2
View File
@@ -13,9 +13,20 @@
// limitations under the License.
//
import { aiBotAccountEmail } from '@hcengineering/ai-bot'
import core, { MeasureContext, Tx, systemAccountUuid, type SessionData, type TxApplyIf } from '@hcengineering/core'
import core, {
type MeasureContext,
type Tx,
systemAccountUuid,
type SessionData,
type TxApplyIf
} from '@hcengineering/core'
import platform, { PlatformError, Severity, Status } from '@hcengineering/platform'
import { BaseMiddleware, Middleware, TxMiddlewareResult, type PipelineContext } from '@hcengineering/server-core'
import {
BaseMiddleware,
type Middleware,
type TxMiddlewareResult,
type PipelineContext
} from '@hcengineering/server-core'
/**
* @public
+8 -8
View File
@@ -14,17 +14,17 @@
//
import {
Class,
Doc,
DocumentQuery,
FindOptions,
FindResult,
MeasureContext,
Ref,
type Class,
type Doc,
type DocumentQuery,
type FindOptions,
type FindResult,
type MeasureContext,
type Ref,
clone,
toFindResult
} from '@hcengineering/core'
import { BaseMiddleware, Middleware, type PipelineContext } from '@hcengineering/server-core'
import { BaseMiddleware, type Middleware, type PipelineContext } from '@hcengineering/server-core'
/**
* @public
*/
+3 -3
View File
@@ -14,9 +14,9 @@
//
import {
DocumentQuery,
DocumentUpdate,
FindOptions,
type DocumentQuery,
type DocumentUpdate,
type FindOptions,
type Doc,
type Domain,
type Iterator,
+13 -2
View File
@@ -12,8 +12,19 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
import core, { MeasureContext, Tx, systemAccountUuid, type SessionData, type TxApplyIf } from '@hcengineering/core'
import { BaseMiddleware, Middleware, TxMiddlewareResult, type PipelineContext } from '@hcengineering/server-core'
import core, {
type MeasureContext,
type Tx,
systemAccountUuid,
type SessionData,
type TxApplyIf
} from '@hcengineering/core'
import {
BaseMiddleware,
type Middleware,
type TxMiddlewareResult,
type PipelineContext
} from '@hcengineering/server-core'
/**
* @public
+8 -3
View File
@@ -15,8 +15,8 @@
import { aiBotAccountEmail } from '@hcengineering/ai-bot'
import core, {
AccountRole,
MeasureContext,
Tx,
type MeasureContext,
type Tx,
TxProcessor,
systemAccountUuid,
type Doc,
@@ -25,7 +25,12 @@ import core, {
type TxCUD
} from '@hcengineering/core'
import platform, { PlatformError, Severity, Status } from '@hcengineering/platform'
import { BaseMiddleware, Middleware, TxMiddlewareResult, type PipelineContext } from '@hcengineering/server-core'
import {
BaseMiddleware,
type Middleware,
type TxMiddlewareResult,
type PipelineContext
} from '@hcengineering/server-core'
/**
* @public
+17 -12
View File
@@ -14,25 +14,30 @@
//
/* eslint-disable @typescript-eslint/no-unused-vars */
import core, {
AttachedDoc,
Class,
type AttachedDoc,
type Class,
DOMAIN_TX,
Doc,
DocumentQuery,
FindOptions,
FindResult,
LookupData,
MeasureContext,
type Doc,
type DocumentQuery,
type FindOptions,
type FindResult,
type LookupData,
type MeasureContext,
type PersonUuid,
Ref,
Tx,
TxCUD,
type Ref,
type Tx,
type TxCUD,
TxProcessor,
systemAccountUuid,
type SessionData
} from '@hcengineering/core'
import platform, { PlatformError, Severity, Status } from '@hcengineering/platform'
import { BaseMiddleware, Middleware, TxMiddlewareResult, type PipelineContext } from '@hcengineering/server-core'
import {
BaseMiddleware,
type Middleware,
type TxMiddlewareResult,
type PipelineContext
} from '@hcengineering/server-core'
import { DOMAIN_PREFERENCE } from '@hcengineering/server-preference'
/**
+9 -4
View File
@@ -16,12 +16,12 @@
import {
type Class,
type Doc,
DocumentQuery,
type DocumentQuery,
type Domain,
FindResult,
type FindResult,
type LoadModelResponse,
type MeasureContext,
Ref,
type Ref,
type SearchOptions,
type SearchQuery,
type SearchResult,
@@ -29,7 +29,12 @@ import {
type Timestamp,
type Tx
} from '@hcengineering/core'
import { BaseMiddleware, Middleware, type PipelineContext, ServerFindOptions } from '@hcengineering/server-core'
import {
BaseMiddleware,
type Middleware,
type PipelineContext,
type ServerFindOptions
} from '@hcengineering/server-core'
interface Query {
key: string
+17 -17
View File
@@ -13,30 +13,30 @@
// limitations under the License.
//
import core, {
Class,
Doc,
Permission,
Ref,
Role,
RolesAssignment,
Space,
SpaceType,
Tx,
TxApplyIf,
TxCUD,
TxCreateDoc,
TxMixin,
type Class,
type Doc,
type Permission,
type Ref,
type Role,
type RolesAssignment,
type Space,
type SpaceType,
type Tx,
type TxApplyIf,
type TxCUD,
type TxCreateDoc,
type TxMixin,
TxProcessor,
TxRemoveDoc,
TxUpdateDoc,
TypedSpace,
type TxRemoveDoc,
type TxUpdateDoc,
type TypedSpace,
type MeasureContext,
type SessionData,
type AccountUuid,
AccountRole
} from '@hcengineering/core'
import platform, { PlatformError, Severity, Status } from '@hcengineering/platform'
import { Middleware, TxMiddlewareResult, type PipelineContext } from '@hcengineering/server-core'
import { type Middleware, type TxMiddlewareResult, type PipelineContext } from '@hcengineering/server-core'
import { BaseMiddleware } from '@hcengineering/server-core'
+27 -27
View File
@@ -13,33 +13,33 @@
// limitations under the License.
//
import core, {
Account,
type Account,
AccountRole,
AccountUuid,
AttachedDoc,
Class,
type AccountUuid,
type AttachedDoc,
type Class,
DOMAIN_MODEL,
Doc,
DocumentQuery,
Domain,
FindResult,
LookupData,
MeasureContext,
ObjQueryType,
Position,
PullArray,
Ref,
SearchOptions,
SearchQuery,
SearchResult,
Space,
Tx,
TxCUD,
TxCreateDoc,
type Doc,
type DocumentQuery,
type Domain,
type FindResult,
type LookupData,
type MeasureContext,
type ObjQueryType,
type Position,
type PullArray,
type Ref,
type SearchOptions,
type SearchQuery,
type SearchResult,
type Space,
type Tx,
type TxCUD,
type TxCreateDoc,
TxProcessor,
TxRemoveDoc,
TxUpdateDoc,
TxWorkspaceEvent,
type TxRemoveDoc,
type TxUpdateDoc,
type TxWorkspaceEvent,
WorkspaceEvent,
clone,
generateId,
@@ -51,9 +51,9 @@ import core, {
import platform, { PlatformError, Severity, Status } from '@hcengineering/platform'
import {
BaseMiddleware,
Middleware,
ServerFindOptions,
TxMiddlewareResult,
type Middleware,
type ServerFindOptions,
type TxMiddlewareResult,
type PipelineContext
} from '@hcengineering/server-core'
import { isOwner, isSystem } from './utils'
+15 -12
View File
@@ -14,7 +14,6 @@
//
import core, {
type PersonId,
type AttachedDoc,
type Class,
ClassifierKind,
@@ -25,10 +24,11 @@ import core, {
type LowLevelStorage,
type MeasureContext,
type Mixin,
type PersonId,
type Ref,
type SessionData,
type Tx,
TxCUD,
type TxCUD,
TxFactory,
type TxRemoveDoc,
type TxUpdateDoc,
@@ -37,17 +37,20 @@ import core, {
withContext
} from '@hcengineering/core'
import { PlatformError, getResource, unknownError } from '@hcengineering/platform'
import type {
Middleware,
ObjectDDParticipant,
PipelineContext,
ServerFindOptions,
ServiceAdaptersManager,
StorageAdapter,
TriggerControl,
TxMiddlewareResult
import serverCore, {
type Middleware,
type ObjectDDParticipant,
type PipelineContext,
type ServerFindOptions,
type ServiceAdaptersManager,
type StorageAdapter,
type TriggerControl,
type TxMiddlewareResult,
BaseMiddleware,
SessionDataImpl,
type SessionFindAll,
Triggers
} from '@hcengineering/server-core'
import serverCore, { BaseMiddleware, SessionDataImpl, SessionFindAll, Triggers } from '@hcengineering/server-core'
import { filterBroadcastOnly } from './utils'
/**
+14 -9
View File
@@ -13,19 +13,24 @@
// limitations under the License.
//
import core, {
MeasureContext,
Tx,
type MeasureContext,
type Tx,
type SessionData,
type TxApplyIf,
TxCUD,
Doc,
type TxCUD,
type Doc,
TxProcessor,
UserStatus,
TxCreateDoc,
TxUpdateDoc,
Ref
type UserStatus,
type TxCreateDoc,
type TxUpdateDoc,
type Ref
} from '@hcengineering/core'
import { BaseMiddleware, Middleware, TxMiddlewareResult, type PipelineContext } from '@hcengineering/server-core'
import {
BaseMiddleware,
type Middleware,
type TxMiddlewareResult,
type PipelineContext
} from '@hcengineering/server-core'
/**
* @public
+1 -1
View File
@@ -14,7 +14,7 @@
//
import core, {
Account,
type Account,
AccountRole,
systemAccountUuid,
TxProcessor,