mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 21:27:46 +02:00
Switch to typescript 5.8.3 (#9152)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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'
|
||||
/**
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
//
|
||||
|
||||
import core, {
|
||||
Domain,
|
||||
type Domain,
|
||||
DOMAIN_MODEL,
|
||||
groupByArray,
|
||||
TxProcessor,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
//
|
||||
|
||||
import {
|
||||
DocumentQuery,
|
||||
DocumentUpdate,
|
||||
FindOptions,
|
||||
type DocumentQuery,
|
||||
type DocumentUpdate,
|
||||
type FindOptions,
|
||||
type Doc,
|
||||
type Domain,
|
||||
type Iterator,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
//
|
||||
|
||||
import core, {
|
||||
Account,
|
||||
type Account,
|
||||
AccountRole,
|
||||
systemAccountUuid,
|
||||
TxProcessor,
|
||||
|
||||
Reference in New Issue
Block a user