Merge 9522 9513 (#8103)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
Co-authored-by: Denis Bykhov <bykhov.denis@gmail.com>
Co-authored-by: Alexander Onnikov <aonnikov@hardcoreeng.com>
Co-authored-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-02-27 16:57:36 +07:00
committed by GitHub
co-authored by Denis Bykhov Alexander Onnikov Victor Ilyushchenko
parent 9eba1cdf07
commit 05f1d8395a
97 changed files with 1745 additions and 714 deletions
@@ -1,25 +1,26 @@
//
// Copyright © 2023-2024 Hardcore Engineering Inc.
//
import { Person, pickPrimarySocialId, type Employee } from '@hcengineering/contact'
import core, {
AccountRole,
combineAttributes,
DocumentQuery,
includesAny,
PersonId,
Ref,
SortingOrder,
Tx,
TxCreateDoc,
TxFactory,
TxUpdateDoc,
type Timestamp,
type RolesAssignment,
AccountRole,
type TxCUD,
type Doc,
PersonId,
combineAttributes,
includesAny,
TxCreateDoc
type RolesAssignment,
type Timestamp,
type TxCUD
} from '@hcengineering/core'
import { Person, pickPrimarySocialId, type Employee } from '@hcengineering/contact'
import { getSocialStrings, getEmployees, getSocialStringsByPersons } from '@hcengineering/server-contact'
import { NotificationType } from '@hcengineering/notification'
import { getEmployees, getSocialStrings, getSocialStringsByPersons } from '@hcengineering/server-contact'
import { TriggerControl } from '@hcengineering/server-core'
import documents, {
@@ -36,7 +37,6 @@ import documents, {
} from '@hcengineering/controlled-documents'
import { RequestStatus } from '@hcengineering/request'
import training, { TrainingState, type TrainingRequest } from '@hcengineering/training'
import { NotificationType } from '@hcengineering/notification'
async function getDocs (
control: TriggerControl,