mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-23 18:15:03 +02:00
Enhanced Phased build (#4599)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
|
||||
import { prepareTools as prepareToolsRaw } from '@hcengineering/server-tool'
|
||||
|
||||
import { Data, Tx, Version } from '@hcengineering/core'
|
||||
import { MinioService } from '@hcengineering/minio'
|
||||
import { MigrateOperation } from '@hcengineering/model'
|
||||
import { type Data, type Tx, type Version } from '@hcengineering/core'
|
||||
import { type MinioService } from '@hcengineering/minio'
|
||||
import { type MigrateOperation } from '@hcengineering/model'
|
||||
import builder, { migrateOperations, getModelVersion } from '@hcengineering/model-all'
|
||||
import { devTool } from '.'
|
||||
|
||||
|
||||
@@ -15,18 +15,18 @@
|
||||
|
||||
import contact from '@hcengineering/contact'
|
||||
import core, {
|
||||
Account,
|
||||
BackupClient,
|
||||
type Account,
|
||||
type BackupClient,
|
||||
ClassifierKind,
|
||||
Client,
|
||||
type Client,
|
||||
DOMAIN_TX,
|
||||
Doc,
|
||||
DocumentUpdate,
|
||||
type Doc,
|
||||
type DocumentUpdate,
|
||||
MeasureMetricsContext,
|
||||
Metrics,
|
||||
Ref,
|
||||
type Metrics,
|
||||
type Ref,
|
||||
TxOperations,
|
||||
WorkspaceId,
|
||||
type WorkspaceId,
|
||||
generateId,
|
||||
metricsToString,
|
||||
newMetrics,
|
||||
|
||||
+10
-10
@@ -17,28 +17,28 @@ import attachment from '@hcengineering/attachment'
|
||||
import contact from '@hcengineering/contact'
|
||||
import { deepEqual } from 'fast-equals'
|
||||
import core, {
|
||||
BackupClient,
|
||||
Client as CoreClient,
|
||||
type BackupClient,
|
||||
type Client as CoreClient,
|
||||
DOMAIN_TX,
|
||||
Doc,
|
||||
Domain,
|
||||
Ref,
|
||||
type Doc,
|
||||
type Domain,
|
||||
type Ref,
|
||||
SortingOrder,
|
||||
TxCreateDoc,
|
||||
type TxCreateDoc,
|
||||
TxOperations,
|
||||
TxProcessor,
|
||||
WorkspaceId,
|
||||
type WorkspaceId,
|
||||
generateId,
|
||||
getObjectValue
|
||||
} from '@hcengineering/core'
|
||||
import { MinioService } from '@hcengineering/minio'
|
||||
import { type MinioService } from '@hcengineering/minio'
|
||||
import { getWorkspaceDB } from '@hcengineering/mongo'
|
||||
import recruit from '@hcengineering/recruit'
|
||||
import { connect } from '@hcengineering/server-tool'
|
||||
import tracker from '@hcengineering/tracker'
|
||||
import tags, { TagCategory, TagElement, TagReference } from '@hcengineering/tags'
|
||||
import tags, { type TagCategory, type TagElement, type TagReference } from '@hcengineering/tags'
|
||||
import { MongoClient } from 'mongodb'
|
||||
import chunter, { ChatMessage } from '@hcengineering/chunter'
|
||||
import chunter, { type ChatMessage } from '@hcengineering/chunter'
|
||||
|
||||
export const DOMAIN_ACTIVITY = 'activity' as Domain
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import core, { BackupClient, Client as CoreClient, TxFactory, WorkspaceId } from '@hcengineering/core'
|
||||
import core, { type BackupClient, type Client as CoreClient, TxFactory, type WorkspaceId } from '@hcengineering/core'
|
||||
import { connect } from '@hcengineering/server-tool'
|
||||
|
||||
function toLen (val: string, sep: string, len: number): string {
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
//
|
||||
|
||||
import { Client as ElasticClient } from '@elastic/elasticsearch'
|
||||
import core, { DOMAIN_DOC_INDEX_STATE, toWorkspaceString, WorkspaceId } from '@hcengineering/core'
|
||||
import { MinioService } from '@hcengineering/minio'
|
||||
import core, { DOMAIN_DOC_INDEX_STATE, toWorkspaceString, type WorkspaceId } from '@hcengineering/core'
|
||||
import { type MinioService } from '@hcengineering/minio'
|
||||
import { getWorkspaceDB } from '@hcengineering/mongo'
|
||||
import { MongoClient } from 'mongodb'
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import {
|
||||
setAccountAdmin,
|
||||
setRole,
|
||||
upgradeWorkspace,
|
||||
WorkspaceInfo
|
||||
type WorkspaceInfo
|
||||
} from '@hcengineering/account'
|
||||
import { setMetadata } from '@hcengineering/platform'
|
||||
import {
|
||||
@@ -43,14 +43,14 @@ import {
|
||||
import serverToken, { decodeToken, generateToken } from '@hcengineering/server-token'
|
||||
import toolPlugin, { FileModelLogger } from '@hcengineering/server-tool'
|
||||
|
||||
import { Command, program } from 'commander'
|
||||
import { Db, MongoClient } from 'mongodb'
|
||||
import { type Command, program } from 'commander'
|
||||
import { type Db, MongoClient } from 'mongodb'
|
||||
import { clearTelegramHistory } from './telegram'
|
||||
import { diffWorkspace, updateField } from './workspace'
|
||||
|
||||
import { Data, getWorkspaceId, RateLimitter, Tx, Version } from '@hcengineering/core'
|
||||
import { MinioService } from '@hcengineering/minio'
|
||||
import { consoleModelLogger, MigrateOperation } from '@hcengineering/model'
|
||||
import { type Data, getWorkspaceId, RateLimitter, type Tx, type Version } from '@hcengineering/core'
|
||||
import { type MinioService } from '@hcengineering/minio'
|
||||
import { consoleModelLogger, type MigrateOperation } from '@hcengineering/model'
|
||||
import { openAIConfigDefaults } from '@hcengineering/openai'
|
||||
import path from 'path'
|
||||
import { benchmark } from './benchmark'
|
||||
|
||||
+11
-1
@@ -1,4 +1,14 @@
|
||||
import core, { Attribute, Data, Doc, DocumentUpdate, Hierarchy, ModelDb, Ref, Tx, Type } from '@hcengineering/core'
|
||||
import core, {
|
||||
type Attribute,
|
||||
type Data,
|
||||
type Doc,
|
||||
type DocumentUpdate,
|
||||
Hierarchy,
|
||||
ModelDb,
|
||||
type Ref,
|
||||
type Tx,
|
||||
type Type
|
||||
} from '@hcengineering/core'
|
||||
import { deepEqual } from 'fast-equals'
|
||||
|
||||
/**
|
||||
|
||||
@@ -14,18 +14,18 @@
|
||||
//
|
||||
|
||||
import core, {
|
||||
AnyAttribute,
|
||||
BackupClient,
|
||||
Class,
|
||||
type AnyAttribute,
|
||||
type BackupClient,
|
||||
type Class,
|
||||
ClassifierKind,
|
||||
Client as CoreClient,
|
||||
Doc,
|
||||
Domain,
|
||||
type Client as CoreClient,
|
||||
type Doc,
|
||||
type Domain,
|
||||
Hierarchy,
|
||||
Obj,
|
||||
Ref,
|
||||
type Obj,
|
||||
type Ref,
|
||||
SortingOrder,
|
||||
WorkspaceId
|
||||
type WorkspaceId
|
||||
} from '@hcengineering/core'
|
||||
import { getWorkspaceDB } from '@hcengineering/mongo'
|
||||
import { connect } from '@hcengineering/server-tool'
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import { DOMAIN_TX, Ref, WorkspaceId } from '@hcengineering/core'
|
||||
import { MinioService } from '@hcengineering/minio'
|
||||
import { DOMAIN_TX, type Ref, type WorkspaceId } from '@hcengineering/core'
|
||||
import { type MinioService } from '@hcengineering/minio'
|
||||
import { DOMAIN_ATTACHMENT } from '@hcengineering/model-attachment'
|
||||
import contact, { DOMAIN_CHANNEL } from '@hcengineering/model-contact'
|
||||
import { DOMAIN_TELEGRAM } from '@hcengineering/model-telegram'
|
||||
import { getWorkspaceDB } from '@hcengineering/mongo'
|
||||
import telegram, { SharedTelegramMessage, SharedTelegramMessages } from '@hcengineering/telegram'
|
||||
import { Document, MongoClient, UpdateFilter } from 'mongodb'
|
||||
import telegram, { type SharedTelegramMessage, type SharedTelegramMessages } from '@hcengineering/telegram'
|
||||
import { type Document, MongoClient, type UpdateFilter } from 'mongodb'
|
||||
|
||||
const LastMessages = 'last-msgs'
|
||||
|
||||
|
||||
+10
-1
@@ -1,4 +1,13 @@
|
||||
import { AttachedData, AttachedDoc, Class, Doc, DocumentUpdate, Ref, Space, TxOperations } from '@hcengineering/core'
|
||||
import {
|
||||
type AttachedData,
|
||||
type AttachedDoc,
|
||||
type Class,
|
||||
type Doc,
|
||||
type DocumentUpdate,
|
||||
type Ref,
|
||||
type Space,
|
||||
type TxOperations
|
||||
} from '@hcengineering/core'
|
||||
|
||||
export async function findOrUpdateAttached<T extends AttachedDoc> (
|
||||
client: TxOperations,
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
|
||||
import contact from '@hcengineering/contact'
|
||||
import core, {
|
||||
Client as CoreClient,
|
||||
BackupClient,
|
||||
type Client as CoreClient,
|
||||
type BackupClient,
|
||||
DOMAIN_TX,
|
||||
Tx,
|
||||
WorkspaceId,
|
||||
type Tx,
|
||||
type WorkspaceId,
|
||||
type Ref,
|
||||
type Doc
|
||||
} from '@hcengineering/core'
|
||||
|
||||
Reference in New Issue
Block a user