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:
8
packages/utils/src/user/events.ts
Normal file
8
packages/utils/src/user/events.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { CommonEvents } from "../event-bus"
|
||||
|
||||
export const UserEvents = {
|
||||
created: "user." + CommonEvents.CREATED,
|
||||
updated: "user." + CommonEvents.UPDATED,
|
||||
invite_created: "invite." + CommonEvents.CREATED,
|
||||
invite_updated: "invite." + CommonEvents.UPDATED,
|
||||
}
|
||||
1
packages/utils/src/user/index.ts
Normal file
1
packages/utils/src/user/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./events"
|
||||
Reference in New Issue
Block a user