mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 05:07:43 +02:00
Adjust tg bot (#8412)
* Remove notification provider func Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com> * Adjust tg-bot Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com> * Use global integration Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com> * Use workspace integration Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com> * getSocialIdBySocialKey -> findFullSocialIdBySocialKey Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com> * move findFullSocialIdBySocialKey to service operations Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com> * use listIntegrations with account token Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com> * Adjust api Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com> * Fxi tests Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com> --------- Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -14,21 +14,19 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import { type Builder, Mixin, Model } from '@hcengineering/model'
|
||||
import { type Builder, Mixin } from '@hcengineering/model'
|
||||
|
||||
import contact from '@hcengineering/contact'
|
||||
import core, { type Ref } from '@hcengineering/core'
|
||||
import { TClass, TDoc } from '@hcengineering/model-core'
|
||||
import core from '@hcengineering/core'
|
||||
import { TClass } from '@hcengineering/model-core'
|
||||
import { TNotificationType } from '@hcengineering/model-notification'
|
||||
import notification, { type NotificationProvider } from '@hcengineering/notification'
|
||||
import notification from '@hcengineering/notification'
|
||||
import { type Resource } from '@hcengineering/platform'
|
||||
import serverCore from '@hcengineering/server-core'
|
||||
import serverNotification, {
|
||||
type HTMLPresenter,
|
||||
type NotificationContentProvider,
|
||||
type NotificationPresenter,
|
||||
type NotificationProviderFunc,
|
||||
type NotificationProviderResources,
|
||||
type Presenter,
|
||||
type TextPresenter,
|
||||
type TypeMatch,
|
||||
@@ -57,20 +55,8 @@ export class TTypeMatch extends TNotificationType implements TypeMatch {
|
||||
func!: TypeMatchFunc
|
||||
}
|
||||
|
||||
@Model(serverNotification.class.NotificationProviderResources, core.class.Doc)
|
||||
export class TNotificationProviderResources extends TDoc implements NotificationProviderResources {
|
||||
provider!: Ref<NotificationProvider>
|
||||
fn!: Resource<NotificationProviderFunc>
|
||||
}
|
||||
|
||||
export function createModel (builder: Builder): void {
|
||||
builder.createModel(
|
||||
THTMLPresenter,
|
||||
TTextPresenter,
|
||||
TTypeMatch,
|
||||
TNotificationPresenter,
|
||||
TNotificationProviderResources
|
||||
)
|
||||
builder.createModel(THTMLPresenter, TTextPresenter, TTypeMatch, TNotificationPresenter)
|
||||
|
||||
builder.createDoc(serverCore.class.Trigger, core.space.Model, {
|
||||
trigger: serverNotification.trigger.OnAttributeCreate,
|
||||
|
||||
Reference in New Issue
Block a user