feat(modules-sdk, types, user, utils):init user module events (#6431)
* init user module events * refactor utils * undo test script update * fix feedback * add eventbus service to module test-runner * add injected dependencies * move events to utils * use const eventname in tests * rm withTransaction
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { EntityManager } from "typeorm"
|
||||
import { EventBusTypes } from "./bundles"
|
||||
import { Message } from "./event-bus"
|
||||
|
||||
/**
|
||||
@@ -27,6 +28,12 @@ export interface IMessageAggregator {
|
||||
save(msg: Message | Message[]): void
|
||||
getMessages(format?: MessageAggregatorFormat): Record<string, Message[]>
|
||||
clearMessages(): void
|
||||
saveRawMessageData<T>(
|
||||
messageData:
|
||||
| EventBusTypes.MessageFormat<T>
|
||||
| EventBusTypes.MessageFormat<T>[],
|
||||
options?: Record<string, unknown>
|
||||
): void
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,6 +5,7 @@ export interface CreateUserDTO {
|
||||
avatar_url?: string | null
|
||||
metadata?: Record<string, unknown> | null
|
||||
}
|
||||
|
||||
export interface UpdateUserDTO extends Partial<Omit<CreateUserDTO, "email">> {
|
||||
id: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user